Problem Note 6963: Values within %SYSFUNC on a %DO loop are incorrectly uppercased
If a function within %SYSFUNC requires character values and is placed on
a %DO loop, these characters are incorrectly returned as uppercase.
To achieve the intended output, use the %LOWCASE function as in the
following example.
%macro loop ;
%do i=%sysfunc(rank(%lowcase(a))) %to %sysfunc(rank(%lowcase(e)));
%put i=&i ;
%put dset%sysfunc(byte(&i)) ;
%end;
%mend loop;
%loop
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#006963
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#006963
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows 95/98 | 8.2 TS2M0 | |
| Microsoft Windows NT Workstation | 8.2 TS2M0 | 9 TS M0 |
| Microsoft Windows XP Professional | 8.2 TS2M0 | 9 TS M0 |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | 9 TS M0 |
| Microsoft Windows 2000 Professional | 8.2 TS2M0 | 9 TS M0 |
| Microsoft Windows 2000 Server | 8.2 TS2M0 | 9 TS M0 |
| Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | 9 TS M0 |
| OpenVMS VAX | 8.2 TS2M0 | |
| 64-bit Enabled Solaris | 8.2 TS2M0 | |
| Solaris | 8.2 TS2M0 | |
| IRIX | 8.2 TS2M0 | |
| OS/2 | 8.2 TS2M0 | |
| z/OS | 8.2 TS2M0 | 9 TS M0 |
| Linux | 8.2 TS2M0 | 9 TS M0 |
| CMS | 8.2 TS2M0 | |
| ABI+ for Intel Architecture | 8.2 TS2M0 | |
| 64-bit Enabled HP-UX | 8.2 TS2M0 | |
| OpenVMS Alpha | 8.2 TS2M0 | 9 TS M0 |
| 64-bit Enabled AIX | 8.2 TS2M0 | 9 TS M0 |
| Tru64 UNIX | 8.2 TS2M0 | 9 TS M0 |
| AIX | 8.2 TS2M0 | 9 TS M0 |
| HP-UX | 8.2 TS2M0 | |
*
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: | low |
| Topic: | SAS Reference ==> Macro
|
| Date Modified: | 2002-04-26 11:28:16 |
| Date Created: | 2002-02-21 14:21:29 |