Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

LOGGING-MODE( ) Check logging

&pagelevel(3)&pagelevel

Domain: Procedure information

The LOGGING-MODE( ) function indicates whether the logging function was activated when calling the CALL-PROCEDURE or INCLUDE-PROCEDURE command.

Logging of procedure execution is defined when calling the CALL- or INCLUDE-PROCEDURE command in the LOGGING operand. Logging can be set independently for command sequences and data stream. If BY-PROC-TEST-OPTION applies to one or both of the above, the current log status is determined by means of the MODIFY-PROC-TEST-OPTIONS command.

Please note that the LOGGING-MODE( ) must be called separately for commands and data.

Format

LOGGING-MODE( )

LOG-MODE( )

STREAM = *CMD / *DATA

Result type

STRING (’YES’ / ’NO’)

Input parameters

STREAM =
Defines the logging type to be requested.

STREAM = *CMD
Requests whether the command sequence is to be logged.

STREAM = *DATA
Requests whether the data stream is to be logged.

Result

YES
Commands/data are logged.

NO
Commands/data are not logged.

Error messages

No error messages

Example

/CALL-PROCEDURE PROC, LOGGING = *PAR(DATA = *BY-PROC-TEST-OPTION)

The log status is checked in the procedure PROC:

/IF (LOGGING-MODE (STREAM = *DATA) = 'NO')
/MODIFY-PROCEDURE-TEST-OPTIONS LOGGING = *YES
/END-IF

If the data stream is not logged, the logging function is activated with MODIFY-PROCEDURE-TEST-OPTIONS.