MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Executing DB2 program from non-db2 cobol program?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
chandhroo
Beginner


Joined: 02 Dec 2002
Posts: 36
Topics: 13

PostPosted: Wed Feb 18, 2004 7:31 am    Post subject: Executing DB2 program from non-db2 cobol program? Reply with quote

Hi,
I tried to find answer for this question by search option from previous post, but couldn't find. I'm sorry if this is duplicate question.

Actually I would like to know execution procedure to call COBOL-DB2 program from COBOL(non-db2) program. We should use IKJEFT1 when we execute DB2 program, will it be same when we call cobol-db2 program from cobol program?

Also please please send me link to do search from previous post as well as manuals.

--Chandru
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Feb 18, 2004 8:32 am    Post subject: Reply with quote

Chandru,

At the top of the page you can see a smal icon for "search" , click on it and you will get a screen for searching the helpboard. Also at the top of the page you can also see an icon for Quick manual links. Click on that and it will open a new window with the links to various manuals.

If you had searched for "IKJEFT01" you would have found these topics.

http://www.mvsforums.com/helpboards/viewtopic.php?t=983&highlight=ikjeft01

http://www.mvsforums.com/helpboards/viewtopic.php?t=793&highlight=ikjeft01

http://www.mvsforums.com/helpboards/viewtopic.php?t=263&highlight=ikjeft01

http://www.mvsforums.com/helpboards/viewtopic.php?t=180&highlight=ikjeft01

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chandhroo
Beginner


Joined: 02 Dec 2002
Posts: 36
Topics: 13

PostPosted: Wed Feb 18, 2004 8:46 am    Post subject: Reply with quote

Thanks Kolusu,
I did searched with my question, but found nothing. Could you please send me link or explain how to execute COBOL program calling DB2-COBOL program?

Thanks in advance.
--Chandru
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Feb 18, 2004 9:03 am    Post subject: Reply with quote

Chandru,

You need to run your pgm using IKJEFT01 with a plan for the main pgm.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chandhroo
Beginner


Joined: 02 Dec 2002
Posts: 36
Topics: 13

PostPosted: Wed Feb 18, 2004 9:27 am    Post subject: Reply with quote

Kolusu,
Main program is just COBOL program, sub program is DB2 program which has plan. Could I give subprogram's plan?

--Chandru
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Feb 18, 2004 9:35 am    Post subject: Reply with quote

Chandru,
Create a plan with a package list for the subprogram.

ex:
Code:

BIND PLAN(Main PGM)            +         
     MEMBER(Main PGM)          +         
     PKLIST(Sub Routine)       +         
     ACTION(REPLACE)           +         
     RETAIN                    +         
     VALIDATE(BIND)            +         
     ISOLATION(CS)             +         
     CACHESIZE(0)              +         
     ACQUIRE(USE)              +         
     RELEASE(COMMIT)           +         
     CURRENTDATA(NO)           +         
     EXPLAIN(YES)                       


And run the main pgm shown in this Topic.

http://www.mvsforums.com/helpboards/viewtopic.php?t=793&highlight=ikjeft01

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chandhroo
Beginner


Joined: 02 Dec 2002
Posts: 36
Topics: 13

PostPosted: Wed Feb 18, 2004 1:31 pm    Post subject: Reply with quote

Thanks Kolusu.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group