qingww 发表于 2010-10-25 07:51 
请问
有哪些STATEMENTS 是只能在COMPILE 阶段?
有哪些STATEMENTS 是只在PROCESSING 阶段?
又有哪些 可以在 这两个阶段?
It is better to classify them as executable and non-executable.
All statements in a data step all be compiled, and if they pass the compiling, then they get executed. Otherwise sas supervisor issues error messages.
Non-executable statements are those providing descreptive information about the variables during the compiling stage, such as
1) length
2) label
3) format
4) informat
5) retain (it may be semi-executable)
All other statements are executable and they may also provide information about the variables during the compiling stage.
Hope this is clear.