@lioradam wrote:
Hello all,
I have trouble with adding comments by using an asterisk at the beginning and at the end of the comment.
before the comment, I enter /* and after the comment, I enter */. Most of the time, it works fine, however, sometimes it doesn't work (I enter */ at the end of the comment and the following code is still colored in green).
Does anyone had this trouble and know how to fix it?
Thanks in advance,
Lior
Coloring is some feature of the editor you are using, not the SAS language itself. The editor does not really know the impact of all of the various SAS syntaxes, especially if you are using macro code at all.
To tell if your comments are entered correctly you need to run the code.
Block comments start with /* and end with */ and cannot be nested.
Statement comments start with * and end with a semi-colon (just like any other SAS statement).
Macro statement comments start with %* and end with a semi-colon (just like any other macro statement).