Tip of the Day
sasCommunity Tip of the Day
In a DATA step, a logical expression like:
x < y < z < a
is evaluated as in math. i.e., it is equivalent to:
x < y and y < z and z < a
In macros, i.e., within %eval() or %sysevalf(), the comparison operators are left-associative. i.e., the above is equivalent to:
((x < y) < z) < a
Submitted By chang_y_chung
Feel free to comment on this tip.
Tips Index by Status
The Tip of the Day Project
A new technical Tip of the Day related to SAS software will be shown on this page and the sasCommunity.org main page every day. Before getting started, you can Browse and Search the current list of tips contributed by users.
Anyone can participate. We hope you do! Here's how:
- Submit a Tip by posting a SAS tip that you think others might find useful
- Review a Tip prior to publishing