source does not have runnable target [message #630260] |
Tue, 23 December 2014 20:12 |
|
zenthil86
Messages: 9 Registered: December 2014 Location: fremont
|
Junior Member |
|
|
Hi
Im trying to execute the below code and im getting error as "source does not have runnable target". it s getting compiled without any errors. please help
CREATE OR replace PROCEDURE Isql (v_childtbl_nme IN VARCHAR2,
v_istatement OUT VARCHAR2)
AS
v_iquery VARCHAR2(100);
BEGIN
SELECT 'insert into infa_ilm.asdr_id_xref select '
||'id.'
|| v_childtbl_nme
|| ' as id_value '
|| ' from '
|| v_childtbl_nme
|| Xmlagg(XMLELEMENT(e, ', '||parent_tbl_name)).EXTRACT('//text()')
|| 'where CASE_L.CREATEDDATE < '
||'2 years'
||' and case_l.isdeleted='
|| ''''
|| 'Y'
|| ''''
||
Xmlagg(XMLELEMENT(e, ('and '||child_tbl_name||'.'||child_col_name||
' = '||
parent_tbl_name||'.'||parent_fk_col_nm)||' ')).EXTRACT('//text()')
INTO v_iquery
FROM infa_ilm.sfdc_relations1
START WITH child_tbl_name = v_childtbl_nme
CONNECT BY PRIOR parent_tbl_name = child_tbl_name;
v_istatement := v_iquery;
END isql;
Thanks,
Senthil Kumar
*BlackSwan formatted code & added {code} tags. Please do so yourself in the future.
[Updated on: Tue, 23 December 2014 20:32] by Moderator Report message to a moderator
|
|
|
|
|
|
|