157 |
variables may specified using the @code{DATA LIST} TO convention |
variables may specified using the @code{DATA LIST} TO convention |
158 |
(@pxref{Sets of |
(@pxref{Sets of |
159 |
Variables}). There are two ways to specify the location of the variable |
Variables}). There are two ways to specify the location of the variable |
160 |
on the line: PSPP style and FORTRAN style. |
on the line: columnar style and FORTRAN style. |
161 |
|
|
162 |
With PSPP style, the starting column and ending column for the field |
In columnar style, the starting column and ending column for the field |
163 |
are specified after the variable name, separated by a dash (@samp{-}). |
are specified after the variable name, separated by a dash (@samp{-}). |
164 |
For instance, the third through fifth columns on a line would be |
For instance, the third through fifth columns on a line would be |
165 |
specified @samp{3-5}. By default, variables are considered to be in |
specified @samp{3-5}. By default, variables are considered to be in |
166 |
@samp{F} format (@pxref{Input/Output Formats}). (This default can be |
@samp{F} format (@pxref{Input/Output Formats}). (This default can be |
167 |
changed; see @ref{SET} for more information.) |
changed; see @ref{SET} for more information.) |
168 |
|
|
169 |
When using PSPP style, to use a variable format other than the default, |
In columnar style, to use a variable format other than the default, |
170 |
specify the format type in parentheses after the column numbers. For |
specify the format type in parentheses after the column numbers. For |
171 |
instance, for alphanumeric @samp{A} format, use @samp{(A)}. |
instance, for alphanumeric @samp{A} format, use @samp{(A)}. |
172 |
|
|
181 |
Changing the variable format and adding implied decimal places can be |
Changing the variable format and adding implied decimal places can be |
182 |
done together; for instance, @samp{(N,5)}. |
done together; for instance, @samp{(N,5)}. |
183 |
|
|
184 |
When using PSPP style, the input and output width of each variable is |
When using columnar style, the input and output width of each variable is |
185 |
computed from the field width. The field width must be evenly divisible |
computed from the field width. The field width must be evenly divisible |
186 |
into the number of variables specified. |
into the number of variables specified. |
187 |
|
|
191 |
inside parentheses. Each format specifier advances as many characters |
inside parentheses. Each format specifier advances as many characters |
192 |
into the input line as it uses. |
into the input line as it uses. |
193 |
|
|
194 |
|
Implied decimal places also exist in FORTRAN style. A format |
195 |
|
specification with @var{d} decimal places also has @var{d} implied |
196 |
|
decimal places. |
197 |
|
|
198 |
In addition to the standard format specifiers (@pxref{Input/Output |
In addition to the standard format specifiers (@pxref{Input/Output |
199 |
Formats}), FORTRAN style defines some extensions: |
Formats}), FORTRAN style defines some extensions: |
200 |
|
|
220 |
by a repeat count. Groups may be nested arbitrarily. |
by a repeat count. Groups may be nested arbitrarily. |
221 |
@end table |
@end table |
222 |
|
|
223 |
FORTRAN and PSPP styles may be freely intermixed. PSPP style leaves the |
FORTRAN and columnar styles may be freely intermixed. Columnar style |
224 |
active column immediately after the ending column specified. Record |
leaves the active column immediately after the ending column |
225 |
motion using @code{NEWREC} in FORTRAN style also applies to later |
specified. Record motion using @code{NEWREC} in FORTRAN style also |
226 |
FORTRAN and PSPP specifiers. |
applies to later FORTRAN and columnar specifiers. |
227 |
|
|
228 |
@menu |
@menu |
229 |
* DATA LIST FIXED Examples:: Examples of DATA LIST FIXED. |
* DATA LIST FIXED Examples:: Examples of DATA LIST FIXED. |