To use the GOCAS= option, add the following options to your SASEWBGO LIBNAME statement:
specifies that the CAS server is being used.
names the CAS library reference for storing the in-memory tables created by the SASEWBGO engine.
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;