[go: up one dir, main page]

JPH0212346A - Data assurance system - Google Patents

Data assurance system

Info

Publication number
JPH0212346A
JPH0212346A JP63163150A JP16315088A JPH0212346A JP H0212346 A JPH0212346 A JP H0212346A JP 63163150 A JP63163150 A JP 63163150A JP 16315088 A JP16315088 A JP 16315088A JP H0212346 A JPH0212346 A JP H0212346A
Authority
JP
Japan
Prior art keywords
record
data
dummy
writing
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
JP63163150A
Other languages
Japanese (ja)
Inventor
Takayuki Takeda
武田 孝行
Koichi Tsuzuki
都筑 幸一
Keiko Ishihara
石原 敬子
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 JP63163150A priority Critical patent/JPH0212346A/en
Publication of JPH0212346A publication Critical patent/JPH0212346A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the data assurance factor without deteriorating the file access speed by writing the dummy records in pairs after each record in a writing state, overwriting the dummy records in the next record writing state, and recognizing the end of a record when a dummy record is detected in a reading state. CONSTITUTION:A writing part 11 writes a dummy record after each record to show the end of this record and then overwrites said dummy record when the next record is written. A reading part 12 recognizes the end of a record when a dummy record is detected instead of the EOD (end of data) in a reading state. Thus it is not required to replace the EOD of an auxiliary memory 20 each time. As a result, the latest data can be assured at all times without deteriorating the file access speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コンピュータの順編成ファイルのデータ保証
方式に利用する。特に、データの保証率の高い順編成フ
ァイル管理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is applied to a data guarantee system for sequential files in computers. In particular, it relates to a sequential file management system with a high data guarantee rate.

〔概要〕〔overview〕

本発明はデータ保証方式において、 書込時に各レコードの次にその17コードの終了を示す
ダミーレコードをベアで書込み、その次のレコードの書
込時にはこのダミーレコードをオーバライトし、読出時
にはこのダミーレコードを検出したときにこれをレコー
ドの終了と認識することにより、 ファイルアクセス速度を落すことなく最新データを常に
保証できるようにしたものである。
In the data guarantee method of the present invention, a dummy record indicating the end of the 17 codes is written next to each record as a bare record at the time of writing, this dummy record is overwritten when writing the next record, and this dummy record is written at the time of reading. By recognizing this as the end of a record when a record is detected, it is possible to always guarantee the latest data without slowing down file access speed.

〔従来の技術〕[Conventional technology]

第5図は従来例のデータ保証装置の動作を示す図である
FIG. 5 is a diagram showing the operation of a conventional data guarantee device.

従来、データ保証方式は、E OD(end of d
ata)の値をメモリ上で更新し、ファイルクローズ時
にファイルラベルを更新してデータの保証を行っていた
Conventionally, the data guarantee method is E OD (end of d
data) was updated in memory, and the file label was updated when the file was closed to guarantee data.

ここで第5図を参照して従来例の順編成ファイルのレコ
ード格納手順について説明する。
Here, the record storage procedure of a conventional sequential file will be explained with reference to FIG.

この例では、3個のレコードを格納するときの動作を示
す。
This example shows the operation when storing three records.

まず、レコード1の書込を行う。第5図(a)において
、補助記憶装置20内のE OD23が示す順編成ファ
イル25の位置からレコード1を格納し、同時にメモリ
30上のE OD31を更新する。ただし、このときに
は補助記憶装置20内のE OD23は更新しない。
First, record 1 is written. In FIG. 5(a), record 1 is stored from the position of the sequential file 25 indicated by the E OD 23 in the auxiliary storage device 20, and at the same time, the E OD 31 on the memory 30 is updated. However, at this time, the EOD23 in the auxiliary storage device 20 is not updated.

次に、レコード2の書込を行う。第 図ら)において、
第5図(a)で更新済のメモリ30上のE OD31が
示す順編成ファイル25の位置からレコード2を格納し
、同時にメモリ30上のE OD31を更新する。
Next, record 2 is written. In Fig. et al.),
Record 2 is stored from the position of the sequential file 25 indicated by the updated E OD 31 on the memory 30 in FIG. 5(a), and at the same time, the E OD 31 on the memory 30 is updated.

ただし、このときには補助記憶装置20内のEOD23
は更新しない。
However, at this time, the EOD 23 in the auxiliary storage device 20
is not updated.

