Running syntax [*.sps] from within another syntax file - how to do?

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

Running syntax [*.sps] from within another syntax file - how to do?

Mark Webb-5
I'm struggling to find a usable references to do this. Found a reference to a program runsyntx. This looks awkward & I'm sure there is an easier way.
All the references I get assume one opens the syntax file and follow the GUI - Run syntax
--
Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946

Skype       tomarkwebb
Email       [hidden email] 
Reply | Threaded
Open this post in threaded view
|

Re: Running syntax [*.sps] from within another syntax file - how to do?

Melissa Ives

Look at the Command Syntax Reference for INSERT (or the older INCLUDE command)

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb
Sent: Wednesday, March 07, 2012 7:58 AM
To: [hidden email]
Subject: [SPSSX-L] Running syntax [*.sps] from within another syntax file - how to do?

 

I'm struggling to find a usable references to do this. Found a reference to a program runsyntx. This looks awkward & I'm sure there is an easier way.
All the references I get assume one opens the syntax file and follow the GUI - Run syntax

--
Mark Webb
 
Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946
 
Skype       tomarkwebb
Email       [hidden email] 


PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

Re: Running syntax [*.sps] from within another syntax file - how to do?

Mark Webb-5
Thanks for this Melissa - when I try it I run into the following problems - any suggestions?

I want to open file store1.sav and run the StandardiseFileFormats.sps syntax file.
This syntax files run perfectly if the GUI is used. I start with no sav file open.

My syntax
Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.

Error report

>Error # 4293 on line 13 in column 1024.  Text: (End of Command)
>The variable list is empty.
>Execution of this command stops.

>Error # 4390 on line 13 in column 1024.  Text: (End of Command)
>No format was specified where one was required.

>Note # 214 on line 13.  Command name: Formats
>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
>PASW Statistics.

>Note # 236
>All outstanding macros have been terminated, all INSERT and INCLUDE processing
>has been terminated, and all outstanding PRESERVE commands have been undone.




Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946

Skype       tomarkwebb
Email       [hidden email] 

On 2012/03/07 04:13 PM, Melissa Ives wrote:

Look at the Command Syntax Reference for INSERT (or the older INCLUDE command)

 

From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Mark Webb
Sent: Wednesday, March 07, 2012 7:58 AM
To: [hidden email]
Subject: [SPSSX-L] Running syntax [*.sps] from within another syntax file - how to do?

 

I'm struggling to find a usable references to do this. Found a reference to a program runsyntx. This looks awkward & I'm sure there is an easier way.
All the references I get assume one opens the syntax file and follow the GUI - Run syntax

--
Mark Webb
 
Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946
 
Skype       tomarkwebb
Email       [hidden email] 


PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.
Reply | Threaded
Open this post in threaded view
|

Re: Running syntax [*.sps] from within another syntax file - how to do?

Bruce Weaver
Administrator
Does syntax file StandardiseFileFormats.sps work when you run it interactively?  If so, try changing SYNTAX=BATCH to SYNTAX = INTERACTIVE for your INSERT FILE.

HTH.


Mark Webb-5 wrote
Thanks for this Melissa - when I try it I run into the following
problems - any suggestions?

I want to open file store1.sav and run the StandardiseFileFormats.sps
syntax file.
This syntax files run perfectly if the GUI is used. I start with no sav
file open.

My syntax
Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.

Error report

 >Error # 4293 on line 13 in column 1024.  Text: (End of Command)
 >The variable list is empty.
 >Execution of this command stops.

 >Error # 4390 on line 13 in column 1024.  Text: (End of Command)
 >No format was specified where one was required.

 >Note # 214 on line 13.  Command name: Formats
 >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
 >PASW Statistics.

 >Note # 236
 >All outstanding macros have been terminated, all INSERT and INCLUDE
processing
 >has been terminated, and all outstanding PRESERVE commands have been
undone.




Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946

Skype       tomarkwebb
Email       [hidden email]


