sas macro - In SAS Data Intergration, Create a user written transformation to skip further job execution without giving an error when certain condition is true -
i want create user written transformation skip further job execution when condition true. have tried code
%abort; %abort cancel;
but these statements gives error, stopped processing because of %abort statement. don't want error message displayed, skip remaining job execution. e.g. if source table has 0 observations out of job without logging error message or warning.
hmm, not sure if work in sas di (i don't have test), use below macro:
%macro stop_sas; %if "&sysenv" eq "fore" %then %do; %abort cancel; %end; %else %do; endsas; %end; %mend;
it checks see if sas running batch job or not, , if is, quits sas quietly. if sas running in interactive mode, abort submitted code, without closing ide.
the key statement here endsas
command - part looking for.
Comments
Post a Comment