Hi
facing a weird challenges, in my scenario, I am building an prompted STP which would faciliate the user to enter time, date , which gets pass on to a third party database, which requires me to add " ' " to the value.
The challenge is as follow, due to the value generated by the prompt does not contain value , I am running a data step wherein I am creating a colum with the prompt value and then appending the " ' " to the column value and finally calling call SYMPUT to create a macro variable, Please find enclosd the sample code
%let t1 = 10:30:00;
%let t2 = 15:30:00;
%let tdate = 08Oct2007;
data sasinput.abc;
a = "&t1";
a1="'"|| a || "'";
call symput('time1',a1);
%put &time1;
b = "&t2";
*b1="'"|| b || "'";
call symput("time2",b);
%put &time2;
d = "&tdate";
*d1="'"|| d || "'";
call symput("date1",d);
%put &date1;
run;
This code runs fine in base sas , but if tried to run in STP , it does not resolve the macro variable created via SYMPUT
Message was edited by: Danny Dsouza