On 2012/03/07 04:13 PM, Melissa Ives wrote:
>
> Look at the Command Syntax Reference for INSERT (or the older INCLUDE
> command)
>
> *From:*SPSSX(r) Discussion [mailto:[hidden email]] *On
> Behalf Of *Mark Webb
> *Sent:* Wednesday, March 07, 2012 7:58 AM
> *To:* [hidden email]
> *Subject:* [SPSSX-L] Running syntax [*.sps] from within another syntax
> file - how to do?
>
> I'm struggling to find a usable references to do this. Found a
> reference to a program runsyntx. This looks awkward & I'm sure there
> is an easier way.
> All the references I get assume one opens the syntax file and follow
> the GUI - Run syntax
>
> --
> Mark Webb
>
> Line +27 (21) 786 4379
> Cell +27 (72) 199 1000 [Poor reception]
> Fax  +27 (86) 260 1946
>
> Skype       tomarkwebb
> [hidden email]  <mailto:[hidden email]>
>
> ------------------------------------------------------------------------
> PRIVILEGED AND CONFIDENTIAL INFORMATION
> This transmittal and any attachments may contain PRIVILEGED AND
> CONFIDENTIAL information and is intended only for the use of the
> addressee. If you are not the designated recipient, or an employee
> or agent authorized to deliver such transmittals to the designated
> recipient, you are hereby notified that any dissemination,
> copying or publication of this transmittal is strictly prohibited. If
> you have received this transmittal in error, please notify us
> immediately by replying to the sender and delete this copy from your
> system. You may also call us at (309) 827-6026 for assistance.
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Running syntax [*.sps] from within another syntax file - how to do?

Melissa Ives
What is being referenced regarding  " line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required."
It looks like it means within the inserted file there is an error.

I always use syntax, so do not have any experience with including an interactive syntax.  Bruce would have to say more about that.

Also--I never got your original question, just Bruce's reply.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Bruce Weaver
Sent: Wednesday, March 07, 2012 9:27 AM
To: [hidden email]
Subject: Re: [SPSSX-L] Running syntax [*.sps] from within another syntax file - how to do?

Does syntax file StandardiseFileFormats.sps work when you run it interactively?  If so, try changing SYNTAX=BATCH to SYNTAX = INTERACTIVE for your INSERT FILE.

HTH.



Mark Webb-5 wrote

>
> Thanks for this Melissa - when I try it I run into the following
> problems - any suggestions?
>
> I want to open file store1.sav and run the StandardiseFileFormats.sps
> syntax file.
> This syntax files run perfectly if the GUI is used. I start with no
> sav file open.
>
> My syntax
> Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
> Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
> SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.
>
> Error report
>
>  >Error # 4293 on line 13 in column 1024.  Text: (End of Command)
> >The variable list is empty.
>  >Execution of this command stops.
>
>  >Error # 4390 on line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required.
>
>  >Note # 214 on line 13.  Command name: Formats  >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  >PASW Statistics.
>
>  >Note # 236
>  >All outstanding macros have been terminated, all INSERT and INCLUDE
> processing  >has been terminated, and all outstanding PRESERVE
> commands have been undone.
>
>
>
>
> Mark Webb
>
> Line +27 (21) 786 4379
> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>
> Skype       tomarkwebb
> Email       targetlinkmark@
>
>
> On 2012/03/07 04:13 PM, Melissa Ives wrote:
>>
>> Look at the Command Syntax Reference for INSERT (or the older INCLUDE
>> command)
>>
>> *From:*SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] *On Behalf Of *Mark
>> Webb
>> *Sent:* Wednesday, March 07, 2012 7:58 AM
>> *To:* SPSSX-L@.UGA
>> *Subject:* [SPSSX-L] Running syntax [*.sps] from within another
>> syntax file - how to do?
>>
>> I'm struggling to find a usable references to do this. Found a
>> reference to a program runsyntx. This looks awkward & I'm sure there
>> is an easier way.
>> All the references I get assume one opens the syntax file and follow
>> the GUI - Run syntax
>>
>> --
>> Mark Webb
>>
>> Line +27 (21) 786 4379
>> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>>
>> Skype       tomarkwebb
>> Emailtargetlinkmark@  &lt;mailto:targetlinkmark@&gt;
>>
>> ---------------------------------------------------------------------
>> --- PRIVILEGED AND CONFIDENTIAL INFORMATION This transmittal and any
>> attachments may contain PRIVILEGED AND CONFIDENTIAL information and
>> is intended only for the use of the addressee. If you are not the
>> designated recipient, or an employee or agent authorized to deliver
>> such transmittals to the designated recipient, you are hereby
>> notified that any dissemination, copying or publication of this
>> transmittal is strictly prohibited. If you have received this
>> transmittal in error, please notify us immediately by replying to the
>> sender and delete this copy from your system. You may also call us at
>> (309) 827-6026 for assistance.
>


