News from your SAS community managers

Getting the Most from Your Post: SAS Syntax Highlighter

by Community Manager on ‎10-23-2015 08:00 AM (1,624 Views)

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):

  •  Just click the running man icon. A box pops open. Type or paste your SAS code. Then post.
  • The highlighting will not appear in preview mode, but when you post it looks like this:




  • Kudos to @Patrick for using this feature so effectively.


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


by Occasional Contributor caibird
on ‎11-11-2017 03:16 AM
what is the running man icon look like? I see nothing in my window.
by SAS Super FREQ
on ‎11-11-2017 06:42 AM

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:


Region Capture.png

by Community Manager
on ‎12-07-2017 09:59 AM

Thank you for answering, @Rick_SAS@caibird if you need more info, you can find it here:



by Occasional Contributor jeniffer_jacob
a month ago

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




data want;

  set test;

  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:  




data want;

  set test;

  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.

by Community Manager
a month ago

Hi @jeniffer_jacob,


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,