BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DaveShea
Lapis Lazuli | Level 10

Hi,

 

I am looking for a way of programatically determining whether an instance of SAS 9.3TS1M2 is the 32-bit or the 64-bit version.

 

I know that

%PUT &SYSVLONG4

will return the SAS version (i.e. 9.03.01M1P11022011), and that
%PUT &SYSSCPL

will return the Operating System and its bitness (i.e. X64_7PRO)

 

However, I would like something that returns whether the SAS.EXE that is running is the 32-bit or the 64-bit version.

 

I cannot find a documentation reference to another automatic macro variable: SYSADDBITS so I am not sure if that is referring to the bitness of the OS or the bitness of the SAS.EXE that is running the SAS session.

 

Does anyone have any thoughts on this one? One thought I had was that the SAS session start-up messages may show this informaiton, but if it does, I'm not sure where it is lurking.

 

Thanks,

Downunder Dave.
It's another day in paradise down here today

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

I think &SYSSCPL will do what you want.  I'm running 9.3 32-bit on 64-bit Win 7.

 

It returns:

 

18 %put &sysscpl;

W32_7PRO

19 %put &sysaddrbits;

32

 

I don't have 64 bit SAS on this box, but I'm pretty sure if I did, both macro vars would return something that was clearly 64 bit.  See for example this old SASL post on the subject: http://marc.info/?l=sas-l&m=135793131724639 

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.

View solution in original post

2 REPLIES 2
Quentin
Super User

I think &SYSSCPL will do what you want.  I'm running 9.3 32-bit on 64-bit Win 7.

 

It returns:

 

18 %put &sysscpl;

W32_7PRO

19 %put &sysaddrbits;

32

 

I don't have 64 bit SAS on this box, but I'm pretty sure if I did, both macro vars would return something that was clearly 64 bit.  See for example this old SASL post on the subject: http://marc.info/?l=sas-l&m=135793131724639 

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.
DaveShea
Lapis Lazuli | Level 10
Quentin,
Thanks for your quick response.

It looks like SYSADDRBITS shows the bitness of the SAS session and that's just what I am looking for.

Cheers,

Downunder Dave

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
  • 1645 views
  • 0 likes
  • 2 in conversation