MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

List PDS and/or PDSE members

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
MikeMara
Beginner


Joined: 09 Oct 2006
Posts: 6
Topics: 2
Location: Tampa, Florida

PostPosted: Wed Oct 11, 2006 8:56 pm    Post subject: List PDS and/or PDSE members Reply with quote

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
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Oct 12, 2006 1:19 am    Post subject: Reply with quote

Why don't you want to use the standard tools for doing this, like ISPF LMMLIST?
Back to top
View user's profile Send private message Visit poster's website
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Oct 12, 2006 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
MikeMara
Beginner


Joined: 09 Oct 2006
Posts: 6
Topics: 2
Location: Tampa, Florida

PostPosted: Thu Oct 12, 2006 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Thu Oct 12, 2006 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Fri Oct 13, 2006 1:32 pm    Post subject: Reply with quote

ofer71,

Can you share sample code for a COBOL program making use of LMMLIST ?
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Oct 13, 2006 1:55 pm    Post subject: Reply with quote

shekar123 wrote:
ofer71,

Can you share sample code for a COBOL program making use of LMMLIST ?


Shekhar123,

Try this

http://www.mvsforums.com/helpboards/viewtopic.php?p=8991#8991

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Fri Oct 13, 2006 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Mon Oct 16, 2006 1:41 am    Post subject: Reply with quote

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
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Wed Sep 23, 2009 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group