摘要 |
PURPOSE:To prevent a abnormal termination due to an unjust parameter under a parameter processing by adding call recognition data, capable of deciding exactly that a program is called, to the delivery parameter of the called program. CONSTITUTION:The parameters AP-1-AP-n 102 to be processed by the program B2, and further, the call recognition data 101 are defined in the parameter AP 100. The program A1 is used for calling the program B2, and the data of 'Program B' is stored in the call recognition data 101 of it. When a CALL statement 200 to call the program B2 is executed in the proceeding part AP 20 of the program A1, a control is delivered to the program B2. At that time, the parameter AP 100 is delivered to the program B2. The program B2 checks the call recognition data 101, which is placed in the parameter AP 100 at first. Because the called program can check the call recognition data before the processing of the parameter in such a way, the abnormal termination due to the unjust parameter under the parameter processing can be prevented.
|