JPH0318215B2 - - Google Patents
Info
- Publication number
- JPH0318215B2 JPH0318215B2 JP56100143A JP10014381A JPH0318215B2 JP H0318215 B2 JPH0318215 B2 JP H0318215B2 JP 56100143 A JP56100143 A JP 56100143A JP 10014381 A JP10014381 A JP 10014381A JP H0318215 B2 JPH0318215 B2 JP H0318215B2
- Authority
- JP
- Japan
- Prior art keywords
- index
- data
- volume
- sub
- written
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9017—Indexing; Data structures therefor; Storage structures using directory or table look-up
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】
本発明は、フアイルを介して装置Aから装置B
へデータが送られるようになつたシステムにおい
て、装置A側および装置B側において矛盾なく処
理を行い得るようにしたフアイル制御方式に関す
るものである。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a method for transferring data from device A to device B via a file.
This invention relates to a file control method that enables consistent processing on the device A side and the device B side in a system in which data is now sent to the computer.
従来からフアイルを介してリアルタイム的デー
タの受渡しが行われて来たが、その場合のフアイ
ル構造は単純なシーケンスシヤル・データとその
ポインタにより簡単に実現できる。しかし、フア
イルの論理的な内部構造がより複雑になつた場
合、フアイルの書込み側および読出し側において
矛盾なく処理を行なうことは容易ではない。 Conventionally, real-time data delivery has been carried out via files, but the file structure in this case can be easily realized using simple sequential serial data and its pointers. However, when the logical internal structure of a file becomes more complex, it is not easy to perform consistent processing on the writing and reading sides of the file.
本発明は、上記の考察に基づくものであつて、
複雑な論理的内部構造を有するフアイルを介して
装置Aから装置Bへのデータの受渡しが行われる
システムにおいて、書込み側および読出し側で矛
盾なく処理を行い得るようになつたフアイル制御
方式を提供することを目的としている。そしてそ
のため、本発明のフアイル制御方式は、フアイル
に、オンライン側動作フラグと最新インデツクス
番号と最新インデツクス処理フラグとを持つ管理
部、先頭データ・アドレスと最終データ・アドレ
スと処理フラグを持つインデツクスを作成するた
めのインデツクス領域およびサブ・ボリユームを
作成するためのデータ領域を設け、
データを書込む場合、サブ・ボリユームを開設
するための所定の事象が生起した時には、上記イ
ンデツクス領域に新たにインデツクスを作成し、
当該インデツクスに上記データ領域の空き領域に
新たに作成されたサブ・ボリユームの先頭デー
タ・アドレスを書込むと共にオンの処理フラグを
書込み、次いで上記管理部の最新インデツクス番
号で当該インデツクスを指定すると共に、上記オ
ンライン処理フラグをオンとし、
上記インデツクスの作成および管理部の更新が
行なわれた後、新しく作成されたサブ・ボリユー
ムにデータを順次書込むと共に新しく作成された
対応するインデツクスの最終データ・アドレスを
データの書込みが行われる度に更新し、
サブ・ボリユームを終結させるための所定の事
象が生起したときには、書込み中のサブ・ボリユ
ームに対応するインデツクスの処理フラグをオフ
にし、
データの読出しを行う場合、一定時間間隔で管
理部の最新インデツクス番号を参照し、書込みフ
エイズになつたサブ・ボリユームの有無を判断
し、有りの場合には対応するインデツクス中の最
終データ・アドレスを一定時間間隔で参照し、最
終データ・アドレスが更新された場合には、当該
最終データ・アドレスに従いデータを読出す
ことを特徴とするフものである。以下、本発明
を図面を参照しつつ説明する。 The present invention is based on the above considerations, and includes:
To provide a file control method that enables consistent processing on a writing side and a reading side in a system in which data is transferred from a device A to a device B via a file having a complicated logical internal structure. The purpose is to Therefore, the file control method of the present invention creates a management section for a file that has an online operation flag, the latest index number, and a latest index processing flag, and an index that has a first data address, a last data address, and a processing flag. An index area for creating a sub-volume and a data area for creating a sub-volume are created, and when writing data, a new index is created in the above-mentioned index area when a predetermined event occurs to create a sub-volume. death,
Write the start data address of the newly created sub-volume in the free space of the data area to the index, and also write the processing flag to be on, and then specify the index with the latest index number of the management section, and After the above online processing flag is turned on and the above index is created and the management section is updated, data is sequentially written to the newly created sub-volume and the final data address of the newly created corresponding index is written. When data is updated every time data is written, and when a predetermined event occurs to terminate the sub-volume, the processing flag for the index corresponding to the sub-volume being written is turned off, and data is read. , refers to the latest index number in the management section at regular time intervals, determines whether there is a sub-volume that has become write phased, and if so, refers to the last data address in the corresponding index at regular time intervals. , when the final data address is updated, the data is read out according to the final data address. Hereinafter, the present invention will be explained with reference to the drawings.
図は本発明の1実施例を説明するものである。
同図において、1はDASD(直接アクセス記憶装
置)、2はオンライン・リアルタイム処理部、3
はバツチ処理部、4は管理部、5―1ないし5―
mはインデツクス、6―1ないし6―mはサブ・
ボリユームをそれぞれ示している。 The figure illustrates one embodiment of the invention.
In the figure, 1 is a DASD (direct access storage device), 2 is an online real-time processing unit, and 3 is a direct access storage device.
is the batch processing section, 4 is the management section, 5-1 or 5-
m is the index, 6-1 or 6-m is the sub-index.
Each shows the volume.
DASD1は、管理部4、インデツクス5―1な
いし5―m、サブ・ボリユーム6―1ないし6―
mを有している。管理部4は、オンライン側動作
フラグ、最新インデツクス番号および最新インデ
ツクス処理フラグを有している。オンライン側動
作フラグがONであれば、オンライン・リアルタ
イム処理部2がDASD1をアクセスしていること
を示している。最新インデツクス番号は最新のイ
ンデツクスが何れであるかを示している。図示の
例では最新のインデツクスは5―mとされてい
る。最新インデツクス処理フラグは最新インデツ
クスが使用中であるかを示す。インデツクス5―
1,5―2,……5―mはそれぞれサブ・ボリユ
ームと1対1の対応をなしている。インデツクス
5―1ないし5―mのそれぞれは、先頭データ・
アドレス、最終データ・アドレスおよびサブ・ボ
リユーム処理フラグを有している。図示の例で
は、インデツクス5―1の先頭アドレスはサブ・
ボリユーム6―1の先頭のデータのアドレスaを
示し、最終データ・アドレスはサブ・ボリユーム
b−1に書込まれた最終のデータのアドレスbを
示し、また、サブ・ボリユームへのアクセスは行
われていないので処理フラグはオフとされてい
る。図示の例ではインデツクス5―2の先頭アド
レスはc、最終アドレスはd、処理フラグはオフ
とされている。インデツクス5―mは使用中であ
るが、このインデツクスの先頭アドレスはeとさ
れ、最終アドレスはfとされ、図示の例ではサ
ブ・ボリユーム6―mにデータを書込み中である
ので、処理フラグはオンとされている。オンライ
ン・リアルタイム処理部2は計測処理等のデータ
の集積、編集処理を行なうものであつて、例えば
人工衛生から送られて来るデータを処理して処理
結果をDASDに書込む。この際、データ種別の変
化などが生ずると、サブ・ボリユームを切り換え
新しいサブ・ボリユームにデータを書込む。オン
ライン・リアルタイム処理部2は、常に階層構造
の下部から書込み/再書込みを行う。即ち、イン
デツクスを新たに作成する場合には、インデツク
スを作成してから、管理部4を更新する。また、
サブ・ボリユーム6―mにデータを新たに書込む
場合には、サブ・ボリユーム6―mにデータを書
込んだ後、インデツクス5―mの更新を行う。バ
ツチ処理部3は計測データの解析等の科学技術計
算等を行うものである。バツチ処理部3は、デー
タを読出すとき、常に階層構造の上部から索引し
てデータを認識する。また、最新データを追いか
けるように読むためには、一定時間毎に索引を行
うことにより可能である。なお、データの読出
し/書込みの単位はレコードである。 DASD 1 has a management section 4, an index 5-1 to 5-m, and a sub-volume 6-1 to 6-m.
It has m. The management unit 4 has an online operation flag, a latest index number, and a latest index processing flag. If the online side operation flag is ON, it indicates that the online real-time processing unit 2 is accessing the DASD 1. The latest index number indicates which index is the latest. In the illustrated example, the latest index is 5-m. The latest index processing flag indicates whether the latest index is in use. Index 5-
1, 5-2, . . . 5-m each have a one-to-one correspondence with the sub-volume. Each of indexes 5-1 to 5-m is the first data
address, final data address, and sub-volume processing flag. In the illustrated example, the first address of index 5-1 is the sub-address.
The address a of the first data of volume 6-1 is shown, the final data address is the address b of the last data written to sub-volume b-1, and the sub-volume is not accessed. Since it is not, the processing flag is set to off. In the illustrated example, the start address of index 5-2 is c, the end address is d, and the processing flag is off. Index 5-m is in use, but the first address of this index is e and the last address is f, and in the example shown, data is being written to sub-volume 6-m, so the processing flag is set. It is said to be on. The online real-time processing section 2 performs data accumulation and editing processing such as measurement processing, and processes data sent from artificial hygiene, for example, and writes the processing results to DASD. At this time, if a change in data type occurs, the sub-volume is switched and data is written to a new sub-volume. The online real-time processing unit 2 always writes/rewrites from the bottom of the hierarchical structure. That is, when creating a new index, the management section 4 is updated after the index is created. Also,
When newly writing data to the sub-volume 6-m, the index 5-m is updated after writing the data to the sub-volume 6-m. The batch processing section 3 performs scientific and technical calculations such as analysis of measurement data. When reading data, the batch processing unit 3 always recognizes the data by indexing from the top of the hierarchical structure. Additionally, it is possible to read the latest data by performing indexing at regular intervals. Note that the unit of reading/writing data is a record.
オンライン・リアルタイム処理部2からDASD
1へのデータの書込みは下記のようにして行われ
る。いま、データがサブ・ボリユーム6―mに書
込まれているものとすると、データは1レコード
ずつサブ・ボリユーム6―mに書込まれ、これに
応じてインデツクス5―mの最終データ・アドレ
スが更新される。データ種別の変化や発信局の変
化、コンソールからのサブ・ボリユーム切替指示
などの所定の事象が生起すると、サブ・ボリユー
ム終結処理が行われ、サブ・ボリユーム終結処理
が完了した後、サブ・ボリユーム開設処理が行な
われる。サブ・ボリユーム終結処理では、サブ・
ボリユーム5―mの処理フラグがオフとされる。
サブ・ボリユーム開設処理では、インデツクス5
―+1(図示せず)が新たに作成され、この中
にサブ・ボリユーム6―+1の先頭アドレスが
書込まれると共にその処理フラグがオンとされ、
次いで管理部4の最新インデツクス番号がm+1
に更新される。このサブ・ボリユーム開設処理が
行なわれた後、サブ・ボリユーム6―+1にデ
ータが1レコードずつ書込まれる。上記のサブ・
ボリユーム終結し処理は、コンソールからの処理
終結指示によつても行なわれる。なお、上記のよ
うな処理は、オンライン・リアルタイム処理部2
の制御によつて行われる。 From online real-time processing unit 2 to DASD
Writing data to 1 is performed as follows. Assuming that data is now written to sub-volume 6-m, data is written to sub-volume 6-m one record at a time, and the final data address of index 5-m is changed accordingly. Updated. When a predetermined event occurs, such as a change in the data type, a change in the originating station, or a sub-volume switching instruction from the console, sub-volume closure processing is performed, and after the sub-volume closure processing is completed, the sub-volume is opened. Processing is performed. Sub-volume cleanup involves sub-volume cleanup.
The processing flag for volume 5-m is turned off.
In the sub-volume opening process, index 5
-+1 (not shown) is newly created, the start address of sub-volume 6-+1 is written into it, and its processing flag is turned on.
Next, the latest index number of the management section 4 is m+1.
will be updated to. After this sub-volume opening process is performed, data is written into the sub-volume 6-+1 one record at a time. Above sub-
The volume termination process is also performed in response to a process termination instruction from the console. Note that the above processing is performed by the online real-time processing unit 2.
This is done under the control of
バツチ処理部がDASD1からデータを読込む方
法には2通りの方法がある。その1つは書込み側
がフアイルを作成完了した後で読込む方法であ
り、他は読込み側が書込みフエイズ中の最新サ
ブ・ボリユームに対して書込まれたデータを追い
かけるようにして読込む方法である。前者の方法
は下記のようにして実行される。 There are two methods for the batch processing unit to read data from the DASD 1. One method is for the writing side to read the file after it has been created, and the other is for the reading side to follow the data written to the latest sub-volume during the writing phase. The former method is executed as follows.
(イ) 管理部中の最新インデツクス番号より作成済
のサブ・ボリユームに対応するインデツクス群
を識別し、該当するサブ・ボリユームのインデ
ツクスを検索する。(b) Identify the index group corresponding to the created sub-volume from the latest index number in the management section, and search for the index of the corresponding sub-volume.
(ロ) インデツクス中の先頭データ・アドレス、最
終データ・アドレスに従い、データを読み込
む。また、後者の方法は下記のようにして実行
される。(b) Read data according to the first data address and last data address in the index. Moreover, the latter method is executed as follows.
(イ) 一定時間間隔に管理部中の最新インデツクス
番号を参照し、書込みフエイズになつたサブ・
ボリユームの有無を判断する。(b) Refer to the latest index number in the management section at regular intervals and check the sub-index number that has become a write phase.
Determine the presence or absence of volume.
(ロ) 有る場合、対応するインデツクス中の最終デ
ータ・アドレスを一定時間間隔に参照し、デー
タが書込まれたか否かを、最終データ・アドレ
スが更新されることにより判断する。(b) If there is, refer to the final data address in the corresponding index at regular time intervals, and determine whether data has been written by updating the final data address.
(ハ) データが書込まれた場合、その最終データ・
アドレスに従い、データを読み込む。(c) If data is written, the final data
Read data according to the address.
以上の説明から明らかなように、本発明によれ
ば、DASDへのデータ書込み処理と並行して準実
時間的にDASDからデータを読出すことも可能で
あり、また、単純に過去のデータも矛盾なく読む
ことが出来る。 As is clear from the above description, according to the present invention, it is possible to read data from a DASD in semi-real time in parallel with the data writing process to the DASD, and it is also possible to simply read past data. It can be read without contradiction.
図は本発明の1実施例を説明するものである。
1……DASD(直接アクセス記憶装置)、2……
オンライン・リアルタイム処理部、3……バツチ
処理部、4……管理部、5―1ないし5―m……
インデツクス、6―1ないし6―m……サブ・ボ
リユーム。
The figure illustrates one embodiment of the invention. 1...DASD (direct access storage device), 2...
Online real-time processing section, 3... Batch processing section, 4... Management section, 5-1 to 5-m...
Index, 6-1 or 6-m...Sub volume.
Claims (1)
インデツクス番号と最新インデツクス処理フラグ
とを持つ管理部、先頭データ・アドレスと最終デ
ータ・アドレスと処理フラグを持つインデツクス
を作成するためのインデツクス領域およびサブ・
ボリユームを作成するためのデータ領域を設け、 データを書込む場合、サブ・ボリユームを開設
するための所定の事象が起しじた時には、上記イ
ンデツクス領域に新たにインデツクスを作成し、
当該インデツクスに上記データ領域の空き領域に
新たに作成されたサブ・ボリユームの先頭デー
タ・アドレスを書込むと共にオンの処理フラグを
書込み、次いで上記管理部の最新インデツクス番
号で当該インデツクスを指定すると共に、上記オ
ンライン処理フラグをオンとし、 上記インデツクスの作成および管理部の更新が
行われた後、新しく作成されたサブ・ボリユーム
にデータを順次書込むと共に、新しく作成された
対応するインデツクスの最終データ・アドレスを
データの書込みが行われる度に更新し、 サブ・ボリユームを終結させるための所定の事
象が生起したときには、書込み中のサブ・ボリユ
ームに対応するインデツクスの処理フラグをオフ
にし、 データの読出しを行う場合、一定時間間隔で管
理部の最新インデツクス番号を参照し、書込みフ
エイズになつたサブ・ボリユームの有無を判断
し、有りの場合には対応するインデツクス中の最
終データ・アドレスを一定時間間隔で参照し、最
終データ・アドレスが更新された場合には、当該
最終データ・アドレスに従いデータを読出す ことを特徴とするフアイル制御方式。[Scope of Claims] 1. A management unit that has an online operation flag, the latest index number, and the latest index processing flag in a file, and an index for creating an index that has a first data address, a final data address, and a processing flag. Area and sub-
When a data area is created to create a volume and data is written, a new index is created in the above index area when a predetermined event occurs to create a sub-volume.
Write the start data address of the newly created sub-volume in the free space of the data area to the index, and also write the processing flag to be on, and then specify the index with the latest index number of the management section, and After the above online processing flag is turned on and the above index is created and the management section is updated, data is sequentially written to the newly created sub-volume and the final data address of the newly created corresponding index is written. is updated every time data is written, and when a predetermined event occurs to terminate the sub-volume, the processing flag for the index corresponding to the sub-volume being written is turned off and data is read. In this case, the latest index number in the management section is referred to at regular intervals to determine whether there is a sub-volume that has become write-fast, and if there is, the last data address in the corresponding index is referred to at regular intervals. A file control method characterized in that, when the final data address is updated, data is read in accordance with the final data address.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56100143A JPS582939A (en) | 1981-06-27 | 1981-06-27 | File controlling system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56100143A JPS582939A (en) | 1981-06-27 | 1981-06-27 | File controlling system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS582939A JPS582939A (en) | 1983-01-08 |
| JPH0318215B2 true JPH0318215B2 (en) | 1991-03-12 |
Family
ID=14266083
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56100143A Granted JPS582939A (en) | 1981-06-27 | 1981-06-27 | File controlling system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS582939A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4827447A (en) * | 1986-06-13 | 1989-05-02 | International Business Machines Corporation | Method for selectively returning to the beginning or the previous revision point in document edition |
| JP3066644B2 (en) * | 1988-02-29 | 2000-07-17 | 富士通株式会社 | Program linkage device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5481049A (en) * | 1977-12-12 | 1979-06-28 | Fujitsu Ltd | Data processing system |
-
1981
- 1981-06-27 JP JP56100143A patent/JPS582939A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS582939A (en) | 1983-01-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3610266B2 (en) | Method for writing data to log structured target storage | |
| JPS60250449A (en) | Data recording | |
| KR20020080458A (en) | A method for repartitioning physical sectors of a storage system with use of virtual disc drives, a data processing apparatus and a data storage apparatus | |
| JPS61112257A (en) | Computer memory system | |
| JPH0318215B2 (en) | ||
| JPH01204163A (en) | File controller | |
| JPH06110766A (en) | Directory storage method of split storage file system and computer system | |
| JPS6314385B2 (en) | ||
| JPH0789338B2 (en) | File processing method on external storage device | |
| JPH01255028A (en) | How to access external storage devices | |
| JPH0744426A (en) | File system file management method | |
| JPH01119839A (en) | File constitution control system | |
| JPS6336448A (en) | Transfer of basic cluster for virtual memory system | |
| JP2771986B2 (en) | Magnetic tape unit | |
| JPS63216143A (en) | File access system | |
| JPS58155466A (en) | Virtual input and output system with high efficiency | |
| JPH0656595B2 (en) | Virtualization object control method | |
| JPH01307074A (en) | Information copying device | |
| JPH04350741A (en) | Access speed increasing method for indexed sequential file | |
| JPH0371349A (en) | File control system | |
| JPS62177642A (en) | File management system for postscript filing device | |
| JPS6368960A (en) | Sequential access controller for shared storage medium | |
| JPS61248124A (en) | Input precedence control system | |
| JPS6130299B2 (en) | ||
| JPS6336375A (en) | File management method in data file device |