Date: Tue, 14 Feb 2012 18:34:59 +0100
Reply-To: Rivo Ramamonjy <rivo.ramamonjy@TRICAST-GROUP.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Rivo Ramamonjy <rivo.ramamonjy@TRICAST-GROUP.COM>
Subject: Re: How to know if I'm running 32/64bit SAS ?
Content-Type: text/plain; charset="iso-8859-1"
The reason I want to know this is to perform catalog and table conversions at run-time when needed because original catalogs and tables are in 32bit formats.
SAS defines SYSSCPL as "Contain an identifier for your operating environment."
As an example from the SAS listing : Windows Vista Business x64 = X64_VSPRO. Written like this it seems like it reports only info about the Windows OS.
But in my case : (Windows 7 64bits) + (SAS 32bit), I get SYSSCPL=W32_VSPRO. So if the "32" in SYSSCPL really means 32-bit installation of SAS -as you think- SYSSCPL will be OK and I'll be happy! For the moment I have no 64-bit SAS installation to confirm that it would return 64 in that case.
Thank you all,
Rivo.
From: Joe Matise [mailto:snoopy369@gmail.com]
Sent: mardi 14 février 2012 17:40
To: Rivo Ramamonjy
Cc: Guido T; SAS-L@listserv.uga.edu
Subject: Re: How to know if I'm running 32/64bit SAS ?
Well, what is the reason you're wanting to know this information? If you want to know whether you can use a 32-bit created formats library, then SYSSCPL seems to be useful here, no?
-Joe
On Tue, Feb 14, 2012 at 10:36 AM, Rivo Ramamonjy <rivo.ramamonjy@tricast-group.com> wrote:
I am in a 32bit installation on 64 bits windows. SYSSCPL returns "W32_PRO". So does the "32" indicate the installation type or simply what our SAS representative has put inside our "setinit" (SID) file ?
Our SID file contains :
...
Platform=Windows
Platform_long=Microsoft Windows Workstation 32-bit
...
So SYSADDRBITS and SYSSIZEOFPTR seem to be the only reliable infos but they don't exist in earlier version.
Maybe we can manage by parsing the installation path combined with some reliable OS info
-Rivo.
From: Joe Matise [mailto:snoopy369@gmail.com]
Sent: mardi 14 février 2012 17:25
To: Guido T; Rivo Ramamonjy
Cc: SAS-L@listserv.uga.edu
Subject: Re: How to know if I'm running 32/64bit SAS ?
Actually, I'm wrong - I thought I was in my 32 bit install when I was in a different 64 bit install. SYSSCPL does seem to return WIN32 when run on a 32 bit install, so that is probably the best solution :)
Phil, SYSSIZEOFPTR seems to be available on 9.3 but not 9.2 unfortunately.
-Joe
On Tue, Feb 14, 2012 at 10:07 AM, Joe Matise <snoopy369@gmail.com> wrote:
Unfortunatley, SYSSCPL will still return X64_7PRO for example if you're in a 32 bit installation on a 64 bit system. You might be able to look at the combination of SYSSCPL and the installation folder, if that is reliable; the default installation folder for 32 bit SAS on a 64 bit system would be in
C:\Program Files (x86)\ ...
while the 64 bit would be in vanilla Program Files. However, if that's not reliable at &YOUR_SITE, that may not be helpful.
Thanks,
Joe
On Tue, Feb 14, 2012 at 10:03 AM, Guido T <cymraegerict@gmail.com> wrote:
Hi,
The system macro variable SYSSCPL should tell ...
Contains 64 on 64 bit Windows and may or may not contain 32 on 32 bit windows.
e.g. W32_VSPRO, X64_SRV08
See documentation on SYSSCP and SYSSCPL Automatic Macro Variables
Regards
++ Guido
On 14 February 2012 15:42, Andrianarivo RAMAMONJY
<rivo.ramamonjy@tricast-group.com> wrote:
> Hello SAS-L-ers
>
> I'm developping a SAS-based software for Windows and I need to know at run-
> time if the application is running under 32bit-SAS (any Windows OS) or
> under 64bit-SAS (64bit Windows OS). Is there any effective way to do this ?
>
> Thank you for your help.
> Rivo.