View previous topic :: View next topic
|
Author |
Message |
srajanbose
New User
Joined: 11 Oct 2004 Posts: 69 Location: chennai
|
|
|
|
hi,
My requirement is to find the list of pds names which starts with 'xxxx.yyyy' as the first level qualifier and write the list of PDS names to a sequential file.Then i want to read each of the PDS name from the file and extract all the member names and write all the pds members to one sequential file.Can i acheive this in REXX. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You, you can do that with REXX.
O. |
|
Back to top |
|
|
srajanbose
New User
Joined: 11 Oct 2004 Posts: 69 Location: chennai
|
|
|
|
Hi,
Could you please give an brief idea to acheive this in REXX. I am new to REXX. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Rajan,
Quote: |
find the list of pds names which starts with 'xxxx.yyyy' as the first level qualifier |
Use LISTID for this. Sample code shown below make necessary changes.
Code: |
ADDRESS ISPEXEC "LMDINIT LISTID(TEMPLIST) LEVEL("HLQ1")"
DO FOREVER
ADDRESS ISPEXEC
"LMDLIST LISTID(&TEMPLIST) OPTION(LIST) DATASET(DSVAR) STATS(YES)" |
HLQ1 - have the dataset qualifier names
DSVAR - Will hav ethe expanded names.
Quote: |
list of PDS names to a sequential file. |
Write DSVAR to a sequential file.
Quote: |
Then i want to read each of the PDS name from the file and extract all the member names |
Use LISTDS again for extracting the members. I had posted the same in anotehr topic.
Quote: |
write all the pds members to one sequential file |
Even this has been discussed in the previous post on this topic.
Check, code and post if you still have queries. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Use the LMDLIST & LMMLIST services.
O. |
|
Back to top |
|
|
|