JPH02285438A - Roll-back system for non-journal order processing file - Google Patents

Roll-back system for non-journal order processing file

Info

Publication number
JPH02285438A
JPH02285438A JP1105997A JP10599789A JPH02285438A JP H02285438 A JPH02285438 A JP H02285438A JP 1105997 A JP1105997 A JP 1105997A JP 10599789 A JP10599789 A JP 10599789A JP H02285438 A JPH02285438 A JP H02285438A
Authority
JP
Japan
Prior art keywords
file
position pointer
input
output
vtoc
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
JP1105997A
Other languages
Japanese (ja)
Other versions
JP2972223B2 (en
Inventor
Toru Miwa
徹 三輪
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 JP1105997A priority Critical patent/JP2972223B2/en
Publication of JPH02285438A publication Critical patent/JPH02285438A/en
Application granted granted Critical
Publication of JP2972223B2 publication Critical patent/JP2972223B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate the operation of the subject system by performing the updating and saving processes of an input/output file position pointer at the start of the transaction process of a program and recovering the pointer at the occurrence of a program fault. CONSTITUTION:A file position pointer saving means 41 saves the input file position pointer of an input file 2 and the output file position pointer of an output file 3 into a saving area 5 at the start of the transaction process of a program. Then a file position pointer recovery means 42 delivers the input and output file position pointers saved in the area 5 and calls out a VTO (volume table of contents) information updating means 43 to recover the file position pointers in the VTOCs of both files 2 and 3. Consequently, the roll-back operations are automatically carried out for both files 2 and 3 constituted of non-journal order process files.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は高水準言語処理プログラム、利用者プログラム
等のプログラムの障害発生時に再処理のために行われる
ファイルの復旧処理に関し、特にジャーナル無し順処理
ファイル(ジャーナルがとられていない順データセット
をいう。以下同様)でなる入力ファイルおよび出力ファ
イルの復旧処理を自動的に行うジャーナル無し順処理フ
ァイルのロールバンク方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to file recovery processing performed for reprocessing when a failure occurs in a program such as a high-level language processing program or a user program, and in particular, the present invention relates to file recovery processing performed for reprocessing when a failure occurs in a program such as a high-level language processing program or a user program. The present invention relates to a roll bank method for sequentially processed files without journals that automatically performs recovery processing of input files and output files consisting of processed files (sequential data sets for which no journal is taken; the same applies hereinafter).

〔従来の技術〕[Conventional technology]

従来、ジャーナル無し順処理ファイルでなる入力ファイ
ルの復旧処理では、プログラム自身で入力ファイルに対
するレコード位置の位置付け(入力ファイルのVTOC
(Volume  Table  Of  Conte
nts)中のファイル位置ポインタの回復)を行うこと
により、入力ファイルのロールバックを行っていた。
Conventionally, in the recovery process of an input file consisting of a non-journaled sequential file, the program itself positions the record position in the input file (by determining the VTOC of the input file).
(Volume Table Of Conte
nts)) to roll back the input file.

また、ジャーナル無し順処理ファイルでなる出力ファイ
ルの復旧処理では、出力ファイルに対してはレコード位
置の位置付け(出力ファイルのVTOC中のファイル位
置ポインタの回復)ができなかったので、プログラムの
実行を最初からやり直していた。
In addition, in the recovery process for an output file that is a non-journaled sequential processing file, it was not possible to position the record position (recovery of the file position pointer in the VTOC of the output file) for the output file, so the program was initially executed. I started over from scratch.

〔発明が解決しようとする課題〕 上述した従来のジャーナル無し順処理ファイルでなる入
力ファイルの復旧処理では、入力ファイルに対するレコ
ード位置の位置付けをプログラム自身で行っていたので
、プログラムにおける処理が煩雑になるという欠点があ
る。
[Problem to be solved by the invention] In the above-mentioned conventional recovery process for an input file consisting of a non-journaled sequential processing file, the program itself positions the record position in the input file, which makes the processing in the program complicated. There is a drawback.

また、従来のジャーナル無し順処理ファイルでなる出力
ファイルの復旧処理では、出力ファイルに対するレコー
ド位置の位置付けができなかったので、出力ファイルの
ロールバンクができないという致命的な欠点がある。
In addition, in the conventional recovery process for an output file consisting of a sequentially processed file without a journal, it is not possible to position the record position in the output file, so there is a fatal drawback that roll banking of the output file is not possible.

