The bootstrap program sys.prog.cpy uses sys.copy_data when
copying the control break information.
The following is a copy of the PCL that copies the sys.cb_hdr data.
cbh2.sys.cbh_prname = newname;
cbh2.sys.cbh_name = cbh1.sys.cbh_name;
if (sys.read_file(cbh2,F_ADD|F_NOMSG) < 0) {
beep();
sys.msg("Warning: Program/CB: " + newname +
cbh1.sys.cbh_name + " Already Exists");
sys.read_file(cbh2,F_MODIFY);
}
sys.copy_data(cbh1,cbh2);
sys.upd_file(cbh2,F_DEFAULT);
NOTE: The pcl name is copycbh() and it is the DrSelect
PCL for the cbh1 driver.