-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Running-syntax-sps-from-within-another-syntax-file-how-to-do-tp5544160p5544449.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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

PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.

=====================
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: Running syntax [*.sps] from within another syntax file - how to do?

Bruce Weaver
Administrator
MI:  "I always use syntax, so do not have any experience with including an interactive syntax.  Bruce would have to say more about that."

From the Fine Manual entry for INSERT (http://publib.boulder.ibm.com/infocenter/spssstat/v20r0m0/index.jsp?topic=%2Fcom.ibm.spss.statistics.help%2Fmi_analysis.htm):

SYNTAX Keyword (INSERT command)

The optional SYNTAX keyword specifies the syntax rules that apply to the inserted file. The keyword is followed by an equals sign (=) and one of the following alternatives:

INTERACTIVE
Each command must end with a period. Periods can appear anywhere within the command, and commands can continue on multiple lines, but a period as the last non-blank character on a line is interpreted as the end of the command. Continuation lines and new commands can start anywhere on a new line. These are the "interactive" rules in effect when you select and run commands in a syntax window. This is the default if the SYNTAX keyword is omitted.

BATCH
Each command must start at the beginning of a new line (no blank spaces before the start of the command), and continuation lines must be indented at least one space. If you want to indent new commands, you can use a plus sign, dash, or period as the first character at the start of the line and then indent the actual command. The period at the end of the command is optional. This setting is compatible with the syntax rules for command files included with the INCLUDE command.


Melissa Ives wrote
What is being referenced regarding  " line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required."
It looks like it means within the inserted file there is an error.

I always use syntax, so do not have any experience with including an interactive syntax.  Bruce would have to say more about that.

Also--I never got your original question, just Bruce's reply.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Bruce Weaver
Sent: Wednesday, March 07, 2012 9:27 AM
To: [hidden email]
Subject: Re: [SPSSX-L] Running syntax [*.sps] from within another syntax file - how to do?

Does syntax file StandardiseFileFormats.sps work when you run it interactively?  If so, try changing SYNTAX=BATCH to SYNTAX = INTERACTIVE for your INSERT FILE.

HTH.



Mark Webb-5 wrote
>
> Thanks for this Melissa - when I try it I run into the following
> problems - any suggestions?
>
> I want to open file store1.sav and run the StandardiseFileFormats.sps
> syntax file.
> This syntax files run perfectly if the GUI is used. I start with no
> sav file open.
>
> My syntax
> Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
> Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
> SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.
>
> Error report
>
>  >Error # 4293 on line 13 in column 1024.  Text: (End of Command)
> >The variable list is empty.
>  >Execution of this command stops.
>
>  >Error # 4390 on line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required.
>
>  >Note # 214 on line 13.  Command name: Formats  >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  >PASW Statistics.
>
>  >Note # 236
>  >All outstanding macros have been terminated, all INSERT and INCLUDE
> processing  >has been terminated, and all outstanding PRESERVE
> commands have been undone.
>
>
>
>
> Mark Webb
>
> Line +27 (21) 786 4379
> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>
> Skype       tomarkwebb
> Email       targetlinkmark@
>
>
> On 2012/03/07 04:13 PM, Melissa Ives wrote:
>>
>> Look at the Command Syntax Reference for INSERT (or the older INCLUDE
>> command)
>>
>> *From:*SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] *On Behalf Of *Mark
>> Webb
>> *Sent:* Wednesday, March 07, 2012 7:58 AM
>> *To:* SPSSX-L@.UGA
>> *Subject:* [SPSSX-L] Running syntax [*.sps] from within another
>> syntax file - how to do?
>>
>> I'm struggling to find a usable references to do this. Found a
>> reference to a program runsyntx. This looks awkward & I'm sure there
>> is an easier way.
>> All the references I get assume one opens the syntax file and follow
>> the GUI - Run syntax
>>
>> --
>> Mark Webb
>>
>> Line +27 (21) 786 4379
>> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>>
>> Skype       tomarkwebb
>> Emailtargetlinkmark@  <mailto:targetlinkmark@>
>>
>> ---------------------------------------------------------------------
>> --- PRIVILEGED AND CONFIDENTIAL INFORMATION This transmittal and any
>> attachments may contain PRIVILEGED AND CONFIDENTIAL information and
>> is intended only for the use of the addressee. If you are not the
>> designated recipient, or an employee or agent authorized to deliver
>> such transmittals to the designated recipient, you are hereby
>> notified that any dissemination, copying or publication of this
>> transmittal is strictly prohibited. If you have received this
>> transmittal in error, please notify us immediately by replying to the
>> sender and delete this copy from your system. You may also call us at
>> (309) 827-6026 for assistance.
>


