IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What are the different ways to run a COBOL DB2 program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
natarajanibm
Warnings : 1

New User


Joined: 21 Mar 2009
Posts: 9
Location: chennai

PostPosted: Tue Aug 03, 2010 3:38 pm
Reply with quote

What are the different ways to run a COBOL DB2 program
using JCL?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 03, 2010 3:58 pm
Reply with quote

HOMEWORK ???
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 04, 2010 4:45 am
Reply with quote

Hello,

You run them as directed by the system and database people.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Tue Aug 10, 2010 6:48 pm
Reply with quote

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

New User


Joined: 26 Jan 2010
Posts: 1
Location: BAngalore

PostPosted: Sat Aug 14, 2010 6:10 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 14, 2010 11:26 pm
Reply with quote

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

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Mon Aug 16, 2010 3:48 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 16, 2010 7:46 pm
Reply with quote

Thanks Kjeld,

I didn't recognize it as such. . .

d
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Aug 16, 2010 7:54 pm
Reply with quote

for those that are bored and which to read about the different invocations:
IKJEFT01, IKJEFT1A, and IKJEFT1B
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Aug 16, 2010 9:14 pm
Reply with quote

And of course, CAF & RRSAF are another methods or running a DB2 application program.

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 16, 2010 9:49 pm
Reply with quote

I wonder why people are unable/unwilling to read the manuals ...

chapter 2 of
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPK13/CCONTENTS?SHELF=DSNSHKA3&DN=SC18-9841-03&DT=20081114012927
has all the info needed to meditate on the issue
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPK13/2.1?SHELF=DSNSHKA3&DT=20081114012927
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Aug 17, 2010 3:35 pm
Reply with quote

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

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Tue Aug 17, 2010 4:27 pm
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 17, 2010 4:55 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top