Solved

View AS/400 Savsys message log

Posted on 2014-02-11
2
887 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The recent Petya-like ransomware attack served a big blow to hundreds of banks, corporations and government offices The Acronis blog takes a closer look at this damaging worm to see what’s behind it – and offers up tips on how you can safeguard your…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

626 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