JPH01113831A - Load module replacement system in on-line mode - Google Patents

Load module replacement system in on-line mode

Info

Publication number
JPH01113831A
JPH01113831A JP62272074A JP27207487A JPH01113831A JP H01113831 A JPH01113831 A JP H01113831A JP 62272074 A JP62272074 A JP 62272074A JP 27207487 A JP27207487 A JP 27207487A JP H01113831 A JPH01113831 A JP H01113831A
Authority
JP
Japan
Prior art keywords
replacement
load
load module
instruction
load information
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.)
Granted
Application number
JP62272074A
Other languages
Japanese (ja)
Other versions
JP2509952B2 (en
Inventor
Kagenori Munakata
宗像 景紀
Yumi Masutani
桝谷 ゆみ
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62272074A priority Critical patent/JP2509952B2/en
Publication of JPH01113831A publication Critical patent/JPH01113831A/en
Application granted granted Critical
Publication of JP2509952B2 publication Critical patent/JP2509952B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To perform the replacement processing and the call processing at high speed by transcribing the contents of a program control file to a load control area set in a main memory at replacement in an open processing state. CONSTITUTION:When an on-line is opened, a load control area 16 and a changeover switch area 23 are secured in a main memory via an open processing part 18. Then the contents of a program control file 15 and a replacement instruction file 22 are transcribed to both areas 16 and 23 respectively. When a call request is received, the presence or absence of a replacement instruction is decided by reference to the file 22. When the presence of the replacement instruction is confirmed, a corrected load module 60b is replaced and called out. While the call processing is carried out by reference to the load information on the main memory when the absence of the replacement instruction is confirmed. Thus the processing speed is increased with a load module replacement system.

Description

【発明の詳細な説明】 〔J既  要〕 本発明はオンライン中に呼出しされるロードモジュール
を入替える入替方式に関し、 論理10でロードモジュールを呼出し依頼せしめて修正
ロードモジュールと入替える入替方式の処理速度を改善
することを目的とし、 ロードモジュールの物理10と入替指示ごとに論理が反
転する入替フラグとロード先入口点アドレスデータの初
期値とで構成される第1のロード情報が論理10に対応
してファイルされたプログラム管理ファイルと、入替ス
イッチを備える入替指示ファイルと、入替対象の論理I
Dと修正ロードモジュールの物理10とに基づきプログ
ラム管理ファイルの物理10と入替フラグとを更新し入
替スイッチをカウントアツプする入替指示処理部と、オ
ンライン開設時主メモリ上にロード制御領域と入替スイ
ンチ領域とを確保して第1のロード情報と入替指示ファ
イルとを転記するオープン処理部と、論理10に基づき
呼出し依頼されたとき入替指示ファイルを入替スイッチ
領域に転記し転記前後の入替スイッチを比較して入替指
示の有無を判別する入替指示判別部と、入替指示なしの
とき指示された論理10に基づきロード制御領域に転記
された第2のロード情報を参照し、入口点アドレスデー
タ設定有りのときそのアドレスに制御を移し設定なしの
ときは物理IDに基づきロードモジュールをロードせし
め通知された入口点アドレスデータを第2のロード情報
に設定して制御を移す呼出し処理を行い、入替指示有り
のとき第2のロード情報と入替フラグが不一致の第1の
ロード情報を第2のロード情報に置換え入口点アドレス
データをクリアして前記呼出し処理を行う呼出処理部と
を備え、ロードモジュールの呼出しを論理10で依頼せ
しめ、プログラム管理ファイルを主メモリに転送して呼
出し処理を行うとともに、呼出し依頼されるごとに入替
指示ファイルを参照し、入替指示有りのときプログラム
管理ファイルより入替処理された第1のロード情報を転
送してロードモジュールを入替えるように構成する。
[Detailed Description of the Invention] [J Already Required] The present invention relates to a replacement method for replacing a load module that is called while online, and a process for the replacement method that calls and requests a load module with logic 10 and replaces it with a modified load module. For the purpose of improving speed, the first load information, which is composed of the physical 10 of the load module, a swap flag whose logic is inverted for each swap instruction, and the initial value of the load destination entry point address data, corresponds to the logical 10. A program management file filed as a file, a replacement instruction file with a replacement switch, and a logic I to be replaced
A swap instruction processing unit that updates the physical 10 of the program management file and the swap flag based on D and the physical 10 of the modified load module, and counts up the swap switch, and a load control area and a swap switch area on the main memory when online is opened. an open processing unit that transfers the first load information and the replacement instruction file by securing the same, and an open processing unit that transfers the replacement instruction file to the replacement switch area when requested to be called based on logic 10, and compares the replacement switch before and after the transcription. A replacement instruction determination unit that determines whether or not there is a replacement instruction, and a second load information posted to the load control area based on logic 10 that was instructed when there was no replacement instruction, and when entry point address data is set. Control is transferred to that address, and when there is no setting, a load module is loaded based on the physical ID, and the notified entry point address data is set in the second load information, and the call process is performed to transfer control, and when there is a replacement instruction a call processing unit that replaces the first load information whose replacement flag does not match the second load information with the second load information, clears the entry point address data, and performs the call processing; 10, the program management file is transferred to the main memory to perform the calling process, and each time a calling request is made, the replacement instruction file is referred to, and when there is a replacement instruction, the first program management file that has been replaced is Configure to transfer load information and replace load modules.

〔産業上の利用分野〕[Industrial application field]

本発明はオンライン中におけるロードモジュールの入替
方式に関する。
The present invention relates to a load module replacement method while online.

金融システム等では業務時間中センタ装置と各端末とは
オンライン接続され、端末から随時入力されるデータを
受は付けるとともに、指定のデータ処理、処理結果の応
答を即時に実行する実時間処理が行われている。
In financial systems, etc., the center device and each terminal are connected online during business hours, and data input from the terminal is accepted at any time, and real-time processing is performed to immediately execute specified data processing and response of processing results. It is being said.

この端末から要求される業務処理は、例えば入出金処理
2兄帳更新等その種、別は極めて多く且つ共用部分が多
いので各業務プログラムはサブプログラムに分割され、
従ってそれぞれがロードモジュールとしてロードモジュ
ールライブラリに登録され随時呼出しされるように構成
されている。
There are many types of business processing required from this terminal, such as deposit/withdrawal processing, two brother book updates, etc., and there are many shared parts, so each business program is divided into subprograms.
Therefore, each of them is registered as a load module in the load module library and is configured to be called at any time.

このように多数のロードモジュールで構成されたオンラ
イン処理部(オンラインプログラム)において、あるロ
ードモジュールを修正する必要が生じた場合、オンライ
ン中に修正ロードモジュールと入れ替えることが要望さ
れており、簡易なロードモジュールの入替方式が求めら
れている。
In an online processing unit (online program) composed of a large number of load modules, when it becomes necessary to modify a load module, it is desired to replace it with a modified load module while online. A module replacement method is required.

〔従来の技術〕[Conventional technology]

第9図は従来のロードモジュール入替方式説明図である
。図中、 lは通信回線等でセンタ装置に接続される複数のオンラ
イン端末、2はセンタ装置の主制御部で、業務時間中は
オンライン端末1との間でオンライン接続するとともに
、随時入力されるデータに基づき所定の処理をロードモ
ジュール(サブプログラム)60に依頼し処理結果をオ
ンライン端末1に応答する。
FIG. 9 is an explanatory diagram of a conventional load module replacement method. In the figure, 1 is a plurality of online terminals connected to the center device via communication lines, etc., and 2 is the main control unit of the center device, which connects online with the online terminal 1 during business hours and receives input from time to time. It requests the load module (subprogram) 60 to perform predetermined processing based on the data, and responds to the online terminal 1 with the processing results.

A、B  ・・Dは所定の処理を実行するロードモジュ
ール60であって、例えばロードモジュールAは主制御
部2より呼出されて元帳を更新するサブプログラムであ
り、その処理中においてロードモジュールBを呼出し、
ロードモジュールBはさらにロードモジュールCを呼出
すというように順次サブプログラムを呼出して所定の処
理を実行するように構成される。
A, B...D are load modules 60 that execute predetermined processes. For example, load module A is a subprogram called by the main control unit 2 to update the ledger, and load module B is called during that process. call,
Load module B is configured to further call load module C, and so on, to sequentially call subprograms to execute predetermined processing.

以上のオンラインシステムにおいて、あるロードモジュ
ール60を修正する場合修正ロードモジュール60bを
作成して入替えるが、従来では業務終了後に入替えるか
、または修正ロードモジュール60bへ分岐するか否か
を指定する制御テーブル5を設け、これを参照して修正
ロードモジュール60bに分岐するか自己のルーチンを
実行するかを判別する入替ルーチン6を各ロードモジュ
ールA〜Dの先頭に組み込む方式が採用されている。
In the above online system, when modifying a certain load module 60, a modification load module 60b is created and replaced, but conventionally, control is used to specify whether to replace it after the job is completed or to branch to the modification load module 60b. A system is adopted in which a table 5 is provided and a replacement routine 6 is incorporated at the beginning of each load module A to D, which refers to the table 5 and determines whether to branch to the modified load module 60b or execute its own routine.

なお、上記ロードモジュール60はサブプログラムとし
てロードモジュールライブラリに登録され、呼出しされ
たとき未ロードであれば主メモリにロードされて動作す
るものである。
The load module 60 is registered as a subprogram in the load module library, and if it is not loaded when called, it is loaded into the main memory and operated.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

以上説明したように、オンラインシステムにおけるロー
ドモジュールの入れ替えは業務終了後に行われるか、ま
たは各ロードモジュールに入替ルーチンを組み込む方式
で行われている。
As explained above, the replacement of load modules in an online system is performed after the end of a job, or by incorporating a replacement routine into each load module.

しかし、前者の方法ではあるロードモジュールに障害が
検出されても業務終了まで修正できず、また後者の方法
では制御テーブルの設定方法に基づく入替回数の制限が
あり、さらに入替ルーチンを各ロードモジュールに設け
るためロードモジュールそのものを入替えることができ
ないという問題点があった。
However, with the former method, even if a fault is detected in a load module, it cannot be corrected until the end of the job, and with the latter method, there is a limit on the number of replacements based on the control table setting method, and furthermore, the replacement routine is applied to each load module. Therefore, there was a problem in that the load module itself could not be replaced.

このため、ロードモジュールの呼出しを論理識別子デー
タ(論理10)をパラメータとして依頼させ、論理ID
と物理IDとを対比させたプログラム管理ファイルに基
づき呼出し先ロードモジュールを呼出すように構成し、
このプログラム管理ファイルの物理IDを更新してロー
ドモジュールを入替える方式が考えられるが、入替処理
は稀であるにもかかわらず呼出しごとに大量のロード情
報を備えたプログラム管理ファイルをアクセスしなけれ
ばならず、処理速度が低下するという問題点がある。
Therefore, the load module is requested to be called using the logical identifier data (logical 10) as a parameter, and the logical ID
and a physical ID to call the called load module based on the program management file,
One possible method is to update the physical ID of this program management file and replace the load module, but even though the replacement process is rare, it is necessary to access the program management file with a large amount of load information for each call. However, there is a problem that the processing speed decreases.

本発明は上記問題点に鑑み、論理IDで呼出し依頼する
前記方式において処理速度を向上させるオンライン中に
おけるロードモジュール入替方式を提供することを目的
とするものである。
SUMMARY OF THE INVENTION In view of the above-mentioned problems, it is an object of the present invention to provide an online load module replacement method that improves processing speed in the above-described method of requesting a call using a logical ID.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のオンライン中におけるロードモジュール入替方
式は、第1図本発明の原理説明図に示すように、 ロードモジュール(60)を識別する物理識別子データ
(52)と入替指示ごとに論理が反転する入替フラグ(
53)と主メモリ上のロード先入口点アドレスデータ(
54)の初期値とで構成される第1のロード情報(50
)が論理識別子データ(51)に対応してファイルされ
たプログラム管理ファイル(15)と、 入替指示ごとにカウントアツプされる入替スイッチ(5
5)を備えた入替指示ファイル(22)と、指示された
入替対象の論理識別子データ(51)と該修正ロードモ
ジュール(60b )の物理識別子データ(52b )
とに基づき、該プログラム管理フアイル(15)の対応
する物理識別子データ(52)と該入替フラグ(53)
とを更新するとともに該入替スイッチ(55)をカウン
トアツプせしめる入替指示処理部(17)と、 オンライン開設時、主メモリ上にロード制御領域(16
)と入替スイッチ領域(23)とを確保して前記第1の
ロード情報(50)と該入替指示ファイル(22)の該
入替スイッチ(55)とをそれぞれ転記するオープン処
理部(18)と、 該論理識別子データ(51)をパラメータとして呼出し
依頼されたとき該入替指示ファイル(22)の内容を該
入替スイッチ領域(23)に転記するとともに、転記前
後の該入替スイッチ(55)を比較して不一致および一
致により入替指示の有無を判別する入替指示判別部(1
9)と、 入替指示なしのとき指示された該論理識別子データ(5
1)に基づき該ロード制御領域(16)に転記された第
2のロード情報(50a )を参照し、該入口点アドレ
スデータ(54)が設定されていれば該入口点アドレス
データ(54)に制御を移し設定されていなければ対応
する該物理識別子データ(52)に基づき工亥ロードモ
ジュール(60)をロードせしめるとともに通知された
該入口点アドレスデータ(54)を第2のロード情報に
設定して制御を移す呼出し処理を行い、入替指示有りの
とき第1のロード情報のうち第2のロード情報と入替フ
ラグ(53)が不一致の第1のロード情報を抽出して第
2のロード情報に置換えるとともに入口点アドレスデー
タ(54)をクリアして前記呼出し処理を行う呼出処理
部(20)とを備える。
The online load module replacement method of the present invention, as shown in FIG. flag(
53) and the load destination entry point address data (
54) and the initial value of the first load information (50
) is filed corresponding to the logical identifier data (51), a program management file (15), and a swap switch (5) that is counted up for each swap instruction.
5), the logical identifier data (51) of the specified replacement target, and the physical identifier data (52b) of the modified load module (60b).
Based on this, the corresponding physical identifier data (52) of the program management file (15) and the replacement flag (53)
and an exchange instruction processing unit (17) that updates the exchange switch (55) and counts up the exchange switch (55).
) and an exchange switch area (23) to respectively transfer the first load information (50) and the exchange switch (55) of the exchange instruction file (22); When requested to call using the logical identifier data (51) as a parameter, the contents of the swapping instruction file (22) are transferred to the swapping switch area (23), and the swapping switch (55) before and after the transcription is compared. A replacement instruction determination unit (1) determines whether there is a replacement instruction based on mismatch or coincidence.
9), and the logical identifier data (5) specified when there is no replacement instruction.
1), the second load information (50a) transferred to the load control area (16) is referred to, and if the entry point address data (54) is set, the entry point address data (54) is set. If the control is not set, the factory load module (60) is loaded based on the corresponding physical identifier data (52), and the notified entry point address data (54) is set as the second load information. When there is a replacement instruction, the first load information whose replacement flag (53) does not match the second load information is extracted from the first load information and used as the second load information. and a call processing section (20) that performs the above-mentioned call processing by replacing and clearing the entry point address data (54).

