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