Home › Mainframe Tutorial › Datasets and PDS members
Datasets and PDS members
How data is stored on z/OS.
A file on z/OS is a dataset. Names have parts separated by dots, such as USER1.TEST.DATA. A sequential dataset holds records one after another; a PDS is a library of named members. IEFBR14 is a do-nothing program used to create datasets.
Example code
//ALLOC JOB (ACCT),'ALLOC',CLASS=A,MSGCLASS=X
//STEP1 EXEC PGM=IEFBR14
//NEWDS DD DSN=USER1.TEST.DATA,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,1)),RECFM=FB,LRECL=80