Look, this is cool, and a welcome addition to SAS 9.4M5.īut am I the only one who feels like this is around 20 years late? Are we so excited about this simply because the SAS base language has lacked modern programming constructs for so long? WANT MORE GREAT INSIGHTS MONTHLY? | SUBSCRIBE TO THE SAS TECH REPORT That includes the most recent release of SAS University Edition, so if you don't have the latest SAS release in your workplace, this gives you a way to kick the tires on this feature if you can't wait to try it. If you need that flexibility, you can do that within a %MACRO wrapper instead.Īnd remember, this works only in SAS 9.4 Maintenance 5 and later. The same is true for any statements that follow the optional %ELSE branch of the condition.Īnd second: no nesting of multiple %IF/%THEN constructs in open code. These are different from what's allowed within a %MACRO wrapper.įirst rule: your %IF/%THEN must be followed by a %DO/%END block for the statements that you want to conditionally execute. * assign an Oracle library */ libname ora oracle path=corp schema=alldata authdomain=oracle Īs awesome as this feature is, there are a few rules that apply to the use of the construct in open code. * Check for system environment vars before running code */ %if %sysfunc (sysexist (ORACLE_HOME ) ) %then %do
0 Comments
Leave a Reply. |