WRITE
WRITE writes text data files that can be used by other applications.
WRITE [OUTFILE='file']
[ENCODING='encoding'] [BOM={YES}]
{NO }]
[RECORDS={1}] [{NOTABLE}]
{n} {TABLE }
/{1 } varlist [{col location [(format)]}] [varlist...]
{rec #} {(format list) }
{* }
[/{2 }...]
{rec #}
This command does not read the active dataset. It is stored, pending execution with the next command that reads the dataset. See the topic Command Order for more information.
Release History
Release 16.0
-
ENCODINGsubcommand added for Unicode support.
Release 22.0
BOMkeyword added.
Example
WRITE OUTFILE="/data/personnel.txt' / MOHIRED YRHIRED DEPT SALARY NAME.
EXECUTE.