I found the below solution in our community but would like to adapt it to include columns:
How are you connecting to HADOOP?
Are you using ODBC? Do these the ODBC specific queries help?
https://support.sas.com/kb/15/721.html
this is not ODBC:
I have never worked with HADOOP (or HIVE) but a couple of points.
1) You original query is using pass thru to run HADOOP code. So if you want to do the same thing then find out what HADOOP code lists the variables in a dataet.
2) Why not just see if you can't use normal SAS code to get the contents of the datasets? Make a LIBREF using the HADOOP engine and run normal SAS code. So something like:
libname mylib hadoop .....;
proc contents data=mylib.my_dataset;
run;
Where MY_DATASET is one of the "table" names you got from the SHOW TABLES command.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.