Re: Outputting Job Logs and messages to a file.



Use the data from the QMHMDT field from the OUTFILE from DSPJOBLOG as input for the MSGDTA() on a RTVMSGD. The output to the MSG() on that RTVMSGD request can then be posted.
FWiW just adjusting the program to post a completion when it does not fail, and not producing any joblog output in that case may be a reasonable alternative to all the additional work; i.e. post a received escape and leave the joblog as a record, but just like normal LOG(4 0 *SECLVL) with a completion, there is no output since the request completed without error.

Regards, Chuck
-- All comments provided "as is" with no warranties of any kind whatsoever and may not represent positions, strategies, nor views of my employer

Thad Rizzi wrote:
On May 25, 4:25 am, Jonathan Bailey <jonathan.bai...@xxxxxxxxx> wrote:
Thanks for the suggestion. I can see the text message in my job log.
With a DSPJOBLOG to a file it doesn't get the text just the components
of the message. Basically I just want to write this message to a log
to show that every night records were copied. Seems like this should
not be difficult. I think I am missing something obvious.

.