Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Output file from COBOL program using more space.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Fri Aug 31, 2007 11:09 am    Post subject: Output file from COBOL program using more space.
Reply with quote

Hi,

I have a COBOL program which is used to reformat a file. The reformatting process is to change the layout of the file to the existing layout from the new layout. There is already a file with the existing layout. When I compared both the files (existing one and the file created by the reformat program) they are matching exactly. But the problem is the file created by reformat program is occupying more space than the existing one. If the actual file takes one tape, this file is taking nearly 9 tapes. Please clarify me what may be the reason for this?

Thanks,
Bala
Back to top
View user's profile Send private message

chiranjeevi_mca

New User


Joined: 19 Feb 2006
Posts: 27

PostPosted: Fri Aug 31, 2007 11:17 am    Post subject: Reply to: Output file from COBOL program using more space.
Reply with quote

Hi,

Check the BLOCK CONTAINS statement in your program.

Regards,
Chiranjeevi.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Aug 31, 2007 11:21 am    Post subject:
Reply with quote

Check the DCB BLKSIZE in the JCL
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Fri Aug 31, 2007 11:24 am    Post subject: Reply to: Output file from COBOL program using more space.
Reply with quote

Hi,

Could you tell me how BLOCK CONTAIN statement decides the space occupied by the output file?

Thanks,
Bala
Back to top
View user's profile Send private message
chiranjeevi_mca

New User


Joined: 19 Feb 2006
Posts: 27

PostPosted: Fri Aug 31, 2007 11:34 am    Post subject:
Reply with quote

Hi,

When you are writing or reading the records using tape, it will write or read block(group of records) wise. if you are decreasing the block contains size automatically it occupies more space.

Regards,
Chiranjeevi.J
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Fri Aug 31, 2007 11:38 am    Post subject: Reply to: Output file from COBOL program using more space.
Reply with quote

Thanks Chiranjeevi:-)

Bala.
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Fri Aug 31, 2007 11:52 am    Post subject:
Reply with quote

Hi,

The amount of space in a Tape is fixed right, say 100MB. If we are going to write a file with BLOCK CONTAIN 3000 records and the file contains 100000 records. let say each block corresponds to 3 MB. Whether the tape will be fully utilised or only 33 blocks will be writted to this tape and the remaining records will be written to a new tape. Please clarify me.

Thanks,
Bala
Back to top
View user's profile Send private message
chiranjeevi_mca

New User


Joined: 19 Feb 2006
Posts: 27

PostPosted: Fri Aug 31, 2007 12:18 pm    Post subject:
Reply with quote

Hi,

It willnot utilize 100mb. it utilizes only (3*33)=99mb, the remaining records will be write to a new file. The remaining space(1mb) at Tape1 is unused space. (One file may occupies More than one Tape, One Tape may contains more than one file.)

Regards,
Chiranjeevi.J
Back to top
View user's profile Send private message
kbmkris

Active User


Joined: 24 Jun 2006
Posts: 101

PostPosted: Fri Aug 31, 2007 12:19 pm    Post subject: Reply to: Output file from COBOL program using more space.
Reply with quote

Thanks Chiranjeevi:-)

Bala.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us