2. Save 60% on Data Entry, Data Conversion, Data Processing Services by Offshore-Data-Entry
3. Advantages of Data Conversion and Data Formats Services by Data Entry India
4. Sample 26140: Creating a new data set for each BY-Group in a data
5. SPSS data file to SAS data file: only partial variable labels
Dear fellow SAS users:
I am trying to convert an SPSS data file (.sav, not .por) to SAS, using
SPSS version 15 for Windows. The data file is large, but not huge (176
cases, 963 variables). I have SAS 9.1.3 on Windows XP.
I used the following commands, and got the Warning message that "excess
labels will be omitted." (See below) SPSS successfully copied over the
variable labels for the first 2/3 of the variables, but then just stopped.
The wording of the message ("cumulative length of the variable labels
exceeds the limitations of the target file type") suggests that there is
some limitation of memory size involved.
Incidentally, I did succeed in getting the value labels captured in a
separate file containing SAS statements.
So the question is: Is there any way I can increase a default memory or
buffer size to allow SPSS to copy all the variable labels?
Thanks for any suggestions.
Sincerely,
Joe Hoffman
Here's my code and message:
get file = 'G:\q556\data\Master_file\master.sav'.
SAVE TRANSLATE OUTFILE='G:\q556\data\Master_file\master.sas7bdat'
/TYPE=SAS /VERSION=7 /PLATFORM=WINDOWS /MAP /REPLACE
/VALFILE='G:\q556\data\Master_file\master.sas' .
>Warning # 9077
>The cumulative length of the variable labels exceeds the limitations of
the target file type. The excess labels will be omitted.
Data written to G:\q556\data\Master_file\master.sas7bdat.
963 variables and 176 cases written.
Variable: ID Type: Number Width: 12 Dec: 0
Variable: SIA1 Type: Number Width: 3 Dec: 0
. . . . .
==============================================
Joseph H Hoffman
Data Analyst
Research Institute on Addictions
State University of New York at Buffalo
1021 Main Street
Buffalo NY 14203
phone 716-887-2219
FAX 716-887-2510
e-mail XXXX@XXXXX.COM
==============================================
6. Update info in data set based on other data set
7. Complex DATA step problem with longitudinal data
Hello With my trusty copy of Ron Cody's Longitudinal Data and SAS, I've been able to solve most of my DATA step problems. But now I've got one that even Ron doesn't cover. I've got data like this FullName Date GDS ADOLPH A 06/25/1980 2 ADOLPH A 10/22/1980 2 ADOLPH B 10/17/1984 2 ADOLPH B 07/16/1981 2 ADOLPH B 01/16/1985 2 AILEEN A 08/11/1982 2 AILEEN A 08/11/1987 2 AILEEN A 01/01/1999 4 AL B 04/10/1980 2 AL B 06/04/1980 1 AL B 02/29/1984 1 AL B 11/03/1987 3 AL B 04/24/1994 3 ALCENIA A 10/24/1989 2 ALCENIA A 07/17/1990 2 ARTHUR C 04/10/1985 2 ARTHUR C 04/26/1988 3 ARTHUR C 02/27/1991 2 with many more variables and 77 people (the data has a real full name, I've used fake last initials for privacy concerns). Originally, I wanted to create datasets FIRST and LAST, with the first and last observation for each person, and the book has the solution. data new; set old; by fullname dot; if first.fullname and last.fullname then delete; if first.fullname then output gds.forbobfirst; if last.fullname then output gds.forboblast; run; But now, I want something more complex: If GDS stays the same, the interval has to be at least 5 years. If GDS changes the interval has to be at most 7 years. If GDS gets higher, and then lower, don't include the one that was higher Within those parameters, pick the first and last sessions..... so AILEEN A 08/11/1982 2 AILEEN A 08/11/1987 2 AL B 02/29/1984 1 AL B 11/03/1987 3 ARTHUR C 04/10/1985 2 ARTHUR C 02/27/1991 2 This is way beyond me..... Thanks in advance, as always (oh, and I have access to this data only on Monday, Tuesday and Wednesday, so I may not be able to respond fully on some queries until Monday). Peter Peter L. Flom, PhD Statistical Consultant www DOT peterflom DOT com