| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
varunl
Joined: 03 Sep 2005
Posts: 2
|
| Posted: Sat Dec 10, 2005 7:17 am Post subject: How to find SIZE of INPUT DATA-SET FOR RECORD I/O |
|
|
Hi,
I have a program with a single input and single output file. The input file that i want to read can be any size (upto 1000 characters).
I want to read from this file and write to output file.
The problem i am encountering is
1. how do i find the size of the input data set (to match record length).
2. how do i ensure the size of the output data set is the same as input data set. How can this be specified in the JCL.
Thanks in advance for the replies.
--
Varun |
|
| Back to top |
|
iknow
Joined: 22 Aug 2005
Posts: 582
Location: Colarado, US
|
| Posted: Sat Dec 10, 2005 11:36 am Post subject: Re: How to find SIZE of INPUT DATA-SET FOR RECORD I/O |
|
|
Hi varunl,
Quote: 1. how do i find the size of the input data set (to match record length).
Just type S in front of this dataset and this will give you the information about the dataset inccluding the size allocated to it.
Quote: 2. how do i ensure the size of the output data set is the same as input data set. How can this be specified in the JCL.
The simplest way is while creating the output file you can specify the total size that it can occupy based on the input file.
If you want to specify the size through JCL I think you must do it by giving RECFM,BLKSIZE,DCB,DSORG parameters.
Refer JCL manuals for the syntax in our forum.
Hope this helps. |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|