-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Running-syntax-sps-from-within-another-syntax-file-how-to-do-tp5544160p5544449.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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

PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.

=====================
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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Running syntax [*.sps] from within another syntax file - how to do?

Bruce Weaver
Administrator
That link wasn't quite right.  Try this --  http://publib.boulder.ibm.com/infocenter/spssstat/v20r0m0/index.jsp -- and search on INSERT FILE.

Bruce Weaver wrote
MI:  "I always use syntax, so do not have any experience with including an interactive syntax.  Bruce would have to say more about that."

From the Fine Manual entry for INSERT (http://publib.boulder.ibm.com/infocenter/spssstat/v20r0m0/index.jsp?topic=%2Fcom.ibm.spss.statistics.help%2Fmi_analysis.htm):

SYNTAX Keyword (INSERT command)

The optional SYNTAX keyword specifies the syntax rules that apply to the inserted file. The keyword is followed by an equals sign (=) and one of the following alternatives:

INTERACTIVE
Each command must end with a period. Periods can appear anywhere within the command, and commands can continue on multiple lines, but a period as the last non-blank character on a line is interpreted as the end of the command. Continuation lines and new commands can start anywhere on a new line. These are the "interactive" rules in effect when you select and run commands in a syntax window. This is the default if the SYNTAX keyword is omitted.

BATCH
Each command must start at the beginning of a new line (no blank spaces before the start of the command), and continuation lines must be indented at least one space. If you want to indent new commands, you can use a plus sign, dash, or period as the first character at the start of the line and then indent the actual command. The period at the end of the command is optional. This setting is compatible with the syntax rules for command files included with the INCLUDE command.


Melissa Ives wrote
What is being referenced regarding  " line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required."
It looks like it means within the inserted file there is an error.

I always use syntax, so do not have any experience with including an interactive syntax.  Bruce would have to say more about that.

Also--I never got your original question, just Bruce's reply.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Bruce Weaver
Sent: Wednesday, March 07, 2012 9:27 AM
To: [hidden email]
Subject: Re: [SPSSX-L] Running syntax [*.sps] from within another syntax file - how to do?

Does syntax file StandardiseFileFormats.sps work when you run it interactively?  If so, try changing SYNTAX=BATCH to SYNTAX = INTERACTIVE for your INSERT FILE.

HTH.



Mark Webb-5 wrote
>
> Thanks for this Melissa - when I try it I run into the following
> problems - any suggestions?
>
> I want to open file store1.sav and run the StandardiseFileFormats.sps
> syntax file.
> This syntax files run perfectly if the GUI is used. I start with no
> sav file open.
>
> My syntax
> Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
> Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
> SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.
>
> Error report
>
>  >Error # 4293 on line 13 in column 1024.  Text: (End of Command)
> >The variable list is empty.
>  >Execution of this command stops.
>
>  >Error # 4390 on line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required.
>
>  >Note # 214 on line 13.  Command name: Formats  >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  >PASW Statistics.
>
>  >Note # 236
>  >All outstanding macros have been terminated, all INSERT and INCLUDE
> processing  >has been terminated, and all outstanding PRESERVE
> commands have been undone.
>
>
>
>
> Mark Webb
>
> Line +27 (21) 786 4379
> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>
> Skype       tomarkwebb
> Email       targetlinkmark@
>
>
> On 2012/03/07 04:13 PM, Melissa Ives wrote:
>>
>> Look at the Command Syntax Reference for INSERT (or the older INCLUDE
>> command)
>>
>> *From:*SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] *On Behalf Of *Mark
>> Webb
>> *Sent:* Wednesday, March 07, 2012 7:58 AM
>> *To:* SPSSX-L@.UGA
>> *Subject:* [SPSSX-L] Running syntax [*.sps] from within another
>> syntax file - how to do?
>>
>> I'm struggling to find a usable references to do this. Found a
>> reference to a program runsyntx. This looks awkward & I'm sure there
>> is an easier way.
>> All the references I get assume one opens the syntax file and follow
>> the GUI - Run syntax
>>
>> --
>> Mark Webb
>>
>> Line +27 (21) 786 4379
>> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>>
>> Skype       tomarkwebb
>> Emailtargetlinkmark@  <mailto:targetlinkmark@>
>>
>> ---------------------------------------------------------------------
>> --- PRIVILEGED AND CONFIDENTIAL INFORMATION This transmittal and any
>> attachments may contain PRIVILEGED AND CONFIDENTIAL information and
>> is intended only for the use of the addressee. If you are not the
>> designated recipient, or an employee or agent authorized to deliver
>> such transmittals to the designated recipient, you are hereby
>> notified that any dissemination, copying or publication of this
>> transmittal is strictly prohibited. If you have received this
>> transmittal in error, please notify us immediately by replying to the
>> sender and delete this copy from your system. You may also call us at
>> (309) 827-6026 for assistance.
>


