different ways to create a pds



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

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 ?
ndashore20
 
Posts: 3
Joined: Sun Sep 25, 2016 10:28 pm
Has thanked: 5 times
Been thanked: 0 time

Re: different ways to create a pds

 

Re: different ways to create a pds

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

I can think of several. For example -
//A       EXEC PGM=IEBCOPY
//SYSPRINT DD  SYSOUT=*
//INPUT    DD  -- Another PDS --
//OUTPUT   DD  -- New PDS --
//SYSIN    DD  *
 COPY INDD=INPUT,OUTDD=OUTPUT


//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 ..


//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.

These users thanked the author steve-myers for the post:
ndashore20 (Mon Sep 26, 2016 10:16 am)
steve-myers
Global moderator
 
Posts: 1789
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 170 times

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

These users thanked the author enrico-sorichetti for the post:
ndashore20 (Mon Sep 26, 2016 10:19 am)
enrico-sorichetti
Global moderator
 
Posts: 2519
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 120 times

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 -
//A       EXEC PGM=IEBCOPY
//SYSPRINT DD  SYSOUT=*
//INPUT    DD  -- Another PDS --
//OUTPUT   DD  -- New PDS --
//SYSIN    DD  *
 COPY INDD=INPUT,OUTDD=OUTPUT


//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 ..


//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
ndashore20
 
Posts: 3
Joined: Sun Sep 25, 2016 10:28 pm
Has thanked: 5 times
Been thanked: 0 time

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.

These users thanked the author Aki88 for the post:
ndashore20 (Mon Sep 26, 2016 10:34 am)
Aki88
 
Posts: 286
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 31 times
Been thanked: 23 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post