Hi,
This looks a bit like homework. What have you tried so far? Share any code you have tried and show the log with any error messages.
If you haven't tried anything yet then try looking at the if statement documentation, which includes examples:
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000202239.htm
then you can post back your findings.
What you have said could almost be put into SAS:
if indicator1 ne 0 or indicator2 ne 'N'
Edit: For the "unique" requirement, you could test for "first.variable" and "last.variable".
Regards,
Amir.
what do you mean by
who have indicator 1 as
NOT 0 or indicator 2 as NOT N in my output.
Can you post the output for your input sample plz
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.