558: arg_err_mesg := NULL;
559:
560: select to_date(arg_start_date,'J') - sysdate
561: into greater_than_plan_date 562: from dual; 563:
564: if greater_than_plan_date > 0 then
565: return 0;
566: -- there will be no history for any sourcing rule with start_date greater than sysdate.