↳
You would need to establish a baseline set of JCL procedures and identify the parameters which could change depending on the run time requirements. The domain values for all variables would need to be stored in DB2 table or a VSAM indexed file and a Stored Procedure or REXX script would need to determine what variables were required for a particular run and obtain them from the VSAM or DB2 datastore. These parameters would need to overlaid onto the templatge JCL and the resulting JCL stream would need to be submitted via the internal reader. The feasibility of this would depend on the scheduling software in use on the mainframe LPAR. Less
↳
This may be too simple of an answer, but I would have answered the question by saying I would do this as a global change. Less
↳
Sql statements in cobol can use only host variables and not copybook varibles