LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 21 Aug 2000 09:47:15 +0200
Reply-To:   Wright Howard <HWRIGHT@OLDMUTUAL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Wright Howard <HWRIGHT@OLDMUTUAL.COM>
Subject:   Re: Identification of the SAS version currently running?
Comments:   To: Matti Haapanen <matti.haapanen_remove_this_part_when_replying_@METLA.FI>
Content-Type:   text/plain; charset="iso-8859-1"

Hi,

Have a look at the SYSVER automatic macro variable: e.g.

%put I am using release: &sysver;

It list the version of SAS that you are executing. If you want more detail (e.g maintenace release leve use SYSVLONG.

Howard Wright InfoActive Cape Town, South Africa

-----Original Message----- From: Matti Haapanen [mailto:matti.haapanen_remove_this_part_when_replying_@METLA.FI] Sent: 21 August 2000 09:06 To: SAS-L@LISTSERV.UGA.EDU Subject: Identification of the SAS version currently running?

Hi all,

I hope this has not been asked here too many times. I am converting some SAS code written for the version 6.12 to be compatible with V8. This code should preferrably be executable on the both versions as many of the people who use this code have not upgraded to V8. Is there a macro variable or any other method that I can use to identify which SAS version is currently running, and execute an appropriate piece of code. I mean something like this:

if sasversion=6.12 then do ...execute V6.12 compatible code... end else if sasversion=8 then do ...execute V8 compatible code... end

best wishes, Matti Haapanen


Back to: Top of message | Previous page | Main SAS-L page