The INQUIRE statement enables the user to output the contents of the directory file.
If neither the FILES, JOBVAR, SV nor POOL operand is specified, all files and then all job variables are output in alphabetical order.
If FILES and JOBVAR or the SV operand are specified, files and job variables are likewise output in merged form.
Files and job variables cannot be output separately unless separate INQUIRE statements with the appropriate operands are entered.
INQUIRE / Q |
[DIR[ECTORY] = { $TSOS.ARCHIVE.DIR / filename } [ { [,F[ILES] = { filename / (filename,...) }] [,J[OBVAR] = jv-name ] / (jv-name,...) } ] / [,P[ASSWORD] = password] |
DIRECTORY= $TSOS.ARCHIVE.DIR / filename
This is the name of the directory file whose contents are to be output.
The user can address any directory file created under his own user ID. He can also address his own files in the system support's directory file.
FILES = filename / (filename,...)
This determines that information about files is output from the directory file.
The fully or partially qualified names of the desired files should be entered for filename
. If the user has specified the directory file of the system support, only information about the files under his own user ID is supplied.
JOBVAR = jv-name / (jv-name,...)
This determines that information relating to job variables is output from the directory file. The fully or partially qualified names of the job variables should be entered for jv-name
.
SV =
This determines that information relating to save versions (svid) is output from the directory file.
SV = ALL
All the save versions (svid) in the specified directory file are output.
SV = OBSOLETE
All the “obsolete” save versions (svid) are output from the directory file. An obsolete save version is one whose retention period (RETPD) has expired.
SV = svid / (svid,...)
Only the specified save versions are output from the directory file.
SV = backup,date.time
All the save versions created by means of the SAVE statement and with this BACKUP entry up to and including the specified time are output.
SV = ...,FILES
The file names are output sorted according to save version. The user only receives information about his own files. The system support on the other hand is given information about all the files in the system.
SV = ...,JOBVAR
The job variable names are output, sorted according to save version. Any user other than the system support receives a list of his own job variables.
POOL
This outputs the VSNs of the volumes in the volume pool in the directory file in ascending order. The following information is also output:
volume type
svid, if the volume has already been included in a save version
AVAILABLE, if the volume is free
UNUSABLE, if the volume cannot be used for writing
POOL, if the volume was added to the pool by means of the POOL statement
OPERATOR, if the volume was added to the pool by the operating
the expiration date, if it has not yet been reached
POOL,AVAILABLE
Only the VSNs of the available volumes are output.
PASSWORD = password
The password for the ARCHIVE run.
An entry is necessary if the directory file is protected by a read password and is not under TSOS.
LIST =
This defines the output medium for the report of this ARCHIVE run.
LIST = SYSOUT
The report is output to the user's terminal in interactive mode.This is the default for runs in interactive mode.
LIST = SYSLST
The report is output to SYSLST.This is the default for batch mode.
LIST = BOTH
The report is output to both SYSLST and SYSOUT.
Example 1
/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
*INQUIRE DIRECTORY=ARCHIVE.DIR,FILES=FILE. ————————————————— (1)
* I N Q U I R E C O M M A N D L I S T I N G *** PARAMETER VALUES:- CNS = YES INQUIRE DIRECTORY=ARCHIVE.DIR,FILES=FILE. % ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.100814.150638', VERSION='12.0A'
% ARC0003 ARCHIVE STATEMENT COMPLETED
*END
% ARC0009 ARCHIVE TERMINATED
(1) | ARCHIVE should output all information relating to the |
(2) | The ARCHIVE report is output to SYSOUT.It contains the following information:
|
Example 2
/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
*INQUIRE DIRECTORY=ARCHIVE.DIR,POOL ————————————————— (1)
* I N Q U I R E C O M M A N D L I S T I N G *** PARAMETER VALUES:- CNS = YES INQUIRE DIRECTORY=ARCHIVE.DIR,POOL % ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.100814.150710', VERSION='12.0A'
% ARC0003 ARCHIVE STATEMENT COMPLETED
*END
% ARC0009 ARCHIVE TERMINATED
(1) | ARCHIVE should output information relating to the volume pool from thedirectory file |
(2) | The ARCHIVE report is output via SYSOUT. It contains the following information:
|
Example 3
/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
*INQUIRE DIRECTORY=ARCHIVE.DIR,SV=OBSOLETE ————————————————— (1)
* I N Q U I R E C O M M A N D L I S T I N G *** PARAMETER VALUES:- CNS = YES INQUIRE DIRECTORY=ARCHIVE.DIR,SV=OBSOLETE % ARC0002 STATEMENT ACCEPTED. ARCHIVE SEQUENCE NUMBER 'A.100814.150820', VERSION='12.0A'
% ARC0003 ARCHIVE STATEMENT COMPLETED
*END
% ARC0009 ARCHIVE TERMINATED
(1) | ARCHIVE is to output all the information on the obsolete save versions from the directory file |
(2) | The report on the ARCHIVE run is output via SYSOUT and contains the following information:
|