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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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