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
 

 

reg non cobol db2 compilation

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

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Sep 13, 2010 10:47 am    Post subject: reg non cobol db2 compilation
Reply with quote

I have a cobol non db2 source pgm and it calls a db2 pgm. How different will be the compilation process from a normal cobol db2 compilation.Will there be a pre-compilation process ?
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Sep 13, 2010 10:49 am    Post subject:
Reply with quote

No, you don't need a precompile for a program that does not access DB2 directly.

O.
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Sep 13, 2010 10:59 am    Post subject:
Reply with quote

So during execution what would be the difference in the jcl ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Sep 13, 2010 11:09 am    Post subject:
Reply with quote

You will have to execute it like you execute a DB2 program (probably DSN RUN...)

O.
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Sep 13, 2010 11:19 am    Post subject:
Reply with quote

Could you please explain me how the bind will happen here. Or if you could explain me how exactly the compile and run would happen it would be of great help.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Sep 13, 2010 11:43 am    Post subject:
Reply with quote

You are making things complex while they are very simple:
Preparation
A DB2 program requires precompile, compile and bind.
A non-DB2 program requires only compile.

Execution
A DB2 program, or a program that calls a DB2 program, need to be invoked as a DB2 program, usually under DSN.

O.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Mon Sep 13, 2010 1:29 pm    Post subject:
Reply with quote

You need to start your program from the IKJEFT01 or similar TSO batch environment, or if your installation has IMS DB/DC, as a batch job in that environment.

Ask support personnel, or your colleagues for advice on this. You are presumably not the first to have a DB2 batch implemneted at your site.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Sep 13, 2010 3:37 pm    Post subject:
Reply with quote

Have a look on these previous threads:

http://www.ibmmainframes.com/viewtopic.php?t=50304&highlight=db2+program+programme
http://www.ibmmainframes.com/viewtopic.php?t=49837&highlight=db2+program+programme
http://www.ibmmainframes.com/viewtopic.php?t=34855&highlight=db2+program+programme
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Sep 13, 2010 3:59 pm    Post subject:
Reply with quote

thanks to all of u for the info provided.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Sep 13, 2010 4:00 pm    Post subject:
Reply with quote

Hope we had been helpful, Good Luck.
Back to top
View user's profile Send private message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Mon Sep 13, 2010 5:49 pm    Post subject:
Reply with quote

This is what i understood. Do correct me if i am wrong.

The main cobol pgm(CP1) will undergo a normal compile process and the db2 subprogram(DS1) will undergo the pre-complie,compile,bind process to generate the plan.Then in run jcl we need to give the main pgm name and plan name for execution.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Sep 13, 2010 6:07 pm    Post subject:
Reply with quote

Yes, that sounds correct.
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
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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