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
 

 

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: 4649
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Wanted to calculate TRK when i have B... Balu5491 JCL & VSAM 8 Wed Jul 19, 2017 5:43 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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