OUTFILE Subcommand (PRINT command)

OUTFILE specifies a file for the output from the PRINT command. By default, PRINT output is included with the rest of the output from the session.

  • OUTFILE must be specified before the slash that precedes the start of the variable specifications.
  • The output from PRINT cannot exceed 132 characters, even if the external file is defined with a longer record length.

Example

PRINT OUTFILE=PRINTOUT
   /1 EMPLOYID DEPT SALARY /2 NAME.
EXECUTE.
  • OUTFILE specifies PRINTOUT as the file that receives the PRINT output.