JPH02267645A - Automatic roll-back system for report file - Google Patents

Automatic roll-back system for report file

Info

Publication number
JPH02267645A
JPH02267645A JP1089492A JP8949289A JPH02267645A JP H02267645 A JPH02267645 A JP H02267645A JP 1089492 A JP1089492 A JP 1089492A JP 8949289 A JP8949289 A JP 8949289A JP H02267645 A JPH02267645 A JP H02267645A
Authority
JP
Japan
Prior art keywords
position pointer
report file
file position
report
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1089492A
Other languages
Japanese (ja)
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 JP1089492A priority Critical patent/JPH02267645A/en
Publication of JPH02267645A publication Critical patent/JPH02267645A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To attain an automatic roll-back system for report files by performing automatically the saving/recovering processes of a file position pointer and the update of this pointer within a VTOC at occurrence of a transaction processing fault. CONSTITUTION:A report file position pointer recovering means 10 obtains a file position pointer for a report file 14 out of a saving area 13 when a transaction process is started. Based on the value of the pointer, a VTOC information updating means 12 is called out and the VTOC information on the file 14 is updated. Therefore the control can be restored to the file position pointer of the file 14 at the head of a transaction reprocess when the preceding transaction process is started. As a result, the roll-back process of the file 14 is automatically carried out via an object program 4.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は利用者プログラムの障害発生時の再処理におけ
るレポートファイルの復旧処理に関し、特にレポートフ
ァイルの復旧処理を自動的に行う方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a report file recovery process during reprocessing when a failure occurs in a user program, and particularly to a method for automatically performing a report file recovery process.

(従来の技術) 従来、この種のレポートファイルの復旧処理は殆んど不
可能でありた。また、無理でも復旧処理を実行するKは
、別のファイルを用意してトランザグシッン処理ごとに
レポートファイルに書出すという他の資源を必敬として
いた。
(Prior Art) Conventionally, this type of report file recovery processing has been almost impossible. In addition, K, who executes the recovery process even if it is impossible, is indispensable for other resources such as preparing a separate file and writing it into a report file for each transaction process.

(発明が解決しようとする課題) 上述した従来のレポートファイルの復旧処理方式では、
退避用の資源を余分に用意し、プログラム側で煩雑な処
理をしなげればならないという欠点があった。
(Problem to be solved by the invention) In the conventional report file recovery processing method described above,
The drawback is that extra resources for saving must be prepared and complicated processing must be performed on the program side.

一般的には上記処理の実行は難しいので復旧処理が通常
はなされておらず、レポートが乱れるという欠点があっ
た。
Generally, it is difficult to execute the above processing, so recovery processing is not normally performed, which has the disadvantage of disrupting reports.

本発明の目的は、障害処理の再処理時のレポートファイ
ルのロールバックにおいてファイル位置ポインタの退避
/回復処理とポインタのVTOCでの更新とをトランザ
クション処理の障害発生時に自動的に行わせることによ
り上記欠点を除去し、確定に復旧処理が実行されるよう
に構成したレポートファイルの自動ロールバッタ方式を
提供することにある。
An object of the present invention is to automatically perform the save/recovery processing of a file location pointer and the update of the pointer in VTOC when a failure occurs in transaction processing in rollback of a report file when reprocessing failure processing. It is an object of the present invention to provide an automatic roll batter method for report files configured to eliminate shortcomings and ensure that recovery processing is executed.

(課題を解決するための手段) 本発明によるレポートファイルの自動o −ルバック方
式はレポートファイル位置ポインタ退避/回復要求埋込
み手段と、レポートファイル位置ポインタ退避要求手段
と、レポートファイル位置ポインタ退避手段と、vTO
C情報取得手段と、レポートファイル位置ポインタ回復
要求手段と、レポートファイル位置ポインタ回復手段と
、vTOC情報更新手段とを具備して構成したものであ
る。
(Means for Solving the Problems) The automatic o-reback method for report files according to the present invention includes a report file position pointer save/recovery request embedding means, a report file position pointer save request means, a report file position pointer save means, vTO
The system is configured to include C information acquisition means, report file position pointer recovery request means, report file position pointer recovery means, and vTOC information update means.

レポートファイル位置ポインタ退避/回復要求埋込み手
段は、トランザクション処理をオブジェクトプログラム
中に埋込むためのものである。
The report file position pointer save/recovery request embedding means is for embedding transaction processing into the object program.

