Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
OVERVIEW:
There is always a speculation for the developer whether the plan is bound to database
after compiling (Recompiling) the source which in turn if handled asynchronously results
in run time error. And In addition frequency of this Specific error is high particularly when
numerous embedded application programs are going to be promoted to production
environment, moreover this program can be used to determine whether the Compilation
and Bind are in place and synchronous.
Extracting the timestamp from the Load module and Plan is always tedious. To check
and compare the synchronicity is complex too. And this source eliminates that difficulty.
By only accepting Plan and Source name as input gives reliable information on
Timestamps (Load and Plan) and Advisory message.
NOTE: This program is prepared for the Developers who works on Mainframe platform
with DB2 as Database and any application language .The program is composed in PL\1,
handles any load module(Any Application program) present in the load Library and plan
present in system catalog SYSIBM.SYSPLAN compares the timestamp of two and
advises accordingly.
The Designed program aims at preventing the cause of timestamp mismatch error
between the Plan and modified source file. Briefly the program tries to prevent the -818
error, which is caused when the compile, and link, is done without doing a BIND of the
application,
The program reads the Load module (Compiled embedded application source)
and Plan as Input, and it checks the timestamp generated during the compilation
and the plan bound timestamp and advises the developer when the source is
compiled? (recompiled) and whether the plan is bound after recompilation or not?
.The output can be any of the two following instances.
If the Plan is not bound after Compilation (recompilation) then it advises the developer to
bind the plan or informs him that deferred binding is carried out additionally it prints the
timestamp of both the compilation process and plan bound process. On the other hand if
plan is bound after compiling (Recompiling) the source it provides the information that
the plan is bound after compilation (recompilation) and informs that Compile and bind
are carried systematically additionally it prints the timestamp of both the compilation
process and plan bound process.
CASE 1:
************START OF REPORT*********************
***************END OF REPORT***********************
***************START OF REPORT******************
***************END OF REPORT***********************
CASE3:
This case is ultimately very rare and possibilities are less to occur.
REQUIREMENTS:
NOTE:
Please download the PL\1 source and JCL and run the JCL against the compiled source
LOAD MODULE
NAME PLAN NAME
THE PROGRAM
AMBLIST Timestamp of the
returned output Plan (bind) is taken
is used to from
compute the
SYSIBM.SYSPLAN
timestamp of the
load module
REPORT
After Examining the Timestamps of
the Load module and Plan, program
prints report advises the developer
about the status.