Retrieve Backup Options (RTVBCKUP)

Where allowed to run: Compiled CL program or interpreted REXX (*BPGM *IPGM *BREXX *IREXX)
Threadsafe: No
Parameters
Examples
Error messages

The Retrieve Backup (RTVBCKUP) command is used in a CL program or REXX procedure allows the user to retrieve the options in one of the predefined backups into CL variables. More information on backup is in the Backup and Recovery book, SC41-5304.

Top

Parameters

Keyword Description Choices Notes
BCKUPOPT Backup options *DAILY, *WEEKLY, *MONTHLY Required, Positional 1
DEV CL var for DEV (43) Character value Optional
TAPSET CL var for TAPSET (34) Character value Optional
CLRTAP CL var for CLRTAP (4) Character value Optional
SBMJOB CL var for SBMJOB (4) Character value Optional
CHGONLY CL var for CHGONLY (4) Character value Optional
PRTRPT CL var for PRTRPT (4) Character value Optional
LIB CL var for LIB (10) Character value Optional
FLR CL var for FLR (10) Character value Optional
DIR CL var for DIR (10) Character value Optional
SECDTA CL var for SECDTA (4) Character value Optional
CFG CL var for CFG (4) Character value Optional
MAIL CL var for MAIL (4) Character value Optional
CAL CL var for CAL (4) Character value Optional
EXITPGM CL var for EXITPGM (10) Character value Optional
EXITPGMLIB CL var for EXITPGMLIB (10) Character value Optional
Top

Backup options (BCKUPOPT)

Specifies the backup options to be retrieved.

This is a required parameter.

*DAILY
The daily backup options are retrieved.
*WEEKLY
The weekly backup options are retrieved.
*MONTHLY
The monthly backup options are retrieved.
Top

CL var for DEV (43) (DEV)

Specifies the name of the CL variable that receives the device value. The variable has a minimum length of 43 characters. The value returned is a character string of four 10-character device names, separated by blanks.

Top

CL var for TAPSET (34) (TAPSET)

Specifies the name of the CL variable that receives the tape set names. The variable has a minimum length of 34 characters (seven 4-character tape set names, separated by blanks).

Top

CL var for CLRTAP (4) (CLRTAP)

Specifies the name of the CL variable that receives the indicator for clearing the tape for backup. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for SBMJOB (4) (SBMJOB)

Specifies the name of the CL variable that receives the indicator of whether the backup is run as a batch job. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for CHGONLY (4) (CHGONLY)

Specifies the name of the CL variable that receives the indicator for saving changed objects only. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for PRTRPT (4) (PRTRPT)

Specifies the name of the CL variable that receives the indicator for printing a report of saved objects. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for LIB (10) (LIB)

Specifies the name of the CL variable that receives the value specifying the libraries to save with this backup. The variable must have a minimum length of 10 characters. A value of *ALLUSR, *FROMLIST, or *NONE is returned.

Top

CL var for FLR (10) (FLR)

Specifies the name of the CL variable that receives the value specifying the folders to save with this backup. The variable must have a minimum length of 10 characters. A value of *ALL, *FROMLIST, or *NONE is returned.

Top

CL var for DIR (10) (DIR)

Specifies the name of the CL variable that receives the value specifying the user directories to save with this backup. The variable must have a minimum length of 10 characters. A value of *ALLUSR or *NONE is returned.

Top

CL var for SECDTA (4) (SECDTA)

Specifies the name of the CL variable that receives the indicator for saving security data. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for CFG (4) (CFG)

Specifies the name of the CL variable that receives the indicator for saving configuration data. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for MAIL (4) (MAIL)

Specifies the name of the CL variable that receives the indicator for saving OfficeVision mail. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for CAL (4) (CAL)

Specifies the name of the CL variable that receives the indicator for saving OfficeVision calendars. The variable must have a minimum length of 4 characters. The value returned is either *YES or *NO.

Top

CL var for EXITPGM (10) (EXITPGM)

Specifies the name of the CL variable that receives the name of the user program to call before and after the backup is run. The variable must have a minimum length of 10 characters. If no exit program is specified, *NONE is returned.

Top

CL var for EXITPGMLIB (10) (EXITPGMLIB)

Specifies the name of the CL variable that receives the name of the library that contains the exit program. The variable must have a minimum length of 10 characters. If no exit program is specified, blanks are returned. If *LIBL is returned, the program uses the library list.

Top

Examples

RTVBCKUP   BCKUPOPT(*DAILY)  SBMJOB(&SBMJOBVAR)  LIB(&LIBVAR)

This command retrieves the SBMJOB and LIB values for the daily backup into the CL variables SBMJOBVAR and LIBVAR respectively.

Top

Error messages

*ESCAPE Messages

CPF1EE3
Not authorized to backup options.
CPF1E6C
Backup options in use.
CPF1E67
Backup options and library backup list damaged.
CPF1E99
Unexpected error occurred.
Top