Problem Note 5204: Nesting the %QLEFT function inside the %QTRIM function causes unexpected
errors
Starting in Version 8, if you nest the %QLEFT function within the %QTRIM
function and the text of the macro variable contains special characters
you may get unexpected errors.
Consider the following example.
data _null;
call symput('test',' seuil ¬< 100 ');
run;
data a;
b="%qtrim(%qleft(&test))";
run;
The above code generates the following notes and errors:
NOTE: One or more missing close parentheses have been supplied for
the %LENGTH function.
NOTE: One or more missing close parentheses have been supplied for
the %QSUBSTR function.
ERROR: Macro function %QSUBSTR has too few arguments.
ERROR: A character operand was found in the %EVAL function or %IF
condition where a numeric operand is required. The condition
was: %qsubstr(&value,&i,1)^=
ERROR: The macro QTRIM will stop executing.
A Technical Support hot fix for Release 8.1 TSLEVEL TS1M0 for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/81_sbcs_prod_list.html#005204
A Technical Support hot fix for Release 8.2 TSLEVEL TS2M0 for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#005204
For customers running SAS with Asian Language Support (DBCS), this
hot fix should be downloaded from:
http://www.sas.com/techsup/download/hotfix/82_dbcs_prod_list.html#005204
Operating System and Release Information
| SAS System | Base SAS | Solaris | 8 TS M0 | |
| 64-bit Enabled Solaris | 8 TS M0 | |
| IRIX | 8 TS M0 | |
| HP-UX | 8 TS M0 | |
| ABI+ for Intel Architecture | 8 TS M0 | |
| Linux | 8.2 TS2M0 | 9 TS M0 |
| 64-bit Enabled HP-UX | 8 TS M0 | |
| Tru64 UNIX | 8 TS M0 | 9 TS M0 |
| 64-bit Enabled AIX | 8 TS M0 | |
| AIX | 8 TS M0 | |
*
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.
| Type: | Problem Note |
| Priority: | medium |
| Topic: | SAS Reference ==> Macro
|
| Date Modified: | 2002-08-08 16:17:39 |
| Date Created: | 2001-06-12 13:14:06 |