-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Running-syntax-sps-from-within-another-syntax-file-how-to-do-tp5544160p5544449.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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

PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.

=====================
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
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

PLEASE NOTE THE FOLLOWING: 
1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above.
2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/).
Reply | Threaded
Open this post in threaded view
|

Re: Running syntax [*.sps] from within another syntax file - how to do?

David Marso
Administrator
In reply to this post by Melissa Ives
FYI: From the FM!
INSERT command.
----
Limitations
The maximum line length for a command syntax file run via the INSERT command is 256
characters. Any characters beyond this limit are truncated.
----
SYNTAX Keyword
The optional SYNTAX keyword specifies the syntax rules that apply to the inserted file. The
keyword is followed by an equals sign (=) and one of the following alternatives:

INTERACTIVE Each command must end with a period. Periods can appear anywhere within the
command, and commands can continue on multiple lines, but a period as the last
non-blank character on a line is interpreted as the end of the command. Continuation
lines and new commands can start anywhere on a new line. These are the “interactive”
rules in effect when you select and run commands in a syntax window. This is the
default if the SYNTAX keyword is omitted.

BATCH Each command must start at the beginning of a new line (no blank spaces before the
start of the command), and continuation lines must be indented at least one space. If
you want to indent new commands, you can use a plus sign, dash, or period as the first
character at the start of the line and then indent the actual command. The period at the
end of the command is optional. This setting is compatible with the syntax rules for
command files included with the INCLUDE command.
Command syntax created with the Paste button in dialogs will work in either interactive or batch
modes. For more information on interactive and batch syntax rules, see Running Commands
on p. 39.
Melissa Ives wrote
What is being referenced regarding  " line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required."
It looks like it means within the inserted file there is an error.

I always use syntax, so do not have any experience with including an interactive syntax.  Bruce would have to say more about that.