〔作 用〕[For production]

ロードモジュール60を識別する物理識別子データ(物
理10) 52と入替指示ごとに論理が反転する入替フ
ラグ53とロード先入口点アドレスデータ54とで構成
される第1のロード情報50を論理識別子データ(論理
ID) 51に基づき配列したプログラム管理ファイル
15を準備しておき、ロードモジュール60を入替える
時は入替対象の論理1051に対応する物理ID52を
入替えるとともに入替フラグ53を更新(°“0”→“
°l”または“1”→“0″)する。
The first load information 50 consists of physical identifier data (Physical 10) 52 that identifies the load module 60, a replacement flag 53 whose logic is inverted for each replacement instruction, and load destination entry point address data 54. Prepare the program management file 15 arranged based on the logical ID) 51, and when replacing the load module 60, replace the physical ID 52 corresponding to the logical 1051 to be replaced and update the replacement flag 53 (° "0" →“
°l” or “1” → “0”).

また入替を通知するため、所定ビットの入替スイッチ5
5で構成される入替指示ファイル22を設け、入替指示
したとき入替スイッチ55をカウントアツプする。
In addition, in order to notify the replacement, a predetermined bit replacement switch 5
A replacement instruction file 22 consisting of 5 files is provided, and a replacement switch 55 is counted up when a replacement instruction is given.

