Date: Thu, 1 Dec 2005 11:15:56 -0500
Reply-To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject: Re: which quoting function to use?
before all other things, try to change the error in line:
%count(new_schedule=%str(&schedule);
it should be:
%count(new_schedule=%str(&schedule)) ;
On Thu, 1 Dec 2005 07:41:52 -0800, Jerry <greenmt@GMAIL.COM> wrote:
>Hi,
>
>I got the following error message in the log.
>
>=================================
>..skipped part....
>MLOGIC(COUNT): Beginning execution.
>SYMBOLGEN: Macro variable NEW_SCHEDULE resolves to Weekend Activitiy -
>Swim, Hike, Jog.
>NOTE: Line generated by the macro variable "NEW_SCHEDULE".
>1107 Weekend Activitiy - Swim, Hike, Jog
> _________
> 180
>ERROR: All positional parameters must precede keyword parameters.
>MLOGIC(COUNT): Ending execution.
>..skipped part....
>==================================
>
>The code which generated the above error is as follows
>
>===========================
>/*skipped part*/
>
>data _null_;
> set abc;
> if _N_=1 then do;
> schedule=substr(plan, 1);
> call symput ('schedule', trim(left(schedule)));
>end;
>run;
>
>%count(new_schedule=%str(&schedule);
>
>/*skipped part*/
>==============================
>
>I think that not masking the comma contained in "Weekend Activitiy -
>Swim, Hike, Jog."casued the error,
>
>so I changed
>schedule=substr(plan, 1);
>to
>schedule=%str(substr(plan, 1));
>
>
>Frustratingly, it still didn't work.
>
>Please offer me some insights to help me fix this problem. Thank you!!!
>
>Jerry
|