SAS set option OBS=0 and will continue to check statements.

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

SAS set option OBS=0 and will continue to check statements.

hallo zusammen,

 

ich benutze ein "runquit_macro", das ich im netz gefunden habe. das prüft nach jedem befehl ob ein fehler aufgetreten ist. wenn ja, sollen einige sicherungsdateien wieder zurückgespielt werden die in diesem macro stehen. am ende dann wird sas mit "%ABORT CANCEL" abgebrochen.

 

mein problem ist, das nun nach einem fehler alle folgenden data-anweisungen nicht mehr umgesetzt werden,

es kommen immer die meldungen:

 

- NOTE: The data set PK2.KIGGS2_P has 0 observations and 5309 variables.
- WARNING: Datei PK2.KIGGS2_P wurde nicht ersetzt. Grund: da dieser Schritt angehalten wurde.

 

- NOTE: The data set EK2.KIGGS2_E_QS has 0 observations and 783 variables.
- WARNING: Datei EK2.KIGGS2_E_QS wurde nicht ersetzt. Grund: da dieser Schritt angehalten wurde.

- usw.

 

im anhang habe ich das macro und das log-file angehangen, dort habe ich auch alles beschriftet.

 

frage:

wie kann ich SAS sagen, das es wieder "normal" reagieren soll und das es meine data-befehle weiter abarbeitet?

 

ich hoffe, das ich mein anliegen einigermassen erklären konnte.

 

gruss und vielen dank für eure hilfe.

gairon

Attachment

Accepted Solutions
Solution
‎11-01-2017 01:21 AM
New Contributor
Posts: 4

Re: SAS set option OBS=0 and will continue to check statements.

hi,

 

I have now added the following in my "runquit macro":

options obs = max;
options replace;
options nosyntaxcheck;

 

This would now execute the data commands again.

greeting
gairon

 

p.s.

sorry for my bad english

View solution in original post


All Replies
PROC Star
Posts: 2,128

Re: SAS set option OBS=0 and will continue to check statements.

From online translation:

 

Hello everybody,
 
I use a "runquit_macro", which I found in the net. this checks for every command whether an error has occurred. if so, some backup files are to be re-played in this macro. at the end, sas is aborted with "% ABORT CANCEL".
 
my problem is that now after an error all the following data statements are no longer implemented,
there are always the messages:
 
- NOTE: The data set PK2.KIGGS2_P has 0 observations and 5309 variables.
- WARNING: file PK2.KIGGS2_P has not been replaced. Reason: because this step was stopped.
 
- NOTE: The data set EK2.KIGGS2_E_QS has 0 observations and 783 variables.
- WARNING: File EK2.KIGGS2_E_QS has not been replaced. Reason: because this step was stopped.
- etc.
 
in the appendix I have attached the macro and the log file, there I have also labeled everything.
 
question:
how can I tell SAS that it should react again "normal" and that it my data commands continue to work?
 
I hope that I could explain my concern to some extent.
 
gruss and many thanks for your help.
gairon
PROC Star
Posts: 2,128

Re: SAS set option OBS=0 and will continue to check statements.

Have you check if this linked to the errorcheck option, with SAS entering syntax-check mode ?

 

Run this an check the meaning of the options that are set:

 

 

proc options group= errorhandling; run;

 

 

 

 

 

Solution
‎11-01-2017 01:21 AM
New Contributor
Posts: 4

Re: SAS set option OBS=0 and will continue to check statements.

hi,

 

I have now added the following in my "runquit macro":

options obs = max;
options replace;
options nosyntaxcheck;

 

This would now execute the data commands again.

greeting
gairon

 

p.s.

sorry for my bad english

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 332 views
  • 0 likes
  • 2 in conversation