JPH04361338A - Transaction log data succeeding system - Google Patents

Transaction log data succeeding system

Info

Publication number
JPH04361338A
JPH04361338A JP3137342A JP13734291A JPH04361338A JP H04361338 A JPH04361338 A JP H04361338A JP 3137342 A JP3137342 A JP 3137342A JP 13734291 A JP13734291 A JP 13734291A JP H04361338 A JPH04361338 A JP H04361338A
Authority
JP
Japan
Prior art keywords
transaction log
log file
file
address
transaction
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.)
Pending
Application number
JP3137342A
Other languages
Japanese (ja)
Inventor
Mikio Koshi
越 幹夫
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3137342A priority Critical patent/JPH04361338A/en
Publication of JPH04361338A publication Critical patent/JPH04361338A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To improve efficiency for the processing of a batch job to access a transaction log file by reading the contents of the transaction log file to be written by an online job without waiting for the release of the online job. CONSTITUTION:For the request of a data base update processing inputted from an online terminal 100, a transaction log file update processing 400 outputs the file name of the transaction log file at a write destination and the write address to a transaction log file address table 600 when data are written in a transaction log file 700. When the transaction log file update processing 400 is abnormally finished, a transaction log file correction processing 500 writes a record without data having a control value at that time in the address of the transaction log file 700 shown in the transaction log file address table 600.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は取引ログデータ引継ぎ方
式に関し、特にオンラインジョブが記録する取引ログフ
ァイルをアクセスするバッチジョブの処理の効率化をは
かった取引ログデータ引継ぎ方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transaction log data transfer method, and more particularly to a transaction log data transfer method that improves the processing efficiency of batch jobs that access transaction log files recorded by online jobs.

【0002】0002

【従来の技術】従来のオンラインジョブによる取引ログ
データファイル記録処理及び取引ログデータファイルの
バッチアクセス処理は、図2に示すように電文を発生さ
せるオンライン端末100と、電文を受信し処理を行う
オンラインアプリケーションプログラム(以下「AP」
という)101と、取引ログファイル更新処理400と
、取引ログファイル700と、取引ログファイルを管理
する取引ログファイル管理ファイル200と、取引ログ
ファイル管理ファイル200の内容をメモリ上に展開し
た取引ログファイル管理テーブル300と、取引ログフ
ァイル読込処理800と、取引ログファイルのデータに
対し処理を行うAP102とを有している。
[Background Art] Transaction log data file recording processing and transaction log data file batch access processing using a conventional online job are performed using an online terminal 100 that generates a message and an online terminal that receives and processes the message, as shown in FIG. Application program (hereinafter referred to as “AP”)
) 101, a transaction log file update process 400, a transaction log file 700, a transaction log file management file 200 for managing the transaction log file, and a transaction log file in which the contents of the transaction log file management file 200 are developed in memory. It has a management table 300, a transaction log file reading process 800, and an AP 102 that processes data of the transaction log file.

【0003】図3は取引ログファイル管理ファイル20
0の構造を示す。この取引ログファイル管理ファイル2
00は、複数存在する取引ログファイル700を管理す
るものであり、レコード数は取引ログファイル700の
数だけある。取引ログファイル管理ファイル200の項
目はファイル名201と、取引ログファイルの開始アド
レス202と、終了アドレス203と、オンラインジョ
ブの取引ログファイル処理ステータス204と、バッチ
ジョブの取引ログファイル処理ステータス205と、取
引ログデータの妥当性を示す制御値206とを有する。 オンラインジョブの取引ログファイル処理ステータス2
04には、初期値としてオンライン未使用を示す値が設
定され、オンラインジョブが当該取引ログファイルの使
用時にはオンライン使用中を示す値に書換えられ、オン
ラインジョブが当該取引ログファイル開放時には、オン
ライン使用済を示す値に書換えられる。バッチジョブの
取引ログファイルバッチ処理ステータス205には、初
期値としてバッチジョブ未処理を示す値が設定され、バ
ッチジョブが当該取引ログファイルの読込処理を終了し
た際に、バッチジョブ処理済みを示す値に書換えられる
FIG. 3 shows a transaction log file management file 20.
The structure of 0 is shown. This transaction log file management file 2
00 manages a plurality of transaction log files 700, and the number of records is equal to the number of transaction log files 700. The items of the transaction log file management file 200 are a file name 201, a transaction log file start address 202, an end address 203, an online job transaction log file processing status 204, a batch job transaction log file processing status 205, and a control value 206 indicating the validity of the transaction log data. Online job transaction log file processing status 2
04 is set to a value indicating online unused as an initial value, and when an online job uses the transaction log file, it is rewritten to a value indicating online use, and when an online job opens the transaction log file, it is rewritten to a value indicating online usage. It is rewritten to a value indicating . In the batch job transaction log file batch processing status 205, a value indicating that the batch job has not been processed is set as an initial value, and when the batch job finishes reading the transaction log file, a value indicating that the batch job has been processed is set. can be rewritten as

