Retrieve Backup Options (QEZRTBKO) API

  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Retrieve Backup Options (QEZRTBKO) API returns in a receiver variable the backup options for the requested backup type. If you request all options, the receiver variable contains the header, which is followed by three RBKO0100 formats, one for each backup type.


Authorities and Locks

User Index Authority
*USE
User Index Lock
*SHRRD

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided. The length of receiver variable parameter may be specified up to the size of the receiver variable specified in the user program. If the length of receiver variable parameter specified is larger than the allocated size of the receiver variable specified in the user program, the results are not predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the backup option descriptions to be returned. The valid format names are RBKO0100 and RBKO0200.


Backup option
INPUT; CHAR(10)

The backup options to retrieve. Possible values follow:

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


RBOH0100 Format



RBKO0100 Format

Note: The following is accessed by using the offsets that are provided in format RBOH0100.



RBKO0200 Format



Field Descriptions

Back up configuration data. Whether to save the system configuration data. Possible values follow:

Backup devices. The tape devices that are used for a backup.

Back up folders. Which root folders are backed up. Possible values follow:

Back up OfficeVision calendars. Whether to save OfficeVision calendar data. OfficeVision calendars are also saved when QUSRSYS is saved. Possible values follow:

Back up OfficeVision mail. Whether to save OfficeVision mail. The backup ignores this option if FLR(*ALL) is specified.

Back up security data. Whether to save the system security data. Possible values follow:

Back up user libraries. Which user libraries are saved when a backup is run. For information on user libraries, see *ALLUSR in Generic library names.

Possible values follow:

Back up user directories. Whether to save all user directories. This does not include any IBM-supplied directories that contain user data. Some directories that are not saved include QOPT, QFileSvr.400, QSYS.LIB, and QDLS (QDLS data is saved under the option to save folders). Possible values follow:

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Erase tape before backup. Whether to clear the tape and start the save operation at sequence number 1. Possible values follow:

Last backup date. The completion date of the last Operational Assistant backup in CYYMMDD format.

Last backup time. The completion time of the last Operational Assistant backup in HHMMSS format.

Last tape set used. The tape set that was used to complete the last Operational Assistant backup.

Next backup date. The next date that an Operational Assistant backup is run in CYYMMDD format.

Next backup time. The time of the next scheduled backup. This time is in the format HHMMSS and uses the 24-hour clock.

Next tape set to be used. The tape set that is used to start the next backup.

Number of backup devices. The number of backup devices that are defined as available for use in an Operational Assistant backup.

Number of tape sets to rotate. The number of tape sets that are defined to be used in a backup.

Offset to additional information. The offset from the start of format RBOH0100 to the last backup date field.

Offset to daily options. The offset from the start of the RBOH0100 structure to the backup options.

Offset to list of backup device names. The offset from the start of the RBOH0100 structure to the list of device names. This list is defined by the user to be used during an Operational Assistant backup.

Offset to list of tape sets to rotate. The offset from the start of the RBOH0100 structure to the list of tape sets to be used in an Operational Assistant backup.

Offset to monthly options. The offset from the start of the RBOH0100 structure to the monthly backup options.

Offset to weekly options. The offset from the start of the RBOH0100 structure to the weekly backup options.

Print detailed reports. Whether each save command that supports OUTPUT(*PRINT) generates a detailed list of the objects that were saved in addition to a summary report. Possible values follow:

Reserved. This field is ignored.

Save changed objects only. Whether to save only changed objects in the libraries, folders, and directories being backed up. Possible values follow:

Submit as batch job. Whether the backup is scheduled to be submitted as a batch job. Possible values follow:

Tape sets to rotate. The name of the one or more tape sets to be used for backup rotation.

User exit program library name. The name of the library that contains the user exit program.

User exit program name. This exit program is run before and after a backup is run to allow users to customize their backups.



Error Messages



API introduced: V3R7

[ Back to top | Backup and Recovery APIs | APIs by category ]