Previous Topic: Change Default Values for REPRO

Next Topic: Delete the Contents of Files

Specify Records to Back Up

Specify the following REPRO statement to back up all records in a file between and including the key values of "MARCH" and "JUNE":

Note: In collating sequence, JUNE comes before MARCH, so the FROMKEY is set to "JUNE" and the TOKEY is set to "MARCH."

//         EXEC  PGM=LDMAMS
//SSN$xxxx DD    DUMMY
//SYSPRINT DD    SYSOUT=A
//SYSIN    DD    *
  REPRO INFILE(FILE1) OUTFILE(BCKFILE1) FROMKEY(JUNE) TOKEY(MARCH)
//BCKFILE1   DD    DSN=LSERV.BACKUP