Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

SHOW-VSNS Show archive numbers of tapes

&pagelevel(4)&pagelevel

Privilege                 ADA, DA, administrator without domains

This statement displays information on the archive numbers of reserved or free tapes. Information on reserved tapes can be output on the basis of user IDs, volume groups or directories. Information on free tapes can be selected on the basis of a particular device type or its allocation to free tape pools. In addition, the selection of the tapes can be made via their assignment to a domain.

DAs can only execute the statement in their own domain. The DOMAIN operand is thus meaningless for them.

Format

SHOW-VSNS
SELECT = *USER-IDENTIFICATION (...) / *FILE-NAME(...) / *DIRECTORY-NAME(...) /




*FREE-VOLUMES(...) / *VOLUME-GROUP(...)

*USER-IDENTIFICATION(...)


|USER-IDENTIFICATION = *ALL / <filename 1..8 with-wild>

*FILE-NAME(...)


|FILE-NAME = *ALL / <filename 1..41 without-cat-user with-wild>

*DIRECTORY-NAME(...)


|DIRECTORY-NAME = *ALL / <filename 1..54 without-gen-vers>

*FREE-VOLUMES(...)


|DEVICE-TYPE = *STD / <structured-name 1..8>


|,FREE-POOL = *NO / *GLOBAL / *TSOS / <filename 1..54> /





<text 2..32 without-sep>

*VOLUME-GROUP(...)


|VOLUME-GROUP = *ALL / <text 1..32 without-sep>
,OUTPUT = *SYSOUT / *NONE
,STRUCTURE-OUTPUT = *NONE / <composed-name 1..255> (...)

<composed-name 1..255> (...)


|WRITE-MODE = *REPLACE / *EXTEND
,DOMAIN = *ANY / *OWN / *STD-DOMAIN / <alphanum-name 1..8>
,INFORMATION = *VOLUMES / *SUMMARY

Operands

SELECT =
Determines the selection criteria for the VSNs to be output and thus at the same time defines the criteria according to which the output is to be sorted.

SELECT = *USER-IDENTIFICATION(...)
The output is to be sorted according to user IDs. The output can be limited to certain user IDs.

USER-IDENTIFICATION = *ALL / <filename 1..8 with-wild>
Only the archive numbers of all tapes reserved for this user ID are output. An asterisk can also be specified as the last character of the user ID (e.g. TEST*). In this case, all archive numbers from all user IDs which begin with the character string specified (TEST) are selected. Wildcards other than “*” are not permitted.

USER-IDENTIFICATION = *ALL
The IDs are not evaluated during selection.

SELECT = *FILE-NAME(...)
The output is to be sorted according to file names. The output can be limited to certain file names

FILE-NAME = *ALL / <filename 1..41 with-wild-without-cat-user>
The archive numbers of all reserved tapes whose catalog entry contains the specified file name are listed. An asterisk can be specified as the last character of the file name (e.g. PROG*). In this case, the archive numbers for all file names which begin with the character string specified (PROG) are selected. Wildcards other than “*” are not permitted.

FILE-NAME = *ALL
VSNs are not selected on the basis of specific file names. Tape s whose catalog entry contains no file name or an ARCHIVE directory name constitute an exception.

SELECT = *DIRECTORY-NAME(...)
The output is to be sorted according to the names of directories. The output can be limited to a certain directory.

DIRECTORY-NAME = *ALL / <filename 1..54 without-gen-vers>
Only reserved tapes which are assigned to the pool of the specified directory are selected. If this directory is located under a remote user ID, both the user ID and the catalog ID must be entered. The user's own ID and standard catalog ID can be omitted.

DIRECTORY-NAME = *ALL
The archive numbers of all reserved tapes assigned to the pools of directories are listed.

SELECT = *FREE-VOLUMES(...)
Specifies that only the archive numbers of free tapes are to be listed.

DEVICE-TYPE =
Device type. If a directory name is specified for FREE-POOL, the DEVICE-TYPE entry is ignored.

DEVICE-TYPE = *STD
All tapes of the default device type (DEFAULT-DEVICE-TYPE) whose value was specified in the MODIFY-MAREN-PARAMETERS statement are listed.

DEVICE-TYPE = <structured-name 1..8>
Device type. For a list of possible entries (depending on the BS2000 version), see manual “System Installation” [6].

FREE-POOL =
Selects the archive entries to be made available on the basis of the free tape pool.

FREE-POOL = *NO
Only free tapes assigned to the *NO free tape pool are selected.

FREE-POOL = *GLOBAL
Only free tapes assigned to the *GLOBAL free tape pool are selected.

FREE-POOL = *TSOS
Only free tapes assigned to the *TSOS free tape pool are selected.


If aliases are specified for the *NO, *GLOBAL or *TSOS values, then these operand values will be expanded to their full length for compatibility reasons (e.g. *GL is expanded to *GLOBAL).