本発明の目的は、上述の点に鑑み、ジャーナル無し順処
理ファイルでなる入力ファイルおよび出力ファイルのロ
ールバックを自動的に行えるようにしたジャーナル無し
順処理ファイルのロールバンク方式を提供することにあ
る。
In view of the above-mentioned points, an object of the present invention is to provide a roll bank method for sequentially processed files without a journal, which enables automatic rollback of input files and output files that are sequentially processed files without a journal. .

〔課題を解決するための手段] 本発明のジャーナル無し順処理ファイルのロールバンク
方式は、ジャーナル無し順処理ファイルである入力ファ
イルからトランザクションを入力し必要な処理を施して
ジャーナル無し順処理ファイルである出力ファイルに出
力するプログラムに障害が発生した場合に前記入力ファ
イルおよび前記出力ファイルをロールバックするジャー
ナル無しI+[処Flファイルのロールバック方式にお
いて、前記入力ファイルのVTOC中のファイル位置ポ
インタおよび前記出力ファイルのVTOC中のファイル
位置ポインタを更新するVTOC情報更新手段と、プロ
グラムのトランザクション処理の開始時にその時点での
前記入力ファイルの入力ファイル位置ポインタおよび前
記出力ファイルの出力ファイル位置ポインタを渡して前
記VTOC情報更新手段を呼び出し前記入力ファイルの
VTOC中のファイル位置ポインタおよび前記出力ファ
イルのVTOC中のファイル位置ポインタを更新させる
とともにその時点での前記入力ファイルの入力ファイル
位置ポインタおよび前記出力ファイルの出力ファイル位
置ポインタを退避エリアに退避するファイル位置ポイン
タ退避手段と、プログラムの障害発生時に前記退避エリ
アに退避されている入力ファイル位置ポインタおよび出
力ファイル位置ポインタを渡して前記VTOC情報更新
手段を呼び出し前記入力ファイルのVTOC中のファイ
ル位置ポインタおよび前記出カフフィルのVTOC中の
ファイル位置ポインタを回復させるファイル位置ポイン
タ回復手段とを有する。
[Means for Solving the Problems] The roll bank system of the non-journaled sequential processing file of the present invention inputs transactions from an input file that is a non-journaled sequential processing file and performs necessary processing to create a non-journaled sequential processing file. In a rollback method for a non-journaled I+F file that rolls back the input file and the output file when a failure occurs in a program that outputs to an output file, the file position pointer in the VTOC of the input file and the output VTOC information updating means for updating a file position pointer in a VTOC of a file, and passing an input file position pointer of the input file and an output file position pointer of the output file at that point in time at the start of transaction processing of a program to the VTOC. Calls the information updating means to update the file position pointer in the VTOC of the input file and the file position pointer in the VTOC of the output file, and update the input file position pointer of the input file and the output file position of the output file at that time. a file position pointer saving means for saving a pointer to a saving area; and when a program failure occurs, the input file position pointer and the output file position pointer saved in the saving area are passed to the VTOC information updating means to call the input file. and file position pointer recovery means for recovering a file position pointer in the VTOC and a file position pointer in the VTOC of the output cuff fill.

〔作用〕[Effect]

本発明のジャーナル無し順処理ファイルのロールバック
方式では、VTOC情報更新手段が入力ファイルのVT
OC中のファイル位置ポインタおよび出力ファイルのV
TOC中のファイル位置ポインタを更新し、ファイル位
置ポインタ退避手段がプログラムのトランザクション処
理の開始時にその時点での入力ファイルの入力ファイル
位置ポインタおよび出力ファイルの出力ファイル位置ポ
インタを渡してVTOC情報更新手段を呼び出し入力フ
ァイルのVTOC中のファイル位置ポインタおよび出力
ファイルのVTOC中のファイル位置ポインタを更新さ
せるとともにその時点での入力ファイルの入力ファイル
位置ポインタおよび出カフアイルの出力ファイル位置ポ
インタを退避エリアに退避し、ファイル位置ポインタ回
復手段がプログラムの障害発生時に退避エリアに退避さ
れている入力ファイル位置ポインタおよび出力ファイル
位置ポインタを渡してVTOC情報更新手段を呼び出し
入力ファイルのVTOC中のファイル位置ポインタおよ
び出力ファイルのVTOC中のファイル位置ポインタを
回復させる。
In the rollback method for sequentially processed files without a journal according to the present invention, the VTOC information update means
File position pointer in OC and output file V
The file position pointer in the TOC is updated, and the file position pointer saving means passes the input file position pointer of the input file and the output file position pointer of the output file at that time to the VTOC information updating means at the start of transaction processing of the program. Updates the file position pointer in the VTOC of the calling input file and the file position pointer in the VTOC of the output file, and saves the input file position pointer of the input file and the output file position pointer of the output file at that time to a save area, When a program failure occurs, the file position pointer recovery means passes the input file position pointer and output file position pointer saved in the save area and calls the VTOC information update means.The file position pointer in the VTOC of the input file and the VTOC of the output file Restores the file location pointer inside.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例に係るジャーナル無し順処
理ファイルのロールバック方式の構成を示すブロック図
である。本実施例のジャーナル無し順処理ファイルのロ
ールパック方式は、プログラム1と、ジャーナル無し順
処理ファイルでなる入力ファイル2と、ジャーナル無し
順処理ファイルでなる出力ファイル3と、実行プログラ
ムモニタ4と、退避エリア5とから、その主要部が構成
されている。
FIG. 1 is a block diagram showing the configuration of a rollback system for sequentially processed files without journals according to an embodiment of the present invention. The roll pack method for sequential processing files without a journal in this embodiment includes a program 1, an input file 2 consisting of a sequential processing file without a journal, an output file 3 consisting of a sequential processing file without a journal, an execution program monitor 4, and a backup file. Area 5 constitutes the main part.

実行プログラムモニタ4は、ファイル位置ポインタ退避
手段41と、ファイル位置ポインタ回復手段42と、V
TOC情報更新手段43とを含んで構成されている。
The execution program monitor 4 includes a file position pointer saving means 41, a file position pointer recovery means 42, and a V
TOC information updating means 43.

次に、このように構成された本実施例のジャーナル無し
順処理ファイルのロールパック方式の動作について説明
する。
Next, an explanation will be given of the operation of the roll pack method for the journal-less sequential processing file of this embodiment configured as described above.

プログラム1は、トランザクション処理(入力ファイル
2から単数または複数のレコードからなる1処理車位の
データ(以下、トランザクションという)を入力し必要
な処理を施して出ツノファイル3に出力する一連の処理
をいう。以下同様)の開始時に、実行プログラムモニタ
4中のファイル位置ポインタ退避手段41を呼び出す。
Program 1 is transaction processing (a series of processing that inputs one processing unit of data (hereinafter referred to as transaction) consisting of one or more records from input file 2, performs necessary processing, and outputs it to output file 3. (The same applies hereafter), the file position pointer saving means 41 in the execution program monitor 4 is called.

ファイル位置ポインタ退避手段41は、入力ファイル2
に関するファイルコントロールブロック(図示せず)お
よび出力ファイル3に関するファイルコントロールブロ
ック(図示せず)等から入力ファイル2のファイル位置
ポインタ(以下、入力ファイル位置ポインタという)お
よび出力ファイル3のファイル位置ポインタ(以下、出
力ファイル位置ポインタという)を得、得られた入力フ
ァイル位置ポインタおよび出力ファイル位置ポインタを
渡してVTOCI報更新手段43を呼び出す。
The file position pointer saving means 41 saves the input file 2
A file position pointer for input file 2 (hereinafter referred to as input file position pointer) and a file position pointer for output file 3 (hereinafter referred to as input file position pointer) are obtained from a file control block (not shown) for output file 3 and a file control block (not shown) for output file 3, etc. , an output file position pointer), and passes the obtained input file position pointer and output file position pointer to call the VTOCI information updating means 43.

VTOC情報更新手段43は、渡された入力ファイル位
置ポインタおよび出力ファイル位置ポインタによって入
力ファイル2のVTOC中のファイル位置ポインタおよ
び出力ファイル3のVTOC中のファイル位置ポインタ
をそれぞれ更新し、その時点までに行われた入力ファイ
ル2からの入力処理および出力ファイル3に対する出力
処理を有効とする。
The VTOC information updating means 43 updates the file position pointer in the VTOC of the input file 2 and the file position pointer in the VTOC of the output file 3, respectively, using the passed input file position pointer and output file position pointer. The input processing from input file 2 and the output processing to output file 3 that have been performed are made valid.

また、ファイル位置ポインタ退避手段41は、得られた
入力ファイル位置ポインタおよび出力ファイル位置ポイ
ンタを退避エリア5に退避する。
Further, the file position pointer saving means 41 saves the obtained input file position pointer and output file position pointer to the save area 5.

あるトランザクションの処理中にプログラム1に障害が
発生すると、当該トランザクションの処理をやり直す必
要があるので、プログラムlは、実行プログラムモニタ
4中のファイル位置ポインタ回復手段42を呼び出す。
If a failure occurs in the program 1 during the processing of a certain transaction, it is necessary to reprocess the transaction, so the program 1 calls the file position pointer recovery means 42 in the execution program monitor 4.

ファイル位置ポインタ回復手段42は、退避エリア5に
退避されている入力ファイル位置ポインタおよび出力フ
ァイル位置ポインタを取り出し、取り出した入力ファイ
ル位置ポインタおよび出力ファイル位置ポインタを渡し
てVTOC情報更新手段43を呼び出す。
The file position pointer recovery means 42 retrieves the input file position pointer and output file position pointer saved in the save area 5, passes the retrieved input file position pointer and output file position pointer, and calls the VTOC information update means 43.

VTOC情報更新手段43は、渡された入力ファイル位
置ポインタおよび出力ファイル位置ポインタを入力ファ
イル2のVTOC中のファイル位置ポインタおよび出力
ファイル3のVTOC中のファイル位置ポインタにそれ
ぞれ回復することにより、障害発生時点で処理中のトラ
ンザクション処理の開始時における入力ファイル2のレ
コード位置および出力ファイル3のレコード位置にそれ
ぞれ位置付ける。
The VTOC information update means 43 recovers the passed input file position pointer and output file position pointer to the file position pointer in the VTOC of the input file 2 and the file position pointer in the VTOC of the output file 3, respectively. The record position of the input file 2 and the record position of the output file 3 at the start of the transaction processing being processed at this point in time are respectively located.

以上のようにして、入力ファイル2および出力ファイル
3のロールバック処理が自動的に行われる。
As described above, the rollback process for input file 2 and output file 3 is automatically performed.

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

以上説明したように本発明は、プログラムのトランザク
ジョン処理の開始時に入力ファイル位置ポインタおよび
出力ファイル位置ポインタの更新処理および退避処理を
行い、プログラムの障害発生時に入カフアイル位胃ポイ
ンタおよび出力ファイル位置ポインタの回復処理を行う
ようにしたことにより、プログラムにおいて入力ファイ
ルのレコード位置の位置付けを意識して入力ファイルの
ロールバックを行う煩雑さを解消することができるとい
う効果がある。
As explained above, the present invention updates and saves the input file position pointer and the output file position pointer at the start of program transaction processing, and updates the input file position pointer and the output file position pointer when a program failure occurs. By performing the recovery process, it is possible to eliminate the trouble of performing rollback of the input file while being aware of the record position of the input file in the program.

また、プログラムのトランザクシッン処理の開始時に出
力ファイルのVTOC中のファイル位置ポインタの更新
処理がかならず行われるので、出力ファイルのロールバ
ンク処理が可能になるとともに、プログラムにおいて出
力ファイルのレコード位置の位置付けを意識して出力フ
ァイルのロールバックを行う必要はないという効果があ
る。
In addition, since the file position pointer in the VTOC of the output file is always updated at the start of program transaction processing, roll bank processing of the output file is possible, and the record position of the output file can be positioned in the program. This has the effect that there is no need to consciously roll back the output file.

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

第1図は本発明の一実施例に係るジャーナル無し順処理
ファイルのロールバック方式の構成を示すブロック図で
ある。 図において、 1・・・プログラム、 2・・・入力ファイル、 3・・・出力ファイル、 4・・・実行プログラムモニタ、 5・・・退避エリア、 41・・・ファイル位置ポインタ退避手段、42・・・
ファイル位置ポインタ回復手段、43・・・VTOC情
報更新手段である。
FIG. 1 is a block diagram showing the configuration of a rollback system for sequentially processed files without journals according to an embodiment of the present invention. In the figure, 1... Program, 2... Input file, 3... Output file, 4... Execution program monitor, 5... Save area, 41... File position pointer saving means, 42...・・・
File position pointer recovery means, 43... VTOC information update means.

Claims (1)

【特許請求の範囲】 ジャーナル無し順処理ファイルである入力ファイルから
トランザクションを入力し必要な処理を施してジャーナ
ル無し順処理ファイルである出力ファイルに出力するプ
ログラムに障害が発生した場合に前記入力ファイルおよ
び前記出力ファイルをロールバックするジャーナル無し
順処理ファイルのロールバック方式において、 前記入力ファイルのVTOC中のファイル位置ポインタ
および前記出力ファイルのVTOC中のファイル位置ポ
インタを更新するVTOC情報更新手段と、 プログラムのトランザクション処理の開始時にその時点
での前記入力ファイルの入力ファイル位置ポインタおよ
び前記出力ファイルの出力ファイル位置ポインタを渡し
て前記VTOC情報更新手段を呼び出し前記入力ファイ
ルのVTOC中のファイル位置ポインタおよび前記出力
ファイルのVTOC中のファイル位置ポインタを更新さ
せるとともにその時点での前記入力ファイルの入力ファ
イル位置ポインタおよび前記出力ファイルの出力ファイ
ル位置ポインタを退避エリアに退避するファイル位置ポ
インタ退避手段と、 プログラムの障害発生時に前記退避エリアに退避されて
いる入力ファイル位置ポインタおよび出力ファイル位置
ポインタを渡して前記VTOC情報更新手段を呼び出し
前記入力ファイルのVTOC中のファイル位置ポインタ
および前記出力ファイルのVTOC中のファイル位置ポ
インタを回復させるファイル位置ポインタ回復手段と を有することを特徴とするジャーナル無し順処理ファイ
ルのロールバック方式。
[Claims] If a failure occurs in a program that inputs transactions from an input file that is a non-journaled sequential processing file, performs necessary processing, and outputs the transactions to an output file that is a non-journaled sequential processing file, the input file and In the rollback method for a non-journaled sequential processing file that rolls back the output file, VTOC information updating means updates a file position pointer in the VTOC of the input file and a file position pointer in the VTOC of the output file; At the start of transaction processing, the input file position pointer of the input file and the output file position pointer of the output file at that time are passed to the VTOC information update means, and the file position pointer in the VTOC of the input file and the output file are passed. a file position pointer saving means for updating a file position pointer in a VTOC of the input file and saving the input file position pointer of the input file and the output file position pointer of the output file at that time to a save area; Passing the input file position pointer and output file position pointer saved in the save area, call the VTOC information update means and recover the file position pointer in the VTOC of the input file and the file position pointer in the VTOC of the output file. 1. A rollback method for a non-journaled sequential file, comprising a file position pointer recovery means for restoring a file position pointer.
JP1105997A 1989-04-27 1989-04-27 Rollback method for sequential files without journal Expired - Fee Related JP2972223B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1105997A JP2972223B2 (en) 1989-04-27 1989-04-27 Rollback method for sequential files without journal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1105997A JP2972223B2 (en) 1989-04-27 1989-04-27 Rollback method for sequential files without journal

Publications (2)

Publication Number Publication Date
JPH02285438A true JPH02285438A (en) 1990-11-22
JP2972223B2 JP2972223B2 (en) 1999-11-08

Family

ID=14422352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1105997A Expired - Fee Related JP2972223B2 (en) 1989-04-27 1989-04-27 Rollback method for sequential files without journal

Country Status (1)

Country Link
JP (1) JP2972223B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04295932A (en) * 1991-03-25 1992-10-20 Nec Corp Previous check mechanism for file destruction

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6113328A (en) * 1984-06-28 1986-01-21 Fujitsu Ltd Accessing system of data file

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6113328A (en) * 1984-06-28 1986-01-21 Fujitsu Ltd Accessing system of data file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04295932A (en) * 1991-03-25 1992-10-20 Nec Corp Previous check mechanism for file destruction

Also Published As

Publication number Publication date
JP2972223B2 (en) 1999-11-08

Similar Documents

Publication Publication Date Title
JPH04342025A (en) Text managing and restoring system
JPH04139544A (en) Data restoring method
JPH02285438A (en) Roll-back system for non-journal order processing file
JPH0594353A (en) Database management system
JPS62279408A (en) Numerical controller
JP3338724B2 (en) Database save method
JPH03233634A (en) Job reprocessing system
JPH02267645A (en) Automatic roll-back system for report file
JPH01180651A (en) Commit synchronization control system for report file output
JPH06187217A (en) System for synchronization between data base and normal file
JPH03286230A (en) Automatic saving/restoring system for memory area
JPH01214947A (en) Data preserving system
JPH05265828A (en) Journal sampling device for batch processing program
JP2528882B2 (en) Fallback operation method in case of memory failure
JPH0363844A (en) File protection managing system
JPH02170240A (en) Automatic saving/recovering system for memory area
JPH05210557A (en) Restoration system for file
JPH01158544A (en) Recording system for library fault
JPH02162437A (en) File processor
JPS62203248A (en) Dynamic saving and restoration system for data base
JPH03252754A (en) Terminal journal extracting system
JPH05313977A (en) File restoring method
JPS63168742A (en) High speed restoring system for memory information at execution
JPS6256535B2 (en)
JPH01216434A (en) Multitask control system for transaction processing

Legal Events

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