|
I have to prepare a huge dataset. in order to keep trace of all the
transformations I write little pieces of syntax and combine them using "include" but every time I have a "variable labels" command spss give me the following message: variable labels v1 'blabla' /v2 'blabla2' >Error # 1 on line 20. Command name: /v2 >The first word in the line is not recognized as an SPSS command. >This command not executed. >Note # 214 on line 20. Command name: /v2 >Due to an error, INSERT and 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 INSERT and INCLUDE >processing has been terminated, and all outstanding PRESERVE commands have >been undone. what am i doing wrong. tanks a lot, christian |
|
Christian,
The way SPSS processes syntax is somewhat different if it is in an include file. I think the difference you are running into here is that you need to indent the second and subsequent lines of a command by at least one space. So instead of ... variable labels v1 'blabla' /v2 'blabla2' ... you need ... variable labels v1 'blabla' /v2 'blabla2' Hth john -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Christian Deindl Sent: 09 July 2007 16:47 To: [hidden email] Subject: problems with include I have to prepare a huge dataset. in order to keep trace of all the transformations I write little pieces of syntax and combine them using "include" but every time I have a "variable labels" command spss give me the following message: variable labels v1 'blabla' /v2 'blabla2' >Error # 1 on line 20. Command name: /v2 >The first word in the line is not recognized as an SPSS command. >This command not executed. >Note # 214 on line 20. Command name: /v2 >Due to an error, INSERT and 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 INSERT and INCLUDE >processing has been terminated, and all outstanding PRESERVE commands have >been undone. what am i doing wrong. tanks a lot, christian |
|
In reply to this post by Christian Deindl
When you INCLUDE files the syntax must follow batch syntax rules. The
critical rule you are violating here is to start the continuation of a command after column 1. The flip side of the rule is that the first line of the rule must start in column 1. You can find the details in help. Note that the INSERT command is more flexible about the format of the syntax. Once again, look to the details in Help. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Christian Deindl Sent: Monday, July 09, 2007 9:47 AM To: [hidden email] Subject: problems with include I have to prepare a huge dataset. in order to keep trace of all the transformations I write little pieces of syntax and combine them using "include" but every time I have a "variable labels" command spss give me the following message: variable labels v1 'blabla' /v2 'blabla2' >Error # 1 on line 20. Command name: /v2 >The first word in the line is not recognized as an SPSS command. >This command not executed. >Note # 214 on line 20. Command name: /v2 >Due to an error, INSERT and 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 INSERT and INCLUDE >processing has been terminated, and all outstanding PRESERVE commands have >been undone. what am i doing wrong. tanks a lot, christian |
|
In reply to this post by Christian Deindl
The INCLUDE command follows batch rules; so all command continuation lines must be indented at least one space.
INSERT is more flexible and by default follows interactive rules. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Christian Deindl Sent: Monday, July 09, 2007 10:47 AM To: [hidden email] Subject: problems with include I have to prepare a huge dataset. in order to keep trace of all the transformations I write little pieces of syntax and combine them using "include" but every time I have a "variable labels" command spss give me the following message: variable labels v1 'blabla' /v2 'blabla2' >Error # 1 on line 20. Command name: /v2 >The first word in the line is not recognized as an SPSS command. >This command not executed. >Note # 214 on line 20. Command name: /v2 >Due to an error, INSERT and 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 INSERT and INCLUDE >processing has been terminated, and all outstanding PRESERVE commands have >been undone. what am i doing wrong. tanks a lot, christian |
|
In reply to this post by Christian Deindl
Use INSERT instead of INCLUDE. It will use interactive line endings. If your version is too old to have INSERT, you'll need to do the indenting suggested in other replies.
Jonathan Fry SPSS Inc. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Christian Deindl Sent: Monday, July 09, 2007 10:47 AM To: [hidden email] Subject: problems with include I have to prepare a huge dataset. in order to keep trace of all the transformations I write little pieces of syntax and combine them using "include" but every time I have a "variable labels" command spss give me the following message: variable labels v1 'blabla' /v2 'blabla2' >Error # 1 on line 20. Command name: /v2 >The first word in the line is not recognized as an SPSS command. >This command not executed. >Note # 214 on line 20. Command name: /v2 >Due to an error, INSERT and 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 INSERT and INCLUDE >processing has been terminated, and all outstanding PRESERVE commands have >been undone. what am i doing wrong. tanks a lot, christian |
|
insert works fine.
thanks a lot for all replies. christian Fry, Jonathan B. schrieb: > Use INSERT instead of INCLUDE. It will use interactive line endings. If your version is too old to have INSERT, you'll need to do the indenting suggested in other replies. > > Jonathan Fry > SPSS Inc. > > -----Original Message----- > From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Christian Deindl > Sent: Monday, July 09, 2007 10:47 AM > To: [hidden email] > Subject: problems with include > > I have to prepare a huge dataset. in order to keep trace of all the > transformations I write little pieces of syntax and combine them using > "include" > > but every time I have a > "variable labels" command spss give me the following message: > > variable labels v1 'blabla' > /v2 'blabla2' > > >Error # 1 on line 20. Command name: /v2 > >The first word in the line is not recognized as an SPSS command. > >This command not executed. > > > >Note # 214 on line 20. Command name: /v2 > >Due to an error, INSERT and 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 INSERT and INCLUDE > >processing has been terminated, and all outstanding PRESERVE commands have > >been undone. > > > > what am i doing wrong. > > tanks a lot, > > christian > -- __________________ Christian Deindl Universität Zürich Soziologisches Institut Andreasstr. 15 CH - 8050 Zürich Tel: 0041/(0)44/635 23 46 http://www.suz.unizh.ch/ages |
| Free forum by Nabble | Edit this page |
