Date: Wed, 7 Mar 2012 13:27:50 -0800
Reply-To: Bruce Weaver <bruce.weaver@hotmail.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Bruce Weaver <bruce.weaver@hotmail.com>
Subject: Re: Running syntax [*.sps] from within another syntax file - how
to do?
In-Reply-To: <1331155368849-5545638.post@n5.nabble.com>
Content-Type: text/plain; charset=us-ascii
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:SPSSX-L@.UGA] On Behalf Of Bruce Weaver
>> Sent: Wednesday, March 07, 2012 9:27 AM
>> To: SPSSX-L@.UGA
>> 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
>> 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 LISTSERV@.UGA
>> (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
>> LISTSERV@.UGA (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."
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-tp5544160p5545649.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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
|