Dear friends:
I want to submit a JCL form a cobol program and give the MAXCC of the job. Then if MAXCC=0 the program can sense it and continue executing based on condition specified. How I must code my program?
How I must code my program?
First, redesign the entire process -- your design is broken. As Enrico pointed out, submitting a job from a COBOL program (or any other way) creates an independent process, and your code should not attempt to wait for that job to run, or attempt to check its completion code, or do ANYTHING with that job. This is why schedulers such as TWS, CA-7, and ZEKE exist.How I must code my program?