BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Resa
Pyrite | Level 9

We are trying to make use of the REST Transformation (DIS v4.904) in order to retrieve data using PROC HTTP. However in our environment we have to specify a proxy (as also shown in this example for PROC HTTP).

As far as I can determine the transformation does not provide the possibility for setting either the proxyhost or proxyport.

 

Am I overlooking something?

If not, did anyone make a "User Transformation" based on the REST Transformation including the possibility to specify a proxy? 

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

You could define the proxy as per Example 5: Specify A Proxy In a Macro Variable and have this as pre-code in your transformation.

View solution in original post

4 REPLIES 4
Patrick
Opal | Level 21

You could define the proxy as per Example 5: Specify A Proxy In a Macro Variable and have this as pre-code in your transformation.

Resa
Pyrite | Level 9

@Patrick thanks for the suggestion.

 

The solution as proposed is indeed a workable solution and does the job.

Personally I am not a big fan of either pre- or postcode since it is easily overlooked but for now this seems the only way.

 

My personal opinion still is that the transformation should provide the possiblity to opt for proxy settings. 

But for now this works.

Patrick
Opal | Level 21

@Resa Agree with you in regards of pre- and post-code and also that ideally there should be a parameter available - could even be just another input field where one can add any not covered parameters as key/value pairs.

What I've been doing in the past is define an "init" custom transformation where I create all these additional environmental setup - or if used only rarely then even a user written transformation instead of pre- or post-code just so this "extra" is clearly visible in the flow.

KamrynJohns
Calcite | Level 5

Dealing with proxy settings in DI Studio can be a real head-scratcher, huh? You're spot on that the REST Transformation doesn't seem to offer a way to set proxy details.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 554 views
  • 2 likes
  • 3 in conversation