View previous topic :: View next topic
|
Author |
Message |
Vasanthr
New User
Joined: 24 Jan 2011 Posts: 21 Location: India
|
|
|
|
Hi
Is there a rexx command to open only few members in pds
ie. I want an equivalent of member command of AAAA.BBBB.CCCC.DDDD(*LLL*)
Here i want to open PDS with members which contains LLL in its name.
I know that
address ispexec
"VIEW DATASET('AAAA.BBBB.CCCC.DDDD(ALLLLLL)')" will open that particular member.
Please help me in this issue. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Use the ISPF LM* services. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
from the BROWSE/VIEW/EDIT member list
enter
s as SELECT
it will B/V/E all the members selected in sequence
entering cancel will stop and return to the member list
the only annoyance is that it will leave in the line command the B/V/E
for the unprocessed members,
nothing that a RESET will not heal
but I might have misunderstood the requirement! |
|
Back to top |
|
|
Vasanthr
New User
Joined: 24 Jan 2011 Posts: 21 Location: India
|
|
|
|
Hi Peter,
Can you please give the exact syntax ..It would be really helpful for me
PeterHolland wrote: |
Use the ISPF LM* services. |
|
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Vasanthr wrote: |
Can you please give the exact syntax ..It would be really helpful for me
PeterHolland wrote: |
Use the ISPF LM* services. |
|
Nobody ever got any terrible diseases from reading a manual... |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Vasanthr,
First of all, you can not do a view of all the members at once.
You need to process (read) them one at a time. Pseudo code:
Code: |
LMINIT dataset
LMMLIST (use pattern syntax)
START LOOP
ALLOCATE DATASET(MEMBER) REUSE
EXECIO *
PROCESS DATA (may be another loop or internal subroutine)
LMMLIST (to get next member)
IF NO MORE MEMBERS (based on rc) THEN LEAVE LOOP
END LOOP
LMCLOSE |
Do you see why nobody can provide you with 'exact syntax'?
You need to read the manual and understand how LM Services work.
It is either that or find a new job. |
|
Back to top |
|
|
Vasanthr
New User
Joined: 24 Jan 2011 Posts: 21 Location: India
|
|
|
|
Hi Dave,
I dont want to view all the members at once.
What I need is equivalent of
3.4 option -------> view command of AAAA.BBBB.CCCC(*LLL*)
This will open the PDS with members with name containing LLL in it .
I'll surely read the manual for LM commands.But it would take extra time for me.I needed this for an adhoc request .So only I posted here.
Anyways thanks much for ur help
daveporcelan wrote: |
Vasanthr,
First of all, you can not do a view of all the members at once.
You need to process (read) them one at a time. Pseudo code:
Code: |
LMINIT dataset
LMMLIST (use pattern syntax)
START LOOP
ALLOCATE DATASET(MEMBER) REUSE
EXECIO *
PROCESS DATA (may be another loop or internal subroutine)
LMMLIST (to get next member)
IF NO MORE MEMBERS (based on rc) THEN LEAVE LOOP
END LOOP
LMCLOSE |
Do you see why nobody can provide you with 'exact syntax'?
You need to read the manual and understand how LM Services work.
It is either that or find a new job. |
|
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Vasanthr,
Sorry I misunderstood your requirments.
I was thown off by:
Quote: |
Is there a rexx command to open only few members in pds. |
Do like Enrico said: from the 3.4 dataset list:
Code: |
Command - Enter "/" to select action Message Volume
-------------------------------------------------------------------------------
V /(*L*) AAAA.BBBB.CCCC.DDDD |
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
In answer to your question "Is there a rexx command...." - no, there is not. The rexx keywords and functions can be found in the rexx language reference along with TSO extensions. |
|
Back to top |
|
|
|