Solved

View AS/400 Savsys message log

Posted on 2014-02-11
2
827 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
ID: 39850390
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
ID: 39850678
Thanks!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

815 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

11 Experts available now in Live!

Get 1:1 Help Now