【0004】図4は、取引ログファイル管理テーブル3
00の構造を示す。この取引ログファイル管理テーブル
300は、取引ログファイル管理ファイル200のレコ
ードのうち、オンラインジョブが使用中の取引ログファ
イル700の管理情報をメモリ上に展開したものであり
、取引ログファイル管理ファイル200中のファイル名
201,開始アドレス202,終了アドレス203,制
御値204をそれぞれ展開したファイル名301,開始
アドレス302,終了アドレス303,制御値304及
び取引ログファイル700で最近に取引ログデータを書
込んだアドレスを示すカレントアドレス305とを有し
ている。
FIG. 4 shows transaction log file management table 3.
The structure of 00 is shown. This transaction log file management table 300 is the one in which the management information of the transaction log file 700 being used by the online job is expanded in memory among the records of the transaction log file management file 200. Transaction log data was recently written in the file name 301, the start address 302, the end address 303, the control value 304, and the transaction log file 700, which are expanded file names 201, start addresses 202, end addresses 203, and control values 204, respectively. It has a current address 305 indicating the address.

【0005】図6は、取引ログファイル700の構造を
示すものであり、レコード制御部701、及び取引ログ
データを示すデータ部702とを有している。
FIG. 6 shows the structure of a transaction log file 700, which includes a record control section 701 and a data section 702 indicating transaction log data.

【0006】次に、動作について説明する。Next, the operation will be explained.

【0007】システムの活動に先がけて全取引ログファ
イル700のレコード制御部701中の制御値の初期化
を行い、取引ログファイル管理ファイル200の全レコ
ード中の制御値206に、当日のデータであることを示
す制御値を設定する。システムが始動すると、取引ログ
ファイル管理ファイル200より取引ログを書込むべき
取引ログファイルの情報が、取引ログファイル管理テー
ブル300上に展開される。この時カレントアドレス3
05には開始アドレス302の値から1を差引いた値が
設定される。以降カレントアドレス305の値が終了ア
ドレス303の値に等しくなるまで、取引ログファイル
700へのデータ書込み時のアクセスキーはカレントア
ドレス305を使用し行う。取引ログファイル管理ファ
イル200上のオンラインジョブの取引ログファイル処
理ステータス204は、当該取引ログファイル700が
、取引ログファイル管理テーブル300に展開された段
階で、オンライン使用中を示す値に書換える。
Prior to system activity, the control values in the record control section 701 of the all transaction log file 700 are initialized, and the control values 206 in all the records of the transaction log file management file 200 contain the data for that day. Set a control value to indicate this. When the system starts, information about the transaction log file in which the transaction log should be written is expanded from the transaction log file management file 200 onto the transaction log file management table 300. At this time, current address 3
05 is set to a value obtained by subtracting 1 from the value of the start address 302. Thereafter, the current address 305 is used as the access key when writing data to the transaction log file 700 until the value of the current address 305 becomes equal to the value of the end address 303. The transaction log file processing status 204 of the online job on the transaction log file management file 200 is rewritten to a value indicating that the transaction log file 700 is being used online when the transaction log file 700 is developed in the transaction log file management table 300.