Also--I never got your original question, just Bruce's reply.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Bruce Weaver
Sent: Wednesday, March 07, 2012 9:27 AM
To: [hidden email]
Subject: Re: [SPSSX-L] Running syntax [*.sps] from within another syntax file - how to do?

Does syntax file StandardiseFileFormats.sps work when you run it interactively?  If so, try changing SYNTAX=BATCH to SYNTAX = INTERACTIVE for your INSERT FILE.

HTH.



Mark Webb-5 wrote
>
> Thanks for this Melissa - when I try it I run into the following
> problems - any suggestions?
>
> I want to open file store1.sav and run the StandardiseFileFormats.sps
> syntax file.
> This syntax files run perfectly if the GUI is used. I start with no
> sav file open.
>
> My syntax
> Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
> Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
> SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.
>
> Error report
>
>  >Error # 4293 on line 13 in column 1024.  Text: (End of Command)
> >The variable list is empty.
>  >Execution of this command stops.
>
>  >Error # 4390 on line 13 in column 1024.  Text: (End of Command)  >No
> format was specified where one was required.
>
>  >Note # 214 on line 13.  Command name: Formats  >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  >PASW Statistics.
>
>  >Note # 236
>  >All outstanding macros have been terminated, all INSERT and INCLUDE
> processing  >has been terminated, and all outstanding PRESERVE
> commands have been undone.
>
>
>
>
> Mark Webb
>
> Line +27 (21) 786 4379
> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>
> Skype       tomarkwebb
> Email       targetlinkmark@
>
>
> On 2012/03/07 04:13 PM, Melissa Ives wrote:
>>
>> Look at the Command Syntax Reference for INSERT (or the older INCLUDE
>> command)
>>
>> *From:*SPSSX(r) Discussion [mailto:SPSSX-L@.UGA] *On Behalf Of *Mark
>> Webb
>> *Sent:* Wednesday, March 07, 2012 7:58 AM
>> *To:* SPSSX-L@.UGA
>> *Subject:* [SPSSX-L] Running syntax [*.sps] from within another
>> syntax file - how to do?
>>
>> I'm struggling to find a usable references to do this. Found a
>> reference to a program runsyntx. This looks awkward & I'm sure there
>> is an easier way.
>> All the references I get assume one opens the syntax file and follow
>> the GUI - Run syntax
>>
>> --
>> Mark Webb
>>
>> Line +27 (21) 786 4379
>> Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946
>>
>> Skype       tomarkwebb
>> Emailtargetlinkmark@  <mailto:targetlinkmark@>
>>
>> ---------------------------------------------------------------------
>> --- PRIVILEGED AND CONFIDENTIAL INFORMATION This transmittal and any
>> attachments may contain PRIVILEGED AND CONFIDENTIAL information and
>> is intended only for the use of the addressee. If you are not the
>> designated recipient, or an employee or agent authorized to deliver
>> such transmittals to the designated recipient, you are hereby
>> notified that any dissemination, copying or publication of this
>> transmittal is strictly prohibited. If you have received this
>> transmittal in error, please notify us immediately by replying to the
>> sender and delete this copy from your system. You may also call us at
>> (309) 827-6026 for assistance.
>


-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Running-syntax-sps-from-within-another-syntax-file-how-to-do-tp5544160p5544449.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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

PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.

=====================
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
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Running syntax [*.sps] from within another syntax file - how to do?

David Marso
Administrator
In reply to this post by Mark Webb-5
Mark,
  Has it occurred to you that posting the contents of StandardiseFileFormats.sps could provide a bit of context towards obtaining assistance from the list? ESP is highly overrated.
Reviewing the FM regarding the SYNTAX subcommand might also prove enlightening.
David
--
Mark Webb-5 wrote
Thanks for this Melissa - when I try it I run into the following
problems - any suggestions?

I want to open file store1.sav and run the StandardiseFileFormats.sps
syntax file.
This syntax files run perfectly if the GUI is used. I start with no sav
file open.

My syntax
Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.

