BookmarkSubscribeRSS Feed
febyinkasid
Calcite | Level 5

Has anyone tried to import Kobotoolbox questionnaire result in XLXS form to SAS?

I have this macro to import, but somehow it keeps getting timeout

/*XLS IMPORT*/
%macro httpkobolong(name, link);
filename target "&data.\&name..xlsx";
proc http method="get"
  url="&link."
  out=target
  timeout=600;
run;
%mend();
%let link_module=https://kobo.sid-indonesia.org/api/v2/assets/[AssetID]/export-settings/[export-setting UID]/data.xlsx;
%httpkobolong(name_module,&link_module.);

febyinkasid_0-1750042655969.png

 

I assume this one from kobo, that is being timeout, but maybe anyone has any experience in this.

Thanks in advance

 

5 REPLIES 5
febyinkasid
Calcite | Level 5
&data is defined in my macro dictionary.
using SAS 9.4
febyinkasid
Calcite | Level 5
Hmm the &data. is local path, is not the problem since its already used globally and regularly. that is not the main problem.
Ksharp
Super User
Try DEBUG statement to get more information:

filename target temp;
proc http method="get"
url="www.sas.com"
out=target
timeout=600;
debug level=3;
run;

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
  • 5 replies
  • 519 views
  • 0 likes
  • 3 in conversation