SUPPORT / SAMPLES & SAS NOTES
 

Support

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"

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Visual Data Mining and Machine LearningMicrosoft® Windows® for x648.4Viya
Linux for x648.4Viya
* 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.