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
 

 

Reason why we do precompilation instead of CICS translator

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

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Thu Apr 28, 2005 4:36 pm    Post subject: Reason why we do precompilation instead of CICS translator
Reply with quote

i like to know at the time of db2+cobol+cics programs y first we will do precompilation instead of cics translator?is there any reason?
let me know plzzz
Back to top
View user's profile Send private message

squid_rocks

New User


Joined: 21 Mar 2005
Posts: 15
Location: Pune, INDIA

PostPosted: Thu Apr 28, 2005 6:01 pm    Post subject:
Reply with quote

Hi,
The method is like this.
DB2 precompile -> CICS transalator -> Compile -> Link -> Bind.
What actually the precompile does is it creates 2 o/p's.
One is the "SQL code commented" COBOL program. The second one is only the SQL code.
Since the COBOL compiler cannot interpret SQL commands and queries, we need to seperate it. Also, we need to compile the SQL code (it's a long procedure where you find optimum paths for data, etc.) in a different manner.
Then there is CICS translator which will change the CICS commands to equivalent COBOL calls.
So after all these conversions, the COBOL compiler can compile code.

Hope it helps.
Back to top
View user's profile Send private message
srikn81

New User


Joined: 22 Apr 2005
Posts: 2
Location: Bangalore

PostPosted: Thu Apr 28, 2005 7:32 pm    Post subject: Re: haii
Reply with quote

We Can do either way.

But if we do traslation first, CICS translator tries to recognizes the embeded SQL statements.So the time taken for translation will be more.
So to reduce the translation time we have to do precompilation first.


Thanks &Regards
Srikanth
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 28, 2005 9:30 pm    Post subject: Reason why we do precompilation instead of CICS translator.
Reply with quote

gvt460, please use real, descriptive topics for your subject. I doubt anyone reading this will know what "haii" is supposed to mean.

I have edited this post to use a more meaningful topic title.
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm


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