Error report

 >Error # 4293 on line 13 in column 1024.  Text: (End of Command)
 >The variable list is empty.
 >Execution of this command stops.

 >Error # 4390 on line 13 in column 1024.  Text: (End of Command)
 >No format was specified where one was required.

 >Note # 214 on line 13.  Command name: Formats
 >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
 >PASW Statistics.

 >Note # 236
 >All outstanding macros have been terminated, all INSERT and INCLUDE
processing
 >has been terminated, and all outstanding PRESERVE commands have been
undone.




Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946

Skype       tomarkwebb
Email       [hidden email]


On 2012/03/07 04:13 PM, Melissa Ives wrote:
>
> Look at the Command Syntax Reference for INSERT (or the older INCLUDE
> command)
>
> *From:*SPSSX(r) Discussion [mailto:[hidden email]] *On
> Behalf Of *Mark Webb
> *Sent:* Wednesday, March 07, 2012 7:58 AM
> *To:* [hidden email]
> *Subject:* [SPSSX-L] Running syntax [*.sps] from within another syntax
> file - how to do?
>
> I'm struggling to find a usable references to do this. Found a
> reference to a program runsyntx. This looks awkward & I'm sure there
> is an easier way.
> All the references I get assume one opens the syntax file and follow
> the GUI - Run syntax
>
> --
> Mark Webb
>
> Line +27 (21) 786 4379
> Cell +27 (72) 199 1000 [Poor reception]
> Fax  +27 (86) 260 1946
>
> Skype       tomarkwebb
> [hidden email]  <mailto:[hidden email]>
>
> ------------------------------------------------------------------------
> PRIVILEGED AND CONFIDENTIAL INFORMATION
> This transmittal and any attachments may contain PRIVILEGED AND
> CONFIDENTIAL information and is intended only for the use of the
> addressee. If you are not the designated recipient, or an employee
> or agent authorized to deliver such transmittals to the designated
> recipient, you are hereby notified that any dissemination,
> copying or publication of this transmittal is strictly prohibited. If
> you have received this transmittal in error, please notify us
> immediately by replying to the sender and delete this copy from your
> system. You may also call us at (309) 827-6026 for assistance.
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Thank You All Re: Running syntax [*.sps] from within another syntax file - how to do?

Mark Webb-5
In reply to this post by Bruce Weaver
The suggestion to change BATCH to INTERACTIVE works perfectly - again many thanks.
Regards
Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception]
Fax  +27 (86) 260 1946

Skype       tomarkwebb
Email       [hidden email] 

On 2012/03/07 11:22 PM, Bruce Weaver wrote:
MI:  "I always use syntax, so do not have any experience with including an
interactive syntax.  Bruce would have to say more about that."

>From the Fine Manual entry for INSERT
(http://publib.boulder.ibm.com/infocenter/spssstat/v20r0m0/index.jsp?topic=%2Fcom.ibm.spss.statistics.help%2Fmi_analysis.htm):

SYNTAX Keyword (INSERT command)

The optional SYNTAX keyword specifies the syntax rules that apply to the
inserted file. The keyword is followed by an equals sign (=) and one of the
following alternatives:

INTERACTIVE
Each command must end with a period. Periods can appear anywhere within the
command, and commands can continue on multiple lines, but a period as the
last non-blank character on a line is interpreted as the end of the command.
Continuation lines and new commands can start anywhere on a new line. These
are the "interactive" rules in effect when you select and run commands in a
syntax window. This is the default if the SYNTAX keyword is omitted.

BATCH
Each command must start at the beginning of a new line (no blank spaces
before the start of the command), and continuation lines must be indented at
least one space. If you want to indent new commands, you can use a plus
sign, dash, or period as the first character at the start of the line and
then indent the actual command. The period at the end of the command is
optional. This setting is compatible with the syntax rules for command files
included with the INCLUDE command.



Melissa Ives wrote
What is being referenced regarding  " line 13 in column 1024.  Text: (End
of Command)  >No
format was specified where one was required."
It looks like it means within the inserted file there is an error.

I always use syntax, so do not have any experience with including an
interactive syntax.  Bruce would have to say more about that.

