HPlogo MPE/iX Intrinsics Reference Manual > Chapter 8 Command Definitions (HPMERGEEND-LOGSTATUS)

LOGINFO

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Provides information about an opened user logging file (whole file set). User logging (LG) or system supervisor (OP) capability is required.

Syntax



           I32V   I16         I16V     *
  LOGINFO (index, logstatus [,itemnum, item] [...]);


NOTE: You can specify up to four itemnum/item pairs.

Parameters


index

32-bit signed integer by value (required)

Passes your access to the user logging system. This is the value returned in the index parameter of the OPENLOG intrinsic.

logstatus

16-bit signed integer by reference (required)

Returns one of the following values, indicating the success/failure of the intrinsic call:

ValueMeaning
0Successful
2Parameter out of bounds
4Incorrect index parameter
7Illegal capability; user logging (LG) or system supervisor (OP) capability required
14Invalid access
17Either itemnum or item missing
18Invalid itemnum

itemnum

16-bit signed integer by value (optional)

Specifies which item value is to be returned.

item

array whose type varies (optional)

Returns the value of the item specified by the corresponding itemnum.

Itemnum/
Mnemonic
Item Description
1/I32Total number of records written in current file
2/I32Current file size
3/I32Current file space left
4/I16Number of users
5/I32Total records written in whole file set
6/CACurrent log file name
7/I16Current log file type
0 DISK
1 TAPE
8/CAPrevious log file name
9/I16Previous log file type
0 DISK
1 TAPE
10/U16CHANGELOG allowed (true/false)
11/U16AUTO allowed (true/false)
12/I16Current file sequence number
13/I16Log status:

0INACTIVE
1ACTIVE
2Close pending
3Stop pending
14/I16Returns unique log number for the logging process

Related Information


Intrinsics BEGINLOG, CLOSELOG, ENDLOG, FLUSHLOG, LOGSTATUS, OPENLOG, WRITELOG
CommandsSHOWLOGSTATUS
Manuals User Logging Programmer's Guide
MPE/iX Commands Reference Manual




LOCRINOWNER


LOGSTATUS