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
 
What are the different ways to run a COBOL DB2 program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: What are the different ways to run a COBOL DB2 program
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: 8593
Location: Back in jolly old England

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

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

Site Director


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

PostPosted: Wed Aug 04, 2010 4:45 am    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sat Aug 14, 2010 11:26 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Mon Aug 16, 2010 7:46 pm    Post subject: Reply to: What are the different ways to run a COBOL DB2 pro
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: 6968
Location: porcelain throne

PostPosted: Mon Aug 16, 2010 7:54 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Aug 16, 2010 9:14 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Aug 16, 2010 9:49 pm    Post subject: Reply to: What are the different ways to run a COBOL DB2 pro
Reply with quote

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

chapter 2 of
http://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
http://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

Senior Member


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

PostPosted: Tue Aug 17, 2010 3:35 pm    Post subject: Re: Reply to: What are the different ways to run a COBOL DB2
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Tue Aug 17, 2010 4:55 pm    Post subject:
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    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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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