02-23-2012 06:17 AM
Hi I am getting popup message while using below code.
data _null_ ;
file _webout ;
but getting error while using macro variable in above alert.
%let Trigger_Button = ALL Buttons;
25 + data _null_ ;
26 + file _webout ;
28 + put val;
29 + run;
The SAS System
NOTE: Line generated by the macro variable "TRIGGER_BUTTON".
NOTE 49-169: The meaning of an identifier after a quoted string may change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended.
ERROR 388-185: Expecting an arithmetic operator.
ERROR 76-322: Syntax error, statement will be ignored.
Any one help me how to use macro variable along with comment in above
02-23-2012 09:55 AM
Your quoting is messed up. If you want to have a dquote character inside of string that is quoted with that character then double it inside the string.
Also why are you assigning the value to a variable instead of just using it in the put statement?