Z=foo(x,y) /* not proc fcmp.a "proper" support of open code function definitions */ would also work, but would not be "sas-onic" ("pythonic") What I think would be even cooler is something like (it's just an illustration, to convey a concept - don't take it literally as the final syntax):Įndfunc * or whatever. 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. Educators can upload an additional 3GB of course data to share with students./* Check for system environment vars before running code */ %if %sysfunc (sysexist (ORACLE_HOME ) ) %then %do
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |