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 Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm


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