I have 2 procs say Proc A and Proc B. Currently I am using 2 jobs to execute these procs. Is there a way I can use a single job to execute both the procs?
The only way to differentiate the processing is through a value provided in the SYSIN card. If the value in the Card is say "A" then run Proc A else for all the other cases run Proc B. Is there a way where in I can read the SYSIN within the proc and conditionally execute it depending on the value present in the SYSIN card.
Is it possible to SET a value in the job(this would be edited each time depending on the need), and make a check in a proc(Say Proc C) that if it has a value of "A" then execute the Proc A else execute Proc B?
If not in JCL, is there any other way to do other than writting a new Cobol program for this purpose.