Date: Thu, 1 Mar 2001 19:24:22 -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: Production mode error question
In-Reply-To: <4214710513.983467254@emaguin.ssw.buffalo.edu>
Content-Type: text/plain; charset="us-ascii"
Hello Gene!
If you look at an *.spp file (a production file), you will see that the
syntax to be run by the production job is shown as part of an INCLUDE
statement.
Thus note #123 refers to an error in the syntax file.
Anytime an error occurs in an INCLUDE file processing of the include file
stops. As a result, the remaining of the job is most likely incorrect.
To avoid this error I would suggest the following approach:
SAVE OUTFILE='mydata.sav'
COMPUTE testvar=(M1R25REC EQ 88).
COMPUTE dummy=1.
AGGREGATE
/OUTFILE='C:\temp\AGGR.SAV'
/BREAK=dummy
/nbcases = SUM(testvar).
MATCH FILES /FILE=*
/TABLE='C:\temp\AGGR.SAV'
/BY dummy.
DO IF nb>0.
*Place your current syntax here.
* there will not be any error because there are at least one case.
ELSE.
*do whatever needs to be done when there are no cases.
DO END.
GET FILE='mydata.sav'.
HTH
Raynald Levesque rlevesque@videotron.ca
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
emaguin@ACSU.BUFFALO.EDU
Sent: Thursday, March 01, 2001 5:21 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Production mode error question
All,
In production mode i run a file containing the following commands (among
many others):
1403 TEMPORARY.
1404 SELECT IF (M1R25REC EQ 88).
1405 FREQUENCIES M1R25AGE M1R25ONS.
1406
I receive the following messages (my comments are in <>).
Warnings
No cases were input to this procedure. Either there are none in the working
data file or all of them have been filtered out.
This command is not executed.
<This is true. This particular analysis could easily have no cases in it.
So no surprise. Now the surprise.>
>Note # 213
>Due to an error, INCLUDE file processing has been terminated. All
>transformations since the last procedure command have been discarded.
>Note # 236
>All outstanding macros have been terminated, all include processing has
>been terminated, and all outstanding PRESERVE commands have been undone.
<What is the error referred to? I assume the include file reference in
Note#213 refers to the fact that the syntax file is included in the the
production job file. Is the error the warning i received? I'm stumped. Oh,
yes i don't have any column 1 problems. The MXWARN parameter is at the
default value of 10.>
Thanks, Gene Maguin