Re: Outputting Job Logs and messages to a file.



On May 25, 4:25 am, Jonathan Bailey <jonathan.bai...@xxxxxxxxx> wrote:
On May 24, 10:43 pm, Thad Rizzi <thad_ri...@xxxxxxxxxxx> wrote:





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.- Hide quoted text -

- Show quoted text -

Maybe you can put chgjob log(4 0 *seclvl) just before the copy then
chgjob log(4 0 *nolist) just after it. Or maybe some other
combination. I think you need *seclvl to get full details.

HTH
Jonathan- Hide quoted text -

- Show quoted text -

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.

.