Date: Fri, 15 Mar 2002 14:46:53 +0100
Reply-To: Staffan Lindberg <staffan.lindberg@fhi.se>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Staffan Lindberg <staffan.lindberg@fhi.se>
Subject: Can Raynald or anybody help ?
Content-Type: text/plain; charset="iso-8859-1"
Hi !
I am applying Raynalds syntax "Apply lab1 as value label to var1 by
syntax.sps" to two variables of mine, county code and county name. The
syntax runs but the value labels only contain the first 9 characters of of
the name. Checking the file "temp.sps" shows that the last apostroph for the
labels are missing.
The output shows:
Warning # 208 on line 4551 in column 35. Text: Upplands
>A text string is not correctly enclosed in quotation marks on the command
>line. Literals may not be continued across command lines without the use
>of the continuation symbol '+'.
My syntax (pinched from Raynald of course) is:
GET FILE='C:\SLASK\KOMMUNTOT1.SAV'.
AGGREGATE /OUTFILE=* /BREAK=kkod /kommun = FIRST(kommun) .
STRING QUOT(A1).
COMPUTE QUOT="'".
STRING LAB2 (A17).
COMPUTE LAB2=CONCAT(QUOT,kommun,QUOT).
WRITE OUTFILE 'C:\SLASK\TEMP.SPS' "ADD VALUE LABELS kkod " kkod " " lab2
".".
EXECUTE.
GET FILE='c:\slask\kommuntot1.sav'.
INCLUDE 'TEMP.SPS'.
I've compared this syntax with Raynalds numerous times but can't see any
significant difference. Probably I can't see the wood because of too many
trees. Can Raynald or anybody help ?
best
Staffan Lindberg
National Institute of Public Health
Sweden