|
|
| Author |
Message |
Gops
New User
Joined: 21 Jul 2005 Posts: 24
|
|
|
|
Hi Guys,
Please let me know if there any way to pass the data form COBOL program to JCL(JOB).
Cheers,
Gopal |
|
| Back to top |
|
 |
References
|
|
 |
Bill Dennis
Senior Member
Joined: 17 Aug 2007 Posts: 313 Location: Iowa, USA
|
|
|
|
You can set a step return code from 0 to 4095 to control what step runs next.
Please describe what you want to do. |
|
| Back to top |
|
 |
Gops
New User
Joined: 21 Jul 2005 Posts: 24
|
|
|
|
Hi Bill,
Thanks for quick response.
Yes we can pass the return code to halt the process(programs) by passing return codes form 0 to 4095.
I have 2 qustions for u now.
1. How can we control which step runs next by passing return codes form 0 to 4095?
2. Other that return codes can we pass any other data(value) from cobol program to the JCL?
Cheers,
Gops |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1001 Location: Virginia, USA
|
|
|
|
| Both questions have been asked and answered many times before. |
|
| Back to top |
|
 |
Gops
New User
Joined: 21 Jul 2005 Posts: 24
|
|
|
|
Craq,
So Kind of you, Could please give the link if they have been asked earlier,
So that I can refer them and find the answer for my question.
Cheers,
Gops  |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1634 Location: germany
|
|
|
|
Gops,
so lazy of you not to look. |
|
| Back to top |
|
 |
Gops
New User
Joined: 21 Jul 2005 Posts: 24
|
|
|
|
Hi Dick,
Its not being lazy, I did search to find the answer for my queries and couldn't find the relevant link.
I some some can help me to get the link i would be graeat..
Thanks,
Gops |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3301 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 3160 Location: italy
|
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3301 Location: Charlotte,NC USA
|
|
|
|
| I was thinking about making a comment that, realistically, its up to the COBOL developer to code the proper RETURN-CODE values where necessary, and from there its up to the JCL coders/Production Support team to make the decisions as to what to do with them. Its really a moot point for the developer. |
|
| Back to top |
|
 |
Gops
New User
Joined: 21 Jul 2005 Posts: 24
|
|
|
|
Guys,
Thanks a lot for flood of responses, but I would rather interested to know more about ---
As COBOL developer
2. Other than return codes can we pass any other data(value) from cobol program to the JCL?
Cheers,
Gops |
|
| Back to top |
|
 |
Gnanas SNG
Senior Member
Joined: 06 Sep 2007 Posts: 440 Location: India
|
|
|
|
Gops,
| Quote: |
| 2. Other than return codes can we pass any other data(value) from cobol program to the JCL? |
No ! |
|
| Back to top |
|
 |
jaspal
New User
Joined: 22 May 2007 Posts: 49 Location: mumbai
|
|
|
|
Hi All,
I do have solution to pass value from one program to other step of job.
lets consider job1 : step010
step020
step030
IF you want to pass value from step010 then you need to change the
scheduling.
how...?
now if step010 had one program(M5DATPGM) which holds let us consider a sequence number which need to be passed to next step020
what can we do ......................?
we would create one datalib which holds job ( that would have Step020)
now program would read that datalib and create on GDG version file by replacing that '@@@' by sequence number.
M5JOb@@@ (U,DAT),'@@@'
time=1,user=jas@@@
now in stead of step020 of job1 you would load this GDG version in jobtrac
by multigen step .
and it should trigger other job ( step030 of job1) or you can add this step in datalib to create a job in GDG version. |
|
| Back to top |
|
 |
jasorn
Active User
Joined: 12 Jul 2006 Posts: 109
|
|
|
|
| superk wrote: |
| I was thinking about making a comment that, realistically, its up to the COBOL developer to code the proper RETURN-CODE values where necessary, and from there its up to the JCL coders/Production Support team to make the decisions as to what to do with them. Its really a moot point for the developer. |
Does this mean you have separate people to code the programs and jcl? I'd hate that arrangement. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8724 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| Does this mean you have separate people to code the programs and jcl? I'd hate that arrangement. |
Many developers do not "like" this arrangement. That does not make it invalid.
I've seen this in larger organizations where developers are supposed to be experts in the use of the programming languages and implementing business rules. Programmers create the jcl needed to test jobstreams.
There is a separate staff that turns the test jcl into the production jcl. They become the jcl experts for the organization. They also tend to become the experts for the utilities used by the system (sort, ftp, etc). Most places, this group is part of Operations or Production Support and the function is often staffed whenever the production environment is running (often 24/7). If a batch job abends, they are the first called (rather than calling the deveolpers directly). If the problem is not code, it is resolved quickly with no outside calls. |
|
| Back to top |
|
 |
|
|