options caslib=casuser; proc cas; decisionTree.gbtreeTrain / table={name="baseball"} target="logSalary" casOut={name="GRADBOOST3", replace=true} inputs={"nAtBat", "nHits", "nHome", "nRuns", "nRBI", "nBB", "YrMajor", "CrAtBat", "CrHits", "CrHome", "CrRuns", "...
/* Copyright © 2021, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /* cas casauto terminate; */ cas; caslib _all_ assign; /* WORKPATH contains the path to SASWORK */ %let workpath = %sysfunc(quote(%sysfunc(pathname(work)))) ; %put &workpath;
proc cas; file log; table.dropCaslib / caslib='sas7bdat' quiet = true; run; addcaslib / datasource={srctype="path"} name="sas7bdat" path=&workpath ; run;
proc casutil; load casdata="saswork_table_with_char300.sas7bdat" casout="cas_table_with_varchar" outcaslib="casuser" importoptions=(filetype="basesas", dtm="auto", debug="dmsglvli", varcharconversion=16) ; run; quit; title;
proc cas; sessionProp.setSessOpt / caslib="casuser"; run; table.columninfo / table="cas_table_with_varchar"; quit;
/* LIBNAME using the CAS engine */ libname CASWORK cas caslib=casuser; /* Changing the default location of all one level named tables */ /* from SASWORK to CASWORK */ options USER = CASWORK; /* Binds all CAS librefs and default CASLIBs to your SAS client */ caslib _all_ assign; %put &_sessref_;
libname CASWORK cas caslib=casuser; options USER = CASWORK; caslib _all_ assign; %put &_sessref_;
cas; %put &_sessref_; caslib _all_ assign; %put &sysvlong4.; cas casauto listabout; proc cas; about; run;
cas; caslib _all_ assign; /* Orginal code authored by Chris Ricciardi */ /* TB, compressedKB,compressedMB,compressedGB,compressedTB added by Steven Sober */ /* You must modify the path in the CASLIB USDA at the bottom of the code */ proc cas; builtins.defineActionSet / name="tableSizeHu...
PROC CAS; table.addCaslib / caslib='UDAS' dataSource={srctype='path'} path="/viyafiles/sasss1/userDefinedActionSets"; run; quit; proc cas; builtins.actionSetToTable / actionSet="tableSizeHuman" casOut={caslib="UDAS" name="tableSizeHuman" replace=True}; run; table.save / ...