42: ) is
43: --
44: -- DECLARATIONS
45: --
46: v_batch_id pay_batch_headers.batch_id%TYPE := null;
47: --
48: cursor c_get_header(l_old_batch_id number, l_new_batch_id number) is
49: select batch_id
50: from pay_batch_headers
46: v_batch_id pay_batch_headers.batch_id%TYPE := null;
47: --
48: cursor c_get_header(l_old_batch_id number, l_new_batch_id number) is
49: select batch_id
50: from pay_batch_headers
51: where batch_id in (l_old_batch_id,l_new_batch_id)
52: for update;
53: --
54: begin