次に、レコード3の書込を行う。第5図(C)において
、第5図ら)で更新済のメモリ30上のE OD31が
示す順編成ファイル25の位置にレコード3を格納し、
同時にメモリ30上のE OD31を更新する。
Next, record 3 is written. In FIG. 5(C), record 3 is stored in the position of the sequential file 25 indicated by EOD31 on the memory 30 that has been updated in FIG.
At the same time, EOD31 on memory 30 is updated.

ただし、補助記憶装置20内のEOD内のEOD23は
更新しない。
However, the EOD 23 in the EOD in the auxiliary storage device 20 is not updated.

次に、ファイルのクローズを行う。第5図(d)におい
て、第5図(C)で更新済のメモリ30上のEOD31
の内容を補助記憶装置20内のE OD23に格納し、
ファイルラベル24の更新を行う。
Next, close the file. In FIG. 5(d), the EOD 31 on the memory 30 that has been updated in FIG. 5(C)
The contents of are stored in EOD23 in the auxiliary storage device 20,
The file label 24 is updated.

したがって、第5図(6)に示す動作で初めてレコード
1〜レコード3が保証される。
Therefore, records 1 to 3 are guaranteed for the first time in the operation shown in FIG. 5(6).

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

しかし、このような従来例のデータ保証方式では、メモ
リ30上のE OD31を更新しているために、途中で
障害が発生すると順編成ファイル25上のEOD23が
更新されないので、それまで書込んだデータが無効にな
る欠点があった。
However, in such a conventional data guarantee method, since EOD31 on the memory 30 is updated, if a failure occurs midway, EOD23 on the sequential file 25 will not be updated. There was a drawback that the data became invalid.

本発明は上記の欠点を解決するもので、ファイルアクセ
ス速度を落すことなく最新データを常に保証できるデー
タ保証方式を提供することを目的とする。
The present invention solves the above-mentioned drawbacks, and aims to provide a data guarantee method that can always guarantee the latest data without reducing file access speed.

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

本発明は、データ保証方式において、書込部は、各レコ
ードの次にそのレコードの終りを示すダミーレコードを
書込み、その次のレコードを書込むときにはこのダミー
レコードをオーバライトする手段を含み、読出部には、
上記ダミーレコードを検出したときこれをレコードの終
了と認識する手段を含むことを特徴とする。
In the data guarantee method, the present invention includes means for writing a dummy record next to each record to indicate the end of that record, and overwriting this dummy record when writing the next record; The department includes
The present invention is characterized in that it includes means for recognizing the end of the record when the dummy record is detected.

〔作用〕[Effect]

書込部では各レコードの次にそのレコードの終了を示す
ダミーレコードを書込み、その次のレコードを書込むと
きにはこのダミーレコードをオーバライトする。読出部
では続出時にEODではなくこのダミーレコードを検出
したときレコードの終了と認識する。以上の動作により
補助記憶装置のEODを毎回更新しなくてもよいから、
ファイルアクセス速度を落すことなく最新データを常に
保証できる。
The writing section writes a dummy record next to each record indicating the end of that record, and overwrites this dummy record when writing the next record. When the reading unit detects this dummy record instead of the EOD during successive reading, it recognizes that the record has ended. Due to the above operation, it is not necessary to update the EOD of the auxiliary storage device every time.
You can always guarantee the latest data without reducing file access speed.

〔実施例〕〔Example〕

本発明の実施例について図面を参照して説明する。第1
図は本発明一実施例データ保証装置のブロック構成図で
ある。第1図において、データ保証装置10は、ファイ
ルとして順編成ファイル25に複数のレコードを順次に
書込む書込部11と、順編成ファイル25に書込まれた
複数のレコードを順次に読出す読出部12とを備える。
Embodiments of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram of a data guarantee device according to an embodiment of the present invention. In FIG. 1, the data guarantee device 10 includes a writing unit 11 that sequentially writes a plurality of records to a sequential file 25 as a file, and a read unit 11 that sequentially reads a plurality of records written to the sequential file 25. 12.

