From the 5 Quick Tips: Getting the Most from Your Post series where a new quick tip was rolled out each day this week. Tip #5:
5. You can add highlighted SAS code to your post.
Good-to-know (or remember):
That's all the tips for now. I hope this series helped you start to get the most from your posts.
Feel free to post comments below. Do you have ideas or requests for more quick tips? Let me know. Talk with you soon!
To be notified of future posts, choose subscribe under blog options on the Community Memo.
<View Previous Tip #4
When you post a comment or question, the edit box has icons across the top. I have circled the "Running Man" icon in red, below:
Thank you for answering, @Rick_SAS. @caibird if you need more info, you can find it here: https://communities.sas.com/t5/tkb/articleprintpage/tkb-id/community_articles/article-id/286
I try to create a new binary variable Perform (1 or 0) based on another numeric variable Days. I am using SAS Enterprise guide 6.1
if Days =< 30 then Perform = 0;
else if Days > 30 then Perform = 1;
But the Perform only shows 0 although many observations have Days > 30. I also tried to switch the order of the codes as follow:
if Days > 30 then Perform = 1;
else if Days =< 30 then Perform = 0;
I got the same results. The new variable Perform shows 0 for all the observations.
Can anybody help me with this problem?
Any help is highly appreciated.
Thanks for your question! It's best to start a New Message in the SAS Enterprise Guide community - that way a host of experts will see it and hopefully be able to respond.
All the best,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.