Page 1 of 1

how can we pass the return codes from cobol to jcl?

PostPosted: Thu Jan 06, 2011 10:21 pm
by mylavarapuvinay
how can we pass the return codes from cobol to jcl?

Re: how can we pass the return codes from cobol to jcl?

PostPosted: Thu Jan 06, 2011 10:27 pm
by steve-myers
When any program started by the EXEC JCL statement terminates it leaves a return code that can be used by JCL. If your Cobol program terminates with a return code, the return code should be available for use in JCL.

Re: how can we pass the return codes from cobol to jcl?

PostPosted: Thu Jan 06, 2011 11:31 pm
by Robert Sample
Look up return-code in the COBOL Language Reference manual.

Re: how can we pass the return codes from cobol to jcl?

PostPosted: Thu Jan 13, 2011 8:29 pm
by gugul
move 12 to return-code
stop run.

include in JCL step: ,COND=(0,NE)

Re: how can we pass the return codes from cobol to jcl?

PostPosted: Tue Apr 12, 2011 3:42 pm
by franky226
the return-code in the cobol PGM can full ur requirement, return-code is a key var
just like:
move 4 to return-code

or

in the jcl, u can set return-code= 4

Re: how can we pass the return codes from cobol to jcl?

PostPosted: Tue Apr 12, 2011 5:37 pm
by NicC
in the jcl, u can set return-code= 4


Oh yeah? How? Has something new been added to JCL? Did you check in the JCL Language Reference manual?