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
 

 

Why DB2 precompilation is done before cics translation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
praveengogineni

New User


Joined: 19 Oct 2004
Posts: 2

PostPosted: Fri Dec 17, 2004 12:53 am    Post subject: Why DB2 precompilation is done before cics translation
Reply with quote

why db2 precompilation is done before cics translation?what will happen if i reverse the order?
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Thu Feb 17, 2005 2:12 pm    Post subject: Re
Reply with quote

CICS Translator identifies the EXEC CICS statements and changes them to equivalent COBOL Statements.

DB2 Precompiler identifies EXEC SQL statements and remove them with correspoding MOVE and CALL statements.

So if you removed all the SQL statements from your program, it's easy to identify CICS Statements.

Precompiler uses INCLUDE statement while CICS uses COPY statements.

SO IF YOU ARE USING cics translator first, you will get an error message for:

INCLUDE statement. (if you are having this)
Back to top
View user's profile Send private message
sivabala

New User


Joined: 24 Mar 2005
Posts: 2

PostPosted: Fri Mar 25, 2005 2:46 pm    Post subject:
Reply with quote

COBOL DOESNOT KNOW CICS STATEMENT.THESE CICS STATEMENTS IN COBOL ARE CHANGED TO COBOL CALL STATEMENTS.WHERE AS THE PRECOMPILER WILL CHECK ONLT THE SYNTAX OF THE CICS STATEMENTS.IF THERE IS NO CICS COMMANDS THEN IT CANNOT FIND THE CICS STAETEMENTS THEN IT WILL THROW AN ERROR

SIVABALA
Back to top
View user's profile Send private message
sarma Kappagantu

New User


Joined: 17 Mar 2005
Posts: 22
Location: Bangalore

PostPosted: Fri Mar 25, 2005 5:07 pm    Post subject:
Reply with quote

As per 'Programming in DB2' manual @ http://publib.boulder.ibm.com/infocenter/dzichelp/index.jsp?topic=/com.ibm.db2.doc.apsg/bjnqmstr355.htm

Translating command-level statements: You can translate CICS applications with the CICS command language translator as a part of the program preparation process. (CICS command language translators are available only for assembler, C, COBOL, and PL/I languages; no translator is available for Fortran.) Prepare your CICS program in either of these sequences:

Use the DB2 precompiler first, followed by the CICS Command Language Translator. This sequence is the preferred method of program preparation and the one that the DB2I Program Preparation panels support. If you use the DB2I panels for program preparation, you can specify translator options automatically, rather than having to provide a separate option string.
Use the CICS command language translator first, followed by the DB2 precompiler. This sequence results in a warning message from the CICS translator for each EXEC SQL statement it encounters. The warning messages have no effect on the result. If you are using double-byte character sets (DBCS), precompiling is recommended before translating, as described previously.
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 -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
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 1 Mon Mar 06, 2017 6:13 pm


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