Page 1 of 1

PDS members

PostPosted: Sat Nov 14, 2020 1:49 am
by aldencarr123
Hello everyone, can anyone help me create a PDS member?

Re: PDS members

PostPosted: Sat Nov 14, 2020 3:03 am
by NicC
In what context - batch or ISPF? What problems are you having? Basically a member is simply a sequential dataset held within another dataset. You specify it like so:
DSN=pdsname(mbrname)

If the PDS exists the DISP is SHR otherwise you need to do all the JCL allocation blurb - disp,dcb attribute, space, volume.
Refer to the JCL Users Guide.

Re: PDS members

PostPosted: Sat Nov 14, 2020 6:17 am
by steve-myers
The solution discussed by NicC is fine for text members. You create a member that is a load module or program object using the Binder or (very rarely these days) the Linkage Editor.

You use a DD statement with the DISP=...,DSN=pdsname(mbrname) parameters to create one and only one member. The Binder or Linkage Editor can create several members in a single execution; then you just use DSN=pdsname and use the NAME control statement to specify the member names.