BookmarkSubscribeRSS Feed
jatavravi100
Calcite | Level 5

Hi Team,

 

Can anyone guide me how can I download the csv file from tableau web server in SAS using SAS EG. When I say tableau web server that means while going through that path it asks credentials first and we need to enter server from the drop down. 

 

for example:

 

https://etb-prod.****.com/#/site/Home/export.csv

 

in above example link, when it go through site it asks to enter web server name for tableau and then throw an error 400 Bad Request.

 

Please suggest some code so that i can download the export csv file

4 REPLIES 4
Kurt_Bremser
Super User

The HTTP Procedure has options to supply credentials. After downloading, read the downloaded file. You can use a temporary file reference for this, so downloaded files don't clutter up your system.

jatavravi100
Calcite | Level 5

And what about selecting the tableau server?

jatavravi100
Calcite | Level 5
I did try the proc http with options webusername and webpassword but every timeI execute it says Bad request.

filename _bcin temp;
proc http
url = "https://etb-prod.****.com/#/site/Home/export.csv"
webusername = '*****'
webpassword='******'
;
run;
Kurt_Bremser
Super User

The URL contains the server name. If you need to go through a proxy, the HTTP procedure documentation tells you how to do that.

We can only supply code for websites which are publicly accessible; if you need to keep parts of the access (servername, credentials) private, your best bet is to get in touch with SAS technical support, as they have an automatic NDA while supporting you.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

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
  • 371 views
  • 1 like
  • 2 in conversation