Examples (WRITE command)
Writing a Specific Set of Variables
WRITE OUTFILE="/data/personnel.txt' / MOHIRED YRHIRED DEPT SALARY NAME.
FREQUENCIES VARIABLES=DEPT.
-
WRITEwrites values for each variable on the variable list to file personnel.txt. TheFREQUENCIESprocedure reads the data and causesWRITEto be executed. - All variables are written with their dictionary formats.
Writing All Variables
WRITE OUTFILE='/data/personnel.txt' /ALL.
EXECUTE.
-
WRITEwrites values for all user-defined variables in the active dataset to file personnel.txt. TheEXECUTEcommand executesWRITE.