PDS members

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
aldencarr123
Posts: 6
Joined: Wed Nov 11, 2020 4:14 am
Skillset: i can code some JCL data set using different utilities
Referer: from internet

PDS members

Postby aldencarr123 » Sat Nov 14, 2020 1:49 am

Hello everyone, can anyone help me create a PDS member?

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

Re: PDS members

Postby NicC » Sat Nov 14, 2020 3:03 am

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:

Code: Select all

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

steve-myers
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Skillset: Assembler, JCL, utilities
Referer: zos.efglobe.com

Re: PDS members

Postby steve-myers » Sat Nov 14, 2020 6:17 am

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.


  • Similar Topics
    Replies
    Views
    Last post