However, the user has the option of having the statements EXPORT, IMPORT, LIST, RESTORE and SAVE, as well as the statements for managing the directory file (POOL, PURGE), processed by means of a batch process. This is done by specifying NOW=NO
in the appropriate statement. The batch process then receives an ARCHIVE sequence number with the identifier L.
However, an identifier is assigned only if no queue job has been created under the user job. If several batch processes are created under the same user job, these are stored under a single ARCHIVE sequence number.
The batch process is placed in the queue file (ARCHIVE.LATER
). You can output it by means of the STATUS statement.
You can start the batch processes in the queue file later with the PROCESS statement or delete them with the DELETE statement.
In order to process the PROCESS statement, an ENTER file is created and a batch job is started. Two or more statements entered in different ARCHIVE calls but under the same job are processed in a single batch job.
In the ENTER file, ARCHIVE is called with
/START-ARCHIVE
Example
/START-ARCHIVE ———————————————————————————————————————————————————————— (1)
% 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 NA=FILE.1 —————————————————————————————————————————————————————— (2)
*SAVE DIR=ARCHIVE.DIR,TAPES=OP,DEVICE=TAPE-C4
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.103915', VERSION='12.0A' % ARC0033 ARCHIVE SUBTASK TSN '2JDZ' GENERATED % ARC0815 SUBTASK '0' HAS TRANSFERRED '1' PAM-PAGES FOR '1' FILES AND '0' JVS IN '0' SECONDS % ARC0003 ARCHIVE STATEMENT COMPLETED
*FILES NA=FILE.2 —————————————————————————————————————————————————————— (3)
*SAVE DIR=ARCHIVE.DIR,TAPES=OP,DEVICE=TAPE-C4,NOW=NO
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'L.200810.103931', VERSION='12.0A' % ARC0003 ARCHIVE STATEMENT COMPLETED
*STATUS ——————————————————————————————————————————————————————————————— (4)
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.103932', VERSION='12.0A' *ARCHIVE STATUS FOR USER TSOS L.200810.103931 % ARC0003 ARCHIVE STATEMENT COMPLETED
*END —————————————————————————————————————————————————————————————————— (5)
% ARC0009 ARCHIVE TERMINATED
/EXIT-JOB
/SET-LOGON-PARAMETERS
/START-PROG $ARCHIVE —————————————————————————————————————————————————— (6)
% 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 NAME=FILE.3 ———————————————————————————————————————————————————— (7)
*SAVE DIR=ARCHIVE.DIR,TAPES=OP,DEVICE=TAPE-C4,NOW=NO
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'L.200810.104845', VERSION='12.0A' % ARC0003 ARCHIVE STATEMENT COMPLETED
*STATUS ——————————————————————————————————————————————————————————————— (8)
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.104846', VERSION='12.0A' *ARCHIVE STATUS FOR USER TSOS L.200810.103931 L.200810.104845 % ARC0003 ARCHIVE STATEMENT COMPLETED
*PROCESS L.100810.103931 —————————————————————————————————————————————— (9)
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.104901', VERSION='12.0A' % JMS0066 JOB '(NONE)' ACCEPTED ON '20-08-10' AT '10:49', TSN = 2JD2 % ARC0012 ARCHIVE-PROCESS '200810.103931' PROCESSED FROM QUEUE FILE % ARC0003 ARCHIVE STATEMENT COMPLETED
*STATUS TYPE=ACTIVE ——————————————————————————————————————————————————— (10)
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.104902', VERSION='12.0A' *ARCHIVE STATUS FOR USER TSOS A.200810.104902 2JD1 % ARC0003 ARCHIVE STATEMENT COMPLETED
*STATUS ——————————————————————————————————————————————————————————————— (11)
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.104903', VERSION='12.0A' *ARCHIVE STATUS FOR USER TSOS L.200810.104845 % ARC0003 ARCHIVE STATEMENT COMPLETED
*DELETE L.100810.104845 ——————————————————————————————————————————————— (12)
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.104916', VERSION='12.0A' % ARC0012 ARCHIVE-PROCESS '200810.104845' DELETED FROM QUEUE FILE % ARC0003 ARCHIVE STATEMENT COMPLETED
*STATUS ——————————————————————————————————————————————————————————————— (13)
% ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.200810.104917', VERSION='12.0A' % ARC0003 ARCHIVE STATEMENT COMPLETED
*END —————————————————————————————————————————————————————————————————— (14)
% ARC0009 ARCHIVE TERMINATED
(1) | The user calls ARCHIVE. |
(2) | A save run is started with the FILES and SAVE statements and, by default, processed by a subtask. The next entry cannot be made until the run has been processed. |
(3) | A further save run is created with the specification |
(4) | The STATUS statement shows the ARCHIVE process that has been created. |
(5) | The user first terminates ARCHIVE, and then terminates the user job with |
(6) | The user starts ARCHIVE again under a new user job. |
(7) | The user creates a further save run with |
(8) | Since the second save run was created under another user job, the STATUS statement now shows two ARCHIVE processes. |
(9) | The user starts the first save run from the queue file by specifying its sequence number. A batch job is created. |
(10) |
|
(11) | The STATUS statement (with the default value |
(12) | The user deletes the remaining process with the DELETE statement. |
(13) | The STATUS statement no longer shows any entries. |
(14) | The user terminates ARCHIVE. |