Information in output files

Most save commands create output that shows what the system saved. Depending on which command you use, you can direct this output to a printer (OUTPUT(*PRINT)), a database file (OUTPUT(*OUTFILE)), a stream file, or a user space.

The default for save commands is not to create output. You must request it each time you run the save command. You can change the default for the OUTPUT parameter for save commands by using the Change Command Default (CHGCMDDFT) command.

You can do one of two things: print the output and store it with your media, or create a program to analyze and report on the information in the output file.

You can use the OUTPUT parameter with these commands:
Start of change
SAV SAVLIB SAVRSTCHG SAVSAVFDTA
SAVCFG SAVOBJ SAVRSTDLO SAVSECDTA
SAVCHGOBJ SAVRST SAVRSTLIB SAVSYS
SAVDLO SAVRSTCFG SAVRSTOBJ SAVSYSINF
End of change

If you use an output file for the Save Document Library Object (SAVDLO) command, the system uses the file format QSYS/QAOJSAVO.OJSDLO. Use the Display File Field Description (DSPFFD) command to look for the file layout.

The SAV command does not support sending output to an output file. You can send output from the SAV command to a stream file or to a user space. Interpreting output from save (SAV) and restore (RST) shows the layout for the stream file or user space.

If you use an output file for any of the other commands that are listed above, the system uses the file format QSYS/QASAVOBJ.QSRSAV.

The SAVCHGOBJ, SAVLIB, SAVOBJ, and SAV commands have an information type (INFTYPE) parameter to specify how much detail you want in the output. See Interpreting output from save commands for more information.

For the names of the model database output files that the save commands use, see the online information for the save commands.