BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

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_0-1760954315558.png

 

10 REPLIES 10
Ronein
Onyx | Level 15
But how can I know where did it occur in the program??
Kurt_Bremser
Super User

@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.

Ksharp
Super User
For the issue mentioned by Kurt, you could try option:
option noquotelenmax;


But look from your screen shot, it more looks like a sas bug, I suggest you to contact with sas technical support.
Ronein
Onyx | Level 15
If Igo to log what word should I search there to find the data set where it's creation cause the problem?
PaigeMiller
Diamond | Level 26

Maxim 2

--
Paige Miller
Quentin
Super User

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.

The Boston Area SAS Users Group is hosting free webinars!

Register now at https://www.basug.org/events.
Kurt_Bremser
Super User

And make sure that your code does nowhere contain the word ERROR (in capitals) and that there is nothing that writes this word to the log (e.g. a PUT statement where the data contains ERROR).

Tom
Super User Tom
Super User

@Kurt_Bremser wrote:

And make sure that your code does nowhere contain the word ERROR (in capitals) and that there is nothing that writes this word to the log (e.g. a PUT statement where the data contains ERROR).


I certain hope that SAS/Studio is not so simple minded as to treat that as an indication of an error.  And I have never seen it do that.

Kurt_Bremser
Super User

I think we're dealing with EG here, based on the screenshot. And I think I had something similar happen to me quite some time ago with EG. 

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 10 replies
  • 3280 views
  • 2 likes
  • 6 in conversation