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 get the LRECL of a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to get the LRECL of a dataset
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    Post subject:
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    Post subject: Re: How to get the LRECL of a dataset
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    Post subject: Re: How to get the LRECL of a dataset
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

Moderator Team Head


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

PostPosted: Fri Jun 09, 2006 9:40 pm    Post subject: Re: How to get the LRECL of a dataset
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    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 opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
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 Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

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