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. The FREQUENCIES procedure reads the data and causes WRITE 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. The EXECUTE command executes WRITE.