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);