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

save members of a pds starting with a certain pattern


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashishwach

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Tue Nov 25, 2008 3:01 pm
Reply with quote

Hi all,
Could anyone pls tell how members (of a pds) starting with a certain pattern say a7 can be stored in an array using rexx.
I checked with other threads and found something like lmmlist..but when I tried opening the link, I was not able to get the exact syntax..
Thanks..
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 25, 2008 3:06 pm
Reply with quote

LMMLIST is indeed my favorite selection. You can read about it in the fine manual (ISPF Services).

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

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Tue Nov 25, 2008 3:24 pm
Reply with quote

Thanks for that.. I tried reading through ISPF help availbale...
But there is no syntax given for the member selection..
If you could please provide me with Syntax as to how can I get the required list...would be really helpful..
I think I am asking for much..but m using it for the first time...I beg your pardon for tht...
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 25, 2008 3:34 pm
Reply with quote

At the top of this page, you can see "IBM manuals" link. Look for "ISPF Services Guide". Your answer is in there.

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

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Tue Nov 25, 2008 4:16 pm
Reply with quote

I tried running following code in Rexx..for generating the Data Id associated with that dataset..
/* ************************** REXX ****************************** */
ISPEXEC LMINIT DATAID(DDVAR) DATASET(LIB.FCS.JCLLIB) ENQ(SHR)
CALL ISPLINK('LMINIT ','DDVAR ',
' ',' ',' ',' ',' ',' ',
'LIB.FCS.JCLLIB',' ',
' ',' ','SHR ');
SAY DDVAR
ISPEXEC LMFREE DATAID(DDVAR)

But it thrown an error 3+++ saying Routine not found..
Could you pls tell me about that..
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Nov 25, 2008 4:16 pm
Reply with quote

You have to start with the LMINIT Service.

Then, the LMOPEN Service.

Then, you can use the LMMLIST Service.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Nov 25, 2008 4:30 pm
Reply with quote

Would also suggest you pick either ISPEXEC or CALL ISPLINK , not both.

Garry.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Nov 25, 2008 4:45 pm
Reply with quote

And, use the ISPF Edit Models for the required service for the language you've chosen to use.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 1
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Rexx pattern matching on PS qualifer ... CLIST & REXX 1
No new posts list pds members name starting with xyz CLIST & REXX 11
Search our Forums:

Back to Top