I have a code in SAS.
proc sql;
create test as select * from test2 where user_name = &username;quit;
when I Run in SAS EG with %let username=Bob it runs normal.
But I need to run it with stored Process (variable username is internal parameter in connected user and I delete %let username=Bob from sas stored process code).
Stored Process brake with an error.
In log file I see variable:
_username=Bob but code in stored process can not find it. How to use this variable in SAS Stored process code? Thank you!