View previous topic :: View next topic
|
Author |
Message |
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
Dear folks,
I have to code a rexx routine to identify the dataset is 'PS' or 'PO'. I believe LISTDS 'dataset' will give the DSORG of the dataset.
If i use the below piece of code
ADDRESS TSO
LISTDS 'dataset'
how to check the given dataset is 'PS' or 'PO'
will below piece helps?
IF DSORG='PS'
Please suggest.
Thanks,
Murali. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Yes, the TSO LISTDS command will display the dataset attributes to the terminal:
Code: |
TSO LISTDS PDS
MYHLQ.PDS
--RECFM-LRECL-BLKSIZE-DSORG
FB 80 27920 PO
--VOLUMES--
FUSR02
|
My question is, since you want to write a REXX exec, why not use the REXX instruction LISTDSI which will return the attributes into specific REXX variables? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can use LISTDSI, then ask foe the value of SYSDSORG.
O. |
|
Back to top |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
Thanks superk & ofer71. |
|
Back to top |
|
|
|