/***********************************************************************************/
/* Create a CAS Engine Libref                                                      */
/*                                                                                 */
/* Before running this snippet, you must have already connected to your Viya       */
/* session. You can make this connection using the Connect to Viya snippet or      */
/* task.                                                                           */
/*                                                                                 */
/* Use this snippet to create a sas libref to access data that is located in your  */
/* caslib, so you can use it when you run code in your Viya session.               */
/*                                                                                 */
/* Your caslib is a space in memory where your data table will be held.  Your      */
/* administrator sets up global caslibs, although session caslibs can also be      */
/* added.  Typically, an administrator enables personal caslibs including one      */
/* named CASUSER. For more information on caslibs, refer to SAS Cloud Analytic     */
/* Services: Fundamentals.                                                         */
/*                                                                                 */
/* Contact your system administrator for values to use for these parameters.       */
/*                                                                                 */
/* The cashost and casport parameters take the same values that you used when you  */
/* connected to your Viya session.                                                 */
/*                                                                                 */
/* Fill in your value for each of the following parameters displayed within <> in  */
/* the code below:                                                                 */
/*    <cas_engine_libref>: Name of SAS libref for CAS. e.g. mycas                  */
/*    <caslib>: Name of caslib. e.g.  CASUSER                                      */
/*    <cashost>: CAS host name. e.g. "grid001.your.company.com"                    */
/*    <casport>: CAS port. e.g.  1234                                              */
/***********************************************************************************/

rsubmit;
libname <cas_engine_libref> CAS caslib="<caslib>" host="<cashost>" port=<casport>;
endrsubmit;


