How to format code in PC SAS? We don't seem to have a code format right click option in PC SAS.
Manual formatting is so boring and annoying particularly for lazy folks like me, and poor formatted code (mine) gives me enormous eye strain.
Is there an alternative?
Not AFAIK, I often open EG or SAS Studio for that reason, copy code there format and paste back 😄
@novinosrin wrote:
How to format code in PC SAS? We don't seem to have a code format right click option in PC SAS.
Manual formatting is so boring and annoying particularly for lazy folks like me, and poor formatted code (mine) gives me enormous eye strain.
Is there an alternative?
It is also highly unlikely that this legacy SAS interface will get any major enhancements like this in the future as it is very much just being maintained as is. SAS EG and SAS Studio are now the interfaces getting all of the improvements.
@SASKiwi wrote:
It is also highly unlikely that this legacy SAS interface will get any major enhancements like this in the future as it is very much just being maintained as is. SAS EG and SAS Studio are now the interfaces getting all of the improvements.
Thank you all for the responses. I tried my best search online to find a parallel in the objective of some code editor to at least get basic indents done and absolutely no luck 😞 😞 😞 Very disappointed!!!
How about this idea, i.e when we post the code here using the running man icon, we get to have a pop up or prompt asking
choose
1. format code
2. No format code
and then we get to choose and post it as we like. Any thoughts?
SAS has enough trouble getting a syntax highlighter that comes close to understanding the complexity of SAS code.
So I am not sure how much I would trust a program to format SAS code properly.
Plus it would need a lot of options to format code to match users' personal style.
Most of the ones I have seen do nasty things like
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.