Save all your current work, then open a new instance of SPSS. Make sure
that you put warnings, etc. into the output file. <edit> <options>
<viewer>. Cut-and-paste then run the syntax.
Does this demonstrate the problem you are talking about? If not please
restate your question in more detail.
Perhaps post a small data set that generates the problem.
Art
A...@DrKendall.org
Social Research Consultants
new file.
data list list/ x (f1).
begin data
1
2
3
4
5
end data
compute xsquared =x**2.
list.
data list list/ dodfcyr dodfcmo dodfcda latremyr latremmo latremda.
begin data
2006 03 15 2002 01 01
2005 06 30 2001 04 30
2006 03 15 2002 01 01
2005 06 30 2001 04 30
2006 03 15 2002 01 01
2006 03 15 2002 01 01
end data.
compute
los=(yrmoda(dodfcyr,dodfcmo,dodfcda)-yrmoda(latremyr,latremmo,latremda))/30.4375.
exe.
Correction, not an error mesage rather a warning message which follows
-
>Warning # 92
>The limit of MXWARNS warnings in this data pass has been printed. Further
>warnings have been suppressed.
If I comment out the compute that uses yrmoda, I do not get the warning.
Using syntax generate by the date wizard does not get the warning.
I do get per call warning messages when I use
compute forecewarn = sqrt (dosfcyr * -1).
So it isn't all computes.
Putting an execute between the two methods of getting los does not
eliminate the warning.
My idea that it has to to with yrmoda is strengthened because mxwarns
set to 12 does not get the message.
when you have only 5 cases you have 10 calls to yrmoda so you do not
exceed 10 calls to warning messages.
A GUESS: Yrmoda was supposed to have a warning message saying that
yrmoda was obsolete. The flag to mxwarns was set on each call, but a
call was not made to a specific warning message.
If you need finer distinctions than integer months, you might try "days"
or use ctime.days and then divide by 30.4375
Art
A...@DrKendall.org
Social Research Consultants
new file.
show mxwarns.
data list list/ dodfcyr dodfcmo dodfcda latremyr latremmo latremda.
begin data
2006 03 15 2002 01 01
2005 06 30 2001 04 30
2006 03 15 2002 01 01
2005 06 30 2001 04 30
2006 03 15 2002 01 01
2006 03 15 2002 01 01
end data.
COMPUTE endofstay = DATE.DMY(dodfcda, dodfcmo, dodfcyr).
COMPUTE beginstay = DATE.DMY(latremda, latremmo, latremyr).
COMPUTE lengthofstay = DATEDIF(endofstay, beginstay, "months").
compute
los=(yrmoda(dodfcyr,dodfcmo,dodfcda)-yrmoda(latremyr,latremmo,latremda))/30.4375.
exe.
Thanks for your work on this one. Your not using the yrmoda function
for years reminds of what a dinosaur programmer I am. I should attempt
to come of age. By the way I guess the question is, is this "MXWARNS"
message something SPSS should address, regardless?
Art