Problem Note 37132: %SYSFUNC may cause an error if part of the function name is a macro variable
Using a SAS function within %SYSFUNC, where part of the function name
is a macro variable, may cause an error.
Here is an example:
%let name=s;
%put %sysfunc(ab&name(-1));
One possible error message from the above could be:
ERROR: Expected open parenthesis after macro function name not found.
A possible work-around would be to place the entire function within a macro
variable.
Here is an example:
%let name=abs;
%put %sysfunc(&name(-1));
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2008 | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows XP Professional | 9.2 TS1M0 | 9.2 TS2M3 |
Windows Vista | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.2 TS2M3 |
HP-UX IPF | 9.2 TS1M0 | 9.2 TS2M3 |
Linux | 9.2 TS1M0 | 9.2 TS2M3 |
Linux for x64 | 9.2 TS1M0 | 9.2 TS2M3 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.2 TS2M3 |
Solaris for x64 | 9.2 TS1M0 | 9.2 TS2M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
If a SAS function name is partially a macro variable and is used within %SYSFUNC an error may be generated.
Type: | Problem Note |
Priority: | low |
Date Modified: | 2009-09-22 10:36:57 |
Date Created: | 2009-09-09 14:26:26 |