Hi, I am trying to get qualtrics surveys to read into SAS directly using the PROC HTTP method. I am having trouble getting SAS to destinguish between surveys from qualtrics and call them in, so I moved to R. My R code is below and allows me to call in both surveys into R just fine. However, I need to do this in SAS, so can someone help me translate this into SAS please? I also have my preliminary SAS code below, but it isn't complete or working (seems like there needs to be a way to call each individual survey as well). Thank you! filename response temp encoding="utf-8" lrecl= 1000000;
proc http
url="https://HOSTNAME.ca1.qualtrics.com/WRAPI/ControlPanel/api.php?Request=getSurveys&User=USERID$Token=TOKEN&version=2.4&Format=JSON"
method="GET"
out= response;
run; #############R CODE############################ ## qualtRics required (in R CRAN archives) require(qualtRics) # sets path so R knows where to look for my files setwd("C/Users/#########PATH##########") # print the current directory getwd() ## Input appropriate API token and URL registerOptions(api_token="TOKEN", root_url="https://ROOT.ca1.qualtrics.com") ## gets specific surveys Survey1<- getSurvey(surveyID = "SURVEYID") Survey2<- getSurvey(surveyID ="SURVEYID" ) #########################################
... View more