Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Calling & Called programs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Sreedharp

New User


Joined: 20 Jul 2005
Posts: 2

PostPosted: Wed Jul 20, 2005 11:03 pm    Post subject: Calling & Called programs
Reply with quote

Hi,

I have a non db2 program calling a db2 program. Please let me know how to compile my main program and how to refer that in my JCL
Back to top
View user's profile Send private message

somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Thu Jul 21, 2005 12:03 am    Post subject:
Reply with quote

You have to bind the subprogram (cobol-db2) and invoke the main program using IKJEFT01. Specify the plan name of the sub-program.

Code:

//SYSTSIN    DD *
  DSN SYSTEM(your dsn) 
  RUN PROGRAM(your main program) PLAN(plan name for sub-prog) -
  LIB('load library')   
/*


hth
-Som
Back to top
View user's profile Send private message
Sreedharp

New User


Joined: 20 Jul 2005
Posts: 2

PostPosted: Thu Jul 21, 2005 5:18 am    Post subject: Re: Calling & Called programs
Reply with quote

Thanks for the information.

Do i need to compile the main program as db2 program i.e; precompile and bind or like a ordinary program
Back to top
View user's profile Send private message
notonly4u

New User


Joined: 26 Apr 2005
Posts: 87
Location: Hyderabad

PostPosted: Thu Jul 21, 2005 4:17 pm    Post subject:
Reply with quote

Dear sreedhar,

While you compile do yu use external bind?

If so then you have to bind for the sub program and it is enough if you do a precompile, Compile and linkedit the main program. You can't bind the main Non db2 program because there will not be any DBRM created for that program.

If yu have any queries.... Let me know. And also do correct me if Iam wrong somewhere....

Regards
Tanden
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 5 Tue Nov 29, 2016 9:25 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us