Previous Topic: ParametersNext Topic: Creating the Access Module


Compiling the Program

CA IDMS Precompiler

The CA IDMS precompiler modifies the program that you submit. CA IDMS comments out SQL statements and substitutes calls to the DBMS. The entire source program is now in compilable form.

Here is an example of an SQL statement that has been commented out by the precompiler, and the code that the precompiler has substituted:

011200* EXEC SQL

011300* FETCH CURS1 BULK :EMPDATA 011400* START :INDEX-CNTR ROWS :NUM-ROWS 011500* END-EXEC. MOVE 4 TO SQLCLNO MOVE 16 TO SQLCMD MOVE 1 TO SQLARG MOVE 4 TO SQLSID MOVE 278 TO SQLTBL MOVE 6 TO SQLMRO MOVE INDEX-CNTR TO SQLSRO MOVE NUM-ROWS TO SQLNRO CALL 'IDMSSQL' USING SQLRPB SQLCA SQLCA SQLCIB SQLPIB SQLCA EMPDATA SQLCA SQLCA SQLCA SQLCA .

Language Compiler

To compile the program, you submit the source program, as successfully modified by the precompiler, to the language compiler. Output from the compiler consists of an object program and a source listing.

Link Editing

The linkage editor edits the object program into a specified load library. Output from the linkage editor consists of a load module and a link map.

Note: For JCL and more information about compiling and link editing a program see Sample JCL.