View previous topic :: View next topic
|
Author |
Message |
gvt460
New User
Joined: 04 Mar 2005 Posts: 23
|
|
|
|
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 |
|
|
squid_rocks
New User
Joined: 21 Mar 2005 Posts: 15 Location: Pune, INDIA
|
|
|
|
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 |
|
|
srikn81
New User
Joined: 22 Apr 2005 Posts: 2 Location: Bangalore
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|