JP2850322B2 - Load module replacement device - Google Patents
Load module replacement deviceInfo
- Publication number
- JP2850322B2 JP2850322B2 JP63055314A JP5531488A JP2850322B2 JP 2850322 B2 JP2850322 B2 JP 2850322B2 JP 63055314 A JP63055314 A JP 63055314A JP 5531488 A JP5531488 A JP 5531488A JP 2850322 B2 JP2850322 B2 JP 2850322B2
- Authority
- JP
- Japan
- Prior art keywords
- load
- replacement
- module
- load module
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Stored Programmes (AREA)
- Executing Machine-Instructions (AREA)
Description
【発明の詳細な説明】 〔概 要〕 本発明はロードモジュール入替装置に関し、 同一ロードモジュールを2回以上呼出しする業務処理
中に新旧のロードモジュールが呼出しされることを防止
することを目的とし、 入力電文を解析し所定のロードモジュールを順次呼出
して要求された業務処理を遂行する業務処理管理部を備
えたオンライン処理装置において、ロードモジュールラ
イブラリに物理識別子に基づいて登録され、前記呼出さ
れて主メモリ上にロードされるロードモジュールをオン
ライン開設中に修正ロードモジュールと入替えるロード
モジュール入替装置であって、物理識別子と入替指示ご
とに歩進される入替フラグとを含む各ロードモジュール
のロード情報が論理識別子によりファイルされたプログ
ラム管理ファイルと、ロードモジュールの入替指示ごと
に歩進される入替指示スイッチが格納された入替指示フ
ァイルと、指示された入替対象の論理識別子と修正ロー
ドモジュールの物理識別子とに基づき、該プログラム管
理ファイル中の該当論理識別子に対応する物理識別子を
更新し、且つ入替フラグを歩進するとともに、前記入替
指示スイッチの値を歩進するモジュール入替指示処理部
と、オンライン開設時、主メモリ上にロード制御領域と
入替指示スイッチ領域とを確保し、プログラム管理ファ
イル中の全ロード情報を該ロード制御領域に転記し、且
つそれぞれロード先を表わす入口点アドレスデータ領域
を確保してクリアするとともに、該入替指示ファイルか
ら該入替指示スイッチの値を読み出して該入替指示スイ
ッチ領域に転記するオープン処理部と、前記入力電文を
解析し、業務処理開始時点で業務処理開始を通知する前
記業務処理管理部と、前記通知により、該入替指示スイ
ッチ領域の値と該入替指示ファイルの内容とを比較し、
一致のとき入替否、不一致のとき入替要と判定するとと
もに該入替指示ファイルの内容を該入替指示スイッチ領
域に置換する入替要否判別部と、入替要の場合、該プロ
グラム管理ファイルのロード情報と該ロード制御領域に
転記されたロード情報の入替フラグを比較し、不一致の
ロード情報を該プログラム管理ファイルから抽出して、
該ロード制御領域の対応するロード情報と置換するとと
もに該ロード情報の入口点アドレスデータをクリアする
入替処理部と、前記業務処理管理部より呼出し依頼がな
されたとき、該ロード制御領域のロード情報を参照し、
当該ロードモジュールの入口点アドレスデータが設定さ
れていれば該入口点アドレスに制御を移し、設定されて
いなければ指定された論理識別子に対応する該物理識別
子のロードモジュールをロードせしめ通知された入口点
アドレスデータを設定して制御を移す呼出し処理を行う
呼出処理部とを備え、業務処理開始時点でロードモジュ
ールの入替要否を判別し、入替指示されたロード情報の
み入替え、且つ入口点アドレスデータをクリアして、呼
出し時に修正ロードモジュールをロードさせて入替える
ように構成する。DETAILED DESCRIPTION OF THE INVENTION [Summary] The present invention relates to a load module exchanging apparatus, and aims to prevent old and new load modules from being called during business processing for calling the same load module more than once. In an online processing apparatus provided with a business processing management unit that analyzes an input message and sequentially calls a predetermined load module to perform a requested business processing, the online processing apparatus is registered in a load module library based on a physical identifier, and is called by the main module. A load module replacement device for replacing a load module loaded on a memory with a modified load module during online establishment, wherein load information of each load module including a physical identifier and a replacement flag that is incremented for each replacement instruction is included. A program management file filed by logical identifier A corresponding logical identifier in the program management file based on a replacement instruction file storing a replacement instruction switch that is stepped up for each module replacement instruction, and a logical identifier to be replaced and a physical identifier of the modified load module. A module replacement instruction processing unit for updating the physical identifier corresponding to the above and incrementing the exchange flag and incrementing the value of the exchange instruction switch, and a load control area and an exchange instruction switch on the main memory at the time of online opening. Area, transfer all the load information in the program management file to the load control area, and secure and clear the entry point address data area indicating the load destination respectively. An open processing unit for reading a switch value and transferring the read value to the replacement instruction switch area; Analyze the sentence, the business process management unit that notifies the start of the business process at the start of the business process, and by the notification, compare the value of the exchange instruction switch area and the contents of the exchange instruction file,
A replacement necessity determination unit that determines whether or not replacement is required when matching, and determines that replacement is required when they do not match, and replaces the content of the replacement instruction file with the replacement instruction switch area; Comparing the replacement flag of the load information transferred to the load control area, extracting the mismatched load information from the program management file,
A replacement processing unit that replaces the corresponding load information of the load control area and clears the entry point address data of the load information; and when a call request is made by the business processing management unit, the load information of the load control area is changed. See,
If the entry point address data of the load module is set, the control is transferred to the entry point address. Otherwise, the entry point notified by loading the load module of the physical identifier corresponding to the specified logical identifier is notified. A call processing unit for performing a call process of setting address data and transferring control, determining whether or not the load module needs to be replaced at the start of the business process, replacing only the load information instructed to be replaced, and changing the entry point address data. It is configured so that it is cleared and the modified load module is loaded and replaced when called.
本発明はロードモジュール入替装置に関する。 The present invention relates to a load module replacement device.
金融システムでは、業務時間中各端末はセンタ装置と
オンライン接続されており、センタ装置は端末から随時
要求される業務処理(トランザクションと称する)およ
び処理結果の応答を実時間処理で行っている。In the financial system, each terminal is connected online with a center device during business hours, and the center device performs business processing (referred to as a transaction) requested from the terminal as needed and a response of a processing result in real time.
この端末から要求されるトランザクションは、例えば
入出金処理,元帳更新のごとくその種別は極めて多い
が、データ処理上共用部分が多いので各業務プログラム
はサブプログラムに分割され、それぞれのサブプログラ
ムはロードモジュールとして登録されて呼出しされるよ
うに構成されている。Transactions requested from this terminal are of a very large number, for example, such as deposit and withdrawal processing and ledger updating, but since there are many common parts in data processing, each business program is divided into subprograms, and each subprogram is a load module. It is configured to be registered and called as.
このように多数のサブプログラム(ロードモジュー
ル)で構成された業務プログラムにおいて、あるロード
モジュールを修正する必要が生じた場合、業務中、即ち
オンライン中であっても直ちに修正ロードモジュールと
入れ替えることが要望されているが、業務処理によって
は同一ロードモジュールを複数回呼出しする場合があ
り、その業務処理中に入替えが行われると新旧のロード
モジュールが呼出しされて予期しない処理結果が出力さ
れる恐れがある。In a business program composed of a large number of subprograms (load modules), when it becomes necessary to modify a certain load module, it is desired to immediately replace the modified load module even during business, that is, online. However, depending on the business process, the same load module may be called a plurality of times, and if the replacement is performed during the business process, the old and new load modules may be called and an unexpected processing result may be output. .
このため、上記問題点を解決するロードモジュール入
替装置が求められている。Therefore, there is a need for a load module replacement device that solves the above problems.
第9図は従来のロードモジュール入替方式説明図であ
る。図中、 1は通信回線等でセンタ装置に接続される複数のオン
ライン端末、2はセンタ装置の主制御部で、業務時間中
はオンライン端末1との間でオンライン接続するととも
に、オンライン端末1からの処理要求に対し、所定の処
理をロードモジュール(サブプログラム)60に依頼し処
理結果をオンライン端末1に応答する。FIG. 9 is an explanatory diagram of a conventional load module replacement method. In the figure, reference numeral 1 denotes a plurality of online terminals connected to a center device via a communication line or the like; 2 denotes a main control unit of the center device; In response to this processing request, the load module (subprogram) 60 is requested to perform predetermined processing, and the processing result is returned to the online terminal 1.
A,B・・Dは所定の処理を実行するロードモジュール6
0であって、例えばロードモジュールAは主制御部2よ
り呼出されて元帳を更新するサブプログラムであり、そ
の処理中において、例えば日付けを記帳するような場合
にはロードモジュールBを呼出し、ロードモジュールB
はさらにロードモジュールCを呼出すというように順次
サブプログラムを呼出して所定の処理を実行するように
構成されたものである。A, B... D are load modules 6 for executing predetermined processing.
0, for example, the load module A is a subprogram that is called from the main control unit 2 and updates the ledger. During the processing, for example, when the date is to be recorded, the load module B is called and the load module A is loaded. Module B
Is configured to sequentially call sub-programs, such as calling the load module C, to execute predetermined processing.
以上のオンラインシステムにおいて、あるロードモジ
ュール60を修正する場合、修正ロードモジュール60bが
作成されて入替えが行われるが、オンライン中に入替え
可能なように、修正ロードモジュール60bへ分岐するか
否かを指定する制御テーブル5を設け、これを参照して
修正ロードモジュール60bに分岐するか自己のルーチン
を実行するかを判別する入替ルーチン6を、各ロードモ
ジュールA〜Dの先頭に組み込む方式が採用されてい
る。In the above online system, when modifying a certain load module 60, the modified load module 60b is created and replaced, but whether or not to branch to the modified load module 60b is specified so that the replacement can be performed online. A control table 5 is provided, and a replacement routine 6 for determining whether to branch to the modified load module 60b or execute its own routine with reference to the control table 5 is provided at the beginning of each of the load modules A to D. I have.
従って、入替処理を行うときこの制御テーブル5に入
替指示をセットすると、入替対象のロードモジュール60
が呼出しされたとき、修正ロードモジュール60bに分岐
するため、オンライン中の入替処理が達成される。Therefore, when a replacement instruction is set in the control table 5 when performing the replacement process, the load module 60 to be replaced is set.
Is called, the process branches to the modification load module 60b, so that the online replacement process is achieved.
以上説明したように、オンライン中のロードモジュー
ルの入替えは、従来では各ロードモジュールに入替ルー
チンを組み込む方式で行われている。As described above, the replacement of load modules online is conventionally performed by a method in which a replacement routine is incorporated in each load module.
しかし、この方法だと制御テーブルの制限による入替
回数の制限があり、さらに、入替ルーチンを各ロードモ
ジュールに設けるため、ロードモジュールそのものを入
替えることができず、且つ入替えのタイミングの課題も
ある。However, this method has a limitation on the number of replacements due to the limitation of the control table. Further, since a replacement routine is provided for each load module, the load modules themselves cannot be replaced, and there is also a problem of replacement timing.
このため、呼出処理部を別に設け、ロードモジュール
の呼出しを論理識別子データ(論理ID)をパラメータと
して依頼させ、論理IDに対応させて設定されたロードモ
ジュールの物理IDに基づいて呼出しするようにすれば、
その物理IDを入替えてロードモジュールそのものを入替
えることができることを本発明者は提案したが、新旧の
ロードモジュールが同一トランザクションで呼出しされ
る可能性は解決されていない。For this reason, a separate call processing unit is provided to request the load module to be called with the logical identifier data (logical ID) as a parameter, and to call the load module based on the physical ID of the load module set corresponding to the logical ID. If
The inventor has proposed that the physical module can be replaced to replace the load module itself, but the possibility that the old and new load modules are called by the same transaction has not been solved.
本発明は、上記問題点に鑑み、入替処理のタイミング
を解決するロードモジュール入替装置を提供することを
目的とするものである。SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide a load module replacement device that solves the timing of a replacement process.
本発明のロードモジュール入替装置は、第1図本発明
の原理説明図に示すように、 入力電文を解析し所定のロードモジュールを順次呼出
して要求された業務処理を遂行する業務処理管理部12を
備えたオンライン処理装置において、ロードモジュール
ライブラリに物理識別子に基づいて登録され、前記呼出
されて主メモリ上にロードされるロードモジュール60を
オンライン開設中に修正ロードモジュール60bと入替え
るロードモジュール入替装置であって、物理識別子52と
入替指示ごとに歩進される入替フラグ53とを含む各ロー
ドモジュールのロード情報50が論理識別子51によりファ
イルされたプログラム管理ファイル15と、ロードモジュ
ール60の入替指示ごとに歩進される入替指示スイッチ55
が格納された入替指示ファイル22と、指示された入替対
象の論理識別子51と修正ロードモジュール60bの物理識
別子とに基づき、プログラム管理ファイル中の該当論理
識別子に対応する物理識別子を更新し、且つ入替フラグ
53を歩進するとともに、入替指示スイッチ55の値を歩進
するモジュール入替指示処理部17と、オンライン開設
時、主メモリ上にロード制御領域LCAと入替指示スイッ
チ領域23とを確保し、プログラム管理ファイル中の全ロ
ード情報50を該ロード制御領域LCAに転記し、且つそれ
ぞれロード先を表わす入口点アドレスデータ領域を確保
してクリアするとともに、入替指示ファイル22から入替
指示スイッチ55の値を読み出して入替指示スイッチ領域
23に転記するオープン処理部18と、前記入力電文を解析
し、業務処理開始時点で業務処理開始を通知する前記業
務処理管理部12と、前記通知により、入替指示スイッチ
領域23の値と入替指示ファイル22の内容とを比較し、一
致のとき入替否、不一致のとき入替要と判定するととも
に入替指示ファイル22の内容を入替指示スイッチ領域23
に置換する入替要否判別部19と、入替要の場合、プログ
ラム管理ファイル15のロード情報50とロード制御領域LC
Aに転記されたロード情報50aの入替フラグを比較し、不
一致のロード情報50をプログラム管理ファイル15から抽
出して、ロード制御領域LCAの対応するロード情報50aと
置換するとともにそのロード情報50aの入口点アドレス
データ54aをクリアする入替処理部20と、前記業務処理
管理部より呼出し依頼がなされたとき、ロード制御領域
LCAのロード情報50aを参照し、当該ロードモジュールの
入口点アドレスデータ54aが設定されていれば該入口点
アドレスに制御を移し、設定されていなければ指定され
た論理識別子に対応する物理識別子52aのロードモジュ
ールをロードせしめ通知された入口点アドレスデータ54
aを設定して制御を移す呼出し処理を行う呼出処理部21
とを備えるように構成する。The load module exchanging apparatus of the present invention, as shown in the principle explanatory diagram of FIG. 1, includes a business process management unit 12 which analyzes an input message, sequentially calls a predetermined load module, and performs a required business process. A load module replacement device that is registered in the load module library based on the physical identifier and replaces the load module 60 loaded and loaded on the main memory with the correction load module 60b during online opening. There is a program management file 15 in which the load information 50 of each load module including the physical identifier 52 and the replacement flag 53 that is incremented for each replacement instruction is filed by the logical identifier 51, and for each replacement instruction of the load module 60. Replacement instruction switch 55 to be advanced
Is updated, and the physical identifier corresponding to the logical identifier in the program management file is updated based on the logical identifier 51 to be replaced and the physical identifier of the modified load module 60b. flag
A module replacement instruction processing unit 17 that advances the value of the exchange instruction switch 55 while stepping 53, and a load control area LCA and an exchange instruction switch area 23 are secured on the main memory at the time of online opening, and program management is performed. All the load information 50 in the file is transcribed to the load control area LCA, and the entry point address data area representing the load destination is secured and cleared, and the value of the exchange instruction switch 55 is read out from the exchange instruction file 22. Exchange instruction switch area
23, an open processing unit 18 that transcribes the input telegram, the business process management unit 12 that notifies the start of the business process at the time of starting the business process, and a value of the exchange instruction switch area 23 and the exchange instruction based on the notification. The contents of the file 22 are compared with the contents of the file 22. If the contents match, it is determined that replacement is necessary.
Necessity determining unit 19 for replacing the data with the load information 50 of the program management file 15 and the load control area LC
Compare the replacement flag of the load information 50a transcribed to A, extract the mismatched load information 50 from the program management file 15, replace it with the corresponding load information 50a of the load control area LCA, and enter the entry of the load information 50a. A replacement processing unit 20 for clearing the point address data 54a; and a load control area when a call request is made by the business processing management unit.
Referring to the LCA load information 50a, if the entry point address data 54a of the load module is set, the control is transferred to the entry point address, and if not set, the physical identifier 52a corresponding to the specified logical identifier is set. Entry point address data 54 notified by loading the load module
Call processing unit 21 that performs a call process for setting a and transferring control
It comprises so that it may have.
業務処理管理部12は入力電文を受信して指定の業務処
理を開始する際、ロードモジュールの呼出しに先立ち、
業務処理開始時点であること(以下トランザクションの
先頭部と称する)を入替要否判定部19に通知する。これ
により、入替要否判定部19は、入替指示ファイル22の入
替指示スイッチ55の値と主メモリ上の入替指示スイッチ
領域23に転記した入替指示スイッチ55aの値を比較し、
一致不一致により入替指示の有無(不一致のとき入替指
示有りで、このとき入替指示スイッチ領域23を最新の状
態である入替指示ファイル22の内容に置き換える。)を
判定する。そして、入替指示無しの場合は、入替要否判
定処理終了を業務処理管理部12に応答し、ロードモジュ
ールの呼出しを呼出処理部21に依頼させ、入替指示有り
の場合は、入替処理部20に入替処理させる。When the business process management unit 12 receives the input message and starts the specified business process, prior to calling the load module,
The start of the business process (hereinafter referred to as the head of the transaction) is notified to the replacement necessity determination unit 19. Thereby, the replacement necessity determination unit 19 compares the value of the replacement instruction switch 55 of the replacement instruction file 22 with the value of the replacement instruction switch 55a transcribed in the replacement instruction switch area 23 on the main memory,
It is determined whether or not there is a replacement instruction due to a match mismatch (when there is a mismatch, there is a replacement instruction, and at this time, the replacement instruction switch area 23 is replaced with the contents of the latest replacement instruction file 22). When there is no replacement instruction, the end of the replacement necessity determination processing is returned to the business process management unit 12, and the call processing unit 21 is requested to call the load module. Let it be replaced.
入替処理部20は、ロード制御領域に転送されたロード
情報(50aとする)と転送元のプログラム管理ファイル
中のロード情報50とを論理ID対応で突き合わせ、入替フ
ラグ53が不一致のロード情報50をプログラム管理ファイ
ル15から抽出して、ロード制御領域の対応するロード情
報50aと置き換え、そのロード情報50aの入口点アドレス
データをクリアして未ロード状態に設定した後、入替処
理終了を業務処理管理部12に通知する。The replacement processing unit 20 matches the load information (referred to as 50a) transferred to the load control area with the load information 50 in the transfer source program management file according to the logical ID, and compares the load information 50 whose replacement flag 53 does not match. After extracting from the program management file 15 and replacing it with the corresponding load information 50a of the load control area, clearing the entry point address data of the load information 50a and setting it to the unloaded state, the business process management unit Notify 12.
業務処理管理部12よりロードモジュールの呼出し依頼
がなされたとき、呼出処理部21は、主メモリ上に転記さ
れたロード情報50aを参照して呼出し処理を行うが、入
替えられたロード情報50aはその物理IDが修正ロードモ
ジュール60bの物理IDに入れ替えられ、入口点アドレス
データがクリアされているので、修正ロードモジュール
60bがロードモジュールライブラリよりロードされるこ
とになる。When a call request for a load module is made from the business process management unit 12, the call processing unit 21 performs a call process with reference to the load information 50a transcribed on the main memory, but the replaced load information 50a Since the physical ID has been replaced with the physical ID of the modified load module 60b and the entry point address data has been cleared, the modified load module
60b will be loaded from the load module library.
以上のごとく、業務処理開始時点で処理開始を通知さ
せることにより、その時点でロードモジュールの入り替
え準備が完了し、以後呼出しされるごとに修正ロードモ
ジュールがロードされる。そして、ロードモジュールの
呼出し時には入替処理が行われないので、同一処理内で
新旧ロードモジュールが入れ替わって処理されることが
防止できる。As described above, by notifying the start of the process at the start of the business process, the preparation for replacing the load module is completed at that time, and the modified load module is loaded each time the process is called. Since the replacement process is not performed when the load module is called, it is possible to prevent the new and old load modules from being replaced in the same process.
本発明の実施例を図を用いて詳細に説明する。 An embodiment of the present invention will be described in detail with reference to the drawings.
第2図は実施例のオンライン処理部ブロック図、第3
図はモジュール入替指示処理説明図、第4図はLCAの内
容説明図、第5図はオープン処理フローチャート図、第
6図はクローズ処理フローチャート図、第7図は呼出し
処理フローチャート図(その1)、第8図は呼出し処理
フローチャート図(その2)である。FIG. 2 is a block diagram of the online processing unit of the embodiment, and FIG.
FIG. 4 is a diagram for explaining a module replacement instruction process, FIG. 4 is a diagram for explaining the contents of an LCA, FIG. 5 is a flowchart for an open process, FIG. 6 is a flowchart for a close process, FIG. FIG. 8 is a flowchart (No. 2) of a calling process.
第2図は、第1図に示す入替要否判定部19と呼出処理
部21と入替処理部20に加えて、オープン処理部18および
クローズ処理部24を1組のプログラム管理部14として構
成し、ロードモジュールの呼出しをすべてプログラム管
理部14に依頼せしめる例を示したものである。FIG. 2 shows an open processing unit 18 and a close processing unit 24 as a set of a program management unit 14, in addition to the replacement necessity determination unit 19, the call processing unit 21, and the replacement processing unit 20 shown in FIG. This is an example in which the program manager 14 is requested to call all load modules.
なお主メモリ上に転記されたファイル情報(ロード情
報50a)には添字aを付して区別する。図中、 11は主制御部であって、オンライン開設時にプログラ
ム管理部14にオープン処理を指示し、オープン処理後は
オンライン端末のリード要求に基づき入力データを受信
し、対応する業務処理管理部12を呼出して所定の業務処
理を依頼するとともに処理結果をオンライン端末に応答
する。The file information (load information 50a) transcribed on the main memory is distinguished by adding a subscript a. In the figure, reference numeral 11 denotes a main control unit, which instructs a program management unit 14 to perform an open process at the time of online opening, receives input data based on a read request of an online terminal after the open process, and executes a corresponding business process management unit 12 To request a predetermined business process, and respond to the online terminal with the processing result.
12は業務処理管理部であって、オンライン端末の入力
データをチェクするとともに所定の処理に対応するロー
ドモジュール60を順次呼出し、処理結果とともに主制御
部11に復帰する。なお、業務処理開始に先立ち、第2の
パラメータにより、業務処理開始をプログラム管理部14
に通知し、プログラム管理部14より、入替要否判別処理
終了または入替処理終了の後にCALL依頼(許可)が応答
されたとき、以後第1のパラメータ(論理IDを通知)で
ロードモジュールの呼出しを行う。サブプログラムとし
てのロードモジュールであって、さらにサブプログラム
を呼出す等により所定の処理を行う。Reference numeral 12 denotes a business process management unit that checks input data of the online terminal, sequentially calls load modules 60 corresponding to predetermined processes, and returns to the main control unit 11 together with the processing results. Prior to the start of the business process, the start of the business process is determined by the program management unit 14 using the second parameter.
When a CALL request (permission) is returned from the program management unit 14 after the end of the replacement necessity determination process or after the completion of the replacement process, the load module is called with the first parameter (notifying the logical ID) thereafter. Do. It is a load module as a subprogram, and performs a predetermined process by calling the subprogram.
60bは入替対象のロードモジュール60に対する修正ロ
ードモジュール 14はプログラム管理部で、オープン処理部18,入替要
否判定部19,入替処理部20,呼出処理部21,クローズ処理
部24とを備える。Reference numeral 60b denotes a modified load module 14 for the load module 60 to be replaced. A program management unit includes an open processing unit 18, a replacement necessity determination unit 19, a replacement processing unit 20, a call processing unit 21, and a close processing unit 24.
18はオープン処理部で、主制御部11よりオープン処理
指示がなされたとき、主メモリ上にロード制御領域LCA
16と入替指示スイッチ領域23とを確保し、プログラム管
理ファイル15および入替指示ファイル22の内容とをそれ
ぞれ転記する。Reference numeral 18 denotes an open processing unit which, when an open processing instruction is given from the main control unit 11, loads the load control area LCA on the main memory.
16 and the exchange instruction switch area 23 are secured, and the contents of the program management file 15 and the exchange instruction file 22 are transcribed, respectively.
19は呼出し依頼されたとき第2パラメータ71を解析し
て入替の要否を判定する入替要否判定部、 20は入替処理部で、入替要否判定部19により入替要と
判定されたとき入替指示ファイル22より入替指示スイッ
チ55を入替指示スイッチ領域23に転記するとともに、そ
れまでに保持していた旧入替指示スイッチ55aと比較
し、一致不一致により入替指示の有無(一致のとき無
し)を判別するとともに、入替指示有りのときは、プロ
グラム管理ファイル15とロード制御領域LCA 16とのロー
ド情報をすべて突き合わせ、入替フラグ53,53aが不一致
のロード情報をすべてロード制御領域LCA 16に転送し置
き換える。Reference numeral 19 denotes a replacement necessity determining unit that analyzes the second parameter 71 when a call is requested and determines whether or not replacement is required. Reference numeral 20 denotes a replacement processing unit, which is replaced when the replacement necessity determination unit 19 determines that replacement is necessary. The transfer instruction switch 55 is transcribed from the instruction file 22 to the replacement instruction switch area 23, and is compared with the old replacement instruction switch 55a held up to that time. At the same time, when there is a replacement instruction, all the load information in the program management file 15 and the load control area LCA 16 are matched, and all the load information in which the replacement flags 53 and 53a do not match is transferred to the load control area LCA 16 and replaced.
21は呼出処理部で、論理ID51に基づき後述する呼出し
処理を行う。Reference numeral 21 denotes a call processing unit which performs a call process described later based on the logical ID 51.
21はクローズ処理部 15はプログラム管理ファイルであって、第3図に示す
ように、論理ID51に基づき物理ID52,複数ビットで構成
され入替指示ごとにカウントアップ(歩進)される入替
フラグ53,主メモリ上の入口点アドレスデータ54とで構
成されるロード情報50がファイルされたもので、図示省
略した外部記憶装置にファイルされるものであり、入口
点アドレスデータ54は初期値(設定なし)が格納され
る。Reference numeral 21 denotes a close processing unit. Reference numeral 15 denotes a program management file. As shown in FIG. 3, a physical ID 52 based on a logical ID 51, a plurality of bits, and a replacement flag 53 which is counted up (incremented) for each replacement instruction, Load information 50 composed of entry point address data 54 on the main memory is filed, and is filed in an external storage device (not shown). The entry point address data 54 is an initial value (no setting) Is stored.
16は主メモリ上に設けられたロード制御領域LCAで、
第4図に示すように、論理ID51ごとに所定バイト数の領
域が割当られ、それぞれ対応するロード情報50aが格納
される。16 is a load control area LCA provided on the main memory,
As shown in FIG. 4, an area of a predetermined number of bytes is allocated for each logical ID 51, and the corresponding load information 50a is stored.
17はモジュール入替指示処理部で、作成されロードモ
ジュールライブラリに登録された修正ロードモジュール
60bの物理ID52bと入替対象の論理ID51に基づき、プログ
ラム管理ファイル15の該当ロード情報の物理ID52を入れ
替えて入替フラグ53を歩進せしめるとともに、入替指示
ファイル22の入替指示スイッチ55をスイッチ(+1)す
る。Reference numeral 17 denotes a module replacement instruction processing unit, which is a modified load module created and registered in the load module library.
Based on the physical ID 52b of 60b and the logical ID 51 to be replaced, the physical ID 52 of the corresponding load information of the program management file 15 is replaced to advance the replacement flag 53, and the replacement instruction switch 55 of the replacement instruction file 22 is switched (+1). I do.
22は入替指示ファイルで、複数ビットの入替指示スイ
ッチ55が格納され入替指示ごとに歩進する。Reference numeral 22 denotes an exchange instruction file which stores an exchange instruction switch 55 of a plurality of bits, and advances by each exchange instruction.
23は主メモリ上に設けられた入替指示スイッチ領域で
ある。Reference numeral 23 denotes an exchange instruction switch area provided on the main memory.
呼出し元がプログラム管理部14にロードモジュール60
の呼出しを依頼するとき、第1パラメータとして論理ID
51を、第2パラメータとしてトランザクションの先頭か
否かを表すデータをそれぞれプログラム管理部14に渡し
て依頼する。The caller loads the load module 60 to the program management unit 14.
When requesting a call, the logical ID as the first parameter
The request 51 is passed as the second parameter to the program management unit 14 as data representing whether the transaction is at the head of the transaction.
以上構成のオンライン処理部において、以下の動作が
行われる。The following operation is performed in the online processing unit configured as described above.
(入替指示処理)第3図参照 (1) 修正ソースプログラムはコンパイルされて修正
ロードモジュール60bとして生成され、物理ID52bととも
にロードモジュールライブラリに登録される。(Replacement instruction processing) See FIG. 3. (1) The correction source program is compiled and generated as the correction load module 60b, and is registered in the load module library together with the physical ID 52b.
(2) 図示省略した端末より入替対象の論理ID51と物
理ID52bとが指示されると、モジュール入替指示処理部1
7は、入替指示ファイル22の入替指示スイッチ55をカウ
ントアップするとともに、入替対象の論理ID51に対応す
るプログラム管理ファイル15の物理IDを修正ロードモジ
ュール60bの物理ID52bに入れ替えるとともに、入替フラ
グ53を歩進する。(2) When a logical ID 51 and a physical ID 52b to be replaced are specified by a terminal (not shown), the module replacement instruction processing unit 1
7 increments the exchange instruction switch 55 of the exchange instruction file 22, exchanges the physical ID of the program management file 15 corresponding to the logical ID 51 to be exchanged with the physical ID 52b of the modified load module 60b, and sets the exchange flag 53 Proceed.
以上の入替指示はオンライン中に行われる。 The above replacement instruction is performed during online.
(オープン処理)第5図参照 オンライン開設時、オープン処理指示を受けたオープ
ン処理部18はロード制御領域LCA 16と入替指示スイッチ
領域23とを主メモリ上に確保し、プログラム管理ファイ
ル15の内容と入替指示ファイル22の内容とをそれぞれ転
記する。(Open processing) See FIG. 5 At the time of opening online, the open processing unit 18 receiving the open processing instruction secures the load control area LCA 16 and the replacement instruction switch area 23 in the main memory, and the contents of the program management file 15 and The contents of the replacement instruction file 22 are transcribed respectively.
なお、転記された主メモリ上のロード情報50aの入口
点アドレスデータ54aおよび入替フラグ53aは“0"に初期
設定される。The entry point address data 54a and the replacement flag 53a of the transcribed load information 50a on the main memory are initialized to "0".
(入替要否判定)第7図(イ) 呼出し依頼を受けたとき入力された第2パラメータを
チェックし、トランザクションの先頭部を表すデータが
セットされているときは入替処理部19に入替処理を指示
し、セットされていないときはそのまま何も処理せず、
CALL依頼を応答して呼出処理部21に呼出し処理させる。(Replacement necessity determination) FIG. 7 (a) When the call request is received, the input second parameter is checked, and if the data indicating the head of the transaction is set, the replacement processing unit 19 performs the replacement processing. Instruct, if not set, do nothing
In response to the CALL request, the call processing unit 21 is called.
(入替処理)第7図(ロ) (1) 入替要が指示されたとき入替指示スイッチ領域
23の内容を他の領域に退避し入替指示ファイル22の入替
指示スイッチ55を入替指示スイッチ領域23に転記する。(Replacement processing) Fig. 7 (b) (1) Replacement instruction switch area when replacement is required
The content of 23 is saved in another area, and the exchange instruction switch 55 of the exchange instruction file 22 is transferred to the exchange instruction switch area 23.
(2) 続いて新旧の入替指示スイッチ55,55aを比較
し、一致のときは入替指示無し,不一致の場合は入替指
示有りと判別する。(2) Subsequently, the old and new exchange instruction switches 55 and 55a are compared, and if they match, it is determined that there is no exchange instruction, and if they do not match, it is determined that there is an exchange instruction.
以上によりオンライン中任意の時間に入替指示されて
も業務開始時に入替指示が検出され、入替処理部20によ
り、以下の入替処理が行われる。As described above, even if the replacement instruction is given at an arbitrary time during the online operation, the replacement instruction is detected at the start of the business, and the replacement processing unit 20 performs the following replacement processing.
(3) 入替指示有りのときは、プログラム管理ファイ
ル15を順次読出し、ロード制御領域LCA 16の対応するロ
ード情報50aとを比較し、入替フラグ53,53aが不一致の
ロード情報50をすべて抽出してロード制御領域LCA 16の
ロード情報50aと置き換える。このとき、入替えられた
ロード情報50aの入口点アドレスデータ54aはクリアされ
る。(3) When there is a replacement instruction, the program management file 15 is sequentially read, the corresponding load information 50a in the load control area LCA 16 is compared, and all the load information 50 whose replacement flags 53, 53a do not match are extracted. Replace with the load information 50a of the load control area LCA16. At this time, the entry point address data 54a of the replaced load information 50a is cleared.
以上により、修正ロードモジュール60bに対応するロ
ード情報50aは、すべてその物理IDが格納され、且つ入
口点アドレスデータがクリアされた状態となり、次の呼
出しにより、修正ロードモジュールがロードされて動作
することになる。As described above, all the load information 50a corresponding to the modified load module 60b has the physical ID stored therein and the entry point address data cleared, and the modified load module is loaded and operated by the next call. become.
(呼出し処理)第8図 (1) ロード制御領域LCA 16を参照して呼出し処理を
行う。第8図(ハ) 即ち、指示された論理ID51に対応するロード情報50a
を読取り、 入口点アドレスデータ54aが設定されていればそのア
ドレスに制御を移し、(ニ) 入口点アドレスデータ54aが設定されていなければ
(クリア)物理ID52aを指定してオペレーティングシス
テムOSにロードを依頼し、通知された入口点アドレスデ
ータをロード情報52aに設定した後そのアドレスに制御
を移す。(ホ) 以上の結果、入替フラグ53が不一致の論理ID52に対応
するロード情報50がすべてロード制御領域LCA 16に転送
され、入口点アドレスデータ54aが設定されていないた
め、入替処理された物理ID52bに対応する修正ロードモ
ジュール60bがロードされ呼出しされる。(Call processing) FIG. 8 (1) Call processing is performed with reference to the load control area LCA16. FIG. 8 (c) That is, the load information 50a corresponding to the designated logical ID 51
If the entry point address data 54a has been set, the control is transferred to that address. (D) If the entry point address data 54a has not been set (clear), the physical ID 52a is specified and loaded into the operating system OS. After requesting and setting the notified entry point address data in the load information 52a, the control is transferred to that address. (E) As a result, all the load information 50 corresponding to the logical IDs 52 whose replacement flags 53 do not match are transferred to the load control area LCA 16, and the entry point address data 54a is not set. Is loaded and called.
(クローズ処理) オンライン閉局時指示されたクローズ処理指示に基づ
き、ロード制御領域LCA 16と入替指示スイッチ領域23と
が開放される。(Close Processing) The load control area LCA 16 and the replacement instruction switch area 23 are opened based on the close processing instruction instructed at the time of online closing.
以上のごとく、呼出し元に設定せしめた第2パラメー
タを解析して呼出し元がトランザクションの先頭と判定
したときのみ前述した入替処理が行われるため、同一ト
ランザクションで入替前後のロードモジュールの呼出し
が防止できる。As described above, since the above-described replacement processing is performed only when the caller determines that the caller is the head of the transaction by analyzing the second parameter set by the caller, it is possible to prevent the same transaction from calling the load module before and after the replacement. .
本発明は、論理IDと物理IDと入替フラグとを対応させ
たプログラム管理ファイルを主メモリにロードせしめて
呼出し処理する方式において、呼出し依頼時にパラメー
タでトランザクションの先頭か否かを通知せしめ、トラ
ンザクションの先頭と判定されたときのみロードモジュ
ールの入替処理を行うものであるから入替前後のロード
モジュールが同一処理で呼出しされることが防止できる
効果は多大なものがある。According to the present invention, in a system in which a program management file in which a logical ID, a physical ID, and an exchange flag are associated with each other is loaded into a main memory and a call process is performed, a parameter is provided at the time of a call request to notify whether or not the start of a transaction is present. Since the load module replacement process is performed only when it is determined to be the head, there is a great effect that the load modules before and after the replacement can be prevented from being called by the same process.
第1図は本発明の原理説明図、 第2図は実施例のオンライン処理部ブロック図、 第3図はモジュール入替処理説明図、 第4図はLCAの内容説明図、 第5図はオープン処理フローチャート図、 第6図はクローズ処理フローチャート図、 第7図は呼出し処理フローチャート図(その1)、 第8図は呼出し処理フローチャート図(その2)、 第9図は従来のロードモジュール入替方式説明図、 である。図中、 11は主制御部、12は業務処理管理部、 14はプログラム管理部、 15はプログラム管理ファイル、 16はロード制御領域LCA、17は入替指示処理部、 18はオープン処理部、19は入替要否判定部、 20は入替処理部、21は呼出処理部、 24はクローズ処理部、22は入替指示ファイル、 23は入替指示スイッチ領域、 50,50aはロード情報、 51は論理識別子データ、論理ID、 52,52aは物理識別子データ、物理ID、 52bは修正ロードモジュールの物理ID、 53,53aは入替フラグ、 54,54aは入口点アドレスデータ、 55,55aは入替指示スイッチ、 60はロードモジュール、 60bは修正ロードモジュール、 70は第1パラメータ、71は第2パラメータ、 である。 FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a block diagram of an online processing unit of the embodiment, FIG. 3 is a diagram for explaining module replacement processing, FIG. 4 is a diagram for explaining the contents of LCA, and FIG. FIG. 6 is a flowchart of a closing process, FIG. 7 is a flowchart of a calling process (No. 1), FIG. 8 is a flowchart of a calling process (No. 2), and FIG. ,. In the figure, 11 is a main control unit, 12 is a business process management unit, 14 is a program management unit, 15 is a program management file, 16 is a load control area LCA, 17 is a replacement instruction processing unit, 18 is an open processing unit, 19 is A replacement necessity determining unit, 20 is a replacement processing unit, 21 is a call processing unit, 24 is a close processing unit, 22 is a replacement instruction file, 23 is a replacement instruction switch area, 50 and 50a are load information, 51 is logical identifier data, Logical ID, 52, 52a are physical identifier data, physical ID, 52b is physical ID of modified load module, 53, 53a is replacement flag, 54, 54a is entry point address data, 55, 55a is replacement instruction switch, 60 is load The module, 60b is the modified load module, 70 is the first parameter, 71 is the second parameter.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭63−56728(JP,A) 特開 平1−113831(JP,A) 電子情報通信学会「昭和62年電子情報 通信学会・システム部門全国大会講演論 文集 分冊2;PART2」(特許庁資 料館昭和62年10月20日受入)p.2− 203−2−204 (58)調査した分野(Int.Cl.6,DB名) G06F 9/06,9/445,9/40,9/42,15/00────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-63-56728 (JP, A) JP-A-1-113831 (JP, A) The Institute of Electronics, Information and Communication Engineers, 1987 Conference Lecture Textbook, Volume 2: PART2 ”(JPO, October 20, 1987) p. 2-203-2-204 (58) Field surveyed (Int.Cl. 6 , DB name) G06F 9/06, 9/445, 9/40, 9/42, 15/00
Claims (1)
を順次呼出して要求された業務処理を遂行する業務処理
管理部を備えたオンライン処理装置において、ロードモ
ジュールライブラリに物理識別子に基づいて登録され、
前記呼出されて主メモリ上にロードされるロードモジュ
ールをオンライン開設中に修正ロードモジュールと入替
えるロードモジュール入替装置であって、 物理識別子と入替指示ごとに歩進される入替フラグとを
含む各ロードモジュールのロード情報が論理識別子によ
りファイルされたプログラム管理ファイルと、 ロードモジュールの入替指示ごとに歩進される入替指示
スイッチが格納された入替指示ファイルと、 指示された入替対象の論理識別子と修正ロードモジュー
ルの物理識別子とに基づき、該プログラム管理ファイル
中の該当論理識別子に対応する物理識別子を更新し、且
つ入替フラグを歩進するとともに、前記入替指示スイッ
チの値を歩進するモジュール入替指示処理部と、 オンライン開設時、主メモリ上にロード制御領域と入替
指示スイッチ領域とを確保し、プログラム管理ファイル
中の全ロード情報を該ロード制御領域に転記し、且つそ
れぞれロード先を表わす入口点アドレスデータ領域を確
保してクリアするとともに、該入替指示ファイルから該
入替指示スイッチの値を読み出して該入替指示スイッチ
領域に転記するオープン処理部と、 前記入力電文を解析し、業務処理開始時点で業務処理開
始を通知する前記業務処理管理部と、 前記通知により、該入替指示スイッチ領域の値と該入替
指示ファイルの内容とを比較し、一致のとき入替否、不
一致のとき入替要と判定するとともに該入替指示ファイ
ルの内容を該入替指示スイッチ領域に置換する入替要否
判別部と、 入替要の場合、該プログラム管理ファイルのロード情報
と該ロード制御領域に転記されたロード情報の入替フラ
グを比較し、不一致のロード情報を該プログラム管理フ
ァイルから抽出して、該ロード制御領域の対応するロー
ド情報と置換するとともに該ロード情報の入口点アドレ
スデータをクリアする入替処理部と、 前記業務処理管理部より呼出し依頼がなされたとき、該
ロード制御領域のロード情報を参照し、当該ロードモジ
ュールの入口点アドレスデータが設定されていれば該入
口点アドレスに制御を移し、設定されていなければ指定
された論理識別子に対応した該物理識別子に基づきロー
ドモジュールをロードせしめ、通知された入口点アドレ
スデータを設定して制御を移す呼出し処理を行う呼出処
理部と を備え、業務処理開始時点でロードモジュールの入替要
否を判別し、入替指示されたロード情報のみ入替え、且
つ入口点アドレスデータをクリアして、呼出し時に修正
ロードモジュールをロードさせて入替えることを特徴と
するロードモジュール入替装置。An online processing apparatus having a business processing management unit for analyzing an input message, sequentially calling a predetermined load module and performing a requested business processing, is registered in a load module library based on a physical identifier,
A load module exchanging device for exchanging a load module to be called and loaded on a main memory with a modified load module during online establishment, wherein each load includes a physical identifier and an exchange flag stepped by an exchange instruction. A program management file in which module load information is filed by a logical identifier; a replacement instruction file in which a replacement instruction switch that is stepped up for each load module replacement instruction is stored; a logical identifier of the specified replacement target; A module replacement instruction processing unit that updates a physical identifier corresponding to a corresponding logical identifier in the program management file based on the physical identifier of the module, increases a replacement flag, and increases a value of the replacement instruction switch. When opening online, replace with load control area on main memory An instruction switch area is secured, all the load information in the program management file is transferred to the load control area, and an entry point address data area indicating the load destination is secured and cleared, and the replacement instruction file is deleted from the replacement instruction file. An open processing unit that reads the value of a replacement instruction switch and transfers the value to the replacement instruction switch area, analyzes the input telegram, notifies the business processing start at the time of starting the business processing, and the business processing management unit; The value of the exchange instruction switch area is compared with the contents of the exchange instruction file. If the values match, it is determined that the exchange is not to be performed. If the values do not match, it is determined that the exchange is required. A necessity / unnecessity judging unit, and in the case of replacement, the load information of the program management file and the load information transferred to the load control area. A replacement processing unit that compares the replacement flag of the load control area, extracts the mismatched load information from the program management file, replaces the load information with the corresponding load information of the load control area, and clears the entry point address data of the load information; When a call request is made by the business process management unit, the load information of the load control area is referred to, and if entry point address data of the load module is set, the control is transferred to the entry point address and the entry is set. If not, a call processing unit for loading the load module based on the physical identifier corresponding to the specified logical identifier, performing a call process for setting the notified entry point address data and transferring control, and To determine whether the load module needs to be replaced, replace only the load information instructed to be replaced, and enter the entry point address. A load module replacing device which clears data and loads and replaces a modified load module at the time of calling.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63055314A JP2850322B2 (en) | 1988-03-09 | 1988-03-09 | Load module replacement device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63055314A JP2850322B2 (en) | 1988-03-09 | 1988-03-09 | Load module replacement device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01229323A JPH01229323A (en) | 1989-09-13 |
| JP2850322B2 true JP2850322B2 (en) | 1999-01-27 |
Family
ID=12995099
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63055314A Expired - Fee Related JP2850322B2 (en) | 1988-03-09 | 1988-03-09 | Load module replacement device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2850322B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3559571B2 (en) * | 1992-12-29 | 2004-09-02 | キヤノン株式会社 | Data processing device and data processing method |
| JP2743792B2 (en) * | 1993-10-07 | 1998-04-22 | 日本電気株式会社 | Real-time replacement method of dynamic link program |
-
1988
- 1988-03-09 JP JP63055314A patent/JP2850322B2/en not_active Expired - Fee Related
Non-Patent Citations (1)
| Title |
|---|
| 電子情報通信学会「昭和62年電子情報通信学会・システム部門全国大会講演論文集 分冊2;PART2」(特許庁資料館昭和62年10月20日受入)p.2−203−2−204 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01229323A (en) | 1989-09-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| AU667559B2 (en) | System for changing software during computer operation | |
| CN112835612A (en) | Electronic document version management method and device based on block chain | |
| JP2947111B2 (en) | Exchange data transfer method and system | |
| US6304635B1 (en) | Call control management system | |
| CN110955469A (en) | Method and device for online transaction by X86 platform distributed batch call | |
| JPS63182754A (en) | System for editing and outputting fault analysis information | |
| CN113111125A (en) | Business evidence storage method based on block chain | |
| JP2850322B2 (en) | Load module replacement device | |
| JPH11238065A (en) | Data base merging method | |
| JP2580685B2 (en) | Load module replacement device | |
| JP2509952B2 (en) | Online load module replacement method | |
| CN116049245A (en) | A method and device for data call relationship query processing | |
| JPH0731595B2 (en) | Online load module replacement method | |
| CN117131017B (en) | Methods and equipment for online migration of telecommunications data | |
| US7822015B2 (en) | Method of operating systems comprising communication services | |
| CN113220321B (en) | CPLD high-efficiency upgrading method, system and medium | |
| JPH0512087A (en) | System for outputting pre-updating journal | |
| JPH0322152A (en) | File restoring system | |
| JPH04102134A (en) | Delay update processing system | |
| JP2902157B2 (en) | Conflict detection system using work area of call processing memory | |
| CN112698785A (en) | Data updating method of storage device | |
| JPH10275107A (en) | Data registration method and method | |
| CN117407460A (en) | Cross-environment data synchronization method, device, storage medium and electronic equipment | |
| JPS62209637A (en) | Data base updating method | |
| JPH0759129A (en) | Loading method and addressing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |