

CA-L-Serv › Maintain Managed Files › Back Up and Restoring Files › Restore a Managed File from a Backup Copy
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, provide:
- The ddname of the source file (that is, the sequential file containing the backup copy). Specify this ddname on the CA-L-Serv INFILE parameter. The LDMAMS JCL must include a DD statement for this file. Do not specify a DD statement for managed data sets in the LDMAMS JCL.
- The ddname of the target file, which is the VSAM file you are restoring. Specify this ddname on the CA-L-Serv OUTFILE parameter. The ddname must match the ddname on the ADDFILE command of the file.
For example, to restore FILE1 from the backup copy that is 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. . .
Copyright © 2014 CA Technologies.
All rights reserved.
 
|
|