Solved

View AS/400 Savsys message log

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change a nightly backup CL program 5 240
Iseries Object Security 5 97
best way to update esxi hosts 6 159
AS400 SQL Cast Issue on Current Date/Time 4 104
A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

734 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