Page 1 of 1

how to pass values

PostPosted: Wed Oct 06, 2010 6:18 pm
by KRISHAN
how to pass values from cobol to jcl?

Re: how to pass values

PostPosted: Wed Oct 06, 2010 6:21 pm
by Robert Sample
What are you attempting to do? In general, values are passed via PARM= statements from JCL to programs. Going the other way usually requires a separate job to be submitted since a job stream, once it has been through the JES converter / interpreter, is fixed and cannot be changed by anything.

Re: how to pass values

PostPosted: Wed Oct 06, 2010 6:23 pm
by enrico-sorichetti
the concept has been told and repeated gazillions times

the only thing You can pass back to <JCL> is a numeric return code!

look at the COBOL manuals for the use of the RETURN-CODE special register

Re: how to pass values

PostPosted: Wed Oct 06, 2010 6:24 pm
by KRISHAN
it was asked in interview qusetion to my freind.....

Re: how to pass values

PostPosted: Wed Oct 06, 2010 6:25 pm
by KRISHAN
thanks all