Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REXX for extract thje member names

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
srajanbose
Warnings : 1

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Tue Sep 09, 2008 4:58 pm    Post subject: REXX for extract thje member names
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: 2360
Location: Israel

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

You, you can do that with REXX.

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

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Tue Sep 09, 2008 5:07 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Tue Sep 09, 2008 5:14 pm    Post subject: Reply to: REXX for extract thje member names
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: 2360
Location: Israel

PostPosted: Tue Sep 09, 2008 5:15 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us