FREE-POOL = <filename 1..54 without-gen-vers>
Only free tapes assigned to the free tape pool for HSMS/ARCHIVE applications using the specified directory are selected. If this directory is located under a remote user ID, both the user ID and the catalog ID must be entered. The user's own ID and standard catalog ID can be omitted.

FREE-POOL = <text 2..32 without-sep>
Specifies the name of a free tape pool. The name of the free tape pool must begin with “*” followed by at least one character from A-Z or 0-9. The characters “.”, “-” and “_” are permitted, but not at the end and not next to each other.

SELECT = *VOLUME-GROUP(...)
The output is to be sorted according to the names of volume groups.

VOLUME-GROUP = *ALL / <text 1..32 without-sep>
The archive numbers of all reserved tapes are listed which contain the specified volume groups in the archive entry. When *ALL is specified, all reserved tapes are output which are explicitly assigned to a volume group. “*” can be entered as the last character. In this case all volume groups which begin with the specified string are selected.

OUTPUT =
Determines the output medium. Output to SYSOUT is the default.

OUTPUT = *SYSOUT
Output is directed to SYSOUT.

OUTPUT = *NONE
No output takes place. This specification only makes sense for structured output in an S variable (see the STRUCTURE-OUTPUT operand).

STRUCTURE-OUTPUT =
Controls the structured output in S variables.

STRUCTURE-OUTPUT = *NONE
No structured output takes place.

STRUCTURE-OUTPUT = <composed-name 1..255>(...)
Name of the S variable to be used for the structured output.

WRITE-MODE =
Determines whether the output should replace or extend the current content of the S variables.

WRITE-MODE = *REPLACE
The current content of the S variable is replaced by the new output.

WRITE-MODE = *EXTEND
The new output extends the current content of the S variable.

DOMAIN =
Only the archive numbers of tapes from the specified domain are to be output.

DOMAIN = *ANY
The archive numbers of tapes from all domains are output.

DOMAIN = *OWN
The archive numbers of tapes from the user’s own domain are output. The user’s own domain is the domain of the system on which the ADA is currently working.

DOMAIN = *STD-DOMAIN
The archive numbers of tapes from the standard domain are output.

DOMAIN = <alphanum-name 1..8>
The archive numbers of tapes from the selected domain are output.

If domains are used, the DA is shown free tapes either from the standard domain or from his/her own domain. This is dependent on which value the domain-specific FREE-VOLUMES operand has. The ADA is shown free tapes of the domain which is specified with the DOMAIN operand.

INFORMATION =
Defines the scope of the information to be displayed.

INFORMATION = *VOLUMES
Specifies that both archive numbers and the corresponding total number of archive numbers per user ID, file name, etc. are to be listed.

INFORMATION = *SUMMARY
Only the total number of archive numbers per user ID, file name, etc. are to be listed.

Notes

  • If there are two or more catalog entries with different file sequence numbers for a given archive number , this archive number is only specified once in connection with the corresponding user ID.

  • In the case of selection by file name, the archive number is also displayed in the case of a catalog entry with a file sequence number > 1.

     

Examples

Example 1: SYSOUT output for tapes of user IDs beginning with “SYS”:

//show-vsns user-id=sys*
%  MARM1D1 VOLUMES FOR USER ID 'SYSDUMP' :
 MB2251
%  MARM1D6      1 VOLUMES FOR USER ID 'SYSDUMP'
%  MARM1D1 VOLUMES FOR USER ID 'SYSHSMS' :
 DRL1D6  TAR012  THS013
%  MARM1D6      3 VOLUMES FOR USER ID 'SYSHSMS'
%  MARM1D1 VOLUMES FOR USER ID 'SYSMAREN' :
 RHS002  THS014  TLS031  TLS032  TLS033  TLS034  TLS035  TLS036  TLS037
 TLS038  TLS039  TLS040  TLS041  TLS042  TLS043  TLS044  TLS045
%  MARM1D6     17 VOLUMES FOR USER ID 'SYSMAREN'
%  MARM1D1 VOLUMES FOR USER ID 'SYSROBAR' :
 TO7825
%  MARM1D6      1 VOLUMES FOR USER ID 'SYSROBAR'
%  MARM1D9 TOTAL OF     22 DATENTRAEGER IM MAREN-KATALOG ENTSPRECHEN DEN
AUSWAHL-KRITERIEN
%  MARM170 STATEMENT '//SHOW-VSNS' PROCESSED

Example 2: SYSOUT output for tapes sorted according to volume groups (by specifying SELECT=*VOLUME-GROUP(...)):

//show-vsns select=*volume-group(volume-group=epswos3*),information=*volumes
%  MARM290 VOLUMES FOR VOLUME-GROUP 'EPSWOS3-CLM':
 CLM020  CLM021  CLM023  CLM027  CLM028  CLM205
%  MARM291      6 VOLUMES FOUND FOR VOLUME-GROUP 'EPSWOS3-CLM'
%  MARM290 VOLUMES FOR VOLUME-GROUP 'EPSWOS3-GER':
 ANCA01  ANCA02  ANCA03  ANCA04  ANCA05  ANCA06  ANCA07
