Problem Note 66402: An access violation occurs when the first argument to a DS2 method is a decimal array
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
SAS System | Base SAS | Solaris for x64 | 9.4 TS1M2 | Viya |
Linux for x64 | 9.4 TS1M2 | Viya |
Windows 7 Ultimate 32 bit | 9.4 TS1M2 | |
Windows 7 Professional 32 bit | 9.4 TS1M2 | |
Windows 7 Home Premium x64 | 9.4 TS1M2 | Viya |
Windows 7 Home Premium 32 bit | 9.4 TS1M2 | |
Windows 7 Enterprise x64 | 9.4 TS1M2 | Viya |
Windows 7 Enterprise 32 bit | 9.4 TS1M2 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M2 | Viya |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M2 | Viya |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M2 | Viya |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M2 | Viya |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M2 | Viya |
Microsoft Windows Server 2008 R2 | 9.4 TS1M2 | Viya |
Microsoft Windows Server 2008 | 9.4 TS1M2 | |
Microsoft Windows 10 | 9.4 TS1M2 | Viya |
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M2 | Viya |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M2 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M2 | Viya |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M2 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M2 | Viya |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M2 | |
Microsoft® Windows® for x64 | 9.4 TS1M2 | Viya |
z/OS 64-bit | 9.4 TS1M2 | Viya |
HP-UX IPF | 9.4 TS1M2 | Viya |
64-bit Enabled Solaris | 9.4 TS1M2 | Viya |
64-bit Enabled AIX | 9.4 TS1M2 | Viya |
Windows 7 Ultimate x64 | 9.4 TS1M2 | Viya |
Windows 7 Professional x64 | 9.4 TS1M2 | Viya |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M2 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M2 | Viya |
z/OS | 9.4 TS1M2 | Viya |
*
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: | medium |
Topic: | SAS Reference ==> Procedures ==> DS2
|
Date Modified: | 2020-10-09 10:14:21 |
Date Created: | 2020-07-31 10:08:14 |