This function returns information from an ILOG subfile.
Form 1:
result = ILOGC(OPEN, lognum)
Form 2:
result = ILOGC(CLOSE, lognum)
Form 3:
status = ILOGC(STATUS, lognum)
Parameters
Opens the ILOG and prepares it for logging.
Closes the ILOG.
Request ILOG allocation status
ILOG file number, 0 through 99.
null, if successful. If not successful, an error text is returned. See Return Codes for text.
for the STATUS request, the possible status that can be returned are:
ILOG specified by lognum is open.
ILOG specified by lognum is closed.
ILOG specified by lognum is open. ILOG was defined in RUNPARMS as NOOPEN.
ILOG specified by lognum is closed. ILOG was defined in RUNPARMS as NOOPEN.
ILOG specified by lognum is not defined to CA GSS.
ARG n MISSING OR INVALID
REQUESTED LOG NOT FOUND
REQUESTED LOG NOT ACCESSIBLE
REQUESTED LOG ALREADY OPEN/|CLOSED
REQUESTED LOG IN USE BY ANOTHER GSS
By default CA GSS opens ILOGS during initialization and they remain open until CA GSS is terminated. The initialization parameter NOOPEN in the ILOG statement can be used to delay the opening on the ILOG data set. An ILOGC(OPEN,lognum) function call can then open the data set. The ILOGC(CLOSE,lognum) function call can be used on any open ILOG data set, whether it was opened during initialization or by an ILOGC function call.
Example:
/* ILOG 55 was defined to GSS with the NOOPEN option */ result=ILOGC(‘OPEN’.55) /* open ilog 55 */ if result\='' then y=wto(result) /* if result is not null, WTO the error text */
Copyright © 2014 CA Technologies.
All rights reserved.
|
|