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
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


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