@SuryaKiran The code Logic looks fine. But its throwing error even though declaration of positional parameters are fine. SAS Log: 25 GOPTIONS ACCESSIBLE; 26 data _null_; 27 format partnos attach $50.; 28 do until(last.manager); 29 set demo; 30 by manager manager_email; 31 attach=catx(" ",attach,quote(strip(attachment))); 32 partnos=catx(' ',partnos,part); 33 end; 34 call execute(cats("%email_out(to=",quote(strip(manager_email)),",subject=",partnos,"attach=",attach,")")); ERROR: All positional parameters must precede keyword parameters. 34 call execute(cats("%email_out(to=",quote(strip(manager_email)),",subject=",partnos,"attach=",attach,")")); ___________ 49 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended. 34 call execute(cats("%email_out(to=",quote(strip(manager_email)),",subject=",partnos,"attach=",attach,")")); ______ 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, ^=, |, ||, ~=. 35 run; 36 37 GOPTIONS NOACCESSIBLE; 38 %LET _CLIENTTASKLABEL=; 39 %LET _CLIENTPROCESSFLOWNAME=; 40 %LET _CLIENTPROJECTPATH=; 41 %LET _CLIENTPROJECTPATHHOST=; 42 %LET _CLIENTPROJECTNAME=; 43 %LET _SASPROGRAMFILE=; 44 %LET _SASPROGRAMFILEHOST=; 2 The SAS System 03:02 Tuesday, November 27, 2018 ______________________________ 22 200 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, ), *, **, +, ',', -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=. ERROR 200-322: The symbol is not recognized and will be ignored. 45 46 ;*';*";*/;quit;run; ____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. NOTE: The SAS System stopped processing this step because of errors. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds 47 ODS _ALL_ CLOSE; 48 49 50 QUIT; RUN; 51
... View more