LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2010, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 24 Sep 2010 08:46:50 -0400
Reply-To:     Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:      Re: COMPARING DATE VALUES XXXX

you have to make a date-constant of the variable &iddate, like:

DATA &OUT;

SET &OUT;

IF N = &I AND ID_DATE ^= INPUT("&IDDATE"d,DATE9.) THEN CLONE = 1;

ELSE CLONE = 0;

RUN;

Gerhard

On Fri, 24 Sep 2010 08:30:03 -0400, Dan Abner <dan.abner99@GMAIL.COM> wrote:

>Hello all, > >I have the following code: > > >DATA &OUT; > >SET &OUT; > >IF N = &I AND ID_DATE ^= INPUT(&IDDATE,DATE9.) THEN CLONE = *1*; > >ELSE CLONE = *0*; > >RUN; > >And I am getting the following error: > > > >484 > >SYMBOLGEN: Macro variable OUT resolves to ADUS4 > >485 DATA &OUT; > >SYMBOLGEN: Macro variable OUT resolves to ADUS4 > >486 SET &OUT; > >487 IF N = &I AND ID_DATE ^= INPUT(&IDDATE,DATE9.) THEN CLONE = 1; > >SYMBOLGEN: Macro variable I resolves to 500 > >SYMBOLGEN: Macro variable IDDATE resolves to 08SEP2009 > >NOTE: Line generated by the macro variable "IDDATE". > >1 08SEP2009 > >------- > >22 > >ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, >+, -, /, <, > ><=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, > >NOTIN, OR, ^=, |, ||, ~=. > >I'm sure this is something simple, but I could use some help. > > > >Thanks, > > > >Dan


Back to: Top of message | Previous page | Main SAS-L page