filename response "C:\ehe\results.json";
filename last_res "C:\ehe\results2.json";
libname ehe "C:\ehe";
proc http
method = "get"
url = 'http://sasbap.demo.sas.com//SASIRMServer/rest/jobflow/instancesinfo?entity=0&definition=0'
out = response
auth_basic
webusername = "sasdemo"
webpassword = "Orion123"
;
headers "Content-Type"="application/x-www-form-urlencoded"
"Accept"="application/json"
;
run;
data _null_;
file last_res;
put '{ "results":[';
run;
data _null_;
infile response;
file last_res mod;
input response;
put _infile_;
run;
data _null_;
file last_res mod;
put ']}';
run;
libname myIRMout JSON fileref=last_res;
proc print
data= myIRMout.results;
run;