Patent ID: 8719792

Claim:
A method of correcting job control language (JCL) jobs, which comprises: (a) scanning a JCL job against a set of JCL syntax rules; (b) automatically correcting any syntax errors discovered during said scanning to form a corrected JCL job, including: identifying an operation field value in the JCL job, the operation field value comprising one of JOB, EXEC, DD, PROC, and PEND; determining, based on the identified operation field, a required layout of an operand field associated with the identified operation field, wherein if the operation field requires positional parameters, the positional parameters are the first parameters in the operand field, and any optional keyword parameters follow the positional parameters; and determining that current data in the operand field associated with the identified operation field does not comport to the required layout; (c) running said corrected JCL job; (d) if said corrected JCL job ends due to an execution error, automatically determining if said execution error is recoverable; (e) if said execution error is recoverable: automatically correcting said recoverable error to form a recovered corrected JCL job; and (f) rerunning said recovered corrected JCL job; (g) if said execution error is not recoverable, notifying a submitter of the non-recoverable error.