Problem solve Get help with specific problems with your technologies, process and projects.

To check for matching of IF-ENDIF DO-ENDDO etc., in source.

check for matching of IF-ENDIF DO-ENDDO

1. In the source upon identification of corresponding IF and ENDIF statements, an 'XX' given as line commands at...

the IF and ENDIF hides these statements and the statements within. By using this technique any unmatched IF statement or ENDIF statement becomes conspicuous and thereby facilitates for the necessary action that is to be taken.

2. A similar checking can also be done after source compilation by using the value '|' to the parameter 'String Indentation' in CRTRPGPGM command and the result be viewed in the compilation resulted spool file.

Dig Deeper on RPG iSeries programming