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

How to get the LRECL of a dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Fri Jun 09, 2006 3:23 pm
Reply with quote

How to get the LRECL of a dataset within a job.
Back to top
View user's profile Send private message
varun_sharma

New User


Joined: 08 Jun 2005
Posts: 19
Location: new delhi

PostPosted: Fri Jun 09, 2006 3:28 pm
Reply with quote

Hi

Can you please make yourself more clear.

Cheers
Varun
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Fri Jun 09, 2006 5:48 pm
Reply with quote

Hi
the requirement is like this.
i want to know the JCL which gives all the attributes of a sequential dataset like LRECL,BLKSIZE,RECFM.......etc. without give s or i infront of the dataset as we do in manual checking of the attributes.
Back to top
View user's profile Send private message
Bharanidharan

New User


Joined: 20 Jun 2005
Posts: 86
Location: Chennai, India

PostPosted: Fri Jun 09, 2006 6:20 pm
Reply with quote

Perhaps this is what you are looking for.
Code:

//STEP0001 EXEC PGM=IKJEFT01                                 
//SYSTSPRT DD   SYSOUT=*                                     
//SYSTSIN  DD   *                                             
 LISTDS 'YOUR.DATASET'                   
/*                                 

Its output in spool:
Code:

READY                                     
 LISTDS 'YOUR.DATASET'
YOUR.DATASET         
--RECFM-LRECL-BLKSIZE-DSORG               
  FB    90    27990   PS                   
--VOLUMES--                               
  DEV951                                   
READY                                     
END                                       

You can route it to your own dataset and do your validations accordingly.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Jun 09, 2006 9:40 pm
Reply with quote

Bharani's post is right-on. As an alternative, you could also write a TSO/E REXX exec that uses the LISTDSI function to return all of that information into pre-determined system variables.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top