BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ronein
Meteorite | Level 14

Hello

I want to see all data sets and views in library R_R

I want to order them by file size.

I run this code but in output  it is not so clear what is file size because the numbers are with E format

Ronein_0-1724058596269.png

 

 

proc sql;
title 'All Tables and Views in the SQL Library';
select  libname, memname, memtype, nobs, filesize 
from dictionary.tables
where libname='R_R'
order by filesize desc 
;
quit;
1 ACCEPTED SOLUTION
3 REPLIES 3
Ronein
Meteorite | Level 14

Do you mean 

put(filesize,sizekmg.) as filesize

 It looks great now!!!

 

proc sql;
title 'All Tables and Views in the SQL Library';
select  libname, memname, memtype, nobs, 
put(filesize,sizekmg.) as filesize
from dictionary.tables
where libname='R_R'
order by filesize desc 
;
quit;

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 684 views
  • 3 likes
  • 3 in conversation