I am attempting my first Modification exercise and would like to know the best way to achieve what I require
This code exists in many programs and needs amending.
Before Code
0580 *
0590 MOVE *PROGRAM TO #PROGRAMA
0600 CALL ‘C283MU’ #PROGRAMA
0610 IF #PROGRAMA = ‘ERRORCON’
0620 TERMINATE
0630 END-IF
0640 *
0650 ON ERROR
0660 INCLUDE N90ERROR
0670 END-ERROR
0680 *
After Code
0580 *
0590 * MOVE *PROGRAM TO #PROGRAMA
0600 * CALL ‘C283MU’ #PROGRAMA
0610 * IF #PROGRAMA = ‘ERRORCON’
0620 * TERMINATE
0630 * END-IF
0640 *
0650 ON ERROR
0660 * INCLUDE N90ERROR
0661 INCLUDE NMI9ERROR
0670 END-ERROR
0680 *
I other words remove code 590 - 630 by commenting out
and replacing the INCLUDE object name at 660
I have set up impact analysis
Search Keyword…: MOVE
Search Value (Data Item/Lite
*PROGRAM____________________
Y Data Item _ Literal
Search Keyword…: CALL
Keyword Value (Cal
C283MU____________
Search Value (Data
Y Data Item _
Search Keyword…: TERMINATE_____
Object Name…: ________
Search Keyword…: IF_____
Object Name…: _______
I have run Impact Analysis choosing I object I know contains this data
Choose M to modify on line the 1 object
and get the following
C T Line Attr Ext.Obj Element Name
_ A I 0590 *PROGRAM
_ A K 0600 C283MU
_ A K 0620 TERMINATE
My IF statement is not found , but that is another query.
What is the best way to specify commenting out the found code ??
I have looked at the User Exit NEEUEX3,
coding if statements looking for the code in lines 590 - 630 replacing the original with an * in pos 1 of the line
but not successful
This is the result of adding * ** and *** in the replace value in the Modification Element Categorization screen.
0650 * ---------------------------------------------------------------
0660 * TLMPAPRS - START
0670 * ---------------------------------------------------------------
0680 * PAPR Specific change to Comment out C283MU Processing
0690 * and change N90ERROR to MI9ERROR
0700 * ---------------------------------------------------------------
0710 * TLMAPAPRS- END
0720 * ---------------------------------------------------------------
0730 *
0740 /* MOVE PROGRAM TO #PROGRAMA / NEE OLD CODE
0750 MOVE ** TO #PROGRAMA /* NEE MODIFIED AUTO
0760 /* CALL ‘C283MU’ #PROGRAMA /* NEE OLD CODE
0770 CALL '’ #PROGRAMA / NEE MODIFIED AUTO
0780 IF #PROGRAMA = ‘ERRORCON’
0790 / TERMINATE / NEE OLD CODE
0800 ESCAPE ROUTINE /* NEE MODIFIED AUTO
0810 END-IF
Have I missed something simple that allows me to comment out a block of code.
All help greatly appreciated.
Chris.