Previous Topic: $SRV_ENQ_INFO

Next Topic: $SRV_IMOD_INFO

$SRV_LOG_STAT

The $SRV_ILOG_STAT routine returns information about ILOG files.

Syntax

Use this syntax:

CALL $SRV_ILOG_STAT

Parameters

No operands are expected and none should be passed.

Returned Data

Data is returned on the stack. Each line represents one ILOG subfile. The first character in each record is the delimiter character. This character is used to separate the returned fields, as listed below:

  1. ILOG file number.
  2. ILOG subfile number.
  3. DDname associated with the ILOG subfile
  4. Status of the file:
    Not-Avail

    Subfile is not available for use.

    Dump_req'd

    Subfile must be dumped and/or reset before it is available.

    Full-Avail

    Subfile is full but has already been reset.

    Active

    Subfile is currently in use.

    Empty

    Subfile is empty and available for use.

    Not-Open

    Subfile has not been opened or has been closed.

  5. Total records currently in the subfile.
  6. Percent of subfile that is currently being used.
  7. Date stamp of the first record in the subfile. The format is yy/mm/dd.
  8. Time stamp of the first record in the subfile. The format is hh:mm:ss.
  9. Date stamp of the last record in the subfile. The format is yy/mm/dd.
  10. Time stamp of the last record in the subfile. The format is hh:mm:ss.

Return String

This routine returns the number of records added to the stack.

Example

call $srv_ilog_stat
limit = result
do i = 1 to result
   parse pull 1 d +1 ilog (d) subfile (d) ddname   ,
         (d) status (d) records (d) percent   ,
         (d) sdate (d) stime (d) edate (d) etime (d)
   end i