Re: Outputting Job Logs and messages to a file.
- From: Thad Rizzi <thad_rizzi@xxxxxxxxxxx>
- Date: 25 May 2007 09:53:21 -0700
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.
.
- Follow-Ups:
- Re: Outputting Job Logs and messages to a file.
- From: CRPence
- Re: Outputting Job Logs and messages to a file.
- References:
- Outputting Job Logs and messages to a file.
- From: Thad Rizzi
- Re: Outputting Job Logs and messages to a file.
- From: Steve Richter
- Re: Outputting Job Logs and messages to a file.
- From: Thad Rizzi
- Re: Outputting Job Logs and messages to a file.
- From: Jonathan Bailey
- Outputting Job Logs and messages to a file.
- Prev by Date: Re: Power6 system shows 58% performance increase
- Next by Date: Re: Outputting Job Logs and messages to a file.
- Previous by thread: Re: Outputting Job Logs and messages to a file.
- Next by thread: Re: Outputting Job Logs and messages to a file.
- Index(es):