IF / ENDIF Purpose - narrative
When JCL was introduced in 1964 it supplied the COND operand to facilitate the bypassing of a job step depending upon the
outcome of a preceding job step or steps. Because it facilitated bypassing the logic associated with constructing a valid
COND argument was not obvious.
The IF/ELSE/ENDIF Statements were introduced in the 1990s and facilitate the inclusion, rather than exclusion, of a job step
based on the outcome of a preceding step or steps. This principle, plus the fact that they work in a similar way to IF
statements in most other programming or scripting languages makes them easier to understand and use.
The IF statement also allows the testing of more criteria than the COND operand making them a more comprehensive tool.


