Hi,
 
We are upgrading our SAS version from SAS 9.04.01.M3 to 9.04.01.M5. With the new Version EMAIL statement need pgm=SMTP coded to make the email work via CSSMTP.
 
I was trying to compare the version with the statement but not working properly.
 
Current SAS VERSION from SASVLONG IS 9.04.01M3P062415
Upgraded SAS VERSION FROM SASVLONG IS 9.04.01M5P091317
 
%PUT SAS VERSION IS &SYSVLONG ;               
%GLOBAL EMAILPGM ;                            
%MACRO EMAIL_PGM_CHECKER;                     
%If &SYSVLONG >= '9.04.01M5AAAAAAA' %THEN   
      %LET EMAILPGM=PGM=SMTP ;                
%MEND;                                        
%EMAIL_PGM_CHECKER ;                          
%PUT EMAIL_PGM IS &EMAILPGM ;                
 
With above statement  even on current version 9.04.01M3 is also assigning the macro variable EMAILPGM=PGM=SMTP.
 
Please Advise how can i compare the version and assign the variable EMAILPGM with PGM=SMTP for latest version.