Previous Topic: Create a Temporary VSAM RepositoryNext Topic: Create a Sequential Data Set from a VSAM Repository


Copy the Report to a Temporary VSAM Repository

Use the COPY command of the CAIPRINT Repository Utility, CAOUPRTU, to copy one or more reports from your central VSAM repository to the temporary repository you just created.

For example, the following JCL copies the report for job TESTJOB from the central VSAM repository (CAI.PRTLIB) to a temporary VSAM repository (TEMP.PRTLIB).

// EXEC CAIPRTU
//PRTU.SYSIN DD * 
  ODSN  CAI.PRTLIB
   DSN   TEMP.PRTLIB
   COPY  JOB EQ TESTJOB
/*

Note: If there is more than one report in the central VSAM repository with a job name of TESTJOB, the example above copies all of the reports by that name.