BookmarkSubscribeRSS Feed
klmd189
Calcite | Level 5

Hi,

I would like to take metrics of SAS and have a basic understanding of the hardware the sessions uses. I sign on to SAS/CONNECT session and I want to know what: CPU, RAM and disk the session utilizes.

So far I could get only the number of CPU cores with this code:

proc options option=cpucount value; run;

I know of existence of CPUID option, this is set to 'CPUID' meaning: CPU identification number is written to the SAS log. Although, I can't see it...

sascommunity_cpu.JPG

 

 

 

 

 

 

 

 

 

 

 

Do you know a way I can get the name of hardware units used? 

I would expect output like: a CPU name, eg. Intel Core i5-6500 or a number that allow to identify the CPU unit.

I use SAS BASE 9.4 TS Level 1M7 on Windows, connecting to UNIX SAS/CONNECT session. I am interested in SAS/CONNECT session hardware.

Thanks for your input.

2 REPLIES 2
AhmedAl_Attar
Ammonite | Level 13

Hi @klmd189 

To get some metrics/info  on resources allocated to your Remote SAS session on Linux, run the following statement once you have established connection

Rsubmit;
   Proc Options; Run; /* This will display all your SAS settings on Linux */
EndRsubmit;

You check the Proc Options documentation for further options.

 

To always display extended metrics for every step/proc executed in your SAS session (Local / Remote) enable the FULLSTIMER option

Options FULLSTIMER;
Rsubmit;
   Options FULLSTIMER;
EndRsubmit;

Depending on how open your Remote (Linux) session is, i.e. whether or not you can issue Linux System commands from within SAS

Rsubmit;
  Proc Options option=xcmd; Run;
EndRsubmit;

 If your remote SAS session allows system commands, then you can try using the Pipe Filename device type with your Linux Command. example

Filename LnuxInfo PIPE "lscpu";  /* You can change the lscpu command with another Linux listing command, such as df -h */

/* The data step below would read the output from the Linux Command and place it in the Log Window */
DATA _NULL_;
   INFILE lnuxInfo Lrecl = 500;
   INPUT;
   PUT _INFILE_;
RUN;

 Hope this helps,

Ahmed

SASKiwi
PROC Star

That's the sort of information available in SAS Environment Manager plus all of the performance stats. Talk (nicely) to your SAS administrator about gaining access. You will be very limited by what you can find in a basic SAS session.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 919 views
  • 0 likes
  • 3 in conversation