BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ilearnsas
Obsidian | Level 7

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? 

 

1 ACCEPTED SOLUTION
4 REPLIES 4
ilearnsas
Obsidian | Level 7

Could you please let me know where i should be using single quotes? I already used the double quotes in the  in=?

Tom
Super User Tom
Super User

@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.

Kurt_Bremser
Super User

@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. 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1014 views
  • 4 likes
  • 3 in conversation