補助記憶装置20は、B OE (begining 
of extent)21およびE OE (endo
f extent) 22を含むファイルラベル24と
、順編成ファイル25とから構成される。
The auxiliary storage device 20 is a BOE (beginning
of extent) 21 and E OE (endo
The file label 24 includes a file label 24 containing a file (extent) 22, and a sequential file 25.

ここで本発明の特徴とするところは、書込部11は、各
レコードの次にそのレコードの終りを示すダミーレコー
ドを書込み、その次のレコードを書込むときにはこのダ
ミーレコードをオーバライトする手段を含み、読出部1
2は、上記ダミーレコードを検出したときにレコードの
終了と認識する手段を含むことにある。
Here, the feature of the present invention is that the writing unit 11 writes a dummy record next to each record indicating the end of that record, and includes means for overwriting this dummy record when writing the next record. Contains and reads part 1
2 is to include means for recognizing the end of a record when the dummy record is detected.

このような構成のデータ保証装置の動作について説明す
る。第2図は本発明のデータ保証装置の動作を示す図で
ある。第3図は本発明のデータ保証装置の書込部の動作
を示すフローチャートである。第4図は本発明のデータ
保証装置の読出部の勤咋を示すフローチャートである。
The operation of the data guarantee device having such a configuration will be explained. FIG. 2 is a diagram showing the operation of the data guarantee device of the present invention. FIG. 3 is a flowchart showing the operation of the writing section of the data guarantee device of the present invention. FIG. 4 is a flowchart showing the operation of the reading section of the data guarantee device of the present invention.

第1〜第3図を参照して書込部の動作について説明する
。たとえばレコード1〜レコード3を書込む場合には、
まず、レコード1の書込を行う。
The operation of the writing section will be explained with reference to FIGS. 1 to 3. For example, when writing records 1 to 3,
First, record 1 is written.

第2図(a)において、補助記憶装置20内のファイル
ラベル24のB OE21が示す順編成ファイル25の
位置からレコード1およびデータ終了レコードをベアで
格納する(Sl)。データ終了レコードの格納によりレ
コード1を保証する。レコードがすべて終了でないので
(S2)、レコード2の書込を行う。第2図ら)におい
て、第2図(a)で格納したデータ終了レコードの位置
からレコード2およびデータ終了レコードをベアで格納
する(S3)。データ終了レコードの格納によりレコー
ド1およびレコード2を保証する。
In FIG. 2(a), record 1 and data end record are stored bare from the position of the sequential file 25 indicated by BOE21 of the file label 24 in the auxiliary storage device 20 (Sl). Record 1 is guaranteed by storing the data end record. Since all records are not completed (S2), record 2 is written. 2), record 2 and the data end record are stored bare from the position of the data end record stored in FIG. 2(a) (S3). Records 1 and 2 are guaranteed by storing the data end record.

レコードがすべて終了でないので(S2)、レコード3
の書込を行う。第2ffl(C)において、第2図(b
)で格納したデータ終了レコードの位置からレコード3
およびデータ終了レコードをベアで格納する(S3)。
Since all records are not finished (S2), record 3
Write. In Fig. 2ffl(C), Fig. 2(b)
) Record 3 from the position of the data end record stored in
and the data end record is stored bare (S3).

データ終了レコードの格納によりレコード1、レコード
2およびレコード3を保証する。
Record 1, record 2, and record 3 are guaranteed by storing the data end record.

レコードがすべて終了であるので(S2)、動作を終了
する。
Since all records have been completed (S2), the operation is ended.

第1図および第4図を参照して読出部の動作について説
明する。まず、レコード1の続出を行う。
The operation of the reading section will be explained with reference to FIGS. 1 and 4. First, record 1 is output one after another.

補助記憶装置20内のファイルラベル24のB OE2
1が示す順編成ファイル25の位置からレコードを読出
す(Sit)。このレコードがデータ終了レコードでな
い場合には(S12) 、次のレコードを読出す。読出
したレコードがデータ終了レコードの場合には(S12
)、動作を終了する。
B OE2 of file label 24 in auxiliary storage device 20
A record is read from the position of the sequential file 25 indicated by 1 (Sit). If this record is not the data end record (S12), the next record is read. If the read record is the data end record (S12
), the operation ends.

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

以上説明したように、本発明は、ファイルアクセス速度
を落すことなく最新データを常に保証できる優れた効果
がある。
As explained above, the present invention has the excellent effect of always guaranteeing the latest data without reducing file access speed.

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

