Hi Everyone, I have a situation where I need to run different data step based on output from 1st PROC SQL. I was looking for GOTO statement but it will not help because it needs to be used inside one data step. PROC SQL
query to get the details from DB2 table.
QUIT;
DATA _NULL_;
if &sqlobs = 0
I need to bypass below proc steps and execute the code from label XXXX
run;
proc sort data=xxx;
run;
proc SQL
another query to get data from DB2
quit;
DATA ABCD; SET AAAA ( KEEP=XX,YY,ZZ,...); few logics here..
run;
XXXX:
proc SQL
get data from DB2 table for another processing
quit;
proc print;
...
... Any suggestion will be really helpful. Thank you pk
... View more