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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 599 views
  • 1 like
  • 4 in conversation