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 compilation steps for a COBOL-DB2 Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
pradeep_singhm

New User


Joined: 01 Oct 2005
Posts: 9
Location: bangalore

PostPosted: Sun Oct 23, 2005 8:39 am    Post subject: What are the compilation steps for a COBOL-DB2 Program
Reply with quote

HI
friends can anybody explain me in detail

what is compilation processs for cobol-db2 program
Back to top
View user's profile Send private message

ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Mon Oct 24, 2005 11:34 am    Post subject: Re: WHAT IS COMPILATION PROCESS FOR COBOL-DB2 PROGRAM
Reply with quote

Once you have completed coding, the following steps need to be followed,

1) Pre-Compile -> which creates DBRM
2) Compile
3) Link-Edit -> Load-module will be generated
4) Bind your DBRM

In the Run step (using IKJEFT01 batch program), specify your load-module and plan name in SYSTSIN parameter....

Cheers,
Kumar.
Back to top
View user's profile Send private message
prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Mon Oct 24, 2005 12:01 pm    Post subject: Re: WHAT IS COMPILATION PROCESS FOR COBOL-DB2 PROGRAM
Reply with quote

Hi,
DB2- SQL statements will have to be embedded with any of HLL such as COBOL for it to be executed other than by making use of SPUFI, such kind of Tools.
In this case, COBOL-DB2, normal cobol compiler didn't understand SQL statements. So a precompilation has to be done in which SQL statements would be converted to COBOL equivalent MOVE and CALL statements these resides in DBRMLIB, the other output of this step being the normal Cobol statements segregated from SQL statements, so called as Modified Source program. In this step the following activities occur,
1. Source program gets segregated to DBRM and Modified Source program.
2. The precompiler fixes the TIMESTAMP in both DBRM and Modified Source program.
3. Checks for SQL syntax.
Then this DBRM will come in to play only during BIND operation. Meanwhile the Modified Source program undergoes Normal Compilation, link-editing resulting in a load module.
Now during BIND, it does the following,
1. Checks for authorization.
2. Timestamp check.
3. DBRM are bound to packages which is inturn bound to plan ( executable form ).
Now this plan is executed to get the desired outcome.

Hope this helps!!!
Back to top
View user's profile Send private message
pradeep_singhm

New User


Joined: 01 Oct 2005
Posts: 9
Location: bangalore

PostPosted: Tue Oct 25, 2005 12:20 pm    Post subject: What are the compilation steps for a COBOL-DB2 Program
Reply with quote

thanks a lot

regards
pradeep singh
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 -> Mainframe Interview Questions 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