Hi,
I have a table, where each line represents a day of information for a given product.
I would like to know how to create an IF that compares the lines.
Exemple:
| date | prodid | prodname | status |
| 01/01/2021 | 111 | xpto | 0 |
| 02/01/2021 | 11 | xpto | 1 |
IF prodid from line 2 is different from line 1 = "status has changed"
Is it possible to do that?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.