Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
When is a COBOL program a DB2 program??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Scott McC

New User


Joined: 02 Mar 2013
Posts: 12
Location: United States

PostPosted: Fri Mar 08, 2013 9:08 pm    Post subject: When is a COBOL program a DB2 program??
Reply with quote

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
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Mar 09, 2013 10:56 am    Post subject: Reply to: When is a COBOL program a DB2 program??
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Sat Mar 09, 2013 7:49 pm    Post subject: Reply to: When is a COBOL program a DB2 program??
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Sat Mar 09, 2013 11:06 pm    Post subject: Reply to: When is a COBOL program a DB2 program??
Reply with quote

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 -

http://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
View user's profile Send private message
Scott McC

New User


Joined: 02 Mar 2013
Posts: 12
Location: United States

PostPosted: Fri Mar 15, 2013 4:31 am    Post subject: When is a COBOL program a DB2 program??
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Mar 15, 2013 12:42 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us