BookmarkSubscribeRSS Feed
robrill
Calcite | Level 5

Hi, 

 

I am working in Viya V.03.05M0P110619.

 

I can see and load tables that are in a connected hadoop server with the following code:

 

proc casutil sessref="casauto";

list files incaslib="hadoopname";

run;

 

CAS File Information
 
                       Name                             Catalog         Schema          Type     Description
                       xxxx_baseline_xxxxx_288888_xx   XXXX_XXX_XXX    xxxx_xxx_xxx    TABLE               

 

 

proc casutil sessref="casauto";
load casdata="table_from_list"
incaslib="hadoopname"
casout="loaded_table_name"
outcaslib="mycas"

promote;
run;

 

But I wonder if there is a way to load a file from the list produced by "list files" using a data step instead of proc casutil.  Is that something that can be done, or am I stuck using proc casutil?

 

Thanks!

R

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 0 replies
  • 717 views
  • 0 likes
  • 1 in conversation