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-MAREN-FILE Show information of a MAREN catalog file

&pagelevel(4)&pagelevel

Privilege                 ADA, DA, administrator without domains

Without the help of other MAREN components, this statement displays information from the MAREN catalog files.

Format

SHOW-MAREN-FILE                                                         Alias: SHMF
FILE-NAME = *MARENCAT / *MARENLOG / <filename 1..54>

Operands

FILE-NAME =

FILE-NAME = *MARENCAT
Entries from the current MAREN catalog will be displayed.

FILE-NAME = *MARENLOG
Entries from the current MAREN log file will be displayed.

FILE-NAME = <filename 1..54>
Name of the file from which the MAREN catalog entries are to be displayed.

The following files can be read:

  • Volume catalog
    The current volume catalog of MAREN and any number of copies of it can be assigned.

  • Logging files
    Here, too, the current open logging file or an older logging file (perhaps compiled from a number of individual files) can be used.

  • Output files
    These are files which contain full catalog entries in MAREN format, and which can be created using various MAREN and MARENADM statements.

    //SHOW-VOLUME-ATTRIBUTES OUTPUT=<filename>

Possible applications

Here are a selection of possible applications for SHOW-MAREN-FILE:

  • Information can be retrieved from the MAREN catalog even if the MARENCP control program crashes.

  • The output files generated by various statements (e.g. RESERVE-FREE-VOLUME) can be evaluated.

  • The logging files make it easy to check all accesses to a tape.

The catalog entries and MAREN parameters are output in the same format as in the statements SHOW-VOLUME-ATTRIBUTES VOL=<vsn> and SHOW-MAREN-PARAMETERS.

Once the statement has been issued, various input alternatives are offered depending on the specified file type (volume catalog, logging file, or output file).

Notes

Once a file name is entered, the associated file is checked. Various file attributes are checked to determine whether the file is a catalog file, and if so, what type it is. In the case of a volume catalog or a logging file, the file is opened in SHARED-UPDATE=YES mode to make it possible to access current catalog files.

If the file is a volume catalog, the MAREN parameters are listed (these are always in the first record in the volume catalog) and the following prompt is displayed:

MARM1E2 ENTER: VSN / POS(VSN) / +N / -N / ++ / -- / 'ETX' / END

If a logging file has been assigned, the following prompt is displayed without prior output:

MARM1E3 ENTER: FROM=VSN / LIST=VSN / VSN / +N / -N / ++ / -- / 'ETX' / END

If the file is an output file, the first catalog entry it contains is displayed. The following prompt is then output:

MARM1E1 ENTER: +N / -N / ++ / -- / 'ETX' / END; RECORD COUNTER = '(&00)'

In the case of MAREN output files in SAM format, the RECORD COUNTER catalog entry field indicates how many records were read from the file by the last action carried out. The number of catalog entries in the output file can thus be determined easily by entering “++” (position to end of file).

The following parameters can be used with all types of input files:

ParametersAction / notes
+nStarting at the current position and working towards the end of the file, read the next “n” records and display the current record (n = max. 6-digit number).
-nStarting at the current position and working towards the top of the file, read the next “n” records and display the current record (n = max. 6-digit number).
++Display the last record in the file.
--Display the first record in the file.
'ETX'
(Same as )
Working towards the end of the file, display the next record (corresponds to
entering “+1”).
ENDEnd the display. Other MARENADM statements can then be entered.

The following parameters can also be specified if the input file is a volume catalog:

ParametersAction / note
vsnDisplay the first record in the input file with the specified archive number e.g. TAPE01).
POS(vsn)Position to the specified VSN in the volume catalog and read the next record. The catalog entry may refer to the archive number specified or, if this does not exist, to the next highest archive number.

The following parameters can also be specified for logging files in addition to those supported by all file types:

ParametersAction / note
vsnDisplay the first logging entry for the specified archive number.
FROM=vsnDisplay a brief summary of all logging entries beginning with the specified archive number. The logging entries are sorted chronologically within the individual VSN and file sequence number.
LIST=vsnDisplay a brief summary of all logging entries for the specified archive number. The entries are listed in the order in which they were created.

If the display is longer than the screen length for the FROM=<vsn> and LIST=<vsn> parameters, it can be interrupted by pressing the key.

If a FREE-POOL record is found while paging, the message is output instead of the output mask:

MARM214 FREE-POOL-NAME '(&00)', LAST ACCESS FUNCTION NAME '(&01)', FUNCTION NUMBER '(&02)'

Setting task switch 5 causes catalog entries and MAREN parameters to be listed line by line in interactive mode rather than in a single display screen. This improves the readability of entries in SYSOUT logs. In batch mode, output is on a line-by-line basis.

Outputting logging records

In the case of logging records, the catalog entry they contain is output first, followed by the logging information. The latter shows when the logging record was written and on which pubset. Example:

** LOGGING RECORD WRITTEN AT DATE: <date> AT TIME: <time> ON PVS: PI1B **

If all records relating to a particular archive number or to a number of archive numbers starting with a specific archive number are to be listed (parameter LIST=vsn or FROM=vsn), the list is limited to a few catalog entry fields. Catalog entries are not shown in full.

The following information is provided (where each line begins with the abbreviation which appears in the header):