【0008】取引ログファイル更新処理400より発生
したデータを取引ログファイル管理テーブル300で示
されるファイル名301の取引ログファイル700上に
書込む。レコード制御部701には、制御値304を書
込む。書込アドレスは、カレントアドレス305に1を
加えたアドレスであり、同時に取引ログファイル管理テ
ーブル300のカレントアドレス305も更新する。こ
のカレントアドレス305の更新時には、取引ログファ
イル管理テーブル300に対し、排他制御をかける。こ
れは、取引ログファイル更新処理が多重タスクで行われ
た場合、複数のタスクが同じカレントアドレス305を
得ることによりデータレコードが上書きされることを防
ぐためである。
The data generated by the transaction log file update process 400 is written on the transaction log file 700 with the file name 301 shown in the transaction log file management table 300. A control value 304 is written in the record control unit 701. The write address is the current address 305 plus 1, and the current address 305 of the transaction log file management table 300 is also updated at the same time. When updating the current address 305, exclusive control is applied to the transaction log file management table 300. This is to prevent data records from being overwritten due to multiple tasks obtaining the same current address 305 when transaction log file update processing is performed by multiple tasks.

【0009】カレントアドレス305が終了アドレス3
03と等しくなった場合、取引ログファイル更新処理4
00は、取引ログファイル管理テーブル300に対応す
る取引ログファイル管理ファイル200上のレコードの
、オンラインジョブの取引ログファイル処理ステータス
204をオンライン使用中からオンライン使用済に書換
え、次の取引ログファイル700の情報を取引ログファ
イル管理テーブル300上に展開する。
[0009] Current address 305 is end address 3
If it is equal to 03, transaction log file update process 4
00 rewrites the online job transaction log file processing status 204 of the record on the transaction log file management file 200 corresponding to the transaction log file management table 300 from online in use to online used, and updates the next transaction log file 700. The information is developed on the transaction log file management table 300.

【0010】取引の詳細を示した取引ログファイル70
0のデータレコードを処理するバッチジョブでは、取引
ログファイル管理ファイル200のオンラインジョブの
取引ログファイル処理ステータス204が、オンライン
使用済となっている取引ログファイル700に対し開始
レコード202より終了レコード203まで読込処理を
行う。読込処理終了後は、処理を行った取引ログファイ
ル700のバッチジョブの取引ログファイル処理ステー
タス205をバッチ処理済とする。
Transaction log file 70 showing transaction details
In a batch job that processes 0 data records, the transaction log file processing status 204 of the online job in the transaction log file management file 200 is set from the start record 202 to the end record 203 for the transaction log file 700 that is online used. Performs reading processing. After the reading process is completed, the transaction log file processing status 205 of the batch job of the transaction log file 700 that has been processed is set to batch processed.

【0011】取引ログファイル読込処理800は、アク
セスした取引ログファイル700のレコード制御部70
1の制御値が取引ログファイル管理ファイル200の制
御値206と等しいレコードのデータ部をバッチAP1
02へ渡す。レコード制御部701の制御値が制御値2
06と異なる場合、当日のデータではないと判断し、デ
ータ部702をバッチAP102に渡す処理は行わない
。このレコード読込処理はアクセスした取引ログファイ
ル700の開始レコードより終了レコードまで行われる
The transaction log file reading process 800 is performed by the record control unit 70 of the accessed transaction log file 700.
The data part of the record whose control value 1 is equal to the control value 206 of the transaction log file management file 200 is batched into AP1.
Pass it to 02. The control value of the record control unit 701 is control value 2
If it is different from 06, it is determined that the data is not for that day, and the process of passing the data section 702 to the batch AP 102 is not performed. This record reading process is performed from the start record to the end record of the accessed transaction log file 700.

【0012】0012

【発明が解決しようとする課題】従来のバッチジョブの
取引ログファイル700の読込処理は、レコード制御部
701の制御値と取引ログファイル管理ファイル200
の制御値206との比較を行い、値が等しいレコードは
読込み、値が異なるレコードは読みとばしていた。従っ
て、従来のファイル単位の取引ログデータアクセスから
、レコード単位の取引ログデータアクセスにアクセス方
法を変更した場合、オンラインが使用中あるいは未使用
の取引ログファイル700に対しては、取引ログファイ
ル読込処理800は、レコード更新が行われていないレ
コードも読みとばしてしまうという問題点があった。
[Problems to be Solved by the Invention] The reading process of the transaction log file 700 of the conventional batch job is based on the control value of the record control unit 701 and the transaction log file management file 200.
A comparison is made with the control value 206, and records with equal values are read, and records with different values are skipped. Therefore, if you change the access method from the conventional file-based transaction log data access to record-based transaction log data access, the transaction log file reading process will be performed for the transaction log file 700 that is currently in use or unused online. 800 has a problem in that records that have not been updated are also skipped.

【0013】[0013]

