Currently I have this table below:
| status | not_recruiting | status1 | recruiting |
| ABCD | 1 | 1 | |
| EFGH | 1 | EFGH | 1 |
| HIJK | 1 | HIJK | 1 |
| LMNO | 1 | 1 | |
| QRST | 1 | QRST | 1 |
Basically if status and status1 are not blank then I want the final site_status = "Recruiting"
if status1 is blank then i want the final status to be site_status = "Not recruiting"
and I want to delete all the duplicates
i can get the if statement to work but i do not want to create more additional datasets. want to delete in one step
Duplicates? I don't see any.
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 save with the early bird rate—just $795!
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.