Also--I never got your original question, just Bruce's reply.

Melissa

-----Original Message-----
From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Bruce Weaver
Sent: Wednesday, March 07, 2012 9:27 AM
To: [hidden email]
Subject: Re: [SPSSX-L] Running syntax [*.sps] from within another syntax
file - how to do?

Does syntax file StandardiseFileFormats.sps work when you run it
interactively?  If so, try changing SYNTAX=BATCH to SYNTAX = INTERACTIVE
for your INSERT FILE.

HTH.



Mark Webb-5 wrote
Thanks for this Melissa - when I try it I run into the following
problems - any suggestions?

I want to open file store1.sav and run the StandardiseFileFormats.sps
syntax file.
This syntax files run perfectly if the GUI is used. I start with no
sav file open.

My syntax
Get File = 'C:\MyDocs\Chuck\GamePricing\store1.sav'.
Insert file = 'C:\MyDocs\Chuck\GamePricing\StandardiseFileFormats.sps'
SYNTAX=BATCH ERROR=STOP CD=YES ENCODING='UTF8'.

Error report

 >Error # 4293 on line 13 in column 1024.  Text: (End of Command)
The variable list is empty.
 >Execution of this command stops.

 >Error # 4390 on line 13 in column 1024.  Text: (End of Command)  >No
format was specified where one was required.

 >Note # 214 on line 13.  Command name: Formats  >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  >PASW Statistics.

 >Note # 236
 >All outstanding macros have been terminated, all INSERT and INCLUDE
processing  >has been terminated, and all outstanding PRESERVE
commands have been undone.




Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946

Skype       tomarkwebb
Email       targetlinkmark@


On 2012/03/07 04:13 PM, Melissa Ives wrote:
Look at the Command Syntax Reference for INSERT (or the older INCLUDE
command)

*From:*SPSSX(r) Discussion [[hidden email]] *On Behalf Of *Mark
Webb
*Sent:* Wednesday, March 07, 2012 7:58 AM
*To:* [hidden email]
*Subject:* [SPSSX-L] Running syntax [*.sps] from within another
syntax file - how to do?

I'm struggling to find a usable references to do this. Found a
reference to a program runsyntx. This looks awkward & I'm sure there
is an easier way.
All the references I get assume one opens the syntax file and follow
the GUI - Run syntax

--
Mark Webb

Line +27 (21) 786 4379
Cell +27 (72) 199 1000 [Poor reception] Fax  +27 (86) 260 1946

Skype       tomarkwebb
Emailtargetlinkmark@  &lt;[hidden email];

---------------------------------------------------------------------
--- PRIVILEGED AND CONFIDENTIAL INFORMATION This transmittal and any
attachments may contain PRIVILEGED AND CONFIDENTIAL information and
is intended only for the use of the addressee. If you are not the
designated recipient, or an employee or agent authorized to deliver
such transmittals to the designated recipient, you are hereby
notified that any dissemination, copying or publication of this
transmittal is strictly prohibited. If you have received this
transmittal in error, please notify us immediately by replying to the
sender and delete this copy from your system. You may also call us at
(309) 827-6026 for assistance.

        

-----
--
Bruce Weaver
bweaver@
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Running-syntax-sps-from-within-another-syntax-file-how-to-do-tp5544160p5544449.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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

PRIVILEGED AND CONFIDENTIAL INFORMATION
This transmittal and any attachments may contain PRIVILEGED AND
CONFIDENTIAL information and is intended only for the use of the
addressee. If you are not the designated recipient, or an employee
or agent authorized to deliver such transmittals to the designated
recipient, you are hereby notified that any dissemination,
copying or publication of this transmittal is strictly prohibited. If
you have received this transmittal in error, please notify us
immediately by replying to the sender and delete this copy from your
system. You may also call us at (309) 827-6026 for assistance.

=====================
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


-----
--
Bruce Weaver
[hidden email]
http://sites.google.com/a/lakeheadu.ca/bweaver/

"When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.

--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Running-syntax-sps-from-within-another-syntax-file-how-to-do-tp5544160p5545638.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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
.