/[pspp]/pspp/doc/data-io.texi
ViewVC logotype

Diff of /pspp/doc/data-io.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jmd, Sat Oct 30 10:14:05 2004 UTC revision 1.2 by blp, Sat Feb 26 05:47:43 2005 UTC
# Line 157  followed by a description of their locat Line 157  followed by a description of their locat
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    
# Line 181  implied decimal places are not applied. Line 181  implied decimal places are not applied.
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    
# Line 191  specifications, separated by commas, are Line 191  specifications, separated by commas, are
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    
# Line 216  Group the given specifiers together.  Th Line 220  Group the given specifiers together.  Th
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.

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26