我遇到过一模一样的问题 后面发现是in-line view的特性 无解
Characteristics of in-line views include the following:
• An in-line view is not assigned a permanent name, although it can take an alias.
• An in-line view can be referred to only in the query in which it is defined. It cannot
be referenced in another query.
• You cannot use an ORDER BY clause in an in-line view.
http://support.sas.com/documentation/cdl/en/sqlproc/69822/PDF/default/sqlproc.pdf
page 262