Problem Note 39961: "ERROR: Parsing error generating code." when indexing an array within a DO-WHILE loop
You might get the following error message when you have a DO-WHILE loop in PROC FCMP or PROC COMPILE:
ERROR: Parsing error generating code.
This problem is known to occur if an array is indexed within a DO-WHILE statement. For example:
do i=1 to N while z[i] <= M;
You can circumvent this problem by indexing the array within the DO-WHILE loop. Here is an example using a dummy variable:
do i=1 to N while z[i] <= M;
temp = z[i];
...
end;
Operating System and Release Information
| SAS System | Base SAS | z/OS | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows XP 64-bit Edition | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows 2000 Advanced Server | | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | | | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Enterprise Edition | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Standard Edition | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows XP Professional | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Windows Vista | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Windows Vista for x64 | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| 64-bit Enabled AIX | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| 64-bit Enabled HP-UX | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| 64-bit Enabled Solaris | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| HP-UX IPF | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Linux | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Linux on Itanium | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| OpenVMS Alpha | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Solaris for x64 | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Tru64 UNIX | | | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| SAS System | SAS Risk Dimensions Enterprise Edition | Microsoft Windows 2000 Advanced Server | 4.2.1 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 4.2.1 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 4.2.1 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 4.2.1 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 4.2.1 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Enterprise Edition | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows Server 2003 Standard Edition | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Microsoft Windows XP Professional | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Windows Vista | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Windows Vista for x64 | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| 64-bit Enabled AIX | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| 64-bit Enabled HP-UX | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| 64-bit Enabled Solaris | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| HP-UX IPF | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
| Linux | 4.2.1 | 5.31 | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
*
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 |
| Date Modified: | 2011-05-31 10:07:09 |
| Date Created: | 2010-06-10 14:21:33 |