Another useful addition to IBM i with the latest round of Technical Refreshes, 7.4 TR1 and 7.3 TR7, is a SQL function that allows you to write directly to the job's job log.
Why would I want to write to the job's job log?
I would use this to write to the job log when something I would expect to happen did not. Or as a record that some part of the program ran, and completed successfully or failed.
The syntax for this function could not be simpler:
CALL SYSTOOLS.LPRINTF(string or variable) |



