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
 

 

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: 4648
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 6 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm


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