Help using Base SAS procedures

Display Number of CPUs

Reply
Contributor
Posts: 73

Display Number of CPUs

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
Super Contributor
Super Contributor
Posts: 3,174

Re: Display Number of CPUs

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.
Super User
Posts: 5,323

Re: Display Number of CPUs

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
Contributor
Posts: 73

Re: Display Number of CPUs

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;
Ask a Question
Discussion stats
  • 3 replies
  • 216 views
  • 0 likes
  • 3 in conversation