Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How get all the members of a PDS into a PS.....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
satishstar

New User


Joined: 14 Mar 2005
Posts: 18

PostPosted: Wed Apr 23, 2008 3:49 pm    Post subject: How get all the members of a PDS into a PS.....
Reply with quote

Hi,

/*REXX*/
SAY 'ENTER A DATA SET NAME'
PARSE UPPER PULL DSNAME
SAY 'DATASET NAME:'DSNAME
"LISTDS '"DSNAME"' MEMBERS"
RETURN
END

Using the above code i got all the members of PDS to the TSO screen,but my requirement is that i want to have all the members of the PDS written into a PS line by line like below :-

--MEMBERS--
ADD
COMS
LINESPGM
MEMBERS
PANEL2
PASS
REXXPGM
REXXREPL
RPT805TS
RPT805TZ
SATGUDTS
SATSHGUD
SCREEN1
SUBROUT
TRACE

Plz let me know if any.

Thx,
satish
Back to top
View user's profile Send private message
References
PostPosted: Wed Apr 23, 2008 3:49 pm    Post subject: Re: How get all the members of a PDS into a PS..... Reply with quote

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 1845
Location: italy

PostPosted: Wed Apr 23, 2008 3:56 pm    Post subject: Reply to: How get all the members of a PDS into a PS.....
Reply with quote

is this some kind of homework icon_question.gif
suddemly there is a flurr of posts on the same issue, without any apparent business justification

after You have got the member names in a dataset what are You going to do with them
Back to top
View user's profile Send private message
satishstar

New User


Joined: 14 Mar 2005
Posts: 18

PostPosted: Wed Apr 23, 2008 4:01 pm    Post subject: Reply to: How get all the members of a PDS into a PS.....
Reply with quote

This is for a business purpose where i want to read each and every member from the PS with all the members and prepare a report with the no.of lines in the PDS(production libraires for different ones) and get the total no.of lines for migration project.

Thx,
satish
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 1845
Location: italy

PostPosted: Wed Apr 23, 2008 4:12 pm    Post subject: Reply to: How get all the members of a PDS into a PS.....
Reply with quote

why don' t You loak at the proper ISPF functions for it
LM.... LMM.... family
Back to top
View user's profile Send private message
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 903
Location: germany

PostPosted: Wed Apr 23, 2008 4:50 pm    Post subject:
Reply with quote

wow, we laid 9000 lines of code!
Back to top
View user's profile Send private message
vch

New User


Joined: 01 Feb 2008
Posts: 16
Location: chennai

PostPosted: Wed Apr 23, 2008 5:05 pm    Post subject:
Reply with quote

Use OUTRAP command in rexx. Allocate a PS data set in rexx and move OUTRAP data to PS file finally Alloc write command to write into PS file
Back to top
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 122
Location: PUNE(INDIA)

PostPosted: Thu Apr 24, 2008 11:57 am    Post subject:
Reply with quote

Quote:

why don' t You loak at the proper ISPF functions for it
LM.... LMM.... family


where do I get the list of these functions ?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 2921
Location: Charlotte,NC USA

PostPosted: Thu Apr 24, 2008 12:00 pm    Post subject: Reply to: How get all the members of a PDS into a PS.....
Reply with quote

z/OS V1R9.0 ISPF Services Guide.

1.4 Chapter 4. Using Edit Models from the z/OS V1R9.0 ISPF Edit and Edit Macros manual.
Back to top
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 122
Location: PUNE(INDIA)

PostPosted: Thu Apr 24, 2008 12:45 pm    Post subject:
Reply with quote

Thanks for the links !!!
icon_biggrin.gif

--Parag
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1