SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 66402: An access violation occurs when the first argument to a DS2 method is a decimal array

DetailsHotfixAboutRate It

In DS2 procedure code, when the first argument to a method is a decimal data type, the following errors are written to the SAS® log:

ERROR: Access violation
ERROR: General error

The syntax below provides an example. The first argument to the M4 method is a decimal data type. However, if the decimal and double data types are switched with each other so that the decimal type is the second argument, the code runs without errors.

proc DS2 ;
   data _null_;
      method m4(decimal(10,2) v[4], double u);
         declare integer i;
            do i = 1 to 4;
               v[i] = u;
            end;
         end;
      method init();
         declare  double x;
         declare  decimal(10,2) z[4];

         x=44;
         m4(z,x);
            put z[*]=;
         end;
      enddata;
   run;
quit;

This issue is fixed in the SAS® Viya® 4.0.1 release.

Click the Hot Fix tab in this note to access the hot fix for this issue for SAS® 9.4M6 (TS1M6).



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASSolaris for x649.4 TS1M2Viya
Linux for x649.4 TS1M2Viya
Windows 7 Ultimate 32 bit9.4 TS1M2
Windows 7 Professional 32 bit9.4 TS1M2
Windows 7 Home Premium x649.4 TS1M2Viya
Windows 7 Home Premium 32 bit9.4 TS1M2
Windows 7 Enterprise x649.4 TS1M2Viya
Windows 7 Enterprise 32 bit9.4 TS1M2
Microsoft Windows Server 2012 Std9.4 TS1M2Viya
Microsoft Windows Server 2012 R2 Std9.4 TS1M2Viya
Microsoft Windows Server 2012 R2 Datacenter9.4 TS1M2Viya
Microsoft Windows Server 2012 Datacenter9.4 TS1M2Viya
Microsoft Windows Server 2008 for x649.4 TS1M2Viya
Microsoft Windows Server 2008 R29.4 TS1M2Viya
Microsoft Windows Server 20089.4 TS1M2
Microsoft Windows 109.4 TS1M2Viya
Microsoft Windows 8.1 Pro x649.4 TS1M2Viya
Microsoft Windows 8.1 Pro 32-bit9.4 TS1M2
Microsoft Windows 8.1 Enterprise x649.4 TS1M2Viya
Microsoft Windows 8.1 Enterprise 32-bit9.4 TS1M2
Microsoft Windows 8 Pro x649.4 TS1M2Viya
Microsoft Windows 8 Enterprise 32-bit9.4 TS1M2
Microsoft® Windows® for x649.4 TS1M2Viya
z/OS 64-bit9.4 TS1M2Viya
HP-UX IPF9.4 TS1M2Viya
64-bit Enabled Solaris9.4 TS1M2Viya
64-bit Enabled AIX9.4 TS1M2Viya
Windows 7 Ultimate x649.4 TS1M2Viya
Windows 7 Professional x649.4 TS1M2Viya
Microsoft Windows 8 Pro 32-bit9.4 TS1M2
Microsoft Windows 8 Enterprise x649.4 TS1M2Viya
z/OS9.4 TS1M2Viya
* 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.