11-03-2014 11:27 PM
Very quick question on the KEYLEGEND statement.
Is the KEYLEGEND text always red when you type it into SAS? Since (I thought) red text indicates something isn't right, I'm wondering why it's doing that. It seems to work regardless so I suppose it isn't a big deal, but I wonder why it would be red (I have a minor case of OCD).
I have attached a screenshot to this message. The example is from the SAS help notes.
11-04-2014 03:44 AM
I am using SAS 9.2 and i found that:
If you are using the SAS editor you get this keyword in red.
but if you are using Enterprise Guide you will find it blue as normal.
and you will get in both the same result.
11-04-2014 12:18 PM
Usually when you see red, but the code still works, it means that some syntax didn't make it into the color-coding dictionary. If the code runs correctly then don't worry about it. The color-coding eventually catches up with the word in later releases.
11-04-2014 01:03 PM
If you don't want them to appear as red you can go to Tools> Options> Enhanced Editor Options > General. Click on "User Defined Keywords" and add items there. You user defined keywords will appear in the color and background set in the Appearance tab in the "File elements" window for SAS Program file type.
11-04-2014 09:33 PM
When I click "Enhanced Editor" SAS completely freezes up until I have to go into the task manager on my computer and end the program. Does anyone else have this issue or is it just me? Very puzzling, I wonder what's going on.