Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Example 11: Importing files

&pagelevel(4)&pagelevel

Importing files and job variables that were exported to magnetic tape or MT cartridge with reset password and access attributes and without catalog ID and user ID.

/START-ARCHIVE

%  BLS0990 PROCESSING OF REP FILE ':SBZ3:$TSOS.SYSREP.ARCHIVE.120' STARTED
%  ARCLOAD Program 'ARCHIVE', version '12.0A' of '2018-06-04' loaded 
           from file ':1OSH:$TSOS.SYSLNK.ARCHIVE.120'
%  ARCCOPY Copyright (C) FUJITSU TECHNOLOGY SOLUTIONS 2018. 
            All rights reserved 
%  ARC0001 ARCHIVE READY

*FILES   ———————————————————————————————————————————————————————————————  (1)
*JOBVAR
*IMPORT FROM=(QE0798),DEVICE=TAPE-C4,LIST=SYSOUT ———————————————————————  (2)

*     I M P O R T   C O M M A N D   L I S T I N G ***
 
PARAMETER VALUES:-
UNLOAD  = NO
RESTART = YES
OPERATOR= NO
SNR     = YES
CATID   = NO
STREAM  = YES
 
FILES 
JOBVAR 
IMPORT FROM=(QE0798),DEVICE=TAPE-C4,LIST=SYSOUT
%  ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.100818.152007',
           VERSION '12.0A'
%  ARC0033 ARCHIVE SUBTASK TSN '0RJN' GENERATED

%  ARC0003 ARCHIVE STATEMENT COMPLETED

*END

%  ARC0009 ARCHIVE TERMINATED

(1)

Since no NAME operand was specified in the FILES statement or the JOBVAR statement, all files / job variables located on the MT cartridge are read in.

(2)

With the IMPORT statement, the files and job variables that were previously saved in an EXPORT run are read in again. If the files are imported to another BS2000 system, a catalog entry in TSOSCAT is also set up for this file.

  • FROM=(QE0789)
    ARCHIVE is to restore all files and job variables from the MT cartridge with the specified VSN.
    Specification of the FROM operand is mandatory for an IMPORT run.

    If a directory file was used in an EXPORT run and included in the save (DIRSAVE=YES), this directory file must first be restored in a separate IMPORT run with DIRECTORY=NONE if the save is to be imported to another BS2000 system.
    The required files and job variables can then be read in in an IMPORT run using the directory file.
  • DEVICE=TAPE-C4
    This operand specifies the device type for the MT cartridge.

  • LIST=SYSOUT
    ARCHIVE is to output the report of the run to SYSOUT.
    By default the report is output to SYSLST.

(3)

Report of the IMPORT run. The processed files and job variables are listed. The meanings of the columns are explained in section "ARCHIVE report".

(4)

The output LOCATION RESET indicates that the assignment information for the file (catalog ID and user ID) was reset at the time of the EXPORT run.