View previous topic :: View next topic
|
Author |
Message |
balaji81_k
Active User
Joined: 29 Jun 2005 Posts: 155
|
|
|
|
Hi ,
I have written sample rexx code to check whether the given dataset is migrated or not , but i want to differentiate between 'PDS' & 'PS'.
When i test the code for any dataset whether it is "PS" & "PDS" or "TAPE file" , SYSDSORG parameter doesn't populate wih any values .
Is there any way to identify the DSORG for a migrated datasets.
(i,e) need to add to check one more variable along with ZDLMIGR ?
Code: |
DS='AA.BB.CC'
"ISPEXEC LMDINIT LISTID(IDV) LEVEL(&DS)"
"ISPEXEC LMDLIST LISTID("IDV") OPTION(LIST) DATASET(DSVAR) STATS(YES)"
IF RC = 0 & ZDLMIGR = ' ' THEN
DO
SAY 'NO MIGRATED DATASETS EXIST TRY OTHER OPTIONS'
END
IF RC = 0 & ZDLMIGR = 'YES' THEN DO
SAY "ITS MIGRATED DATASET"
END
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DCOLLECT M records should tell you. |
|
Back to top |
|
|
balaji81_k
Active User
Joined: 29 Jun 2005 Posts: 155
|
|
|
|
Hi,
Can you please explain with any rexx code sample. Iam also referring manual for the same.
Thanks
Balaji K |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|