BookmarkSubscribeRSS Feed
Patrick
Opal | Level 21
Hi

When using parallel processing with the loop transformation: Is the number of CPU nodes based on the value of option CPUCOUNT? Or is this number retrieved independently?

Thanks
Patrick
2 REPLIES 2
nar_sas
SAS Employee
We first try to obtain the # of cpus from sas function provided by the SAS/Connect team, because we might be running on a grid, and the grid system has to tell us CPU nodes; the function is grdsvc_nnodes("SASApp") where "SASApp" was workspace server name.

If that fails, then we use the automatic macro variable, SYSNCPU. Not sure how that relates to the option.
Patrick
Opal | Level 21
Thanks nar@sas
That was very insightful.
Cheers
Patrick

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1468 views
  • 0 likes
  • 2 in conversation