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.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.
Ready to level-up your skills? Choose your own adventure.