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?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.