レポートファイル位置ポインタ退避要求手段は、レポー
トファイル位置ポインタ退避/回復要求埋込み手段によ
りオブジェクトプログラム中に埋込まれたトランザクシ
ョン処理開始時のレポートファイルの位置ポインタの退
避を要求するためのものである。
The report file position pointer save request means is for requesting the save of the report file position pointer at the start of transaction processing, which is embedded in the object program by the report file position pointer save/recovery request embedding means.

レポートファイル位置ポインタ退避手段は、レポートフ
ァイル位置ポインタ退避要求手段から呼ばれ、レポート
ファイルのファイル位置ポインタを退避エリアに退避す
るためのものである。
The report file position pointer save means is called by the report file position pointer save request means and is for saving the file position pointer of the report file to the save area.

VTOC情報取得手段は、レポートファイル位置ポイン
タ退避手段から呼ばれ、レポートファイルのVTOC中
のファイル位置ポインタを返却するためのものである。
The VTOC information acquisition means is called by the report file position pointer saving means and is for returning the file position pointer in the VTOC of the report file.

レポートファイル位置ポインタ回復要求手段は、障害処
理の発生時にレポートファイルのVTOC中のファイル
位置ポインタを回復するためのものである。
The report file position pointer recovery request means is for recovering the file position pointer in the VTOC of the report file when failure processing occurs.

レポートファイル位置ポインタ回復手段は、レポートフ
ァイル位置ポインタ回復要求手段から呼ばれ、ファイル
位置ポインタを退避エリアから回復するためのものであ
る。
The report file position pointer recovery means is called by the report file position pointer recovery request means and is for restoring the file position pointer from the save area.

VTOC情報更新手段は、レポートファイル位置ポイン
タ回復手段から呼ばれ、レポートファイルのVTOC中
のファイル位置ポインタを更新して回復するためのもの
である。
The VTOC information updating means is called by the report file position pointer recovery means and is for updating and recovering the file position pointer in the VTOC of the report file.

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

第1図は、本発明によるレポートファイルの自動ロール
バック方式の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of an automatic report file rollback method according to the present invention.

