BookmarkSubscribeRSS Feed
Aditi24
Obsidian | Level 7

Hi, I need to deliver below functionalities in SAS by making calls to the REST API.

 

1. Upload a file- It will require 4  inputs which are, PROJECT-ID, DATA-LOCATION, local file path of the dataset along with the authentication token.

The ProjectID and Data-location is to identify exactly where the file will get upload on the API and it serves as the target location.

 

 

 

2. To check if user have permission on this folder(identified by the PROJECT-ID): It will have 3 inputs-username,list of users, authentication token. This is a GET request which looks something like this in JAVA-

HttpGet request = new HttpGet(MLMPService.getInstance().buildURI("/user/" + username + "/permission/item/" + this.getID(), ticket).build());

 

3. To check whether the file has been successfully upload. This again will be a GET request on the API.

 

Please help me to get this implemented in SAS.

1 REPLY 1
snoopy369
Barite | Level 11
Sounds like you need PROC HTTP, that's fairly similar to what you may be familiar with in Java/etc.

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 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
  • 1 reply
  • 1364 views
  • 0 likes
  • 2 in conversation