IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Calculate the record length in the JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Apr 21, 2009 10:25 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top