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

LOGSTATUS

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Provides information about a currently opened user logging file. User logging (LG) or system supervisor (OP) capability is required.

Syntax



             I32    U16A     I16
  LOGSTATUS (index, loginfo, logstatus);

Parameters


index

32-bit signed integer by reference (required)

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

loginfo

16-bit unsigned integer array (required)

Returns the following information:

  • The total records written in current logging file (a 32-bit value in elements 0 and 1 of loginfo).

  • The size, in records, of the current logging file (a 32-bit value in elements 2 and 3 of loginfo).

  • The space, in records, remaining in the current logging file (a 32-bit value in elements 4 and 5 of loginfo).

  • The number of users using the logging file (a 16-bit value in element 6 of loginfo).

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

Related Information


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




LOGINFO


Chapter 9 Command Definitions (MAIL-PUTJCW)