Hello
I have the first 2 columns on the following dataset, and I would like to obtain the third column. The third column is a "Yes" if it contains a subset of the First cell, and "No" otherwise. Thank you in advance:
| Master | New | Condition_Desired |
| Order_UNIQ_ID | Program_Order_UNIQ_ID | Yes |
| PRVDR_STATE_Program_ID | Program_PRVDR_STATE_Program_ID | Yes |
| RCPNT_STATE_Program_ID | Program_RCPNT_STATE_Program_ID | Yes |
| SUBMTG_Program_LCL_STATE_CD | Program_SUBMTG_LCL_STATE_CD | No |
| Order_RCPNT_1ST_NAME | BENE_RCPNT_1ST_NAME | No |
if find(new,strip(master))
then condition_desired ="Yes";
else condition_desired ="No";
if find(new,strip(master))
then condition_desired ="Yes";
else condition_desired ="No";
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!
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.