【課題を解決するための手段】本発明の取引ログデータ
引継ぎ方式は、オンラインジョブが記録し、順次に発生
する取引ログのバッチジョブが処理を行うシステムにお
いて、オンラインジョブが取引ログを書込んだ取引ログ
ファイルのファイル名アドレスを貯えるメモリ上の取引
ログファイルアドレステーブルと、取引ログファイルア
ドレステーブルを有するタスクが正常に処理を終えた場
合に、前記取引ログファイルアドレステーブルの内容を
消去する機能と取引ログを書込んだファイル名アドレス
を前記取引ログファイルアドレステーブルに書込む機能
とを有する取引ログファイル更新手段と、前記取引ログ
ファイルアドレステーブルを有するタスクに異常が発生
した場合、前記取引ログファイルアドレステーブルの示
す取引ログファイルのアドレスに対し、当日の制御を有
するレコードを書込む機能を有する取引ログファイル修
正手段と、取引ログファイルレコード中の制御値により
読込処理,読込中断を制御する機能を有する取引ログフ
ァイル読込手段と、発生した取引のログを書込む取引ロ
グファイルと、取引ログファイルを管理する取引ログフ
ァイル管理ファイルと、取引ログファイルを管理する取
引ログファイル管理テーブルとを備えて構成される。
[Means for Solving the Problems] The transaction log data transfer method of the present invention provides a system in which an online job records transaction logs and a batch job processes transaction logs that occur sequentially. A transaction log file address table in memory for storing file name addresses of transaction log files, and a function for erasing the contents of the transaction log file address table when a task having the transaction log file address table completes processing normally. a transaction log file update means having a function of writing a file name address in which a transaction log is written into the transaction log file address table; and when an abnormality occurs in the task having the transaction log file address table, the transaction log file is updated. A transaction log file modification means that has a function of writing a record with control for the current day to the transaction log file address indicated by the address table, and a function that controls reading processing and reading interruption based on the control value in the transaction log file record. a transaction log file reading means, a transaction log file for writing a log of transactions that have occurred, a transaction log file management file for managing the transaction log file, and a transaction log file management table for managing the transaction log file. be done.

【0014】[0014]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0015】図1は本発明の一実施例の構成を示すブロ
ック図で、取引ログ引継ぎ方式を用いたトランザクショ
ン処理の概念図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and is a conceptual diagram of transaction processing using a transaction log handover method.

【0016】オンライン端末100は、データベース更
新処理等の処理要求を発行し、オンラインAP101は
処理電文を受け取り、データベース等に対する処理を行
う。その際発生した処理の詳細を、取引ログファイル更
新処理400が、取引ログファイル700に出力する。 出力先の取引ログファイル700は、取引ログファイル
管理テーブル300より得る。
The online terminal 100 issues processing requests such as database update processing, and the online AP 101 receives processing messages and performs processing on the database and the like. The transaction log file update process 400 outputs the details of the process that occurred at that time to the transaction log file 700. The output destination transaction log file 700 is obtained from the transaction log file management table 300.

【0017】取引ログファイル管理テーブル300には
、取引ログファイル更新処理400に先がけて、取引ロ
グファイル管理ファイル200の内容が展開される。 取引ログファイル更新処理400が、取引ログファイル
700に対しデータの書込を行った際、書込み先の取引
ログファイルのファイル名と書込みアドレスを取引ログ
ファイルアドレステーブル600に出力する。取引ログ
ファイルアドレステーブル600の構造は図5に示す。 取引ログデータを書込んだ取引ログファイル700のフ
ァイル名を602に、書込アドレスを603に、それぞ
れ書込む。その際、エントリ数601が1だけ加算され
る。
The contents of the transaction log file management file 200 are developed in the transaction log file management table 300 prior to the transaction log file update process 400. When transaction log file update processing 400 writes data to transaction log file 700, it outputs the file name and write address of the transaction log file to which data is to be written to transaction log file address table 600. The structure of the transaction log file address table 600 is shown in FIG. The file name of the transaction log file 700 into which the transaction log data has been written is written in 602, and the write address is written in 603, respectively. At this time, the number of entries 601 is incremented by 1.

