oracle - work around keyword by calling same procedure? -


since continue keyword wont work coz of following reason tried make work around calling same procedure , passing next value record right way ??

ora-06550: line 1, column 26: pls-00201: identifier 'continue' must declared ora-06550: line 1, column 26: pl/sql: statement ignored

declare  cust_id info.customer_id@prod%type; v_cust_info_customer_id feb_prd_14_view.cust_info_customer_id@rtx%type; v_initial_start_time_timestamp feb_prd_14_view.initial_start_time_timestamp@rtx%type;  cursor rated_rejectes_calls_cursor  select s_p_num,call_start_time fi_sdine.rejected_calls_87@prod  upper (status)='rated';  begin rated_rejectes_calls_rec in rated_rejectes_calls_cursor loop if (rated_rejectes_calls_rec.s_p_num not null)  begin  select customer_id cust_id bmh.info@prod dn_num=rated_rejectes_calls_rec.s_p_num;  if (v_cust_info_customer_id null ) select cust_info_customer_id, initial_start_time_timestamp v_cust_info_customer_id,v_initial_start_time_timestamp  fi_masaad.feb_prd_14_view@rtx  cust_info_customer_id =cust_id , initial_start_time_timestamp=rated_rejectes_calls_rec.call_start_time  group cust_info_customer_id,initial_start_time_timestamp;  dbms_output.put_line('null not found '||v_cust_info_customer_id);  end if;  dbms_output.put_line('the customer id s_p_num '||rated_rejectes_calls_rec.s_p_num||' '||cust_id|| ' , call start time  '||rated_rejectes_calls_rec.call_start_time||' has been found' ); dbms_output.put_line('the customer id'||v_cust_info_customer_id||' , call start '||v_initial_start_time_timestamp);  exception   when no_data_found dbms_output.put_line('the customer id not found s_p_num '|| rated_rejectes_calls_rec.s_p_num);  --contunie; -- recall procedure , pass next value same procedure ? exec check_rejected_cdrs(rated_rejectes_calls_rec.nextval);  end; end if; end loop; end; end check_rejected_cdrs; 

you have exception handler in wrong place. think trying achieve this....

declare  cust_id info.customer_id@prod%type; v_cust_info_customer_id feb_prd_14_view.cust_info_customer_id@rtx%type; v_initial_start_time_timestamp feb_prd_14_view.initial_start_time_timestamp@rtx%type;  cursor rated_rejectes_calls_cursor  select s_p_num,call_start_time fi_sdine.rejected_calls_87@prod  upper (status)='rated';  begin rated_rejectes_calls_rec in rated_rejectes_calls_cursor loop     if (rated_rejectes_calls_rec.s_p_num not null)      begin           select customer_id cust_id bmh.info@prod dn_num=rated_rejectes_calls_rec.s_p_num;           if (v_cust_info_customer_id null )              begin                 select cust_info_customer_id, initial_start_time_timestamp v_cust_info_customer_id,v_initial_start_time_timestamp             fi_masaad.feb_prd_14_view@rtx              cust_info_customer_id=cust_id             , initial_start_time_timestamp=rated_rejectes_calls_rec.call_start_time             group cust_info_customer_id,initial_start_time_timestamp;              dbms_output.put_line('null not found '||v_cust_info_customer_id);    

exception when no_data_found dbms_output.put_line('the customer id not found s_p_num '|| rated_rejectes_calls_rec.s_p_num); exec check_rejected_cdrs(rated_rejectes_calls_rec.nextval); end;

         end if;           dbms_output.put_line('the customer id s_p_num '||rated_rejectes_calls_rec.s_p_num||' '||cust_id|| ' , call start time  '||rated_rejectes_calls_rec.call_start_time||' has been found' );          dbms_output.put_line('the customer id'||v_cust_info_customer_id||' , call start '||v_initial_start_time_timestamp);      end;      end if;  end loop;  end;  end check_rejected_cdrs; 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -