Hi
I am working on a proc http code and have the issue below?
The code I am using is something like this: (cannot disclose the actual path)
proc http
method="POST"
url="https://portal.companyname.com/external/requestLogin?"
ct="application/x-www-form-urlencoded"
proxyhost="&proxy_host."
proxyport=***
in="csrfmiddlewaretoken=*******&login_view-current_step=auth&auth-next=&auth-password=*******&auth-username=**@gmail.com"
headerout= out
out=response;
run;
The error I see in the log is below:
WARNING: Apparent symbolic reference LOGIN_VIEW not resolved.
WARNING: Apparent symbolic reference AUTH not resolved.
WARNING: Apparent symbolic reference AUTH not resolved.
WARNING: Apparent symbolic reference AUTH not resolved
How do I make sure sas does not take the in= part as a sas macro and take it as a value/login parameters instead?
These are just WARNINGS, the code should work. To avoid them, enclose the URL in single quotes.
These are just WARNINGS, the code should work. To avoid them, enclose the URL in single quotes.
Could you please let me know where i should be using single quotes? I already used the double quotes in the in=?
@ilearnsas wrote:
Could you please let me know where i should be using single quotes? I already used the double quotes in the in=?
The SAS macro processor will ignore macro triggers (& and %) inside of strings created using single quotes instead of double quotes.
If you are just typing the command then type single quote character instead of double quote character.
in='....&PROBLEM....'
If you are using macro expression or logic to generate the value of the IN= option then provide more details on what you are doing.
@ilearnsas wrote:
Could you please let me know where i should be using single quotes? I already used the double quotes in the in=?
And that is the "problem". Double quotes allow the macro processor to scan the enclosed string for macro triggers, single quotes prevent that. Replace the double quotes with single quotes.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: