Date: Thu, 15 Dec 2005 20:22:30 -0500
Reply-To: Raynald Levesque <rlevesque@videotron.ca>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Raynald Levesque <rlevesque@videotron.ca>
Subject: Re: Coding suggestion: Begin & end of syntax files
In-Reply-To: <5.1.0.14.2.20051215130934.06b58c60@pop.mindspring.com>
Content-type: text/plain; charset=us-ascii
Hi Richard
I follow a similar convention however, instead of using comments, I prefer
to use TITLE commands
TITLE *** Begin TDS ANOVA.SPS *** .
<code>
TITLE *** End TDS ANOVA.SPS *** .
I usually run jobs using a master syntax file that calls many syntax files.
When my syntax is finished, I click on a button that replaces all "TITLE" in
the left pane of the viewer with the content of the right pane of the
respective TITLE. (This script is file #12 of
http://www.spsstools.net/SampleScripts.htm#OutputDoc )
This works for me since I rarely print spo (so I do not use TITLE for what
it is designed for).
When there is an error in the output (heck, nobody's perfect...hi! hi! hi! )
it is very quick to determine in which syntax file this occurs. When I
export the spo to Excel (using a script), I also export the TITLEs and print
them in red, again this makes it trivial to quickly determine the synatx
that generated any object exported to Excel.
Regards
Raynald Levesque Raynald@spsstools.net
Visit my SPSS site: http://www.spsstools.net
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Richard Ristow
Sent: December 15, 2005 1:14 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Coding suggestion: Begin & end of syntax files
This is a coding convention I use, to make the SPSS journal easier to
understand: Mark the beginning and end of syntax files, so you can
identify syntax in the journal that came from syntax files. I use
comments like this:
/* ................. Begin TDS ANOVA.SPS ................ */
<code>
/* ................. End TDS ANOVA.SPS ................ */.
Note the period following the closing comment. It prevents a "Missing
command terminator - OK to run?" warning message.