Help using Base SAS procedures

PROC DS2 HTTP Package

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 15
Accepted Solution

PROC DS2 HTTP Package

Just took the following sample program from the documentation but it gives me:

ERROR: Compilation error.

ERROR: Extension tkhttp for package http is not a DS2 package.

ERROR: No package or extension for type package http.

proc ds2;

data _null_;

  method run();

    /* instantiate the package */

    declare package http h();

    declare varchar(1024) character set utf8 body;

    declare int rc;

    /* create a GET */

    h.createGetMethod('http://api.worldbank.org/countries/fr/');

    /* execute the GET */

    h.executeMethod();

    /* retrieve the response body as a string */

    h.getResponseBodyAsString(body, rc);

    put body;

  end;

run;

quit;


Accepted Solutions
Solution
‎08-07-2014 01:37 PM
Occasional Contributor
Posts: 15

Re: PROC DS2 HTTP Package

Updating to 9.42 resolved it!

View solution in original post


All Replies
Solution
‎08-07-2014 01:37 PM
Occasional Contributor
Posts: 15

Re: PROC DS2 HTTP Package

Updating to 9.42 resolved it!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 439 views
  • 0 likes
  • 1 in conversation