オンライン開設時にはオープン処理部18によって主メ
モリ上にロード制御jI域16と入替スイッチ領域23
とが確保され、プログラム管理ファイル15と入替指示
ファイル22との内容がそれぞれ転記される。
When opening online, the open processing unit 18 stores the load control jI area 16 and exchange switch area 23 on the main memory.
are secured, and the contents of the program management file 15 and replacement instruction file 22 are respectively transcribed.

オンラインタスクより呼出し依頼されたとき、入替指示
ファイル22の入替スイッチ55を入替スイッチ領域2
3に転記(更新)し、転記前の入替スイッチ領域の旧入
替スイッチと比較して、一致のときは入替指示なし、不
一致のときは入替指示有りと判別する。
When requested to be called by an online task, the swap switch 55 of the swap instruction file 22 is moved to the swap switch area 2.
3 and compared with the old exchange switch in the exchange switch area before transcription. If they match, it is determined that there is no exchange instruction, and when they do not match, it is determined that there is a replacement instruction.

入替指示なしのときはロード制御領域16(第2のロー
ド情報50a)を参照して呼出し処理、即ち入口点アド
レスデータ54が設定されていればそのアドレスに制御
を移し設定されていなければ(LOW ADRESS、
クリア)物理ID52を指示してオペレーティングシス
テムOSロードせしめるとともに第2のロード情報50
aの入口点アドレスデータ54を設定しそのアドレスに
制御を移す。
When there is no replacement instruction, the load control area 16 (second load information 50a) is referred to and the call process is performed, that is, if the entry point address data 54 is set, control is transferred to that address, and if it is not set (LOW ADRESS,
clear) Instructs the physical ID 52 to load the operating system OS, and also displays the second load information 50
The entry point address data 54 of a is set and control is transferred to that address.

