Save the Program Definition and Instance IDs for Future Use

The input/output Parameter PIO_SOURCECDRNAMING returns the Object ID (obj_id) of the Program instance.

To get the Object ID of the Program definition, use the following query:

select ref_obj_id,ref_obj_ver from cdr_naming_versions where company_id =  your_company_idand obj_id = your_program_instance_obj_id and obj_ver=1;