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

Hi

I need some help please. I have read most of the online posts on qualtrics data extraction using proc http in this community. 

After trial and error using SAS 9.4, i managed to reach this stage where i can download a data file from qualtrics.

(Not that i cannot go the easy way to download a CSV file in qualtrics directly, but i hope to achieve it programmatically to  automate the process intentionally

for another objective)

 

This is the data download script. 

 

Yiang_3-1707898971358.png

However when i use notepad to open the csv, i belief the format is incorrect.

 

Yiang_1-1707898478067.png

The problem is , i do not know how exactly how to specify in SAS the format i wish to download .

Qualtrics supports manual download of these formats

 

Yiang_4-1707899164472.png

When i asked the question to Qualtrics tech support, they suggested i check with SAS community instead.

I wish to seek some advice please. Thank you

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Hi @Yiang ,

 

I think that the process of exporting responses in Qualtrics requires two steps:

  • First, use the export-responses API to start the export, which might take some time to complete. In this call you can state what format you want. By default it is a ZIP file, which is what I think you are seeing in your attempt. See https://api.qualtrics.com/6b00592b9c013-start-response-export. The response from this call will contain a status and a progress ID that you could use to check status of the process.
  • Then, after the export is complete (you can either wait a reasonable time or check status with another API call), you can download the responses as you did -- but the format will have already been set in the first API call. See https://api.qualtrics.com/41296b6f2e828-get-response-export-file

SAS can process ZIP files if you decide that's easier to manage. 

 

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

3 REPLIES 3
ChrisHemedinger
Community Manager

Hi @Yiang ,

 

I think that the process of exporting responses in Qualtrics requires two steps:

  • First, use the export-responses API to start the export, which might take some time to complete. In this call you can state what format you want. By default it is a ZIP file, which is what I think you are seeing in your attempt. See https://api.qualtrics.com/6b00592b9c013-start-response-export. The response from this call will contain a status and a progress ID that you could use to check status of the process.
  • Then, after the export is complete (you can either wait a reasonable time or check status with another API call), you can download the responses as you did -- but the format will have already been set in the first API call. See https://api.qualtrics.com/41296b6f2e828-get-response-export-file

SAS can process ZIP files if you decide that's easier to manage. 

 

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Yiang
Fluorite | Level 6

Thanks for the hint @ChrisHemedinger 

the file is in a zip format even though i downloaded it as a .CSV file.

after reading your message, i renamed the .csv to .zip and the data in CSV file can be found inside the zip file.

 

 

w539356
Calcite | Level 5

Hi @ChrisHemedinger,

 

I have a process that successfully requests and then imports data from Qualtrics API into SAS.  However, I have issues with finding the sweet spot for the time it takes for the extract to be complete.  Any sense of how long to wait?  Currently, I've added a 20 minute pause to allow the data to queue for import; however, sometimes it still does not extract the most recent responses, thus the wait was insufficient.  Love to figure out if there is a standard time I should use or how to explore (beside trial and error), what that ideal wait time...

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2908 views
  • 1 like
  • 3 in conversation