Problem Note 60569: Running the DS2 MISSING_NOTE option with the hash package causes code-generation failure and compilation errors
When DS2 procedure code contains the hash package, and the MISSING_NOTE DS2 option is specified, the following errors are generated:
ERROR: Compilation error.
ERROR: Internal code generation failure.
ERROR: Line 76: Package/extension type hash is not defined.
This problem occurs with any solution that generates PROC DS2 code and uses the hash package.
Workaround
Isolate the function calls, which require the MISSING_NOTE option, in a package.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows 8 Enterprise 32-bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft® Windows® for x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
z/OS | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
z/OS 64-bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 8 Enterprise x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 8 Pro 32-bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 8 Pro x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 8.1 Enterprise x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 8.1 Pro 32-bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 8.1 Pro x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows 10 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows Server 2008 | 9.4_M3 | | 9.4 TS1M3 | |
Microsoft Windows Server 2008 R2 | 9.4_M3 | | 9.4 TS1M3 | |
Microsoft Windows Server 2008 for x64 | 9.4_M3 | | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Datacenter | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows Server 2012 R2 Std | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Microsoft Windows Server 2012 Std | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Enterprise 32 bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Enterprise x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Home Premium 32 bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Home Premium x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Professional 32 bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Professional x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Ultimate 32 bit | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Windows 7 Ultimate x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
64-bit Enabled AIX | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
64-bit Enabled Solaris | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
HP-UX IPF | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Linux for x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
Solaris for x64 | 9.4_M3 | 9.4_M5 | 9.4 TS1M3 | 9.4 TS1M5 |
*
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.
When you run PROC DS2 code, the MISSING_NOTE option writes a note to the SAS log when an invalid function argument generates a missing value. This option is specified in the DS2_OPTIONS statement. The code below illustrates how the combination of this option along with the hash package causes errors.
PROC DS2 ;
ds2_options missing_note;
data _null_ ;
dcl package hash ruleSetNameHash;
dcl double z;
method run();
z = irr( 1.0 , -400.0 , . , . , . );
end;
enddata;
run;
quit;
/* The SAS log would reflect these errors */
ERROR: Compilation error.
ERROR: Internal code generation failure.
ERROR: Line n: Package/extension type hash is not defined.
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> Procedures ==> DS2
|
Date Modified: | 2017-06-07 09:48:29 |
Date Created: | 2017-06-02 12:03:11 |