L207: ORDER BY invalid because the column name applies to result of UNION or UNION ALL.

See the section Error SQLCODES in your IBM Database Messages and Codes manual, message -207, for information.
Restriction: This topic applies to Windows environments only.