Help using Base SAS procedures

Programmatically determine SAS version

Reply
New Contributor
Posts: 3

Programmatically determine SAS version

Hi. I have a SAS program where I want to make sure version 8 or higher of SAS is being used. If user mistakenly runs it using version 7 or earlier, I want to exit immediately with an appropriate message. But I can't find any function that SAS offers to let me determine the running version. Is there such a thing?

Thanks.
Greg
Regular Contributor
Posts: 165

Re: Programmatically determine SAS version

Look and see if the automatic macro variables &sysver or &sysvlong is what you want.
New Contributor
Posts: 3

Re: Programmatically determine SAS version

Yes, that's exactly what I need.

Thanks Rick.
Super Contributor
Super Contributor
Posts: 3,174

Re: Programmatically determine SAS version

Why would you even have any SAS system installed that is prior to Version 8? Clearly you don't expect to get software defect/fix support with that type of environment. You really need to move those users up to a "supported" SAS version, which would be at least SAS version 9 and ideally 9.1.3 SP4 or 9.2.

Scott Barry
SBBWorks, Inc.
New Contributor
Posts: 3

Re: Programmatically determine SAS version

Just playing it safe Scott. For whatever reason, the versions haven't been removed. We're not using them, but they're still accessible.
Ask a Question
Discussion stats
  • 4 replies
  • 101 views
  • 0 likes
  • 3 in conversation