入替指示有りのときはプログラム管理ファイル15の第
1のロード情報50とロード制御領域16に転記された
第2のロード情報50aとをすべて突き合わせ、入替フ
ラグ53が不一致の第1のロード情報50を抽出して第
2のロード情報50a と置き換え、置き換えられた第
2のロード情報50aの入口点アドレスデータ54をク
リアした後前述の呼出し処理を行う。
When there is a replacement instruction, the first load information 50 of the program management file 15 and the second load information 50a transferred to the load control area 16 are all compared, and the first load information 50 with the replacement flag 53 that does not match is checked. After extracting and replacing with the second load information 50a and clearing the entry point address data 54 of the replaced second load information 50a, the above-mentioned calling process is performed.

以上のごとく、呼出し依頼されたとき入替指示ファイル
22を参照して入替指示の有無を判別し、入替指示有り
のときは修正ロードモジュール60bが入れ替えられて
呼出しされるとともに、入替指示無しのときは主メモリ
上のロード情報を参照して呼出し処理が行われる。
As described above, when a call request is made, the replacement instruction file 22 is referred to to determine whether there is a replacement instruction, and if there is a replacement instruction, the modification load module 60b is replaced and called, and if there is no replacement instruction, the modification load module 60b is replaced and called. The call process is performed by referring to the load information on the main memory.

〔実施例〕〔Example〕

本発明の実施例を図を用いて詳細に説明する。 Embodiments 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, Fig. 3 is an explanatory diagram of module replacement instruction processing, Fig. 4 is an explanatory diagram of LCA contents, Fig. 5 is an open processing flowchart, and Fig. 6 is a close processing flowchart. 7 is a call processing flowchart (part 1), and FIG. 8 is a call processing flowchart (part 2).

第2図は、第1図に示すオープン処理部18と入替指示
判別部19と呼出処理部20と、さらにクローズ処理部
21とを1組のプログラム管理部14として構成したも
のを示したものである。図中、11は主制御部であって
、初期設定で各種ファイルのオープン処理を行ってオン
ライン端末とオンライン接続するとともにプログラム管
理部14にオープン処理を指示し、オープン処理後はオ
ンライン端末から出力されるリード要求に基づき入力デ
ータを受信し、業務処理管理部12を呼出して所定の処
理を依頼するとともに処理結果をオンライン端末に応答
する。
FIG. 2 shows a program management unit 14 in which the open processing unit 18, replacement instruction determination unit 19, call processing unit 20, and close processing unit 21 shown in FIG. be. In the figure, reference numeral 11 is the main control unit, which performs the opening process of various files in the initial settings, connects online to the online terminal, and instructs the program management unit 14 to perform the open process, and after the open process, outputs from the online terminal. It receives input data based on a read request, calls the business processing management section 12, requests predetermined processing, and responds with the processing results to the online terminal.