%  MARM291      7 VOLUMES FOUND FOR VOLUME-GROUP 'EPSWOS3-GER'
%  MARM1D9 TOTAL OF  13 VOLUMES IN MAREN CATALOG MATCH SPECIFIED SELECTION
CRITERIA
%  MARM170 STATEMENT '//SHOW-VSNS' PROCESSED

The INFORMATION=*VOLUMES operand enables the archive numbers of all reserved tapes to be output which contain a volume group name beginning with EPSWOS in the catalog entry. In addition, the total number of tapes which satisfy the specified selection criterion is output.

//show-vsns select=*volume-group(volume-group=epswos3*),information=*summary
%  MARM291     6 VOLUMES FOUND FOR VOLUME-GROUP 'EPSWOS3-CLM'
%  MARM291     7 VOLUMES FOUND FOR VOLUME-GROUP 'EPSWOS3-GER'
%  MARM1D9 TOTAL OF  13 VOLUMES IN MAREN CATALOG MATCH SPECIFIED SELECTION
CRITERIA
%  MARM170 STATEMENT '//SHOW-VSNS' PROCESSED

INFORMATION=*SUMMARY outputs only the total number of tapes which contain the volume group EPSWOS3* in the catalog entry.

Output in S variables

This statement supports the structured output in S variables (controlled by the STRUCTURE-OUTPUT operand).

Further information on S variables is provided in the “Commands” manual [5].

Output informationName of the S variableTContents
Access counter (8-digit)
It is incremented each time the tape is accessed
var(*LIST).ACCESS-COUNTS<integer 0..99999999>
Creation datevar(*LIST).CRE-DATESyyyy-mm-dd
Creation job name
For HSMS request name
var(*LIST).CRE-JOB-NAMES’’
<name 1..8>
Creation timevar(*LIST).CRE-TIMEShh:mm:ss
Device typevar(*LIST).DEV-TYPES<structured-name 1..8>
Name of a directory (with catalog ID and user ID) which contains the tapevar(*LIST).DIR-NAMES<filename 1..54 >
Displays whether the tape contains the directory which was also savedvar(*LIST).DIR-ON-VOLS*NO
*YES
Status (exported or not)var(*LIST).EXPORTEDS*NO
*YES
First archive number of the MF/MV setvar(*LIST).FIRST-VOLS<vsn>
File name of a tape file
(without catalog ID and user ID)
var(*LIST).F-NAMES<filename 1..41>
Expiration date of the tape
Specifies when the reservation of the tape for the  user ID is terminated
var(*LIST).FREE-DATESyyyy-mm-dd
Release location
A tape is moved to this location during the clear-up run
var(*LIST).FREE-LOCATIONS<alphanum-name 1..8>
Name of the free tape pool in which this tape is located, or in which it should be located when it is sharedvar(*LIST).FREE-POOLS<filename 1..54>
*NO
*GLOBAL
*TSOS
File sequence number (4-digit)var(*LIST).F-SEQS<integer 1..9999>
Standard locationvar(*LIST).HOME-LOCATIONS<alphanum-name 1..8>
Name of the system with last accessvar(*LIST).LAST-ACCESS-
HOSTNAM
S<alphanum-name 1..8>
Date of the last accessvar(*LIST).LAST-ACCESS-DATESyyyy-mm-dd
User ID of the last accessvar(*LIST).LAST-ACCESS-USER-IDS<name 1..8>
Password for accessvar(*LIST).PASSS*NONE
*YES
Comment field which should be filled with a meaningful textvar(*LIST).REMARKS<c-string 1..24>
Reservation counter
This counter is incremented with each new reservation of the tape
var(*LIST).RESERV-COUNTS<integer 0..9999>
Reservation date
Date on which a tape is reserved
var(*LIST).RESERV-DATESyyyy-mm-dd
SAVE-FILE-ID (HSMS) or
SAVE-VERSION (ARCHIVE)
var(*LIST).SFIDS<c-string 1..15>
Number of subtask for parallel save run in HSMSvar(*LIST).SUBSAVES<integer 0..15>
Number of subsequent tape within a parallel save run in HSMSvar(*LIST).SUBSEQS<integer 0..999>
Shareability of the tapevar(*LIST).USER-ACCESSSOWNER-ONLY
FOREIGN-READ
ALL-USERS
Account numbervar(*LIST).USER-ACCOUNTS<alphanum-name 1..8>
User field
Data such as name and department or data relevant for operations scheduling can be entered here
var(*LIST).USER-FIELDS<c-string 1..54>
User ID of the ownervar(*LIST).USER-IDS<name 1..8>
Tape VSNvar(*LIST).VOLS<vsn>
Volume group
Only has a valid value with reserved tapes, otherwise it is undefined
var(*LIST).VOL-GROUPS<text 1..32>
Volume sequence number (4-digit)var(*LIST).VOL-SEQS<integer 1..255>
Tape status
F = FREE
P = PRIVATE
R = RESERVED
D = DEFECT
var(*LIST).VOL-STA-1SF/P/R/D