/***********************************************************************************/
/* List CAS tables in Viya.                                                        */
/*                                                                                 */
/* This example lists the CAS tables in a caslib in your Viya session.             */
/*                                                                                 */
/* 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.                                                                           */
/*                                                                                 */ 
/* Fill in your value for the following parameter displayed within <> in           */
/* the code below:                                                                 */
/*    <caslib>: Name of caslib. e.g. CASUSER                                       */  
/***********************************************************************************/

%_Get_Studio_SubmissionID_;
rsubmit;

/* Set the ODS parameters on the SAS Viya host */
%_Begin_Viya_ODS_();

proc casutil incaslib="<caslib>";
	list tables;
run;

/* Download the ODS outputs from the SAS Viya host to SAS 9.4 */
%_End_Viya_ODS_;
endrsubmit;