VOLUME
FSEQ
C#
FUNCNAME
FF
LOG-DATE
LOG-TIME
C-ID
HOSTNAME
STA
DV
MN
TSN
RES#
- Archive number (VOLUME)
- File sequence number (FILE-SEQUENCE)
- Check number (CHECK-COUNT)
- Function name of the last access (LAST-ACCESS-FUNCTION-NAME)
- Function flag for the last access (LAST-ACCESS-FUNCTION-FLAG)
- Date on which the logging entry was created
- Time at which the logging entry was created
- Catalog ID of the pubset on which the logging entry was written
- Name of the system on which the tape was last processed
- Status of the tape (VOLUME-STATUS)
- Device type (DEVICE-TYPE) in internal format
- Mnemonic name of the device on which the tape was last processed (DEVICE-NAME)
- TSN of the task which last processed the tape (LAST-ACCESS-TSN)
- Reservation counter of the tape (RESERVATION-COUNT)

Example

In this example, the following information from the file $SYSMAREN.MARENLOG.14 is displayed:

  • after pressing , the first logging record for the tape “A00001”

  • after entering LIST=TST001, all logging entries for the tape “TST001” in abbreviated form

show-maren-file :data:$sysmaren.marenlog.14
%  MARM1E3 ENTER: FROM=VSN / LIST=VSN / VSN / +N / -N / ++ / -- / 'ETX' / END
*
VOLUME    = A00001       FILE-SEQ      = 0001          DEV-TYPE    =  TAPE-C4
USER-ID   = MAREN001     HOME-LOCATION = LOCATIO1      RESERV-DATE =  <date>
ACCOUNT   =              FREE-LOCATION = LOCATIO1      FREE-DATE   =  <date>
USER-ACC  = OWNER-ONLY   TEMP-LOCATION = CENTRAL       EXPORT-DATE =
PASSWORD  = NONE
REMARK    = C'                        '
EXPORT-AD = C'                                                  '
USER-FIELD= C'                                                      '
FILE-NAME =
FREE-POOL = *NO
OPEN-MODE =            CR-DATE      =            LAST-ACC-DATE    =
DEV-NAME  =            CR-TIME      =            LAST-ACC-TIME    =
VOL-SEQ   = 0001       CR-CAT-ID    =            LAST-ACC-USER-ID =
FIRST-VOL = A00001     CR-USER-ID   =            LAST-ACC-ACCOUNT =
CLOSE-IND =            CR-JOB-NAME  =            LAST-ACC-JOB-NAME=
EXPIR-DATE=            LAST-CL-DATE =            LAST-ACC-TSN     =
AUDIT     = NO         LAST-CL-TIME =            LAST-ACC-SNO     =
VOL-STATUS= RESERVED   RESERV-COUNT = 0001       LAST-ACC-HOSTNAME=
INIT      = YES        ACCESS-COUNT = 00000000   LAST-ACC-FUN-NAME= ADD
ADM-FIELD = C'        'CHECK-COUNT  = 01         LAST-ACC-FUN-FLAG= 11
** LOGGING RECORD WRITTEN AT DATE: <date> AT TIME: <time> ON PVS: PI1B **
%  MARM1E3 ENTER: FROM=VSN / LIST=VSN / VSN / +N / -N / ++ / -- / 'ETX' / END
*list=tst001
-------------------------------------------------------------------------------
VOLUME FSEQ C# FUNCNAME FF LOG-DATE   LOG-TIME  C-ID HOSTNAME STA DV MN TSN  R#
-------------------------------------------------------------------------------
TST001 0001 34 MODIFY1  23 <date>     <time>   PI1B          R  BC         0013
TST001 0001 35 FREE     23 <date>     <time>   PI1B          F  BC         0013
TST001 0001 36 MARENUCP 17 <date>     <time>   PI1B          R  BC         0014
TST001 0001 37 MAREN0NS 23 <date>     <time>   PI1B D241ZE14 R  BC    2004 0014
TST001 0001 38 MAREN0O2 23 <date>     <time>   PI1B D241ZE14 R  BC HH 2004 0014
TST001 0001 39 MAREN0NR 23 <date>     <time>   PI1B D241ZE14 R  BC HH      0014
TST001 0001 40 MAREN0C1 23 <date>     <time>   PI1B D241ZE14 R  BC HH      0014
TST001 0001 41 MODIFY1  23 <date>     <time>   PI1B D241ZE14 R  BC HH      0014
TST001 0001 42 FREE     23 <date>     <time>   PI1B D241ZE14 F  BC HH      0014
TST001 0001 43 MARENUCP 17 <date>     <time>   PI1B          R  BC         0015
TST001 0001 44 MAREN0NS 23 <date>     <time>   PI1B D241ZE14 R  BC    2065 0015
TST001 0001 45 MAREN0O2 23 <date>     <time>   PI1B D241ZE14 R  BC HG 2065 0015
TST001 0001 46 MAREN0NR 23 <date>     <time>   PI1B D241ZE14 R  BC HG      0015
TST001 0001 47 MAREN0C1 23 <date>     <time>   PI1B D241ZE14 R  BC HG      0015
TST001 0001 48 MODIFY1  23 <date>     <time>   PI1B D241ZE14 R  BC HG      0015
TST001 0001 49 FREE     23 <date>     <time>   PI1B D241ZE14 F  BC HG      0015
TST001 0001 50 MARENUCP 17 <date>     <time>   PI1B          R  BC         0016
TST001 0001 51 MAREN0NS 23 <date>     <time>   PI1B D241ZE14 R  BC    2259 0016
TST001 0001 52 MAREN0O2 23 <date>     <time>   PI1B D241ZE14 R  BC HG 2259 0016
*end
%  MARM170 STATEMENT '//SHOW-MAREN-FILE' PROCESSED

The display is terminated with END.