View previous topic :: View next topic
|
Author |
Message |
Scott McC
New User
Joined: 02 Mar 2013 Posts: 12 Location: United States
|
|
|
|
Here is one of those easy, yet curious questions...
When is a COBOL program (whether Batch or CICS) to be compiled & bound to DB2? Or, just added to a DBRM plan list?
* COBOL w/o ANY direct SQL calls = COB2BATCH
* COBOL w/o ANY direct SQL calls, and calls an outside module w/DB2 = COB2BATCH (put must be added to the outside module DBRM plan list)?
* COBOL w/o ANY direct SQL calls, and calls an outside module w/o DB2 = COB2BATCH
---------------------------
* COBOL w/direct SQL calls = COB2DB2BATCH
* COBOL w/direct SQL calls, and calls an outside module w/DB2 = COB2DB2BATCH
* COBOL w/direct SQL calls, and calls an outside module w/o DB2 = COB2DB2BATCH
Does this pretty much sum up all of the scenario's possible?
Thanks everyone.
-Scott |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Before I try to attempt to answer your question, would like to know what are you referring to by using the words like: COB2BATCH, COB2DB2BATCH etc.? Are they some tool-specific "type-of-program" notions or you mean something else? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
well.. the name should tell
<any> program that uses DB2 services is a DB2 program
usually for SCM tools <language> attribute describes not only the language in which the program is written but also the process to be used for the build
only the people who customized the SCM tool in use ( ENDEVOR, CHANGEMAN, SCLM )
can tell exactly the difference
also all depends on the site standards
a simple COBOL program calling COBOL/DB2 programs
might undergo different processes depending on the SCM customization
but the problem exist really only for MAIN programs
a cobol MAIN dynamically calling a cobol/db2 is not concerned with the DB2 stuff
but the plan/package being used must be rebound
as I inferred the best place to ask would be Your support |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Although I'm not certain of how far it will drill-down programmatically, review the LE Callable Service routine "CEE3INF", which was introduced with z/OS 1.9 -
ibmmainframes.com/viewtopic.php?p=291891&highlight=#291891
Of course, the Caller must be LE compliant, which is almost certain nowadays, except for some older Assembler modules.
If this reply is not applicable to your question, you may find it useful for other queries. |
|
Back to top |
|
|
Scott McC
New User
Joined: 02 Mar 2013 Posts: 12 Location: United States
|
|
|
|
This question was initially for one of my BA's who would not necessarily know the details / specifics of when a COBOL program is/not a DB2 program.
I guess I was hoping for some kind of a decision table like:
Code: |
MAIN pgm MAIN Pgm calls MAIN Pgm calls Thus, Main Pgm needs:
DB2 Calls | RTNs w/DB2 | RTNs w/o DB2 || Plan | PKG | Both
=======+============+==============||====+====+====
Yes Yes Yes Y Y Y
Yes Yes No Y Y Y
Yes No Yes Y Y Y
Yes No No Y Y Y
No Yes Yes N Y N
No Yes No N Y N
No No Yes N N N
No No No N N N |
Does this "matrix" make sense?
Thanks everyone.
Code'd and alighned, somewhat |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
If you are trying to get such a list, I think - your 'matrix' will also be influenced by the fact if the sub-program is "statically linked" or "dynamically". |
|
Back to top |
|
|
|