12は業務処理管理部であって、オンライン端末より送
信された入力データをチェクするとともに所定の処理に
対応するロードモジニーn;60を順次呼出し、処理結
果とともに主制御部11に復帰する。
Reference numeral 12 denotes a business processing management section that checks input data transmitted from an online terminal, sequentially calls load modifiers 60 corresponding to predetermined processing, and returns to the main control section 11 with the processing results.

60はサブプログラムとしてのロードモジュールであっ
て、さらにサブプログラムを呼出す等により所定の処理
を行う。
Reference numeral 60 denotes a load module as a subprogram, which further performs predetermined processing by calling a subprogram.

14はプログラム管理部で、オープン処理部18.。14 is a program management section, and an open processing section 18. .

入替指示判別部19.呼出処理部20.クローズ処理部
21とを備える。
Replacement instruction determination unit 19. Call processing unit 20. A close processing section 21 is provided.

18はオープン処理部で、主制御部11よりオープン処
理指示がなされたとき、主メモリ上にロード制御領域L
C^16と入替スイッチ領域23とを確保し、プログラ
ム管理ファイル15の第1のロード情報50と入替指示
ファイル22の入替スイッチ55とを転記する。
18 is an open processing unit which, when an open processing instruction is issued from the main control unit 11, stores a load control area L on the main memory.
C^16 and the exchange switch area 23 are secured, and the first load information 50 of the program management file 15 and the exchange switch 55 of the exchange instruction file 22 are transferred.

19は入替指示判別部で、呼出し依頼を受けたとき入替
指示ファイル22より入替スイッチ55を入替スイッチ
領域23に転記するとともに、それまでに保持していた
旧入替スイッチと比較し、一致不−致により入替指示の
有無(一致のとき無し)を判別する。
Reference numeral 19 denotes a replacement instruction determination unit which, when receiving a call request, transfers the replacement switch 55 from the replacement instruction file 22 to the replacement switch area 23, compares it with the old replacement switch held up until then, and determines whether there is a match or mismatch. It is determined whether there is a replacement instruction (absent when there is a match).

20は呼出処理部で、論理IDに基づき後述する呼出し
処理を行う。
Reference numeral 20 denotes a call processing unit that performs call processing, which will be described later, based on the logical ID.

21はクローズ処理部。21 is a close processing section.

15はプログラム管理ファイルであって、第1図に示す
ように論理ID51に基づき第1のロード情報50がフ
ァイルされるもので、図示省略した外部記憶装置にファ
イルされるものであり、入口点アドレスデータ54は初
期値(設定なし)が格納される。
15 is a program management file in which the first load information 50 is filed based on the logical ID 51 as shown in FIG. The data 54 stores an initial value (no setting).

16は主メモリ上に設けられたロード制御N域LCAで
、第4図に示すように、論理1051ごとに所定バイト
数の領域が割当られ、それぞれ物理1052と入替フラ
グ53と入口点アドレスデータ54との格納領域が割付
けられる。
16 is a load control N-area LCA provided on the main memory, and as shown in FIG. A storage area is allocated.

17はモジュール入替指示処理部で、作成されロードモ
ジュールライブラリに登録された修正ロードモジュール
60bの物理ID52bと入替対象の論理1051に基
づき、プログラム管理ファイル15の8亥当ロード情報
の物理I D52と入替フラグ53とを更新するととも
に、入替指示ファイル22の入替スイッチ55をスイッ
チ(+1)する。
Reference numeral 17 denotes a module replacement instruction processing unit, which replaces the physical ID 52 of the current load information 8 of the program management file 15 based on the physical ID 52b of the corrected load module 60b created and registered in the load module library and the logic 1051 to be replaced. At the same time, the exchange switch 55 of the exchange instruction file 22 is switched (+1).

22は入替指示ファイルで、複数ビットの入替スイッチ
55が格納される。
22 is a replacement instruction file in which a multi-bit replacement switch 55 is stored.

23は主メモリ上に設けられた入替スイッチ領域である
23 is an exchange switch area provided on the main memory.

なお、プログラム管理ファイル15の第1のロード情報
50は初期登録されたロード情報で入替処理によって入
替えられるもの、第2のロード情報5゜aは第1のロー
ド情報50がLCA 16に転記されたものを称し、そ
れぞれ同一データ名は同一符号としている。
The first load information 50 of the program management file 15 is the initially registered load information that is replaced by the replacement process, and the second load information 5a is the first load information 50 transferred to the LCA 16. The same data name has the same code.

以下動作を説明する。The operation will be explained below.

なお、主制御部11および業務処理管理部12はプログ
ラム管理部14に対し論理1051をパラメータとして
呼出し依頼する。
Note that the main control unit 11 and the business processing management unit 12 request the program management unit 14 to call the logic 1051 as a parameter.

(入替指示処理)第3図参照 入替指示はオンライン中に行われる。(Replacement instruction processing) See Figure 3 Replacement instructions are given online.

(1)修正ソースプログラムはコンパイルされて修正ロ
ードモジュール60bとして生成され、物理ID52b
とともにロードモジュールライブラリ番ご登録される。
(1) The modified source program is compiled and generated as a modified load module 60b, and has a physical ID 52b.
The load module library number is also registered.

