Problem Note 62392: The LEAVE and CONTINUE statements generate errors when they are used with PROC FCMP
The LEAVE and CONTINUE statements generate the following error when they are used with PROC FCMP:
ERROR 180-322: Statement is not valid or it is used out of proper order.
This issue is corrected in the fourth maintenance release of SAS® 9.4 (TS1M4).
To circumvent this issue, use a DO UNTIL loop. When the condition is met and you want to leave the loop, set the condition that satisfies the UNTIL and terminate the loop. Here is an example:
leave=0;
do until(leave>0);
qwe+1;
output;
if qwe > 10 then leave=1;
end;
Operating System and Release Information
SAS System | Base SAS | Linux | 9.2 TS1M0 | 9.4 TS1M4 |
HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M4 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M4 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M4 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M4 |
Windows Vista for x64 | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
z/OS 64-bit | 9.2 TS1M0 | 9.4 TS1M4 |
Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M4 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M4 |
Linux for x64 | 9.2 TS1M0 | 9.4 TS1M4 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
z/OS | 9.2 TS1M0 | 9.4 TS1M4 |
*
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: | high |
Date Modified: | 2018-06-11 11:19:32 |
Date Created: | 2018-05-31 11:57:12 |