View previous topic :: View next topic
|
Author |
Message |
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
How to get the LRECL of a dataset within a job. |
|
Back to top |
|
|
varun_sharma
New User
Joined: 08 Jun 2005 Posts: 19 Location: new delhi
|
|
|
|
Hi
Can you please make yourself more clear.
Cheers
Varun |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
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 |
|
|
Bharanidharan
New User
Joined: 20 Jun 2005 Posts: 86 Location: Chennai, India
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|