Processing SQL statements
The first step in preparing an SQL application to run is to process the SQL statements in the program. To process the statements, use the IMS coprocessor. During this step, the SQL statements are replaced with calls to IMS language interface module (DFSLI000).
For COBOL applications, you can use one of the following techniques to process SQL statements:
- Invoke the IMS coprocessor for the host language that
you are using as you compile your program. You can use the IMS
coprocessor with COBOL host compilers. To invoke the IMS
coprocessor, specify the SQLIMS compiler option followed by its suboptions.
- For COBOL, you need Enterprise COBOL for z/OS® Version 5 Release 1 or later to use this technique. For more information about the COBOL IMS coprocessor, see Enterprise COBOL for z/OS Programming Guide.
The IMS coprocessor performs precompiler functions at compile time. When you use the IMS coprocessor, the compiler scans the program and returns the modified source code.