INCLUDE command goof ups

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

INCLUDE command goof ups

Trondsen, Norman(CDPH-CLPPB)
I would appreciate any insights.  INCLUDE has a quirk.  How might I fix
it?

 

The Value Labels syntax file operates properly if I open and Run it.  It
triggers the error message when I launch it via an INCLUCE statement
from a separate syntax file, as shown below.  Of note, what shows as
Line 19 of the included file in reality is the third line of that file.
To repeat, the file adds the value labels instantly when the code is Run
directly from the file rather than through the INCLUDE command process.

 

What's up with this?

 

 

GET

  FILE='C:\Documents and Settings\ntrondse\Desktop\Screens thru Nov
07.sav'.

 

INCLUDE

  FILE='C:\Documents and Settings\ntrondse\Desktop\MCValueLabels.sps'.

  17  VALUE LABELS

  18   /County_c

  19  1 "Alameda"

 

>Error # 1 on line 19.  Command name: 1

>The first word in the line is not recognized as an SPSS command.

>This command not executed.

 

 

>Note # 214 on line 19.  Command name: 1

>Due to an error, INCLUDE file processing has been terminated and the

>working file has been lost.  You may either redefine your data or leave

>SPSS.

 

 

>Note # 236

>All outstanding macros have been terminated, all include processing has

>been terminated, and all outstanding PRESERVE commands have been
undone.

 

 

Norm Trondsen

Research Analyst

Childhood Lead Poisoning Prevention Branch

CDPH - Richmond Campus

510-620-5655 (office)

510-816-5248 (cell)

 

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: INCLUDE command goof ups

Trondsen, Norman(CDPH-CLPPB)
I would appreciate any insights.  INCLUDE has a quirk.  How might I fix
it?

 

The Value Labels syntax file operates properly if I open and Run it.  It
triggers the error message when I launch it via an INCLUCE statement
from a separate syntax file, as shown below.  Of note, what shows as
Line 19 of the included file in reality is the third line of that file.
To repeat, the file adds the value labels instantly when the code is Run
directly from the file rather than through the INCLUDE command process.

 

What's up with this?  I've read Raynald's suggestions and a few archived
postings.  None of those sources addresses this particular weirdness.

 

 

GET

  FILE='C:\Documents and Settings\ntrondse\Desktop\Screens thru Nov
07.sav'.

 

INCLUDE

  FILE='C:\Documents and Settings\ntrondse\Desktop\MCValueLabels.sps'.

  17  VALUE LABELS

  18   /County_c

  19  1 "Alameda"

 

>Error # 1 on line 19.  Command name: 1

>The first word in the line is not recognized as an SPSS command.

>This command not executed.

 

 

>Note # 214 on line 19.  Command name: 1

>Due to an error, INCLUDE file processing has been terminated and the

>working file has been lost.  You may either redefine your data or leave

>SPSS.

 

 

>Note # 236

>All outstanding macros have been terminated, all include processing has

>been terminated, and all outstanding PRESERVE commands have been
undone.

 

 

Norm Trondsen

Research Analyst

Childhood Lead Poisoning Prevention Branch

CDPH - Richmond Campus

510-620-5655 (office)

510-816-5248 (cell)

 

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: INCLUDE command goof ups

ViAnn Beadle
This is not a quirk and is documented--INCLUDE follows batch syntax rules.
Batch syntax rules are 1) All commands must start in column 1; 2) all
continuations to commands must start after column 1 3) the command
terminator is not required to signal the end of a command.

Use the INSERT command instead of the INCLUDE command which provides more
control.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Trondsen, Norman(CDPH-CLPPB)
Sent: Tuesday, January 29, 2008 4:32 PM
To: [hidden email]
Subject: Re: INCLUDE command goof ups

I would appreciate any insights.  INCLUDE has a quirk.  How might I fix
it?



The Value Labels syntax file operates properly if I open and Run it.  It
triggers the error message when I launch it via an INCLUCE statement
from a separate syntax file, as shown below.  Of note, what shows as
Line 19 of the included file in reality is the third line of that file.
To repeat, the file adds the value labels instantly when the code is Run
directly from the file rather than through the INCLUDE command process.



What's up with this?  I've read Raynald's suggestions and a few archived
postings.  None of those sources addresses this particular weirdness.





GET

  FILE='C:\Documents and Settings\ntrondse\Desktop\Screens thru Nov
07.sav'.



INCLUDE

  FILE='C:\Documents and Settings\ntrondse\Desktop\MCValueLabels.sps'.

  17  VALUE LABELS

  18   /County_c

  19  1 "Alameda"



>Error # 1 on line 19.  Command name: 1

>The first word in the line is not recognized as an SPSS command.

>This command not executed.





>Note # 214 on line 19.  Command name: 1

>Due to an error, INCLUDE file processing has been terminated and the

>working file has been lost.  You may either redefine your data or leave

>SPSS.





>Note # 236

>All outstanding macros have been terminated, all include processing has

>been terminated, and all outstanding PRESERVE commands have been
undone.





Norm Trondsen

Research Analyst

Childhood Lead Poisoning Prevention Branch

CDPH - Richmond Campus

510-620-5655 (office)

510-816-5248 (cell)



=======
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD