|
You are right! You asked me how to e-mail a job log and I told you how to e-mail a message… Sorry about that.
Mailing a spool file isn't as easy as just sending a message. There are several steps that have to be done.
To e-mail a job log you could do this:
CRTPF FILE(EMAILDATA)
RCDLEN(132)
MBR(*NONE)
CPYSPLF FILE(QPJOBLOG)
TOFILE(EMAILDATA)
JOB(Job_Number/Username/JobName)
MBROPT(*ADD)
CPYTOPCD FROMFILE(EMAILDATA)
TOFLR(EMAIL)
TODOC(Joblog.txt)
REPLACE(*YES)
DLTF FILE(EMAILDATA)
SNDDST TYPE(*DOC)
TOINTNET((Name@address))
DSTD('Some subject text')
MSG('Some important message text')
DOC(Joblog.txt)
FLR(EMAIL)
There are also plenty of very reasonably priced packages available that can easily be integrated into any of your processes requiring the e-mailing of spool files. If you are going to be e-mailing a lot of spool files, this would be the way to go. A simple Google search like - email spool files iSeries – will show you many product options.
|