The CHANGE_COUNTS assignment statements can query the change counts set by the last change command and store the values in variables.
ISREDIT (var1,var2) = CHANGE_COUNTS
The 'var1' and 'var2' parameters are names of variables that will receive the 8- character number of the strings, left-padded with zeros, that were changed and that could not be changed, respectively.
The following are examples of the CHANGE_COUNTS assignment statement.
Obtain the number of changes into the variable.
&CHGS: ISREDIT (CHGS) = CHANGE_COUNTS
Obtain the number of change errors into the.
variable &NOT: ISREDIT (,NOT) = CHANGE_COUNTS
Obtain both the number of changes and change errors into the variables &CHGS and &NOT.
ISREDIT (CHGS,NOT) = CHANGE_COUNTS
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!