wtst 发表于 2023-5-11 09:44 
应该是 calculated
详见https://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer. ...
这个可能不对,因为calculated在SAShelp里面说只能用于where.:
CALCULATED enables you to use the results of an expression in the same SELECT clause or in the [url=]WHERE clause[/url]. It is valid only when used to refer to columns that are
calculated in the immediate [url=]query expression[/url].
对于on是没用的。用SASHELP.class举个例子,以下代码就会报错。