Strings (WRITE command)
You can specify strings within the variable list. Strings must be enclosed in quotes.
- If a format is specified for a variable list, the application of the format is interrupted by a specified string. Thus, the string has the same effect within a variable list as an asterisk.
Example
WRITE OUTFILE='/data/personnel.txt'
/EMPLOYID '1' MOHIRED YRHIRED SEX AGE JOBCAT NAME
/EMPLOYID '2' DEPT86 TO DEPT88 SALARY86 TO SALARY88.
EXECUTE.
- Strings are used to assign the constant 1 to record 1 of each case, and 2 to record 2 to provide record identifiers in addition to the case identifier EMPLOYID.