Printing Summary Information From The SAV command

I am trying to print a summary report from the SAV command. Using OUTPUT(*PRINT) INFTYPE(*SUMMARY)creates a 500+ page report (which to me is not a summary). When I try using a stream file OUTPUT(FSAV), and then CPYFRMSTMF to an AS/400 file, I get mostly unreadable data in the AS/400 file. I am not very familar with stream files (my extent has been while working with this project). What am I doing wrong so as to not receive a "good" file from which to run a query for my summary report? Or is there a better method to get a concise summary report for the SAV command?

Answer Wiki

Thanks. We'll let you know when a new response is added.

SAV produces a CPC370D message on QHST when it has been successfull. It will produce various other messages for failures (SAV F1 for full list). You could always use DSPLOG with the MSGID parameter to filter out the information you are after. It’s a far more summarised version!!!


You don’t say what OS version/release you’re using, so I’ll assume V5R4, the oldest that is currently supported. I don’t think the info has changed much over releases. In any case, once you see the basics, you should be able to convert to any other release.

If you’re going to use a feature of the OS, you probably need to learn something about the feature. Just using something and figuring it’ll automatically make sense isn’t very productive. Essentially all of it is documented. You need to do some studying. I expect that you also need some experience in this kind of work.

For your need, you should read <a href=””>Interpreting output from save (SAV) and restore (RST)</a>. If you have related experience, you will recognize what the formats imply and realize that processing the info is equivalent to processing output from any of the various list APIs.

As such, it’s probably best simply to route the output to a user space in the first place. Use the user space APIs to process the output.

As for the printed summary, I can’t comment on 500 pages. I wouldn’t be surprised at that on a fair sized system that makes reasonable use of the IFS or even one with extensive native file system databases. I work with customers who would see far larger results.


Discuss This Question:  

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: