Posts

Showing posts from April, 2015

compare 2 files and move common record into other file

 IDENTIFICATION DIVISION.                  PROGRAM-ID.    SANDEEP.                      DATE-COMPILED.                            ENVIRONMENT DIVISION.                      CONFIGURATION SECTION.                    INPUT-OUTPUT SECTION.                      FILE-CONTROL.                                                                              SELECT   IN1-FILE ASSIGN   TO IN1               ...

COBOL + DB2 complication process.

Image
There are various step involved before we run/execute a COBOL + DB2 program.   Below step are the various steps.   Precompile.   Compile.   Link edit.   Bind.   Package & plan. Step 1: Precompile               COBOL compiler did not understand about SQL statement so, it undergoes to precompile. In precompile.     Expands all include copybooks which are written in program.     Extracts all SQL statements into DBRM and SQL statement are convert into call statements.    Generates time-stamp for modified source codes and DBRM .there are checked at run time.   Check syndicated error of SQL statements and validates the fields based on the table declaration from dclgen copybook.    Notes: precompilation process can be executed even if DB2 is down. DSNHPC    ----------- It is the program used for precompilation. Step 2:  ...