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;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 5 replies
  • 763 views
  • 0 likes
  • 3 in conversation