/***********************************************************************************/
/* Download CAS table to SAS 9.4.                                                  */
/*                                                                                 */      
/* This example downloads a CAS table to WORK.dataset1.                            */
/*                                                                                 */
/* 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.  In addition, you must have already run code like that in the Create CAS  */
/* Engine libref.                                                                  */  
/*                                                                                 */
/* Fill in your value for the following parameter displayed within <> in           */
/* the code below:                                                                 */
/*   <cas_engine_libref>: Name of the CAS engine lib ref. e.g., mycas              */
/*   <cas_table>: Name of the CAS table to be downloaded. e.g., facmac_out         */
/***********************************************************************************/

rsubmit;
proc download data=<cas_engine_libref>.<cas_table> out=WORK.dataset1;
run;
endrsubmit;

