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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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