Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
Short answer, you are wrong-
To compile cobol with imbedded sql means
you have to go thru the db2 precompiler to generate cobol calls for the sql.
Without the precompile, the cobol source will not compile.
The precompiler generates a dbrm which will be generated with a timestamp token
that has to match the timestamp token in the generated object
output of compile.
the load module (output of the linkedit or binder [not to be confused with a DB2 bind] step)
will carry forward the timestamp token
which has to match the timestamp token that is in the db2 catalogue
placed there by the db2 bind.
You will receive a -805 sql code when you attempt to execute the new load module
without first performing a bind
which you erroneously believe does not have to be accomplished.