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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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