OUTFILE subcommand (REPORT command)

OUTFILE directs the report to a file separate from the file used for the rest of the output from your session. This allows you to print the report without having to delete the extraneous material that would be present in the output.

  • OUTFILE must follow FORMAT and must precede BREAK.
  • You can append multiple reports to the same file by naming the same file on the OUTFILE subcommand for each REPORT command.

Note: The first time a particular file is named on the OUTFILE subcommand within a job or session, the file is created or, if it already exists, it is erased. It remains open until the job or session finishes. Later uses of the same file in REPORT append their output to it. Attempts to erase the file may fail.

Example

REPORT FORMAT=AUTOMATIC LIST
  /OUTFILE=PRSNLRPT
  /VARIABLES=LNAME AGE TENURE JTENURE SALARY
  /BREAK=DIVISION
  /SUMMARY=MEAN.
 
REPORT FORMAT=AUTOMATIC
  /OUTFILE=PRSNLRPT
  /VARIABLES=LNAME AGE TENURE JTENURE SALARY
  /BREAK=DIVISION
  /SUMMARY=MEAN
  /SUMMARY=MIN
  /SUMMARY=MAX.
  • Both a listing report and a summary report are written to file PRSNLRPT.