Date: Mon, 17 May 2004 16:53:07 -0400
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Francois Brisebois <Francois.Brisebois@statcan.ca>
Subject: INCLUDing multiple files to read a dataset
Content-Type: text/plain; charset="iso-8859-1"
I'm trying to read a large ASCII dataset using all the necessary syntax
information stored in 4 different files: one file contains the entire DATA
LIST syntax, one the MSSING VALUE, one the VALUE LABEL, and one the VARIABLE
Here is what I tried (among others):
INCLUDE FILE = 'D:\missing.sps'.
INCLUDE FILE = 'D:\valuelab.sps'.
INCLUDE FILE = 'D:\varlabel.sps'.
FILE HANDLE INFILE/NAME = 'D:\rawdata.txt'.
INCLUDE FILE = 'D:\SAS_SPSS\hs_i.sps'.
The result is that the dataset is created correctly, but the missing values
and labels are not assigned (they are ignored). What am I doing wrong, and
how can I read this file using the smallest number of code possible. Thanks.
Note: If I open the files in SPSS and submit them sequentially, then of
course it works fine, however, I want to be able to submit everything in one
shot with only a few lines of codes.