BookmarkSubscribeRSS Feed
ciro_fuccio
Calcite | Level 5
Hello guys
I wanted to know if it was possible to speed up a query using metadata. 
In practice I need the last 3 most recent values ​​of a table of this type: DATA work.test_; ENTRY TO B year; data lines; 5 01 20190105 5 01 20190102 5 01 20190422 5 02 20190422 5 01 20190601 5 01 20190622 5 01 20190601 ; TO RUN; But it has more than 12 million record
3 REPLIES 3
Reeza
Super User

Is there any indexes on the table, and if so, which fields? If not, that should be your solution IMO

 

Edit: Sorry, Hadoop doesn't have the same concept of indexes that other DBs have, my mistake.

r_behata
Barite | Level 11

- How do you connect to Hadoop from SAS ? Show the log.

- Do you have licence to SAS Access for Hadoop ?

- Is you data located in Hive or are you trying to access data from HDFS? 

Ksharp
Super User

Try this PROC

 

proc univariate data=sashelp.air nextrval=3;
var date;
run;

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

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 850 views
  • 1 like
  • 4 in conversation