【0018】取引ログファイル修正処理500は、取引
ログファイル更新処理400が異常終了した場合に、取
引ログファイルアドレステーブル600中に示される取
引ログファイル700のアドレスに、当日の制御値を持
ったデータなしのレコードを書込む。取引ログファイル
読込処理800は、取引ログファイル管理ファイル20
0に登録されている順に取引ログファイル700をアク
セスし、先頭レコードより順に読込みバッチAP102
にデータを渡す。読込んだレコードのレコード制御部7
01の制御値が、制御値206と異なる場合、書込が行
われていないレコードであるため読込処理を中断する。
The transaction log file modification process 500 updates data with the current day's control value to the address of the transaction log file 700 shown in the transaction log file address table 600 when the transaction log file update process 400 ends abnormally. Write a record of none. The transaction log file reading process 800 reads the transaction log file management file 20.
Batch AP 102 accesses the transaction log files 700 in the order registered in 0 and reads them in order from the first record.
Pass the data to. Record control section 7 of the read record
If the control value 01 is different from the control value 206, this is a record that has not been written, so the reading process is interrupted.

【0019】取引ログファイル更新処理400が多重タ
スク構成である場合を用いて、取引ログファイル更新処
理400が正常に行われた場合、及び処理中に異常が発
生した場合の取引ログファイル管理テーブル300,取
引ログファイル700の状態を説明する。
Transaction log file management table 300 when transaction log file update process 400 is performed normally and when an abnormality occurs during processing using the case where transaction log file update process 400 has a multi-task configuration. , the status of the transaction log file 700 will be explained.

【0020】図7は、本実施例の動作を示す説明図のう
ち、システムの構成を抜粋したものである。
FIG. 7 is an excerpt of the system configuration from an explanatory diagram showing the operation of this embodiment.

【0021】タスク400A,タスク401Bは取引ロ
グファイル更新処理を表し、ファイル700Aは取引ロ
グファイルを表す。タスク400A,タスク401Bの
順に取引ログ書込要求が発生した場合、タスク400A
が取引ログファイル管理テーブル300に対しアクセス
したため、取引ログファイル管理テーブル300に排他
がかかり、タスク401Bは、待ち状態となる。タスク
400Aは、取引ログファイル管理テーブル300より
得られたファイル700Aのアドレス2に対し、取引ロ
グデータを書込む。タスク400Aは、取引ログファイ
ル管理テーブル300のカレントアドレス305を更新
し、取引ログファイル管理テーブル300の排他を解除
する。第8図はここまでの一連の処理終了後の状態を示
した図である。
Tasks 400A and 401B represent transaction log file update processing, and file 700A represents the transaction log file. If a transaction log write request occurs in the order of task 400A and task 401B, task 400A
has accessed the transaction log file management table 300, the transaction log file management table 300 is exclusive, and the task 401B enters a waiting state. Task 400A writes transaction log data to address 2 of file 700A obtained from transaction log file management table 300. Task 400A updates the current address 305 of the transaction log file management table 300 and releases the exclusion of the transaction log file management table 300. FIG. 8 is a diagram showing the state after the series of processing up to this point has been completed.

【0022】取引ログファイル管理テーブル300のカ
レントアドレス304は2に更新され、ファイル700
Aのアドレス2には、レコード制御部701に制御値3
05をもった取引ログデータのレコードが書込まれる。 データレコードが書込まれたファイル700Aのファイ
ル名と書込アドレスとが、取引ログファイルアドレステ
ーブル600に書込まれ、エントリ数601が更新され
る。タスク400Aによる取引ログファイル管理テーブ
ル300の排他が解除されるため、タスク401Bは取
引ログファイル管理テーブル300のアクセスを行うこ
とができる。タスク401Bも、以上説明したタスク4
00Aと同様の処理を行い、取引ログファイル管理テー
ブル300、取引ログファイル700、取引ログファイ
ルアドレステーブル610の更新を行う。図9は、ここ
までの一連の処理終了後の状態を示した図である。タス
ク400A,タスク401Bを呼び出したAP101,
AP111が正常に終了する直前に、取引ログファイル
アドレステーブル600,610のエントリ数601,
611は0に初期化される。
The current address 304 of the transaction log file management table 300 is updated to 2, and the file 700
Address 2 of A has a control value 3 in the record control unit 701.
A transaction log data record with 05 is written. The file name and write address of the file 700A in which the data record has been written are written to the transaction log file address table 600, and the number of entries 601 is updated. Since the exclusive use of the transaction log file management table 300 by the task 400A is released, the task 401B can access the transaction log file management table 300. Task 401B is also task 4 explained above.
The same process as 00A is performed to update the transaction log file management table 300, transaction log file 700, and transaction log file address table 610. FIG. 9 is a diagram showing the state after the series of processing up to this point has been completed. AP101 that called task 400A and task 401B,
Immediately before the AP 111 terminates normally, the number of entries in the transaction log file address tables 600, 610 is 601,
611 is initialized to 0.

