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. 

 

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

View solution in original post

2 REPLIES 2
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. 

 

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
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.

 

 

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!
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
  • 2 replies
  • 567 views
  • 1 like
  • 2 in conversation