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
 
Calculate the record length in the JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Deepakgoyal2005

New User


Joined: 22 Mar 2007
Posts: 57
Location: India

PostPosted: Tue Apr 21, 2009 10:13 am    Post subject: Calculate the record length in the JCL
Reply with quote

My input Flat file is created with different RL daily.
I want to calculate the record length of the Flat File in the JCL and drive the following steps based on the output.

For Example:
On a day, the RL of the Flat file is 200.
My JCL should give the output as 200 and set the return code accordingly so that based on the return code i can conditionally execute the following steps.

I had tried with IDCAMS utility with LISTCAT in the SYSIN, but it do not give the record length of the file. The RL is provided by the INFO line command. Can we capture the output of the INFO command in a file as we can do with LISTCAT by following command in SYSIN:

Code:
LISTCAT ENT('DEAR.D08950XX.HCCS.FFB.TICKET') ALL
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Apr 21, 2009 10:25 am    Post subject: Reply to: Calculate the record length in the JCL
Reply with quote

Maybe this previous topic: How to find the LRECL of the file at run time can offer a few tips.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 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