Solved

View AS/400 Savsys message log

Posted on 2014-02-11
2
817 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Wavelink TelnetCE keyboard 1 1,151
Something from iSeries disc to install on Windows machine to allow access 5 118
Close Open files in Library 7 253
Access to SYSIBM tables 7 95
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

19 Experts available now in Live!

Get 1:1 Help Now