Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to find SIZE of INPUT DATA-SET FOR RECORD I/O

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
varunl

New User


Joined: 03 Sep 2005
Posts: 2

PostPosted: Sat Dec 10, 2005 7:17 am    Post subject: How to find SIZE of INPUT DATA-SET FOR RECORD I/O
Reply with quote

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
View user's profile Send private message

iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Sat Dec 10, 2005 11:36 am    Post subject: Re: How to find SIZE of INPUT DATA-SET FOR RECORD I/O
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us