Re: Outputting Job Logs and messages to a file.



On May 24, 2:36 pm, Steve Richter <StephenRich...@xxxxxxxxx> wrote:
On May 24, 5:11 pm, Thad Rizzi <thad_ri...@xxxxxxxxxxx> wrote:

I have a CL program that runs every night and copies one file to
another. Users need to verify that the copy completed successfully,
among other things. When I DSPJOBLOG to a file, I do not see the
completion message for the copy, i.e. 3 records copied to mylib/
myfile. I would like to output the jobjog and the message file to a
log file that the user could display every morning. Any info is
always appreciated.

Thad Rizzi

should work. what does the code look like? here is my version:
CRTPF FILE(QTEMP/COPYCOMSRC) RCDLEN(80)
CPYF FROMFILE(COMSRC) TOFILE(QTEMP/COPYCOMSRC) +
MBROPT(*REPLACE) FMTOPT(*CVTSRC)
DSPJOBLOG OUTPUT(*OUTFILE) OUTFILE(qgpl/JOBLOG)

Hold on. I do get the mesasage but not the text. Need the text for
the end user.

.