z/OS JES2 Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


$STMTLOG – Log an initialization statement

z/OS JES2 Macros
SA32-0996-00

Use $STMTLOG to log initialization statements and related diagnostic information. This macro can be used by either JES2 or Exit 19 (Initialization Statement).

Format description

Read syntax diagramSkip visual syntax diagram
>>-+--------+--$STMTLOG--+-----------------------+-------------->
   '-symbol-'            '-DIAG--=--+-addrx----+-'   
                                    +-(--R1--)-+     
                                    '-label----'     

>--+-------------------------+--+----------------------+-------->
   '-,--TYPE--=--+-COMMENT-+-'  |              .-NO--. |   
                 +-ERROR---+    '-,--MSGID--=--+-YES-+-'   
                 '-WARNING-'                               

>--+-------------------------+---------------------------------><
   '-,--LEN--=--+-field----+-'   
                '-(--R0--)-'     

DIAG=
Specifies the address of the diagnostic information associated with the last analyzed initialization statement or specifies the actual text of the diagnostic information when “label” is the keyword value. The message can be formatted to contain a message ID and/or message length as well as the actual text. The following table provides the required format information:
MESSAGE ID LENGTH DIAGNOSTIC FORMAT
NO NO Text ‘DDDDDD...’
YES NO Text ‘XXXDDD...’
NO YES Text ***Error***
YES YES Text ***Error***
NO NO Address LDDDDDDD...
YES NO Address XXXLDDDD...
NO YES Address DDDDDDDD...
YES YES Address XXXDDDDD...  
*
XXX = message ID
 
L = length
 
DDD = diagnostic
TYPE=
Specifies the type of diagnostic message that is to be logged for the last analyzed initialization statement.
COMMENT
Log the diagnostic information to hardcopy only.
WARNING
Log the diagnostic information to hardcopy if the source of the last analyzed initialization statement is not the console. If the source is a console also log the diagnostic information to the console.
ERROR
Log the current parameter statement to the console and hardcopy along with the diagnostic information.
MSGID=
Specifies whether (YES) or not (NO) a message ID ($HASPnnn) is included in the diagnostic text that is passed to the STMTLOG routine.
YES
Indicates that the message ID is supplied as part of the diagnostic text.
NO
Indicates that the message ID is not supplied as part of the diagnostic text.
LEN=
Specifies the address of the length (1-80 characters) of the diagnostic message. If this keyword is not specified, JES2 assumes that the length of the message is imbedded in the message.
Note: When no operands are specified, the last analyzed initialization statement is logged.

Environment

  • Only Exit 19 during JES2 initialization.
  • $WAIT cannot occur.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014