Using the URL= option for a List of Indicators from a Specified Source
/*----------------------------------------------------------------
SAS SAMPLE LIBRARY
Name: wbgoex05.sas
Description: Example program from SAS/ETS User's Guide,
The SASEWBGO Interface Engine
Title: Using the URL= option for a List of Indicators from a Specified Source
Product: SAS/ETS Software
Keys: WBGO data extraction
Procs: SASEWBGO
Notes: Read this before you run this sample.
The sample data provided resides in the ets/sasmisc folder.
If you are using automap=READONLY, copy the
map of your incoming XML data to a writeable folder before
using it. Then you can define a system environment variable
,WBGO, to the path of your writeable folder containing
the XWBGOTPU.MAP file and XWBGOTPU.xml.
To assign a fileref to the external file to be processed,
use the following form of the libname statement:
libname wbgo sasewbgo "%sysget(WBGO)"
url="http://api.worldbank.org/source/1/indicators?format=xml";
----------------------------------------------------------------*/
title 'Retrieve a List of Indicators for a Specified Source Using the URL= Option';
libname wbgo sasewbgo "<physical path name>"
url="http://api.worldbank.org/source/1/indicators?format=xml";
data my1source;
set wbgo.XWBGOTPU;
run;
proc contents data=my1source; run;
proc print data=my1source; run;