If sub program 9997 is the piercing macro and you want to change it you need to save it first. It could be locked and not visible in CNC program list. change parameter 3202 bit #4 (NE9) to 0 to unlock 9000-series programs. Then punch out all programs (O-9999 PUNCH) and keep them as a back-up.
If you need help changing a macro program post the macro program here.