| 1. |
Does Sas ?translate? (compile) Or Does It ?interpret? |
|
Answer» A typical SAS program could contain DATA steps, PROC steps and macros. Macros are PREPROCESSED. DATA steps are just in time compiled. PROC steps are interpreted in the ORDER they appear in program. So when we submit a SAS program consisting of all these three components, the macro is compiled and executed first. If a DATA step is encountered, then it is compiled and executed. NOTE that the DATA step will not be executed if there is an error in the compilation. If a PROC step is encountered, it is interpreted and executed LINE by line. However i am not certain on this PROC step behavior. A typical SAS program could contain DATA steps, PROC steps and macros. Macros are preprocessed. DATA steps are just in time compiled. PROC steps are interpreted in the order they appear in program. So when we submit a SAS program consisting of all these three components, the macro is compiled and executed first. If a DATA step is encountered, then it is compiled and executed. Note that the DATA step will not be executed if there is an error in the compilation. If a PROC step is encountered, it is interpreted and executed line by line. However i am not certain on this PROC step behavior. |
|