different ways to create a pds

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
ndashore20
Posts: 14
Joined: Sun Sep 25, 2016 10:28 pm
Skillset: I m learning ispf/tso,jcl and cobol in csc prejoining training
Referer: from my trainer

different ways to create a pds

Postby ndashore20 » Sun Sep 25, 2016 10:40 pm

how can I create pds using jcl other than iefbr14 utility ?

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

Re: different ways to create a pds

Postby steve-myers » Sun Sep 25, 2016 11:07 pm

I can think of several. For example -

Code: Select all

//A       EXEC PGM=IEBCOPY
//SYSPRINT DD  SYSOUT=*
//INPUT    DD  -- Another PDS --
//OUTPUT   DD  -- New PDS --
//SYSIN    DD  *
 COPY INDD=INPUT,OUTDD=OUTPUT


Code: Select all

//B       EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD  SYSOUT=*
//SYSUT2   DD  -- New PDS --
//SYSIN    DD  *
./ ADD NAME=member1
 .. Data for member 1 ..
./ ADD NAME=member2
 .. Data for member 2 ..


Code: Select all

//C       EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  *
 .. Data for member 1 ..
//SYSUT2   DD  DISP=(NEW,CATLG),UNIT=SYSDA,SPACE=(space definition),
//             DSN=DSNAME(MEMBER1)
//SYSIN    DD  DUMMY


Of course, there is always running your program and specifying an output data set like the SYSUT2 DD statement in the IEBGENER example.

In the IEBUPDTE example, be sure to specify a DCB; the IEBUPDTE standard default is not usually considered acceptable.

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

Re: different ways to create a pds

Postby enrico-sorichetti » Sun Sep 25, 2016 11:38 pm

there are really two parts in the question posed

1) how to ALLOCATE a PDS/PDSE
answer
batch jcl using the proper constructs od the DD jcl statement
interactively using the TSO allocate command with the proper parms
interactively using ISPF 3.2

2) how to populate it
steve-myers reply provided some alternative ways
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

ndashore20
Posts: 14
Joined: Sun Sep 25, 2016 10:28 pm
Skillset: I m learning ispf/tso,jcl and cobol in csc prejoining training
Referer: from my trainer

Re: different ways to create a pds

Postby ndashore20 » Mon Sep 26, 2016 10:18 am

steve-myers wrote:I can think of several. For example -

Code: Select all

//A       EXEC PGM=IEBCOPY
//SYSPRINT DD  SYSOUT=*
//INPUT    DD  -- Another PDS --
//OUTPUT   DD  -- New PDS --
//SYSIN    DD  *
 COPY INDD=INPUT,OUTDD=OUTPUT


Code: Select all

//B       EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD  SYSOUT=*
//SYSUT2   DD  -- New PDS --
//SYSIN    DD  *
./ ADD NAME=member1
 .. Data for member 1 ..
./ ADD NAME=member2
 .. Data for member 2 ..


Code: Select all

//C       EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  *
 .. Data for member 1 ..
//SYSUT2   DD  DISP=(NEW,CATLG),UNIT=SYSDA,SPACE=(space definition),
//             DSN=DSNAME(MEMBER1)
//SYSIN    DD  DUMMY


Of course, there is always running your program and specifying an output data set like the SYSUT2 DD statement in the IEBGENER example.

In the IEBUPDTE example, be sure to specify a DCB; the IEBUPDTE standard default is not usually considered acceptable.




in IEBUPDTE ,, we are specifying the parm=new ...what exactly it will do ..i m little bit confused with this parameter

Aki88
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Skillset: COBOL, JCL, DFSORT, VSAM
Referer: Google

Re: different ways to create a pds

Postby Aki88 » Mon Sep 26, 2016 10:27 am

Hello,

Refer: http://www.ibm.com/support/knowledgecen ... /parm3.htm
It gives the description of IEBUPDTE PARM parameters, 'NEW' being one of them. Go through the various pages of the manual shared in the link, it also describes the other utility programs shared by Mr. Myers in the earlier post.


  • Similar Topics
    Replies
    Views
    Last post