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
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.