How to create a PDS file using JCL

Questions by Gowrikalepalli

Showing Answers 1 - 13 of 13 Answers

//stepname DD DSN =Dataset name,
//                      DISP=(NEW,CATLG,DELETE),
//                      SPACE =(TRKS,(20,20),RLSE),
//                      DCB=(RECFM=FB,LRECL=80,BLKSIZE=0), 

arun442

  • Aug 17th, 2008
 

PDS is also known as folder, in disp parameter

disp=(cyl,(10,10,10),rlse)

first 10 =primary memory

second 10= secondary memory 

third 10 =memory used to make pds.

if this 10 or any value is not present then a ps will be formed instead of pds

  Was this answer useful?  Yes

serken

  • Dec 18th, 2008
 

It is absolutely necessary to add 'directory' subparameter to SPACE=(TRK,(20,20,50)...)

To be completely accurate we also need to add subparameter DCB=(DSORG=PO,...)

using IEFBR14 we can create pds with jcl.
//TZZZ84R JOB NOTIFY=&SYSUID,MSGCLASS=X
//STEP01 EXEC PGM=IEFBR14
//DD1 DD DSN=TKOL084.DEMO,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=80,DSORG=PO),
// SPACE=(TRK,(10,10,3),RLSE),
// UNIT=SYSDA

gopi

  • Oct 4th, 2016
 

It will not work, because space is TRK

  Was this answer useful?  Yes

Nagaraju

  • May 23rd, 2017
 

Using IEFBR14

  Was this answer useful?  Yes

serken

  • May 27th, 2017
 

PDS has absolutely nothing to do with folder. Those two are the terms from different worlds: mainframe vs. Windows/Unix/Android

  Was this answer useful?  Yes

Chan

  • May 25th, 2019
 

IEFBR14 is used to create PS file.
IEBCOPY is used to create PDS file.
Example:
//JOB statement
//STEP1 EXEC PGM=IEBCOPY
//DD1 DD DSN=,DISP=SHR
//DD2 DD DSN=,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
COPY INDD=DD1,OUTDD=DD2
SELECT MEMBER=(Mem1, Mem8)

//

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions