BookmarkSubscribeRSS Feed
JohnH
Fluorite | Level 6
A while ago I came across some SAS code that would display the number of CPUs that SAS sees. I have now lost the code and I need it again. Can anyone please post the code which displays this? Thanks
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
What CPU environment and operating system? You mention SAS code or do you mean SAS CONFIG option? The CONFIG option is CPUID, it must be specified at SAS invocation time, and the information is presented at the start of the SASLOG.

Depending on your SAS processing environment, there may be an external call to get the desired info.

Scott Barry
SBBWorks, Inc.
LinusH
Tourmaline | Level 20
I guess that CPUCOUNT=is the proper system option here. CPUID specifies the id of the CPU (mainly used in ZOS environments). The &sysncpu automatic macro variable displays the setting of CPUCOUNT.

/Linus
Data never sleeps
JohnH
Fluorite | Level 6
Thanks everyone. Together with your ideas, I created the following code which tells me how many CPUs that SAS sees on any platform.--John

signon servername or mainframename;
rsubmit;
data work.temp;
var=&sysncpu;
run;
proc print;
run;
endrsubmit;
signoff;

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3287 views
  • 0 likes
  • 3 in conversation