IMPORT Restore Files from Archive to Disk

ONXIMPORT ['str1'=...] [TO=PUBLIC|vsn|(vsn,...)] [, DEVICE=device] [, REP=YES|NO|ALL| ALLP] [,SPACE= REORG|KEEP] [, PASSWORD= ...] [_PARAM_....]

The ONXIMPORT Variable Action can only be processed in conjunction with an Archive directory list created by DIR directory. IMPORT allows files or Job variables that were saved with the EXPORT or DEXPORT Archive statements to be restored to the system under the same name or to different names.

'str1'=... Name transformation rules. For further information, see 5-.

TO=PUBLIC|vsn|(vsn,...)

Corresponds to the Archive operand TO=... in the FILES statement.

The TO= parameter will result in the restoral of the files to the specified private volume, or to public space.

Standard: If the TO= operand is not specified, the files will be restored to the original private volumes from which they were saved, or back to public.

DEVICE=device

Only used in conjunction with the TO=vsn (see above), this parameter identifies the device type for the specified private volume.

REP=YES|NO|ALL|ALLP

Corresponds to the Archive operand REPLACE=... in the [D]EXPORT statement.

This parameter determines whether existing files of the same name will be overwritten or not. For further information, see the ARCHIVE User Manual, IMPORT statement.

SPACE=REORG|KEEP

Corresponds to the Archive operand SPACE=... in the [D]EXPORT statement. This parameter determines whether the existing file will be deleted prior to it being replaced or not. For further information, see the ARCHIVE User Manual, IMPORT statement.

PASSWORD=passw|(passw,...)

Corresponds to the Archive operand PASSWORD=... in the [D]EXPORT statement.

This parameter allows any necessary read passwords for the saved files to be entered. The system administrator does not need to specify passwords. For further information, see the ARCHIVE User Manual, IMPORT statement.

PARAM ... Corresponds to the PARAM Archive statement in an IMPORT process.

General Archive settings can be set here, such as,

OPERATOR=YES|NO,RESTART=YES|NO,WRCHK=YES|NO,SNR=YES|NO,STREAM=YES|NO . For further information, see the ARCHIVE User Manual, PARAM statement.

The CATID=YES|NO operand may not be set in the PARAM statement, since CFS sets it automatically depending on the value already set in the Archive directory.

The PARAM statement must be specified last, and must be separated by a blank from the preceding parameters.