Q
Problem solve Get help with specific problems with your technologies, process and projects.

Revisiting automating email for a backup joblog on AS/400

If you want to get an email automatically sent to you that includes the backup joblog for your AS/400, Ken Graap outlines the steps you need to take.

I saw this thread Automatic email for backup job log on AS/400. But, the question was "to email me the job log". I think your answer does not e-mail a job log. Also, do I just add the email command to the exit program of the backup?
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.

This was last published in September 2008

Dig Deeper on Remote Journaling

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close