第1図は本発明一実施例データ保証装置のブロック構成
図。 第2図は本発明のデータ保証装置の動作を示す図。 第3図は本発明のデータ保証装置の書込部の動作を示す
フローチャート。 第4図は本発明のデータ保証装置の読出部の動作を示す
フローチャート。 第5図は従来例のデータ保証装置の動作を示す図。 10・・・データ保証装置、11・・・書込部、12・
・・読出部、20・・・補助記憶装置、21・・・BO
E、22・・・EOE、23.31・・・EOD、24
・・・ファイルラベル、25・・・順4itファイノベ
30=・・メモリ。
FIG. 1 is a block diagram of a data guarantee device according to an embodiment of the present invention. FIG. 2 is a diagram showing the operation of the data guarantee device of the present invention. FIG. 3 is a flowchart showing the operation of the writing section of the data guarantee device of the present invention. FIG. 4 is a flowchart showing the operation of the reading section of the data guarantee device of the present invention. FIG. 5 is a diagram showing the operation of a conventional data guarantee device. 10... Data guarantee device, 11... Writing section, 12.
...Reading unit, 20...Auxiliary storage device, 21...BO
E, 22...EOE, 23.31...EOD, 24
...File label, 25...Order 4it fine novel 30 =...Memory.

Claims (1)

【特許請求の範囲】 1、ファイルに複数のレコードを順次書込む書込部と、 このファイルに書込まれた複数のレコードを順次読出す
読出部と を備えたデータ保証方式において、 上記書込部は、各レコードの次にそのレコードの終りを
示すダミーレコードを書込み、その次のレコードを書込
むときにはこのダミーレコードをオーバライトする手段
を含み、 上記読出部には、上記ダミーレコードを検出したときこ
れをレコードの終了と認識する手段を含む ことを特徴とするデータ保証方式。
[Claims] 1. In a data guarantee method comprising a writing section that sequentially writes a plurality of records to a file, and a reading section that sequentially reads the plurality of records written to the file, The reading section includes means for writing a dummy record indicating the end of the record next to each record, and overwriting this dummy record when writing the next record; A data guarantee method characterized by comprising means for recognizing this as the end of a record.
JP63163150A 1988-06-29 1988-06-29 Data assurance system Pending JPH0212346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63163150A JPH0212346A (en) 1988-06-29 1988-06-29 Data assurance system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63163150A JPH0212346A (en) 1988-06-29 1988-06-29 Data assurance system

Publications (1)

Publication Number Publication Date
JPH0212346A true JPH0212346A (en) 1990-01-17

Family

ID=15768174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63163150A Pending JPH0212346A (en) 1988-06-29 1988-06-29 Data assurance system

Country Status (1)

Country Link
JP (1) JPH0212346A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100510941B1 (en) * 1997-09-11 2005-10-25 마쯔시다덴기산교 가부시키가이샤 File Managing System and File Managing Method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60230232A (en) * 1984-04-27 1985-11-15 Usac Electronics Ind Co Ltd Data output controlling system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60230232A (en) * 1984-04-27 1985-11-15 Usac Electronics Ind Co Ltd Data output controlling system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100510941B1 (en) * 1997-09-11 2005-10-25 마쯔시다덴기산교 가부시키가이샤 File Managing System and File Managing Method

Similar Documents

Publication Publication Date Title
JPH0245271B2 (en)
GB1372750A (en) Rotational data storage devices
JPH0212346A (en) Data assurance system
JPH02113488A (en) Magnetic bubble memory device
JPS5919376B2 (en) Buffer memory control method
JPH054693B2 (en)
JPH0341324Y2 (en)
JPS59221810A (en) Alternate sector device in magnetic storage device
JPS63224487A (en) Digital data recorder controller
JPH04114244A (en) File reading system
JPS6297177A (en) Magnetic tape device
JPH01143077A (en) magnetic recording and reproducing device
JPH02307117A (en) Storage controller
JPH02166687A (en) Magnetic tape device
JPH01188966A (en) Magnetic disk controller containing cache
JPH0135424B2 (en)
JPS58101359A (en) Information file accessing system
JPH0218757A (en) Write format controller for disk
JPS6117059B2 (en)
JPS60254314A (en) Storage method of control information for magnetic disc device
JPH01295346A (en) Data destruction preventing system
JPH02118823A (en) Data file saving and restoring device
JPS6051129B2 (en) Record information reading processing method
JPS6228831A (en) Control device for magnetic disk or the like
JPS62251845A (en) Program debugging device