(2)図示省略した端末より入替対象の論理1051と
物理ID52bとが指示されると、モジュール入替指示
処理部17は、入替指示ファイル22の入替スイッチ5
5をカウントアツプするとともに、入替対象の論理ID
51に対応するプログラム管理ファイル15の物理ID
を修正ロードモジュール60bの物理ID52bに入れ
替えるとともに、入替フラグ53を更新(“0”→“1
”または“1”→“0”)する。
(2) When the logical 1051 and physical ID 52b to be replaced are instructed from a terminal (not shown), the module replacement instruction processing unit 17 sends the replacement switch 5 of the replacement instruction file 22.
In addition to counting up 5, the logical ID to be replaced
Physical ID of program management file 15 corresponding to 51
is replaced with the physical ID 52b of the modified load module 60b, and the replacement flag 53 is updated (“0” → “1”).
” or “1” → “0”).

(オープン処理)第5図参照 オープン処理指示を受けたとき、オープン処理部18は
ロード制御領域LC^16と入替スイッチ領域23とを
主メモリ上に確保し、プログラム管理ファイル15の内
容と入替指示ファイル22の内容とをそれぞれ転記する
(Open processing) See FIG. 5. When receiving an open processing instruction, the open processing section 18 secures a load control area LC^16 and a swap switch area 23 in the main memory, and transfers the contents of the program management file 15 and swap instructions. The contents of the file 22 are transcribed.

(入替指示判別)第7図(イ) 呼出し依頼を受けたとき、入替スイッチ領域23の内容
を他の領域に退避し入替指示ファイル22の入替スイッ
チ55を入替スイッチ領域23に転記する。
(Replacement instruction determination) FIG. 7(a) When a call request is received, the contents of the replacement switch area 23 are saved to another area, and the replacement switch 55 of the replacement instruction file 22 is transferred to the replacement switch area 23.

続いて新旧の入替スイッチ55を比較し、一致のときは
入替指示無し、不一致の場合は入替指示有りと判別する
Next, the old and new exchange switches 55 are compared, and if they match, it is determined that there is no exchange instruction, and when they do not match, it is determined that there is an exchange instruction.

以上によりオンライン中任意の時間に入替指示されても
呼出し依頼時に検出することができる。
As described above, even if a replacement instruction is given at any time while online, it can be detected at the time of a call request.

(呼出し処理)第7図、第8図 (1)  入替指示無しのとき、凸−ド制御領域LCA
 16を参照して呼出し処理を行う。第8図(ハ)即ち
、指示された論理1051に対応する第2のロード情報
50aを読取り、 入口点アドレスデータ54が設定されていればそのアド
レスに制御を移し、(ニ) 入口点アドレスデータ54が設定されていなければ(ク
リア)物理1052を指定してオペレーティングシステ
ムO8にロードを依頼し、通知された入口点アドレスデ
ータ54を第2のロード情報50aに設定した後そのア
ドレスに制御を移す。(ホ)(2)入替指示有りのとき
は、プログラム管理フ4アイル15を順次読出し、第1
のロード情報50とロード制msM域LCA 16の対
応する第2のロード情報5゜aとを比較し、入替フラグ
53が不一致の第1のロード情報50をすべてロード制
御領域LCA 16に転送して更新する。(ロ) このとき入替えられた第2のロード情報50aの入口点
アドレスデータ54はクリアされる。
(Call processing) Figures 7 and 8 (1) When there is no replacement instruction, convex control area LCA
16 to perform the calling process. FIG. 8(c) That is, read the second load information 50a corresponding to the instructed logic 1051, and if the entry point address data 54 is set, transfer the control to that address, and (d) read the entry point address data. If 54 is not set (clear), the physical 1052 is specified and the operating system O8 is requested to load it, and after setting the notified entry point address data 54 to the second load information 50a, control is transferred to that address. . (E) (2) When there is a replacement instruction, the program management files 15 are sequentially read and the first
The load information 50 of the load control area LCA 16 is compared with the corresponding second load information 5a of the load control msM area LCA 16, and all the first load information 50 whose replacement flags 53 do not match are transferred to the load control area LCA 16. Update. (b) The entry point address data 54 of the second load information 50a replaced at this time is cleared.

(3)以上の更新処理の後、前述した(1)項の呼出し
処理が行われる。(ハ) 以上の結果、入替フラグ53が不一致の論理TD52に
対応するロードモジュールが入れ替えられる。
(3) After the above update process, the call process in item (1) described above is performed. (c) As a result of the above, the load modules corresponding to the logical TDs 52 whose replacement flags 53 do not match are replaced.

(クローズ処理)第6図参照 オンライン開局時指示されたクローズ処理指示に基づき
、ロード制御領域LCA 16と入替スイッチ領域23
とを開放する。
(Close processing) Refer to Figure 6 Based on the close processing instructions given at the time of online opening, the load control area LCA 16 and the exchange switch area 23
and open up.

以上のごとく、論理1051と物理1052とを対応さ
せたプログラム管理ファイル15を設けることにより任
意にロードモジュール60を入替えることができ、特に
オープン処理時にロード制御領域LCA 16に転記す
るとともに入替時にプログラム管理ファイル15を読取
って更新するように構成したため、ファイルアクセスが
少なくてすみ、高速に入替および呼出し処理を行うこと
ができる。
As described above, by providing the program management file 15 in which the logical 1051 and the physical 1052 are provided, the load module 60 can be replaced at will. Since the management file 15 is configured to be read and updated, fewer file accesses are required and replacement and call processing can be performed at high speed.

〔発明の効果〕〔Effect of the invention〕

