Download User Guide

Transcript
GAUSS User Guide
Hard Delimited ASCII Files Hard delimited files have a printable character as a delimiter
between elements. Two delimiters without intervening data between them will be interpreted as a
missing. If \n is specified as a delimiter, the file should have one element per line and blank lines
will be considered missings. Otherwise, delimiters must be printable characters. The dot ‘.’ is
illegal and will always be interpreted as a missing value. To specify the backslash as a delimiter,
use \\. If \r is specified as a delimiter, the file will be assumed to contain one case or record per
line with commas between elements and no comma at the end of the line.
For hard delimited files the delimit subcommand is used with the invar command. The
delimit subcommand has two optional parameters. The first parameter is the delimiter. The
default is a comma. The second parameter is an ‘N’. If the second parameter is present, ATOG
will expect N delimiters. If it is not present, ATOG will expect N-1 delimiters.
This example:
invar delimit(, N) $ name # var[5];
will expect a file like this:
BILL ,
STEVE,
TOM ,
222.3,
624.3,
244.2,
123.2,
340.3,
834.3,
456.4,
,
602.3,
345.2,
624.3,
333.4,
while
invar delimit(,) $ name # var[5];
or
invar delimit $ name # var[5];
will expect a file like this:
28-6
533.2,
639.5,
822.5,