DATA Step, Macro, Functions and more

stopping sas run after the first error

Reply
Super Contributor
Posts: 371

stopping sas run after the first error

Hello expert,

can we stop sas running after the first error ? and debeuging ?

 

exemple:

 

data t;

v=2;

w=5

run;

 

data toto;

g=1;

run;

 

Thank you

 

 

Super User
Super User
Posts: 6,502

Re: stopping sas run after the first error

Did you try the ERRORABEND option?

Super Contributor
Posts: 371

Re: stopping sas run after the first error

[ Edited ]

@Tom: Thank you

            I have seen it before in the globals option, but  I have not used it in my program ...I will try it

            Some time, I try in side a macro &syserr. and %abort cancel;

                

            Please, is it also possible to debeug(to see the process of calcul step by step ) an IML proc  function : EIGVEC ?

 

PROC Star
Posts: 1,566

Re: stopping sas run after the first error

Stopping SAS upon any error without killing the session is an age-old request to SAS.

 

See support.sas.com/kb/24825 for the only way to do this that I know.

 
Ask a Question
Discussion stats
  • 3 replies
  • 251 views
  • 2 likes
  • 3 in conversation