IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX for extract thje member names


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srajanbose

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Tue Sep 09, 2008 4:58 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 09, 2008 5:00 pm
Reply with quote

You, you can do that with REXX.

O.
Back to top
View user's profile Send private message
srajanbose

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Tue Sep 09, 2008 5:07 pm
Reply with quote

Hi,
Could you please give an brief idea to acheive this in REXX. I am new to REXX.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 09, 2008 5:14 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 09, 2008 5:15 pm
Reply with quote

Use the LMDLIST & LMMLIST services.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top