Date: Wed, 26 Mar 2003 21:02:02 -0500
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Bob Walker <firstname.lastname@example.org>
Subject: Data Format Question
Content-Type: text/plain; charset=us-ascii
I'm stumped regarding DATA LIST and field widths. I have a raw file with
three sets of variables in non-contiguous 3-column spans:
Variables A1-A34 are in 153, 156, 159, etc.
Variables B1-B34 are in 154, 157, 160, etc.
Variables C1-C34 are in 155, 158, 161, etc.
I attempted to read variables A1-A34 using Fortran specs:
DATA LIST FILE = "C:\Surveys & Forecasts, LLC\Raw Data.dat"/
ID 1-6 A1 TO A34 153-254 34(F1,2x).
.thinking that I would read the first column, then skipping the next two
columns over 34 variables, but this bombs out. Is there a way to
correctly specify column locations without having to explicitly write
out every variable? Thanks,
Surveys & Forecasts, LLC