View previous topic :: View next topic
|
Author |
Message |
srajanbose
New User
Joined: 11 Oct 2004 Posts: 69 Location: chennai
|
|
|
|
Hi,
My requirement is like i want to extract member names from a PDS to a PS.I dont have PDSLIST utility. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
My favorite method is the LMMLIST service.
O. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or LISTDS or IEHLIST |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Rajan,
Few more suggestions.
As suggested, use LISTDS to list the members and trap it to a stem variable.
Code: |
ADDRESS TSO
DUMMY =OUTTRAP(MEMB.)
"LISTDS '"DSN"' MEMBERS"
DUMMY =OUTTRAP(OFF) |
Once the LISTDS command is executed, the first line in the screen would be
which needs to ignored while reading the MEMB stem variable.
Strip the variable, Read and write it into a new sequential file. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
Back to top |
|
|
|