IDCAMS -How to COPY VSAM data Set to NON-VSAM Data Set

Yes, you can copy a VSAM data Set to a Sequential Data Set. The below helps to achieve this:

How to Build Scalable Systems..

IDCAMS Example..

//COPY JOB ,'your name',CLASS=class,TIME=(mm,ss),LINES=lines
/*ROUTE PRINT node.location
// EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//VSAM DD DSN=UF.userid.VSAM.DATASET,DISP=OLD
//SEQ DD DSN=UF.userid.SEQ.BACKUP,UNIT=SYSDA,
// SPACE=(TRK,(10,10)),
// DISP=(NEW,CATLG),
// DCB=(LRECL=104,BLKSIZE=1004,RECFM=VB)
//SYSIN DD * REPRO - INFILE(VSAM) - OUTFILE(SEQ)
/*

Related Posts

Summary

In the above JCL, INFILE is VSAM and OUTFILE is Sequential file. You can copy VSAM data set to a Sequential data Set.

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.