第1図において、1はソースプログラム、2はコンパイ
ラ、3はレポートファイル[tポインタ退避7圓復要求
埋込み手段、4はオブジェクトプログラム、5はレポー
トファイル位置ポインタ退避要求手段、6はレポートフ
ァイル位置ポインタ回復要求手段、7はオブジェクト本
体、8は実行プログラムモニタ、9はレポートファイル
位置ポインタ退避手段、10はレポートファイル位置ポ
インタ回復手段、11はVTOC情報取得手段、12は
vTOC情報更新手段、13は退避エリア、14はレポ
ートファイルである。
In FIG. 1, 1 is a source program, 2 is a compiler, 3 is a report file pointer save 7 restoration request embedding means, 4 is an object program, 5 is a report file position pointer save request means, and 6 is a report file position pointer. Recovery requesting means, 7 object body, 8 execution program monitor, 9 report file position pointer saving means, 10 report file position pointer recovery means, 11 VTOC information acquisition means, 12 vTOC information updating means, 13 saving Area 14 is a report file.

第1図を参照すると本発明の一実施例は、コンパイラ2
からソースプログラム1を入力してオブジェクトプログ
ラムを作成する際、通常のオブジェクト本体7の他に、
レポートファイル位置ポインタ退避/回復要求埋込み手
段3によりオブジェクトプログラム4中にレポートファ
イル位置ポインタ退避要求手段5と、レポートファイル
位置ポインタ回復要求手段6とを生成する。
Referring to FIG. 1, one embodiment of the present invention includes a compiler 2
When creating an object program by inputting the source program 1 from , in addition to the normal object body 7,
The report file position pointer save/recovery request embedding means 3 generates a report file position pointer save request means 5 and a report file position pointer recovery request means 6 in the object program 4.

次に、オブジェクトプログラム4の実行時において、オ
ブジェクト本体7はトランザクション処理の開始時点で
レポートファイル位置ポインタ退避要求手段5により実
行プログラムモニタ8のレポートファイル位置ポインタ
退避手段9を呼出す、レポートファイル位置ポインタ退
避手段9は、vTOC情報取得手段11を呼出し、レポ
ートファイル14のVTOC情報から現在のファイル位
置ポインタを取得して、退避エリア13にこれを設定す
る。
Next, when the object program 4 is executed, the object body 7 calls the report file position pointer saving means 9 of the execution program monitor 8 by the report file position pointer saving request means 5 at the start of transaction processing. The means 9 calls the vTOC information acquisition means 11, acquires the current file position pointer from the VTOC information of the report file 14, and sets it in the save area 13.

この後、オブジェクトプログラム4の実行中に障害が発
生ずると、トランザクション処理を先頭から実行し直す
再処理が必要である。そこで、当該トランザクション処
理で書出されたレポートファイル14の内容を元に戻す
ために、オブジェクト本体7はレポートファイル位置ポ
インタ回復要求手段6により実行プログラムモニタ8の
レポートファイル位置ポインタ回復手段10を呼出す。
After this, if a failure occurs during the execution of the object program 4, it is necessary to re-execute the transaction process from the beginning. Therefore, in order to restore the contents of the report file 14 written in the transaction process, the object body 7 uses the report file position pointer recovery request means 6 to call the report file position pointer recovery means 10 of the execution program monitor 8.

レポートファイル位置ポインタ回復手段10は、トラン
ザクション処理の開始時点でのレポートファイル14の
ファイル位置ポインタを退避エリア13かも得て、この
値をもとにVTOC情報更新手段12を呼出し、レポー
トファイル14のVTOC情報を更新する。
The report file position pointer recovery means 10 obtains the file position pointer of the report file 14 at the start of transaction processing from the save area 13, calls the VTOC information update means 12 based on this value, and restores the VTOC of the report file 14. Update information.

以上により、トランザクション処理の再処理の先頭にお
いて、前回のトランザクション処理開始時のレポートフ
ァイル14のファイル位置ポインタに制御を復旧するこ
とができる。
As described above, at the beginning of the reprocessing of the transaction process, control can be restored to the file position pointer of the report file 14 at the start of the previous transaction process.

このようにして、オブジェクトプログラム4ではレポー
トファイル14のロールバック処理を自動的に行うこと
ができる。
In this way, the object program 4 can automatically roll back the report file 14.

(発明の効果) 以上説明したように本発明は、障害処理の再処理時のレ
ポートファイルのロールバックにおいてファイル位置ポ
インタの退避/回復処理とポインタのVTOC中での更
新とをトランザクション処理の障害発生時に自動的に行
わせることにより、利用者がまりたく意識することなく
、レポートファイルのロールバックを自動的に行うこと
ができるという効果がある。また、他の余分な資源も使
わずに、経済的にロールバック処理を行うことができる
という効果がある。
(Effects of the Invention) As explained above, the present invention enables saving/recovery processing of file position pointers and updating of pointers in VTOC in rollback of report files during reprocessing of failure processing. By having rollbacks performed automatically at times, there is an effect that rollbacks of report files can be performed automatically without the user being consciously aware of them. Further, there is an effect that rollback processing can be performed economically without using other extra resources.

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

第1図は、本発明によるレポートファイルの自動ロール
バック方式の一実施例を示すブロック図である。 1・・・ソースプログラム 2・・・コンパイラ 3・・・レポートファイル位置ポインタ退避/回復要求
埋込み手段 4・・・オブジェクトプログラム 5・・・レポートファイル位置ポインタ退避要求手段 6・・・レポートファイル位置ポインタ回復要求手段 7・・・オブジェクト本体 8・・・実行プログラムモニタ 9・・・レポートファイル位置ポインタ退避手段10・
・・YTOC情報取得手段 11・・・レポートファイル位置ポインタ回復手段12
・・・VTOC情報更新手段 13・・・退避エリア 14・・・レポートファイル 特許出願人  日本電気株式会社 代理人弁理士 井 ノ ロ    壽
FIG. 1 is a block diagram showing an embodiment of an automatic report file rollback method according to the present invention. 1... Source program 2... Compiler 3... Report file position pointer save/recovery request embedding means 4... Object program 5... Report file position pointer save request means 6... Report file position pointer Recovery requesting means 7...Object body 8...Execution program monitor 9...Report file position pointer saving means 10.
... YTOC information acquisition means 11 ... report file position pointer recovery means 12
... VTOC information update means 13 ... Evacuation area 14 ... Report file Patent applicant Hisashi Inoro, patent attorney representing NEC Corporation

Claims (1)

【特許請求の範囲】[Claims] トランザクション処理をオブジェクトプログラム中に埋
込むためのレポートファイル位置ポインタ退避/回復要
求埋込み手段と、前記レポートファイル位置ポインタ退
避/回復要求埋込み手段によりオブジェクトプログラム
中に埋込まれたトランザクション処理開始時のレポート
ファイルの位置ポインタの退避を要求するためのレポー
トファイル位置ポインタ退避要求手段と、前記レポート
ファイル位置ポインタ退避要求手段から呼ばれ、前記レ
ポートファイルのファイル位置ポインタを退避エリアに
退避するためのレポートファイル位置ポインタ退避手段
と、前記レポートファイル位置ポインタ退避手段から呼
ばれ前記レポートファイルのVTOC中のファイル位置
ポインタを返却するためのVTOC情報取得手段と、障
害処理の発生時に前記レポートファイルのVTOC中の
ファイル位置ポインタを回復するためのレポートファイ
ル位置ポインタ回復要求手段と、前記レポートファイル
位置ポインタ回復要求手段から呼ばれ、前記ファイル位
置ポインタを前記退避エリアから回復するためのレポー
トファイル位置ポインタ回復手段と、前記レポートファ
イル位置ポインタ回復手段から呼ばれ、前記レポートフ
ァイルのVTOC中のファイル位置ポインタを更新して
回復するためのVTOC情報更新手段とを具備して構成
したことを特徴とするレポートファイルの自動ロールバ
ック方式。
A report file position pointer save/recovery request embedding means for embedding transaction processing into an object program, and a report file at the start of transaction processing embedded in the object program by the report file position pointer save/recovery request embedding means. a report file position pointer save request means for requesting saving of the position pointer of the report file; and a report file position pointer called by the report file position pointer save request means for saving the file position pointer of the report file to a save area. a saving means; a VTOC information acquisition means called by the report file position pointer saving means to return a file position pointer in the VTOC of the report file; and a file position pointer in the VTOC of the report file when a failure process occurs. a report file position pointer recovery request means for restoring the report file position pointer; a report file position pointer recovery means called by the report file position pointer recovery request means for restoring the file position pointer from the save area; An automatic rollback method for a report file, comprising: a VTOC information update means called by a position pointer recovery means for updating and restoring a file position pointer in the VTOC of the report file.
JP1089492A 1989-04-07 1989-04-07 Automatic roll-back system for report file Pending JPH02267645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1089492A JPH02267645A (en) 1989-04-07 1989-04-07 Automatic roll-back system for report file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1089492A JPH02267645A (en) 1989-04-07 1989-04-07 Automatic roll-back system for report file

Publications (1)

Publication Number Publication Date
JPH02267645A true JPH02267645A (en) 1990-11-01

Family

ID=13972252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1089492A Pending JPH02267645A (en) 1989-04-07 1989-04-07 Automatic roll-back system for report file

Country Status (1)

Country Link
JP (1) JPH02267645A (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

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

Similar Documents

Publication Publication Date Title
CA1273434A (en) Method for restarting a long-running, fault-tolerant operation in a transaction-oriented data base system without burdening the system log
EP0582681A1 (en) Distributed transaction processing system
JPH02267645A (en) Automatic roll-back system for report file
US6332199B1 (en) Restoring checkpointed processes including adjusting environment variables of the processes
JPH07101399B2 (en) Database deadlock processing method
JP2972223B2 (en) Rollback method for sequential files without journal
JPH0594356A (en) On-memory table data fault restoration system
JP2743860B2 (en) User program debug processing system
JPH01180651A (en) Commit synchronization control system for report file output
JPH04105159A (en) Work substitute system
JPH0448333A (en) Automatic control shift system after roll-back
JPH08249209A (en) Method for testing application program in on-line transaction system
JPH0247728A (en) Fault processing management system
JPS6354638A (en) Deadlock releasing system
JP2528882B2 (en) Fallback operation method in case of memory failure
JPS62203248A (en) Dynamic saving and restoration system for data base
JPS6197755A (en) Data base system
JP2860990B2 (en) Data save / restore method for program re-execution
JPH06187217A (en) System for synchronization between data base and normal file
JPH02240730A (en) Information processing system
JPH04219828A (en) Processing method for asynchronous and exceptional event
JPS6310251A (en) Control system for record indicator
JPH0385644A (en) Check point acquisition restart system
JPS59218565A (en) Operation file copying system
JPH02205933A (en) Data processing system