LOG – Echo information to the log

Use the LOG command to echo information to the log output.

LOG <expression>

where <expression> can be any valid REXX expression. For more details about REXX expressions and available functions, see TSO/E REXX Reference.

For example:
VARSET STEP ENVATTR(JCL,STEP,0) 
LOG MSGX000I @V(OJOBNAME) @V(STEP) @V(OJJESNO) 
LOG MSGX001I @V(OADID) @V(OYMD1)||@V(OHHMM) @V(OOPNO)