【0023】ファイル700Aを読込むバッチジョブの
取引ログファイル読込処理は、アドレス3のレコードま
で読込み、アドレス4のレコードをアクセスした段階で
処理を中断する。以上の説明は、タスク400A,40
0Bを呼び出すAP101,AP111が正常に終了し
た場合である。図7において、タスク400Aが取引ロ
グファイル管理テーブル300の排他を解除した後に、
トランザクションアボートを起こした場合の状態を示し
たのが図10である。トランザクションアボートが発生
すると、取引ログファイル700に対し、バックアウト
処理が働き、タスク400Aの取引ログファイルに対す
る書込処理はキャンセルされる。タスク401Bは、取
引ログファイル管理テーブル300より得たアドレスに
対しデータ書込を行うため、図10に示すようにファイ
ル700Aにはアドレス2に未更新レコードが発生して
しまう。
The transaction log file reading process of the batch job that reads the file 700A reads up to the record at address 3 and interrupts the process when the record at address 4 is accessed. The above explanation is based on tasks 400A, 40
This is a case where the AP 101 and AP 111 calling 0B terminate normally. In FIG. 7, after the task 400A releases the exclusion of the transaction log file management table 300,
FIG. 10 shows the state when a transaction abort occurs. When a transaction abort occurs, a backout process is performed on the transaction log file 700, and the writing process of the task 400A to the transaction log file is canceled. Since the task 401B writes data to the address obtained from the transaction log file management table 300, an unupdated record occurs at address 2 in the file 700A as shown in FIG.

【0024】このような未更新レコードが存在すると、
バッチジョブの取引ログファイル読込処理800は、レ
コード制御部701の制御値が、取引ログファイル管理
ファイル200中の制御値206と異なる場合、読込処
理を中断してしまうため、図10中のアドレス2のレコ
ード以降を読むことができなくなってしまう。トランザ
クションアボートが発生した場合、異常が起こったAP
101は、取引ログファイル修正処理500を呼び出し
、取引ログファイル修正処理500は、取引ログファイ
ルアドレステーブル600に示される取引ログファイル
700に、レコード制御部701に制御値206を有す
る取引ログデータ無しのレコードを書込む。取引ログフ
ァイルアドレステーブル600の全エントリに対し処理
を行った後、エントリ数601の初期化を行う。以上の
処理が実行された後の状態を図11に示す。取引ログフ
ァイル700のアドレス2にレコード制御部701の制
御値が制御値206と等しいレコードが書込まれたため
、バッチジョブの取引ログファイル読込処理800は、
アドレス2のレコードに対し処理を行うことができる。 しかし、アドレス2のレコードには取引ログデータが無
いため、AP102にデータを渡す処理は行わない。
[0024] If such an unupdated record exists,
In the transaction log file reading process 800 of the batch job, if the control value of the record control unit 701 is different from the control value 206 in the transaction log file management file 200, the reading process is interrupted. You will not be able to read beyond the record. If a transaction abort occurs, the AP where the error occurred
101 calls the transaction log file modification process 500, and the transaction log file modification process 500 adds the transaction log file 700 shown in the transaction log file address table 600 to the transaction log file 700 with no transaction log data having the control value 206 in the record control unit 701. Write a record. After processing all entries in the transaction log file address table 600, the number of entries 601 is initialized. FIG. 11 shows the state after the above processing is executed. Since a record in which the control value of the record control unit 701 is equal to the control value 206 was written to address 2 of the transaction log file 700, the transaction log file reading process 800 of the batch job is executed as follows.
Processing can be performed on the record at address 2. However, since there is no transaction log data in the record of address 2, the process of passing the data to the AP 102 is not performed.

【0025】取引ログファイル読込処理800は、次の
アドレス3のレコードを読み、処理を行い、アドレス4
のレコードを読込んだ時点で処理を中断する。
Transaction log file reading processing 800 reads the next record of address 3, processes it, and reads the record of address 4.
Processing is interrupted when the record is read.

