Creating a Physical Sequential (PS)
Creating a Physical Dataset (PS)
//CREATEPS JOB (12345),CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14
//MYPS DD DSN=MY.PS.FILE,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(1,1),RLSE),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
Explanation:
JOB Statement:
Introduces the job as CREATEPS
CLASS=A specifies the priority.
MSGCLASS=X sends logs to a specific output class.
NOTIFY=&SYSUID notifies the job submitter upon completion.
EXEC Statement:
Runs the IEFBR14 utility, which is a "dummy" program often used to allocate or delete datasets.
DD Statement:
DSN=MY.PS.FILE: Names the dataset.
DISP=(NEW,CATLG,DELETE): Creates and catalogs the dataset if successful; deletes it if the job fails.
SPACE=(CYL,(1,1),RLSE): Allocates 1 cylinder initially, with 1 as additional, and releases unused space.
UNIT=SYSDA: Assigns the default system storage device.
DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS): Specifies fixed-length records (80 bytes per record and 800 bytes per block).
DSORG=PS: Indicates that the dataset is a Physical Sequential (PS) dataset.
Last updated