Problem Note 51532: Using the ERROR, WARNING, or NOTE keyword in a %PUT statement might cause duplicate text
The &SYSERRORTEXT and &SYSWARNINGTEXT automatic macro variables might display duplicate text if the error or warning was generated by a %PUT statement using specific keywords. The duplicate text is displayed if you are using the hyphen in a %PUT statement along with any of the ERROR, WARNING, or NOTE keywords, and you are running SAS
® interactively.
For example:
%put ERROR: A;
%put ERROR- B;
%put ERROR- C;
%put "&syserrortext";
The following is displayed in the SAS Log:
1 %put ERROR: A;
ERROR: A
2 %put ERROR- B;
B
3 %put ERROR- C;
C
4 %put "&syserrortext";
"ABBCC"
The correct output for &SYSERRORTEXT should be:
The hyphen removes the ERROR, WARNING, or NOTE keyword from the text. It also allows the text to be a continuation from the previous %PUT statement that contains any of the above keywords.
There is currently no circumvention for this problem.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | |
z/OS | 9.2 TS1M0 | 9.4 TS1M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Windows Vista for x64 | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M2 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M2 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M2 |
HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M2 |
Linux | 9.2 TS1M0 | 9.4 TS1M2 |
Linux for x64 | 9.2 TS1M0 | 9.4 TS1M2 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M2 |
Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M2 |
*
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.
Duplicate text is displayed when running SAS® interactively and using the ERROR, WARNING, or NOTE keywords with a hyphen in a %PUT statement.
Type: | Problem Note |
Priority: | low |
Date Modified: | 2013-11-07 09:23:11 |
Date Created: | 2013-11-06 11:13:13 |