【0026】[0026]

【発明の効果】以上説明したように本発明は、取引ログ
データ引継ぎ方式を用いることにより、オンラインジョ
ブにより書込まれる取引ログファイルの内容を、バッチ
ジョブはオンラインジョブの取引ログファイル開放を待
たずに読込むことが可能となり、取引ログファイルをア
クセスするバッチジョブの処理効率を高めることが可能
となる。
[Effects of the Invention] As explained above, by using the transaction log data transfer method, a batch job can transfer the contents of a transaction log file written by an online job without waiting for the online job to open the transaction log file. This makes it possible to increase the processing efficiency of batch jobs that access transaction log files.

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

【図1】本発明の一実施例の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】従来の技術による取引ログデータ引継ぎ方式の
構成を示すブロック図。
FIG. 2 is a block diagram showing the configuration of a transaction log data transfer method according to a conventional technique.

【図3】取引ログファイル管理ファイルの構成を示す説
明図。
FIG. 3 is an explanatory diagram showing the structure of a transaction log file management file.

【図4】取引ログファイル管理テーブルの構造を示す説
明図。
FIG. 4 is an explanatory diagram showing the structure of a transaction log file management table.

【図5】本実施例の取引ログファイルアドレステーブル
の構造を示す説明図。
FIG. 5 is an explanatory diagram showing the structure of a transaction log file address table of this embodiment.

【図6】取引ログファイルの構成を示す説明図。FIG. 6 is an explanatory diagram showing the structure of a transaction log file.

【図7】本実施例の動作を示す説明図。FIG. 7 is an explanatory diagram showing the operation of this embodiment.

【図8】本実施例の動作を示す説明図。FIG. 8 is an explanatory diagram showing the operation of this embodiment.

【図9】本実施例の動作を示す説明図。FIG. 9 is an explanatory diagram showing the operation of this embodiment.

【図10】本実施例の動作を示す説明図。FIG. 10 is an explanatory diagram showing the operation of this embodiment.

【図11】本実施例の動作を示す説明図。FIG. 11 is an explanatory diagram showing the operation of this embodiment.

【符号の説明】[Explanation of symbols]

100    オンライン端末 101,111    オンラインAP(オンラインア
プリケーションプログラム) 102    バッチAP(バッチアプリケーションプ
ログラム) 200    取引ログファイル管理ファイル201 
   (取引ログ)ファイル名202    (取引ロ
グファイル)開始アドレス203    (取引ログフ
ァイル)終了アドレス204    オンライン(ジョ
ブの取引ログファイル)処理ステータス 205    バッチ(ジョブの取引ログファイル)処
理ステータス 206    制御値 300    取引ログファイル管理テーブル301 
   (取引ログファイル)ファイル名302    
(取引ログファイル)開始アドレス303    (取
引ログファイル)終了アドレス304    制御値 305    (取引ログファイル)カレントアドレス
400    取引ログファイル更新処理500   
 取引ログファイル修正処理600,610    取
引ログファイルアドレステーブル601,611   
 (取引ログファイルアドレステーブル)エントリ数 602    (取引ログファイルアドレステーブル)
