Date: Mon, 24 Nov 2003 16:56:34 +0100
Reply-To: "Groeneveld, Jim" <jim.groeneveld@VITATRON.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Groeneveld, Jim" <jim.groeneveld@VITATRON.COM>
Subject: Re: Macro Problem
Content-Type: text/plain; charset="windows-1255"
Hi Gadi,
I'm not sure, but the error report indicates expecting a datetime constant, not a date constant, which you issued.
Regards - Jim.
--
. . . . . . . . . . . . . . . .
Jim Groeneveld, MSc.
Biostatistician
Science Team
Vitatron B.V.
Meander 1051
6825 MJ Arnhem
Tel: +31/0 26 376 7365
Fax: +31/0 26 376 7305
Jim.Groeneveld@Vitatron.com
www.vitatron.com
My computer has the solutions, I have the problems.
[common disclaimer]
-----Original Message-----
From: GADI_B@MALAM.COM [mailto:GADI_B@MALAM.COM]
Sent: Monday, November 24, 2003 16:38
To: SAS-L@LISTSERV.UGA.EDU
Subject: Macro Problem
Hi,
I have to macro variable named FDA and TDA.
FDA has a value of 01OCT2002
TDA has a value of 01OCT2003
I would to use them is this statement:
Proc gplot
plot cpu_sachar_cics*date cpu_sachar_mpm*date / overlay haxis="&fda"d.."&tda"d by month legend vaxis=axis1;
When I run the program I get:
224 proc gplot;
225 plot cpu_meches_cics*date cpu_meches_mpm*date / overlay haxis="&fda"d.."&tda"d by month
225! legend vaxis=axis1;
SYMBOLGEN: Macro variable FDA resolves to 01OCT2002
SYMBOLGEN: Macro variable TDA resolves to 01OCT2003
NOTE 141-205: SCL source line.
225 plot cpu_meches_cics*date cpu_meches_mpm*date / overlay haxis="&fda"d.."&tda"d by month
-
22
225! legend vaxis=axis1;
ERROR 22-322: Syntax error, expecting one of the following: a numeric constant,
a datetime constant, ;, ',', ANNOTATE, AREAS, AUTOHREF, AUTOVREF, C, CAUTOHREF,
CAUTOVREF, CAXIS, CFRAME, CHREF, COUTLINE, CTEXT, CVREF, DATAORDER, DESCRIPTION,
FRAME, HAXIS, HMINOR, HREF, HTML, HTML_LEGEND, HZERO, IFRAME, IMAGESTYLE,
LAUTOHREF, LAUTOVREF, LEGEND, LHREF, LVREF, NAME, NOAXIS, NOFRAME, NOLEGEND,
OVERLAY, REGEQN, SKIPMISS, TO, VAXIS, VMINOR, VREF, VREVERSE, VZERO.
NOTE: SCL source line.
How can I fi this?
TIA
Gadi
|