COBSQ0189 'ORDER BY' clause not permitted.

Restriction: This topic applies to Windows environments only.

The SQL Option preprocessor found an ORDER BY clause in an embedded SELECT...INTO statement. This is not valid on the mainframe.

Remove the ORDER BY clause or convert the statement into a DECLARE CURSOR statement, then recompile the program.