本発明は、論理10と物理10と入替フラグとを対応さ
せたプログラム管理ファイルを設けてオンライン中にロ
ードモジュールの入替処理する方式であって、特にオー
プン処理時、入替時に主メモリに設けたロード制御領域
にプログラム管理ファイルの内容を転記するように構成
したため入替処理。
The present invention provides a program management file in which logical 10, physical 10, and replacement flags are made to correspond to each other, and performs load module replacement processing while online. Replacement processing was performed because the configuration was configured to transfer the contents of the program management file to the control area.

呼出し処理が高速に行われ、オンラインシステムに多大
の効果を与える。
Call processing is performed at high speed, which has a great effect on the online system.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理説明図、 第2図は実施例のオンライン処理部ブロック図、第3図
はモジュール入替処理説明図、 第4図はLCへの内容説明図、 第5図はオープン処理フローチャート図、第6図はクロ
ーズ処理フローチャート図、第7図は呼出し処理フロー
チャート図(その1)、 第8図は呼出し処理フローチャート図(その2)、 第9図は従来のロードモジュール入替方式説明図、 である。図中、 11は主制御部、 12は業務処理管理部、14はプロ
グラム管理部、 15はプログラム管理ファイル、 16はロード制御領域LCへ、 17は入替指示処理部、18はオープン処理部、19は
入替指示判別部、20は呼出処理部、21はクローズ処
理部、22は入替指示ファイル、23は入替スイッチ領
域、 50は第1のロード情報、 50aは第2のロード情報、 51は論理識別子データ、論理l01 52は物理識別子データ、物理ID、 53は入替フラグ、 54は入口点アドレスデータ、 55は入替スイッチ、 である。
Figure 1 is a diagram explaining the principle of the present invention, Figure 2 is a block diagram of the online processing unit of the embodiment, Figure 3 is a diagram explaining module replacement processing, Figure 4 is a diagram explaining contents to LC, Figure 5 is open Processing flowchart, Fig. 6 is a close processing flowchart, Fig. 7 is a call processing flowchart (part 1), Fig. 8 is a call processing flowchart (part 2), and Fig. 9 is an explanation of the conventional load module replacement method. Figure, is. In the figure, 11 is the main control unit, 12 is the business processing management unit, 14 is the program management unit, 15 is the program management file, 16 is to the load control area LC, 17 is the replacement instruction processing unit, 18 is the open processing unit, 19 20 is a replacement instruction determination unit, 20 is a call processing unit, 21 is a close processing unit, 22 is a replacement instruction file, 23 is a replacement switch area, 50 is first load information, 50a is second load information, 51 is a logical identifier 52 is physical identifier data, physical ID, 53 is a replacement flag, 54 is entry point address data, and 55 is a replacement switch.

Claims (1)

