Examples (PROCEDURE OUTPUT command)

Using PROCEDURE OUTPUT with CROSSTABS

PROCEDURE OUTPUT OUTFILE=CELLDATA.
CROSSTABS VARIABLES=FEAR SEX (1,2)
  /TABLES=FEAR BY SEX
  /WRITE=ALL.
  • PROCEDURE OUTPUT precedes CROSSTABS and specifies CELLDATA as the file to receive the cell frequencies.
  • The WRITE subcommand on CROSSTABS is required for writing cell frequencies to a procedure output file.

Using PROCEDURE OUTPUT with SURVIVAL

PROCEDURE OUTPUT OUTFILE=SURVTBL.
SURVIVAL  TABLES=ONSSURV,RECSURV BY TREATMNT(1,3)
  /STATUS = RECURSIT(1,9) FOR RECSURV
  /STATUS = STATUS(3,4) FOR ONSSURV
  /INTERVAL=THRU 50 BY 5 THRU 100 BY 10/PLOTS/COMPARE
  /CALCULATE=CONDITIONAL PAIRWISE
  /WRITE=TABLES.
  • PROCEDURE OUTPUT precedes SURVIVAL and specifies SURVTBL as the file to receive the survival tables.
  • The WRITE subcommand on SURVIVAL is required for writing survival tables to a procedure output file.