View previous topic :: View next topic
|
Author |
Message |
natarajanibm Warnings : 1 New User
Joined: 21 Mar 2009 Posts: 9 Location: chennai
|
|
|
|
What are the different ways to run a COBOL DB2 program
using JCL? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
HOMEWORK ??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You run them as directed by the system and database people. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
If your shop provides IMS DB/DC support, you can run batch jobs using IMS BMP or DBB environments.
Another common method is using the TSO environment which can be invoked in batch through the IKJEFT01 utility.
For details, look up the application planning manuals for DB2. |
|
Back to top |
|
|
joinanil
New User
Joined: 26 Jan 2010 Posts: 1 Location: BAngalore
|
|
|
|
You will have to run your Cobol-DB2 program using the IKJEFT01 or 1B tool. Provide your program name and DB2 system name in the control card. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello an welcome to the forum,
Quote: |
You will have to run your Cobol-DB2 program using the IKJEFT01 or 1B tool. |
Not exactly true. . . There are also other ways that i'll not mention here.
When using an abbreviation (i.e. 1B) for some kind of add-on (not part of the basic product/environment) it is best to specify the full name rather than just the abbreviation. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
dick scherrer wrote: |
Hello an welcome to the forum,
Quote: |
You will have to run your Cobol-DB2 program using the IKJEFT01 or 1B tool. |
Not exactly true. . . There are also other ways that i'll not mention here.
When using an abbreviation (i.e. 1B) for some kind of add-on (not part of the basic product/environment) it is best to specify the full name rather than just the abbreviation. |
1B is not a special utility, just an abbreviated suffix for IKJEFTxx interfaces to invoke programs running in batch TSO/E envirionment.
There are in fact three alternate routines (entry points): IKJEFT01, IKJEFT1A, and IKJEFT1B, the difference being the way return codes and abends are handled by the interface |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thanks Kjeld,
I didn't recognize it as such. . .
d |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
And of course, CAF & RRSAF are another methods or running a DB2 application program.
O. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
enrico-sorichetti wrote: |
I wonder why people are unable/unwilling to read the manuals ... |
For that, first you need to know - where to look at? And that's not an easy art, for sure! |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
ofer71 wrote: |
And of course, CAF & RRSAF are another methods or running a DB2 application program.
|
How common is CAF and RRSAF in batch applications? It is of cause site specific, but I have have never come across any implementations using these interfaces on the mainframes I have worked with.
The manual quotes some sample code for applications, but mostly in assembler. As I understand it, you will have to code the DB2 interface initialisation and termination yourself in an application, as opposed to the DB2 co-processor code that gets included in common DB2 interface programming. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Kjeld wrote: |
ofer71 wrote: |
And of course, CAF & RRSAF are another methods or running a DB2 application program.
|
How common is CAF and RRSAF in batch applications? It is of cause site specific, but I have have never come across any implementations using these interfaces on the mainframes I have worked with.
The manual quotes some sample code for applications, but mostly in assembler. As I understand it, you will have to code the DB2 interface initialisation and termination yourself in an application, as opposed to the DB2 co-processor code that gets included in common DB2 interface programming. |
you are correct, you need to code the connect yourself. can be done in cobol, very easily.
I have used RRSAF in batch applications when using MQS and DB2. |
|
Back to top |
|
|
|