Location in the JCL

An IF/THEN/ELSE/ENDIF statement construct can appear anywhere in the job. However, an IF statement specified before the first EXEC statement in a job is not evaluated before the first step executes. If the IF statement applies to later steps in the job, the statement will be evaluated when the system decides whether to process the later steps.