Usage Note 2954: Declaring a maximum length for character attributes in CLASS syntax has
no effect at runtime
In SAS/AF Software, declaring character attributes with a maximum length
in CLASS syntax will have no effect on the maximum length of the
attribute when the class is loaded at runtime.
For example, in the following logic that creates class X with the
character attribute ATTRSTR and the method M which executes the MLENGTH
function in SAS Component Language (SCL) to return the maximum length of
ATTRSTR,
class x;
dcl char(14) attrstr;
m:method;
dcl num len;
len=mlength(attrstr);
put len=;
endmethod;
endclass;
the value of the variable LEN will be 32767 when you execute method M on
class X. The MLENGTH function will always return 32767 when it's
argument is a class attribute of type character.
Please refer to SAS Note SN002955 for a compilation issue with the
example code listed above.
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS/AF | Microsoft Windows XP Professional | 8.2 TS2M0 | |
| Microsoft Windows NT Workstation | 8 TS M0 | |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Standard Edition | 8.2 TS2M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 8.2 TS2M0 | |
| Microsoft Windows 2000 Professional | 8 TS M0 | |
| Microsoft Windows 2000 Server | 8 TS M0 | |
| Microsoft Windows 2000 Advanced Server | 8 TS M0 | |
| Microsoft Windows 2000 Datacenter Server | 8 TS M0 | |
| Solaris | 8 TS M0 | |
| 64-bit Enabled Solaris | 8 TS M0 | |
| IRIX | 8 TS M0 | |
| OS/2 | 8 TS M0 | |
| Linux | 8.2 TS2M0 | |
| Microsoft Windows 95/98 | 8 TS M0 | |
| ABI+ for Intel Architecture | 8 TS M0 | |
| HP-UX | 8 TS M0 | |
| HP-UX IPF | 9 TS M0 | |
| 64-bit Enabled HP-UX | 8 TS M0 | |
| OpenVMS Alpha | 8 TS M0 | |
| 64-bit Enabled AIX | 8 TS M0 | |
| Tru64 UNIX | 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.
| Date Modified: | 2004-08-17 10:19:03 |
| Date Created: | 2000-06-30 13:19:39 |