SASEWBGO Interface Engine

Syntax: SASEWBGO Interface Engine

The SASEWBGO interface engine uses standard engine syntax to read the observations or data values for one or more time series indicators for one or more countries. Table 1 summarizes the options that the SASEWBGO engine uses. Two options are required: COUNTRYLIST= and IDLIST= .

Table 1: Summary of LIBNAME libref SASEWBGO Options

Option Description
AUTOMAP= Specifies whether or not to overwrite the existing XML map file
CASLIB= Specifies the name of the caslib where the in-memory CAS table containing the WBGO data is stored
CASOUT= Specifies the name of the in-memory CAS table containing the data that the SASEWBGO interface engine returns
COUNTRYLIST= Specifies the ISO three-letter or two-letter code for each country for which to retrieve time series. When you specify more than one country code, use a semicolon as a delimiter and enclose the country list in single quotes. This option also enables you to specify region IDs or income-level IDs for aggregating your selected time series.
DEBUG= Specifies whether or not to include diagnostic messages in the SAS log
FREQ= Specifies whether to retrieve quarterly (Q), monthly (M), or yearly (Y) values. The FREQ= option is used only in conjunction with the MRV= option.
GAPFILL= Specifies whether or not to backfill missing values: if data are not available, the API backtracks to the next available period. This option is used only with the MRV= option (the maximum number of backtracked periods is limited by the MRV value specified).
GOCAS= Specifies whether to generate an in-memory CAS table for the WBGO data
IDLIST= Specifies a list of time series IDs (indicators) for accessing WBGO data. To select more than one time series, list the unique time series indicators, separated by commas.
LANG= Specifies the language to use for text fields returned by the SASEWBGO engine
MAPREF= Specifies the fileref used for the map file assignment
MRV= Specifies the number of observations retrieved relative to the most recent value
OUTXML= Specifies the name of the output SAS data set and the XML file(s) requested by the IDLIST= option. When you specify more than one time series ID in the IDLIST= option, the SASEWBGO engine appends the positional integer ('1' for the first time series ID, '2' for the second time series ID, and so on) to the name specified by the OUTXML= option.
PAGE= Specifies the page number of the data to retrieve in the returned data
PER_PAGE= Specifies the number of observations to view in one page of the retrieved data
RANGE= Specifies the range of observations for the retrieved data, such as ‘2000:2001’ for annual data, ‘2009M01:2010M08’ for monthly data, and ‘2009Q1:2010Q3’ for quarterly data
SORT= Specifies the order of the results in ascending or descending order by observation date. The valid sort arguments are ‘asc’ and ‘desc’; the default is ‘asc’.
URL= Specifies a URL from which to request useful information about countries based on income level, time series indicators based on source ID, or time series indicators based on topic ID. The information is downloaded from the web page at the specified URL and stored in the XWBGOTPU data set (a temporary utility data set), which can then be saved or renamed to a permanent SAS data set.
XMLMAP= Specifies the fully qualified name of the location where the XMLmap file is automatically stored. By default, XMLMAP=Wbgo.map.


Last updated: June 19, 2025