different ways to create a pds
-
- 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
how can I create pds using jcl other than iefbr14 utility ?
-
- 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
I can think of several. For example -
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.
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.
-
- 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
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
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
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
-
- 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
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=OUTPUTCode: 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
-
- Posts: 381
- Joined: Tue Jan 28, 2014 1:52 pm
- Skillset: COBOL, JCL, DFSORT, VSAM
- Referer: Google
Re: different ways to create a pds
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.
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
-
-
Create multiple records based on one record within a file.
by chillmo » Thu Aug 11, 2022 3:54 am » in Syncsort/Synctool - 5
- 7703
-
by sergeyken
View the latest post
Fri Aug 12, 2022 2:23 am
-
-
-
Issue Create/delete ALIAS IDC3013I and then IDC3012I
by jcdm » Thu Dec 05, 2024 9:26 pm » in VSAM/SMS - 1
- 1711
-
by willy jensen
View the latest post
Fri Dec 06, 2024 12:04 am
-