ファイル名 603    (取引ログファイルアドレステーブル)
アドレス 700    取引ログファイル 701    レコード制御部 702    データ部
100 Online terminal 101, 111 Online AP (online application program) 102 Batch AP (batch application program) 200 Transaction log file management file 201
(Transaction log) File name 202 (Transaction log file) Start address 203 (Transaction log file) End address 204 Online (Job transaction log file) Processing status 205 Batch (Job transaction log file) Processing status 206 Control value 300 Transaction log File management table 301
(Transaction log file) File name 302
(Transaction log file) Start address 303 (Transaction log file) End address 304 Control value 305 (Transaction log file) Current address 400 Transaction log file update process 500
Transaction log file modification process 600, 610 Transaction log file address table 601, 611
(Transaction log file address table) Number of entries: 602 (Transaction log file address table)
File name 603 (Transaction log file address table)
Address 700 Transaction log file 701 Record control section 702 Data section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  オンラインジョブが記録し、順次に発
生する取引ログのバッチジョブが処理を行うシステムに
おいて、オンラインジョブが取引ログを書込んだ取引ロ
グファイルのファイル名アドレスを貯えるメモリ上の取
引ログファイルアドレステーブルと、取引ログファイル
アドレステーブルを有するタスクが正常に処理を終えた
場合に、前記取引ログファイルアドレステーブルの内容
を消去する機能と取引ログを書込んだファイル名アドレ
スを前記取引ログファイルアドレステーブルに書込む機
能とを有する取引ログファイル更新手段と、前記取引ロ
グファイルアドレステーブルを有するタスクに異常が発
生した場合、前記取引ログファイルアドレステーブルの
示す取引ログファイルのアドレスに対し、当日の制御を
有するレコードを書込む機能を有する取引ログファイル
修正手段と、取引ログファイルレコード中の制御値によ
り読込処理,読込中断を制御する機能を有する取引ログ
ファイル読込手段と、発生した取引のログを書込む取引
ログファイルと、取引ログファイルを管理する取引ログ
ファイル管理ファイルと、取引ログファイルを管理する
取引ログファイル管理テーブルとを備えて成ることを特
徴とする取引ログデータ引継ぎ方式。
Claim 1: In a system where a batch job processes transaction logs recorded by an online job and generated sequentially, a transaction log in memory that stores the file name address of a transaction log file in which the online job writes the transaction log. When a task that has a file address table and a transaction log file address table completes processing normally, a function that erases the contents of the transaction log file address table and a file name address where the transaction log was written are added to the transaction log file. If an abnormality occurs in a transaction log file update means having a function of writing to an address table and a task having the transaction log file address table, the transaction log file address indicated by the transaction log file address table is updated on the day. transaction log file modifying means having a function of writing records with control; transaction log file reading means having a function of controlling reading processing and reading interruption according to control values in transaction log file records; A transaction log data transfer method comprising a transaction log file to be written, a transaction log file management file to manage the transaction log file, and a transaction log file management table to manage the transaction log file.
JP3137342A 1991-06-10 1991-06-10 Transaction log data succeeding system Pending JPH04361338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3137342A JPH04361338A (en) 1991-06-10 1991-06-10 Transaction log data succeeding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3137342A JPH04361338A (en) 1991-06-10 1991-06-10 Transaction log data succeeding system

Publications (1)

Publication Number Publication Date
JPH04361338A true JPH04361338A (en) 1992-12-14

Family

ID=15196405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3137342A Pending JPH04361338A (en) 1991-06-10 1991-06-10 Transaction log data succeeding system

Country Status (1)

Country Link
JP (1) JPH04361338A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100396722B1 (en) * 1999-09-29 2003-09-02 가부시끼가이샤 도시바 Transactional file system for realizing atomic update of plural files by transactions

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100396722B1 (en) * 1999-09-29 2003-09-02 가부시끼가이샤 도시바 Transactional file system for realizing atomic update of plural files by transactions
US6779001B1 (en) 1999-09-29 2004-08-17 Kabushiki Kaisha Toshiba Transactional file system for realizing atomic update of plural files by transactions
US7349927B2 (en) 1999-09-29 2008-03-25 Kabushiki Kaisha Toshiba Transactional file system for realizing atomic update of plural files by transactions

Similar Documents

Publication Publication Date Title
JPH04361338A (en) Transaction log data succeeding system
JP3138575B2 (en) File copy transfer method
JP3022011B2 (en) Data backup system
JP2641399B2 (en) File management device
JP3460265B2 (en) Data transfer method between computers
JPH05151051A (en) Data base update system
JPH03216743A (en) Parallel saving system for data base
JPH0337748A (en) External storage accessing system utilizing main storage
JPS62245347A (en) Data base cashing system
JPH09282202A (en) Data movement management system
JPH05151037A (en) Reorganization processing system for database in business processing
JPH04190434A (en) Device and method for data base control
JPH0535414A (en) Magnetic tape file access system
JPH0546641A (en) On-line data succeeding system
JPH03255547A (en) Memory dump output system
JP2630215B2 (en) Method of deleting unnecessary file data while online
JPH06110813A (en) Asynchronous data input/output system
JPH0512029A (en) System for loading program with management table
JPH0820992B2 (en) Control journal output device
JPH0573378A (en) Data base record layout conversion system
JPS58163054A (en) Member replacing system of section data set
JPH04175841A (en) Data base reformation processing system
JPS62194559A (en) Memory scheduling system of program in virtual storage system
JPH06274404A (en) Data storage managing method
JPH0827752B2 (en) Resource status holding device