Previous Topic: Back Up Managed Files

Next Topic: Change Default Values for REPRO

Restore a Managed File from a Backup Copy

You can use the REPRO statement to restore a VSAM CA-L-Serv file that has been backed up. On the REPRO statement, you must provide the following:

For example, to restore FILE1 from the backup copy contained in BCKFILE1, specify the following REPRO statement:

//         EXEC  PGM=LDMAMS
//SSN$xxxx DD    DUMMY
//SYSPRINT DD    SYSOUT=A
//SYSIN    DD    *
  REPRO    INFILE(BCKFILE1)   OUTFILE(FILE1)
//BCKFILE1 DD  DSN=LSERV.BACKUP, DISP=OLD. . .