Hi Folks,
I have the following IML code in a large macro called %LARGE. Of course, there are other command lines within OOPS module. I want to exit IML and go to label "doit" if there is any error when executing IML. But it falied to execute %goto statement. Could anybody help? Thanks.
proc iml;
start; /* module will be named MAIN */
errcode = {" %if errors >= 0 %then %goto doit ; "} ;
call push (errcode);
errors = 0;
start oops; /* start module OOPS */
.......
.......
finish; /* finish OOPS */
run oops;
finish; /* finish MAIN */
errors= -1; /* disable */
quit;