View previous topic :: View next topic |
Author |
Message |
MikeMara Beginner
Joined: 09 Oct 2006 Posts: 6 Topics: 2 Location: Tampa, Florida
|
Posted: Wed Oct 11, 2006 8:56 pm Post subject: List PDS and/or PDSE members |
|
|
I have been searching the web for an assembler code that can list the members from a PDS and/or PDSE. I prefer a single code that can do both. I am only interested in the member names only. I am on a Z/OS platform. |
|
Back to top |
|
 |
warp5 Intermediate

Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Oct 12, 2006 1:19 am Post subject: |
|
|
Why don't you want to use the standard tools for doing this, like ISPF LMMLIST? |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Thu Oct 12, 2006 2:53 am Post subject: |
|
|
MikeMara,
If you want a simple solution:
1.Go to ISPF 3.4
2.Enter the PDS name and hit enter
3.You will see the list of members in the PDS and just type SAVE LIST on the command Prompt.
4.You will find the list of members in the PDS saved in a dataset USERID.LIST.MEMBERS. _________________ Shekar
Grow Technically |
|
Back to top |
|
 |
MikeMara Beginner
Joined: 09 Oct 2006 Posts: 6 Topics: 2 Location: Tampa, Florida
|
Posted: Thu Oct 12, 2006 10:20 am Post subject: |
|
|
Thanks for the update! I never used LMMLIST, but I finally got it to work. I still prefer a program, but this will do OK. |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Thu Oct 12, 2006 2:43 pm Post subject: |
|
|
You can use LMMLIST in programs (COBOL, Assembler, PL/I, C etc.).
I've used it in COBOL and it's working perfectly.
O.
________
Ford Laser picture
Last edited by ofer71 on Sat Feb 05, 2011 11:51 am; edited 1 time in total |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Fri Oct 13, 2006 1:32 pm Post subject: |
|
|
ofer71,
Can you share sample code for a COBOL program making use of LMMLIST ? _________________ Shekar
Grow Technically |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Fri Oct 13, 2006 5:10 pm Post subject: |
|
|
You can always use the great examples in the fine manual.
O.
________
vaporizer reviews
Last edited by ofer71 on Sat Feb 05, 2011 11:51 am; edited 1 time in total |
|
Back to top |
|
 |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 317 Topics: 50 Location: Germany
|
Posted: Mon Oct 16, 2006 1:41 am Post subject: |
|
|
MikeMara,
the directory of pds / pdse is documentet.
Code: |
REF: MVS/XA DATA ADMINISTRATION GUIDE, IBM PUBLICATION GC26-4013
A PARTITIONED DATA SET DIRECTORY BLOCK
+----------+--------------------+--------------------+-------------...
|NUMBER OF | MEMBER ENTRY | MEMBER ENTRY | MEMBER EN
|BYTES USED| A | B | C
|(MAXIMUM | | |
| 256) | | |
+----------+--------------------+--------------------+-------------...
<----2-----><----------------MAXIMUM 254----------------------------->
A PARTITIONED DATA SET MEMBER ENTRY
+----------------+------+--+-----------------------------------------+
| MEMBER | TTR |C | OPTIONAL USER DATA |
| NAME | | | TTRN | TTRN | TTRN | |
+----------------+------+--+-----------------------------------------+
<-------8--------><--3--><1><------------0 TO 31 HALFWORDS----------->
DATA IN MEMBER ENTRY 'C' FIELD BITFIELD DEFINITIONS
+-----------+-------------+----------------------+
| 1 IF | NUMBER OF | NUMBER OF USER |
|NAME IS AN | USER DATA | DATA HALFWORDS |
| ALIAS | TTRNS | |
+-----------+-------------+----------------------+
0 1-2 3-7
|
so if you just open then dataset using fileoperations, declare the datastructures you can read the directory by your own program.
I can provide PL1 sample, but not cobol sample if necessary.
regards,
bauer |
|
Back to top |
|
 |
bauer Intermediate
Joined: 10 Oct 2003 Posts: 317 Topics: 50 Location: Germany
|
Posted: Wed Sep 23, 2009 9:13 am Post subject: |
|
|
Upgrade:
The relevant userguide with explaination of the pds directory structure is:
DFSMS Using Data Sets
SC26-7410-07
The hint in my post of 2006 isn't valid.
regards,
bauer |
|
Back to top |
|
 |
|
|