0 pts.
 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?

Software/Hardware used:
ASKED: September 22, 2005  11:50 AM
UPDATED: November 12, 2009  7:00 AM

Answer Wiki:
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="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaiu/rzaiurzaiu004.htm">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. Tom
Last Wiki Answer Submitted:  November 12, 2009  7:00 am  by  PaulThomas   0 pts.
All Answer Wiki Contributors:  PaulThomas   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _