Hello
I am running a sas program and get 0 errors and 0 warnings.
However, there is red X in program tab and also rex X in error tab
@Ronein wrote:
But how can I know where did it occur in the program??
Read the log from top down; there is also a text search function available, IIRC. But I STRONGLY recommend to clean up your code from the start, step by step. See Maxim 25.
To start with I would search for "ERROR".
The red X on the error tab is not a problem. It is always there, as a visual icon to indicate it is the error tab.
The red X on the program tab is a concern. It indicates (I believe) that an error was generated the last time code from the program was submitted. I agree, it's surprising to see a red X on the program tab while the error tab reports 0 errors.
I wonder if it's possible you have turned off log messages at some point (e.g. via PROC PRINTTO or similar)? Or if an error is being generated by EG pre-code or post-code which is not shown is the log? Those are just guesses as to possible causes. I don't know the actual condition that EG uses to flag the program tab with an X.
One thing you could try would be to run a step that does not generate errors, and confirm that the red X on the program tab goes away, then run your full program again, and see if it returns.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.