LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 26 Mar 2003 21:02:02 -0500
Reply-To:     spss@surveys-forecasts.com
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Bob Walker <spss@surveys-forecasts.com>
Subject:      Data Format Question
Content-Type: text/plain; charset=us-ascii

Hi Listers,

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,

Bob Walker

Surveys & Forecasts, LLC

www.surveys-forecasts.com


Back to: Top of message | Previous page | Main SPSSX-L page