How to Conatenating Data Sets in JCL

Concatenating data sets
Example 1
//TRANS    DD   DSNAME=MMA1.TRANS.WEEK1,DISP=SHR
//         DD   DSNAME=MMA1.TRANS.WEEK2,DISP=SHR
//         DD   DSNAME=MMA1.TRANS.WEEK3,DISP=SHR
Allocates three sequential transaction files, processing them one after the other in the sequence in which they’re listed.

Example 2
//SYSLIB   DD   DSNAME=MMA1.COBOL.OBJLIB,DISP=SHR
//         DD   DSNAME=SYS1.COBLIB,DISP=SHR
Allocates two partitioned data sets, searching their directories in the order in which they’re listed.

Example 3
//SYSUT1   DD   DSNAME=MM01.TEXT,DISP=OLD,
//             UNIT=TAPE,VOL=SER=M00023
//         DD   DSNAME=MM01.ACCTG.DATA(ARMAST),DISP=SHR
//         DD   *
  (input data records)
/*
Allocates three files, processing them in the sequence in which they’re listed: first the tape file, then the partitioned data set member, and finally, the instream data set.

0 comments:

Computers TopOfBlogs Technology Blogs Mainframe interview question and answers,mainframe jobs,cobol,vsam,jcl,cics,db2,rdbms,mvs,tso,ispf,ibm,hcl,tcs,cts,wibro Blog Directory