SASEWBGO Interface Engine

Example 54.5 Using the GOCAS= Option

To use the GOCAS= option, add the following options to your SASEWBGO LIBNAME statement:

GOCAS=ON

specifies that the CAS server is being used.

CASLIB=<name of CAS libref>

names the CAS library reference for storing the in-memory tables created by the SASEWBGO engine.

CASOUT=<name of CAS table>

names the in-memory table where the WBGO data are stored.

The following code shows how to use CAS with Example 54.4:

   options validvarname=any;
   title 'Using GOCAS= Option to Store Series in CAS Table';

   libname wbgo sasewbgo "%sysget(WBGO)"
      GOCAS=ON
      CASLIB=CASUSERHDFS
      CASOUT=M2MYWBGO
      OUTXML=gdpgds
      AUTOMAP=replace
      MAPREF=MyMap
      XMLMAP="%sysget(WBGO)gdpdes.map"
      COUNTRYLIST='chn;bra'
      IDLIST='NY.GDP.PCAP.CD,NY.GDP.PCAP.KN,NY.GDP.PCAP.PP.KD'
      RANGE='2010:2016'
      PER_PAGE=25
      SORT=desc
      ;

   data mygdpdesc;
        set wbgo.gdpdes;
   run;

   proc print data=mygdpdesc; run;

You can reference the in-memory CAS table, M2MYWBGO, as follows to save the data in a SASHDAT file, but do not specify the SASHDAT extension in the file name:

   proc casutil;
      save casdata="M2MYWBGO" casout="<physical path and filename>" replace;
   quit;

To list the tables in the active caslib, specify the following:

   proc casutil; list; quit;
Last updated: June 19, 2025