SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 34283: A SAS® IT Resource Management 3.1.1 aggregation job might fail because it cannot resolve the _ENCODEVALUE macro

DetailsHotfixAboutRate It

A SAS IT Resource Management 3.1.1 aggregation job that executes an information-map transformation prior to an aggregation transformation might fail with the following warning and error:

WARNING: Apparent invocation of macro _ENCODEVALUE not resolved.
ERROR 180-322: Statement is not valid or it is used out of proper order.

This problem usually occurs in aggregation jobs with user-defined tables because of the order of the information map and aggregation transformations. Also, be sure to check the SAS log for file-allocation errors, which might cause the aggregation job to fail prematurely and not define the _ENCODEVALUE macro.

To circumvent this problem for aggregation jobs that are associated with user-defined tables, you must insert the following code at the top of the job to define the _encodeValue macro:

%macro _encodeValue(stringVar); %if ('&sysscp' eq 'OS') %then %do; encoding = getoption('ENCODING'); if (encoding not in ('EBCDIC1047','OPEN_ED-1047')) then do; &stringVar = kcvt(&stringVar,'EBCDIC1047',encoding); end; %end; %mend _encodeValue;

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS IT Resource Management-Serverz/OS3.1.19.1 TS1M3 SP4
Microsoft® Windows® for 64-Bit Itanium-based Systems3.1.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter 64-bit Edition3.1.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise 64-bit Edition3.1.19.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition3.1.19.1 TS1M3 SP4
Microsoft® Windows® for x643.1.19.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server3.1.19.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server3.1.19.1 TS1M3 SP4
Microsoft Windows 2000 Server3.1.19.1 TS1M3 SP4
Microsoft Windows 2000 Professional3.1.19.1 TS1M3 SP4
Microsoft Windows NT Workstation3.1.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition3.1.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise Edition3.1.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Standard Edition3.1.19.1 TS1M3 SP4
Microsoft Windows XP Professional3.1.19.1 TS1M3 SP4
Windows Vista3.1.19.1 TS1M3 SP4
64-bit Enabled AIX3.1.19.1 TS1M3 SP4
64-bit Enabled HP-UX3.1.19.1 TS1M3 SP4
64-bit Enabled Solaris3.1.19.1 TS1M3 SP4
HP-UX IPF3.1.19.1 TS1M3 SP4
Linux3.1.19.1 TS1M3 SP4
Tru64 UNIX3.1.19.1 TS1M3 SP4
* 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.