【特許請求の範囲】 ロードモジュールライブラリに登録されオンライン処理
部より呼出しされて所定の処理を実行するロードモジュ
ールを修正ロードモジュールとオンライン開設中に入替
えるオンライン中におけるロードモジュール入替方式で
あって、 該ロードモジュール(60)を識別する物理識別子デー
タ(52)と入替指示ごとに論理が反転する入替フラグ
(53)と主メモリ上のロード先入口点アドレスデータ
(54)の初期値とで構成される第1のロード情報(5
0)が論理識別子データ(51)に対応してファイルさ
れたプログラム管理ファイル(15)と、 入替指示ごとにカウントアップされる入替スイッチ(5
5)を備えた入替指示ファイル(22)と、指示された
入替対象の論理識別子データ(51)と該修正ロードモ
ジュール(60b)の物理識別子データ(52b)とに
基づき、該プログラム管理ファイル(15)の対応する
物理識別子データ(52)と該入替フラグ(53)とを
更新するとともに該入替スイッチ(55)をカウントア
ップせしめる入替指示処理部(17)と、 オンライン開設時、主メモリ上にロード制御領域(16
)と入替スイッチ領域(23)とを確保して前記第1の
ロード情報(50)と該入替指示ファイル(22)の該
入替スイッチ(55)とをそれぞれ転記するオープン処
理部(18)と、 該論理識別子データ(51)をパラメータとして呼出し
依頼されたとき該入替指示ファイル(22)の内容を該
入替スイッチ領域(23)に転記するとともに、転記前
後の該入替スイッチ(55)を比較して不一致および一
致により入替指示の有無を判別する入替指示判別部(1
9)と、 入替指示なしのとき指示された該論理識別子データ(5
1)に基づき該ロード制御領域(16)に転記された第
2のロード情報(50a)を参照し、該入口点アドレス
データ(54)が設定されていれば該入口点アドレス(
54)に制御を移し設定されていなければ対応する該物
理識別子データ(52)に基づき該ロードモジュール(
60)をロードせしめるとともに通知された該入口点ア
ドレスデータ(54)を第2のロード情報に設定して制
御を移す呼出し処理を行い、入替指示有りのとき第1の
ロード情報のうち第2のロード情報と入替フラグ(53
)が不一致の第1のロード情報を抽出して第2のロード
情報に置換えるとともに入口点アドレスデータ(54)
をクリアして前記呼出し処理を行う呼出処理部(20)
とを備え、 該ロードモジュール(60)の呼出しを論理識別子デー
タ(51)で依頼せしめ、プログラム管理ファイル(1
5)を主メモリに転送して呼出し処理を行うとともに、
呼出し依頼されるごとに該入替指示ファイル(22)を
参照し、入替指示有りのときプログラム管理ファイル(
15)より入替処理された第1のロード情報を転送して
該ロードモジュール(60)を入替えることを特徴とす
るオンライン中におけるロードモジュール入替方式。
[Claims] A load module replacement method during online operation in which a load module registered in a load module library and called by an online processing unit to execute a predetermined process is replaced with a modified load module during online operation, comprising: Consists of physical identifier data (52) that identifies the load module (60), a replacement flag (53) whose logic is inverted for each replacement instruction, and the initial value of the load destination entry point address data (54) on the main memory. First load information (5
A program management file (15) in which 0) is filed corresponding to the logical identifier data (51), and a replacement switch (5) that is counted up for each replacement instruction.
5), the program management file (15) based on the logical identifier data (51) of the instructed replacement target and the physical identifier data (52b) of the modified load module (60b). ) and a replacement instruction processing unit (17) that updates the corresponding physical identifier data (52) and the replacement flag (53) and increments the replacement switch (55); Control area (16
) and an exchange switch area (23) to respectively transfer the first load information (50) and the exchange switch (55) of the exchange instruction file (22); When requested to call using the logical identifier data (51) as a parameter, the contents of the swapping instruction file (22) are transferred to the swapping switch area (23), and the swapping switch (55) before and after the transcription is compared. A replacement instruction determination unit (1) determines whether there is a replacement instruction based on mismatch or coincidence.
9), and the logical identifier data (5) specified when there is no replacement instruction.
1), the second load information (50a) transferred to the load control area (16) is referred to, and if the entry point address data (54) is set, the entry point address (
54), and if it is not set, the load module (54) is transferred based on the corresponding physical identifier data (52).
60) and sets the notified entry point address data (54) as the second load information to transfer control, and when there is a replacement instruction, the second load information of the first load information is loaded. Load information and replacement flag (53
) extracts the mismatched first load information and replaces it with the second load information, and also extracts the entry point address data (54).
a call processing unit (20) that clears and performs the call processing;
and requests the call of the load module (60) using the logical identifier data (51), and the program management file (1).
5) to the main memory and performs call processing,
Each time a call request is made, the replacement instruction file (22) is referred to, and when there is a replacement instruction, the program management file (22) is referred to.
15) A load module replacement method during online, characterized in that the first load information subjected to replacement processing is transferred and the load module (60) is replaced.
JP62272074A 1987-10-28 1987-10-28 Online load module replacement method Expired - Fee Related JP2509952B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62272074A JP2509952B2 (en) 1987-10-28 1987-10-28 Online load module replacement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62272074A JP2509952B2 (en) 1987-10-28 1987-10-28 Online load module replacement method

Publications (2)

Publication Number Publication Date
JPH01113831A true JPH01113831A (en) 1989-05-02
JP2509952B2 JP2509952B2 (en) 1996-06-26

Family

ID=17508731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62272074A Expired - Fee Related JP2509952B2 (en) 1987-10-28 1987-10-28 Online load module replacement method

Country Status (1)

Country Link
JP (1) JP2509952B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0540635A (en) * 1990-06-21 1993-02-19 Internatl Business Mach Corp <Ibm> Method and apparatus for dynamically deactivating program exit
JPH06202929A (en) * 1992-12-29 1994-07-22 Canon Inc Data processor
JPH08185318A (en) * 1994-12-29 1996-07-16 Nec Corp Dynamic substitution system of program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0540635A (en) * 1990-06-21 1993-02-19 Internatl Business Mach Corp <Ibm> Method and apparatus for dynamically deactivating program exit
JPH06202929A (en) * 1992-12-29 1994-07-22 Canon Inc Data processor
JPH08185318A (en) * 1994-12-29 1996-07-16 Nec Corp Dynamic substitution system of program

Also Published As

Publication number Publication date
JP2509952B2 (en) 1996-06-26

Similar Documents

Publication Publication Date Title
US5410703A (en) System for changing software during computer operation
EP0702295B1 (en) System for building optimal commit trees in a distributed transaction system
WO1996002115A2 (en) Method for warming up a spare process in a replicated real-time system, in particular in a telephone exchange
JPH01113831A (en) Load module replacement system in on-line mode
US5615372A (en) Network definition modifying system
JPS62125734A (en) Hierarchy type decentralized control system
CN114936102B (en) Hydropower LCU controller signal interaction method, system, device and storage medium thereof
CN100382550C (en) Method for processing shared data in on-line processing system
JP2580685B2 (en) Load module replacement device
JP2850322B2 (en) Load module replacement device
JPH04102134A (en) Delay update processing system
Boyne et al. A Message-Oriented Implementation of a Multi-Backend Database System (MDBS)
JPH0731595B2 (en) Online load module replacement method
JPH0256666A (en) System for dynamically updating job network unitary control system generating information
JPH0476742A (en) Data base updating system
JPH04119443A (en) Computer network system
JPH0243642A (en) Multi-host system data control system
JPH03196222A (en) Program replacing system
JPH04199955A (en) Subscriber control data management system
JPS62191962A (en) Message processing system
Fong et al. MAP application layer interface and application layer management structure: part I: management structure
JPH0451334A (en) Delay update processing system
JPS6022783B2 (en) Peer duplicate data control method
JPH04339492A (en) private branch exchange
JPS62192827A (en) File transmitting system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees