Solved

View AS/400 Savsys message log

Posted on 2014-02-11
2
809 Views
Last Modified: 2014-02-11
Is there a way to view the SAVSYS message log once you have replied to a message? A message needing a reply came up during a full system save. We replied to it thinking we could go back later and look at it but I can't find the message. It isn't in dsplog anywhere. I have tried DSPOBJD QSAVSYS *DTAARA DETAIL(*FULL) but that doesn't give messages.

Thanks
0
Comment
Question by:LeLeBrown
2 Comments
 
LVL 34

Accepted Solution

by:
Gary Patterson earned 500 total points
Comment Utility
SAVSYS messages are logged to the job log of the job running the command (usually an interactive job, often run on the system console, but as of V5R3, it could also be a batch job running in QCTL).  

If it was run from an interactive job, and that job is still running (still logged in), you can view the messages by running DSPJOBLOG from that interactive job, or, of you know the name of that job, you can access it via DSPJOBLOG JOB(job_name_goes_here),  WRKJOB, WRKACTJOB, WRKUSRJOB, etc, and take the appropriate option to display the job log.    

If the job that ran the SAVSYS has ended, it is possible there is a spooled job log for that job.  there will be a spooled file associated with the user profile logged on at the time.  For example if QSYSOPR ran the SAVSYS, then WRKSPLF QSYSOPR would enable you to find the spooled job log  loog for QPJOBLOG spooled files with the correct date and time.

If the person that ran the backup (or the person that wrote the backup program) was smart, they would have specified the SAVSYS OUTPUT() parameter - which creates a backup log and saves it as a spooled file OUTPUT(*PRINT) or to a database file OUTPUT(*OUTFILE).  If *PRINT was specified, there will be a spooled file associated with the job that ran the backup containing the backup log.  If *OUTFILE was specified, the backup log would have been written to a database file.  You'd need to find the name of the database file that was specified on the SAVSYS file, and view the contents of that file using the DSPPFM command (or other file viewer or editor).

For future reference, it is a good idea for just this reason to specify the SAVSYS OUTPUT(*PRINT) or OUTPUT(*OUTFILE) parameter to force SAVSYS to either print a backup report, or to save the backup report to a file.

It is also a good idea to print a copy of the job log after SAVSYS completes.  You can do that with the DSPJOBLOG OUTPUT(*PRINT).

- Gary Patterson
0
 

Author Closing Comment

by:LeLeBrown
Comment Utility
Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now