Problem Note 69485: Running a scoring test in SAS® Model Manager fails with the message "ERROR: Statement is not valid or it is used out of proper order"
When you run a scoring test for a decision tree, a scorecard, or a neural network model that is registered from SAS® Model Studio, it might fail with the following error in the corresponding SAS log:
warning: WARNING: Assuming the symbol ELSE was misspelled as elseif.
error: ERROR: Statement is not valid or it is used out of proper order.
error: ERROR: No matching DO/SELECT statement. warning:
WARNING: Assuming the symbol ELSE was misspelled as elseif.
error: ERROR: Statement is not valid or it is used out of proper order.
This issue is caused by generated score code (dmcas_scorecode.sas) that contains the following:
else
if
To work around this issue, you need to manually modify the dmcas_scorecode.sas code to make the above code similar to the following:
else if
Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.
Operating System and Release Information
SAS System | SAS Visual Data Mining and Machine Learning | Microsoft® Windows® for x64 | 8.4 | | Viya | |
Linux for x64 | 8.4 | | 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: | high |
Date Modified: | 2022-09-16 14:40:47 |
Date Created: | 2022-08-18 14:49:09 |