JPH01295346A - Data destruction preventing system - Google Patents
Data destruction preventing systemInfo
- Publication number
- JPH01295346A JPH01295346A JP63126362A JP12636288A JPH01295346A JP H01295346 A JPH01295346 A JP H01295346A JP 63126362 A JP63126362 A JP 63126362A JP 12636288 A JP12636288 A JP 12636288A JP H01295346 A JPH01295346 A JP H01295346A
- Authority
- JP
- Japan
- Prior art keywords
- data
- processing
- buffer memory
- record
- physical
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔概 要〕
少なくとも1つ以上の論理レコードを含む物理レコード
単位にデータをリード/ライトするファイルを有するデ
ータ処理システムに係り、特に処理単位である物理レコ
ード長間等かそれ以下のデータ長を更新する場合のデー
タ破壊防止方式に関し、
1物理レコード長のデータを更新加工する場合、データ
の更新を実行した論理レコードを含む物理レコードの相
対番号を認識して、更新後に先に更新した物理レコード
番号的以外の論理レコードをダミーリードすることによ
りチャネル内に保持したバッファメモリ内のデータがフ
ァイル等の記憶媒体上に更新されるデータ破壊防止方式
を提供することを目的とし、
データ加工処理にて所定加工処理を施すためのバッファ
メモリ部内データが1物理レコード長の時は、共通ルー
チンの指示に基づき共通処理部にてファイル装置から2
物理レコード長以上になるために不足するレコード長を
算出してリードし、バッファメモリ部に追加格納するよ
うに構成する。[Detailed Description of the Invention] [Summary] It relates to a data processing system having a file in which data is read/written in units of physical records including at least one logical record, and in particular, the length of the physical record, which is a unit of processing, etc. Regarding the data destruction prevention method when updating data length shorter than that, when updating data with one physical record length, the relative number of the physical record including the logical record where the data was updated is recognized, and the data is updated after the update. The purpose of this method is to provide a data destruction prevention method in which data in a buffer memory held in a channel is updated on a storage medium such as a file by dummy reading a logical record other than the previously updated physical record number. , When the data in the buffer memory section for performing prescribed processing in data processing is one physical record length, the common processing section transfers two files from the file device based on the instructions of the common routine.
The system is configured to calculate and read the record length that is insufficient because it is longer than the physical record length, and additionally stores it in the buffer memory section.
本発明は、少なくとも1つ以上の論理レコードを含む物
理レコード単位にデータをリード/ライトするファイル
を有するデータ処理システムに係り、特に処理単位であ
る物理レコード長間等かそれ以下のデータ長を更新する
場合のデータ破壊防止方式に関する。The present invention relates to a data processing system having a file that reads/writes data in units of physical records including at least one logical record, and in particular updates data lengths that are equal to or less than the length of a physical record, which is a unit of processing. Regarding data destruction prevention methods when
1つの外部記憶装置を共有して所定プロソセサ内複数の
サブルーチンから外部記憶装置をアクセスしデータ処理
を行う場合、その1つの方式として1つ以上の論理レコ
ードを含む物理レコード長単位に処理される方式がある
。When a single external storage device is shared and data is processed by accessing the external storage device from multiple subroutines within a given processor, one method is to process data in units of physical record length, which includes one or more logical records. There is.
このような方式では、物理レコード長以下のデータが更
新された場合は更新されたデータが外部記憶装置上で保
証されないため、簡易な方式でユーザサイドで外部記憶
装置上保証される方式が要求される。In such a method, if data that is less than the physical record length is updated, the updated data is not guaranteed on the external storage device, so a simple method is required that guarantees the updated data on the external storage device on the user side. Ru.
第5図は従来例を説明する図、第6図はデータ処理の構
成を説明する図、第7図はファイルにおけるデータ格納
状況を説明する図、第8図は物理レコードと論理レコー
ドの関係を説明する図をそれぞれ示す。Figure 5 is a diagram explaining the conventional example, Figure 6 is a diagram explaining the configuration of data processing, Figure 7 is a diagram explaining the data storage situation in a file, and Figure 8 is a diagram explaining the relationship between physical records and logical records. Diagrams for explanation are shown respectively.
第5図に示す従来例のサブルーチンAI (1)は、
ファイル装置6からリードしたデータに対して所定受信
処理を施し、ファイル装置6の同一箇所ヘリライトする
一連の処理を指示する。The conventional subroutine AI (1) shown in FIG.
It performs a predetermined reception process on the data read from the file device 6 and instructs a series of processes to write to the same location in the file device 6.
一方、サブルーチンBl(2)は、バッファメモリ部4
へ格納されているデータに対して所定加工処理(例えば
、更新処理)を施す一連の処理を指示する。On the other hand, subroutine Bl(2) executes the buffer memory section 4.
Instructs a series of processing to perform predetermined processing (for example, update processing) on data stored in .
又、データ受信処理部2はサブルーチンAl(1)の指
示を受けて、リードしたデータに対して所定受信処理(
データの整形処理等)を施す。Further, the data reception processing unit 2 receives instructions from subroutine Al(1) and performs a predetermined reception process (
data formatting processing, etc.).
そして、そのデータをバッファメモリ部4へ格納すると
共に、加工処理したデータをリードした箇所と同一箇所
ヘリライトし、データ加工処理部3はバッファメモリ部
4へ格納しているデータに対して更新等の加工を施す。Then, the data is stored in the buffer memory unit 4, and the processed data is written to the same location where it was read, and the data processing unit 3 updates the data stored in the buffer memory unit 4. Perform processing.
尚、サブルーチンAt (1)とサブルーチンBl
(2)はプロセッサl内に具備されたものであり、それ
ぞれの指示が終了した場合にはその終了信号と確認信号
を授受し、サブルーチンAt(1)とサブルーチンBl
(2)間の処理の受は渡しを行う。Furthermore, subroutine At (1) and subroutine Bl
(2) is provided in the processor l, and sends and receives a completion signal and a confirmation signal when each instruction is completed, and sends and receives a completion signal and a confirmation signal to the subroutine At(1) and subroutine Bl.
(2) Processing in between is handed over.
又、リード/ライト制御装置5はファイル装置6に対す
るデータのリード及びライト動作を制御するもので、デ
ータ受信処理部2又はデータ加工処理部3からのアクセ
スにより動作する。Further, the read/write control device 5 controls data read and write operations for the file device 6, and operates upon access from the data reception processing section 2 or the data processing section 3.
更に、データ受信処理部2.データ加工処理部3及びバ
ッファメモリ部4は第6図(A)に示すサブルーチンA
I (1)、Bl (2)に対応するA用チャネル
2(1)及び日用チャネル2(2)内に設置されている
ものとする。Further, a data reception processing section 2. The data processing unit 3 and buffer memory unit 4 are operated by subroutine A shown in FIG. 6(A).
It is assumed that it is installed in A channel 2 (1) and daily channel 2 (2) corresponding to I (1) and Bl (2).
ファイル装置6に格納するデータは第7図に示すように
、Nバイトで固定な論理レコード長のレコードがN個(
N個のポインタに対応する)で1データフアイルをなし
ている。As shown in FIG. 7, the data stored in the file device 6 consists of N records with a fixed logical record length of N bytes (
(corresponding to N pointers) forms one data file.
しかも、このファイル装置6へのデータのり−ド/ライ
トはルコード目からシーケンシャルに行われ、更にレコ
ード番号指定(即ち、レコードポインタ指定)により任
意のレコードがリード/ライト出来る。Furthermore, data is read/written to the file device 6 sequentially starting from the first code, and any record can be read/written by specifying a record number (that is, by specifying a record pointer).
又、上述の論理レコードと物理レコードとの関係は、第
8図に示す通りである。即ち、論理レコードはシーケン
シャルな番号を有するルコードの長さで定義され、物理
レコードはファイル装置6が実際にリード/ライトする
最小長さで定義されている。Further, the relationship between the above-mentioned logical records and physical records is as shown in FIG. That is, a logical record is defined by the length of a code having a sequential number, and a physical record is defined by the minimum length that the file device 6 actually reads/writes.
又、データ受信処理部2の処理はデータ加工処理部3の
処理よりも処理優先順位が高(設定されているものとす
る。Further, it is assumed that the processing of the data reception processing section 2 has a higher processing priority than the processing of the data processing processing section 3.
次に、第5図、第6図に基づきデータ通信の並列処理に
ついて説明する。Next, parallel processing of data communication will be explained based on FIGS. 5 and 6.
今、並列動作する2つのサブルーチンAt(1)、サブ
ルーチンBl(2)が同一ファイルの同一レコードに対
してリード/ライトした場合に付いて説明する。Now, a case will be described in which two subroutines At(1) and Bl(2) operating in parallel read/write the same record of the same file.
尚、2つのサブルーチンAI(1)、サブルーチンBl
(2)は、第6図(A)に示すようにファイル装置
6を通してデータの授受を行うものとする。In addition, there are two subroutines AI (1) and subroutine Bl.
(2) assumes that data is exchanged through the file device 6 as shown in FIG. 6(A).
又、データ受信処理部2とデータ加工処理部3は第6図
(B)に示すように、一連の流れで処理を実行し、その
処理時間は受信データの最小サイクル時間t、加工処理
時間Tで実行する。Furthermore, the data reception processing unit 2 and the data processing processing unit 3 execute processing in a series of flows as shown in FIG. 6(B), and the processing time is the minimum cycle time t of received data and the processing time T. Execute with.
次に、サブルーチンAI(1)、サブルーチンBl(2
)がファイル装置6の使用宣言を行うと、それぞれ割り
当てられたチャネル2(1)、2(2)を介してリード
/ライト制御部5を起動し、リード/ライト制御装置5
を介してファイル装置6をアクセスする。Next, subroutine AI(1), subroutine Bl(2)
) declares the use of the file device 6, it starts the read/write control unit 5 via the assigned channels 2(1) and 2(2), and the read/write control unit 5
The file device 6 is accessed via.
尚、チャネル2 (1) 、 2 (2)内には対応
するサブルーチンAI (1)、サブルーチンB1(
2)が直前にアクセスした時の物理レコード番号、論理
レコード番号及び当該物理レコード番号中のデータをバ
ッファメモリ部4中に保有し・ているものとする。Note that channels 2 (1) and 2 (2) contain the corresponding subroutine AI (1) and subroutine B1 (
2) holds in the buffer memory unit 4 the physical record number, logical record number, and data in the physical record number that was accessed immediately before.
そして、サブルーチンAI (1)が第8図に示す論
理レコード(n+1)をリードすると、サブルーチンA
I (1)へ(n+1)レコードの内容が通知される
と同時に、対応するチャネル2 (1)内バッファメモ
リ部4には物理レコードNの内容が保持される。Then, when subroutine AI (1) reads logical record (n+1) shown in FIG.
At the same time that the contents of the (n+1) record are notified to I (1), the contents of the physical record N are held in the corresponding internal buffer memory section 4 of channel 2 (1).
又、サブルーチンBl(2)が第8図に示す論理レコー
ド(n+5)をリードすると、サブルーチンBl(2)
へ(n+5)レコードの内容が通知されると同時に、対
応するチャネル2(2)内バッファメモリ部4には物理
レコード(N+1)の内容が保持される。Also, when subroutine Bl(2) reads logical record (n+5) shown in FIG.
At the same time that the contents of the (n+5) record are notified to the corresponding channel 2 (2), the contents of the physical record (N+1) are held in the buffer memory section 4 in the corresponding channel 2 (2).
サブルーチンAt (1)が(n+1)レコードのデ
ータを変更して、ファイル装置6ヘリライト命令を下し
た時、チャネル2(1)内バッファメモリ部4では同一
物理レコード内の変更のため、単にバッファメモリ部4
の内容を更新するのみで、リード/ライト制御装置5に
ライト命令を発行することがない。When the subroutine At (1) changes the data of the (n+1) record and issues a write command to the file device 6, the buffer memory section 4 in channel 2 (1) simply writes the data in the buffer memory because the change is in the same physical record. Part 4
It only updates the contents of , and does not issue a write command to the read/write control device 5.
次に、サブルーチンBl(2)がサブルーチンAl
(1)よりデータ更新終了を受け、当該レコード(n+
1)をファイル装置6からリードしてレコード(n+1
)の内容をサブルーチンB1(2)に通知する。Next, subroutine Bl(2) is subroutine Al
Upon receiving the data update end from (1), the corresponding record (n+
1) from the file device 6 and record (n+1
) is notified to subroutine B1(2).
′ しかし、この時点ではファイル装置6上のレコード
(n+1)は更新されてなく、旧のデータがサブルーチ
ンBl(2)に対して通知される。' However, at this point, record (n+1) on the file device 6 has not been updated, and the old data is notified to subroutine Bl(2).
上述のように、複数のサブルーチンAI (1)。 As mentioned above, multiple subroutines AI (1).
サブルーチンBl(2)が並列動作し、且つ1つのファ
イル装置6を共有してデータの授受を行う場合、データ
の更新(リライトや追加)をサブルーチンAI(1)、
サブルーチンBl(2)が実行すると、サブルーチンA
I(1)、サブルーチンBl(2)に対応するチャネル
2(1)、2(2)内のバッファメモリ容量長より小さ
いか等しい物理レコード長の場合、ファイル装置6上で
は更新されないため、次のステップでこのデータをファ
イル装置6からリードした場合旧データが通知され、更
新した新データは破壊され消失することになる。When subroutine Bl(2) operates in parallel and sends and receives data by sharing one file device 6, data updating (rewriting and addition) is performed by subroutine AI(1),
When subroutine Bl(2) is executed, subroutine A
If the physical record length is smaller than or equal to the buffer memory capacity length in channels 2(1) and 2(2) corresponding to I(1) and subroutine Bl(2), it will not be updated on the file device 6, so the following If this data is read from the file device 6 in step, the old data will be notified and the updated new data will be destroyed and lost.
本発明は、1物理レコード長のデータを更新加工する場
合、データの更新を実行した論理レコードを含む物理レ
コードの相対番号を認識して、更新後に先に更新した物
理レコード番号的以外の論理レコードをダミーリードす
ることによりチャネル内に保持したバッファメモリ内の
データがファイル等の記憶媒体上に更新されるデータ破
壊防止方式を提供することを目的とする。When updating data with a length of one physical record, the present invention recognizes the relative number of the physical record that includes the logical record where the data was updated, and after the update, the logical record other than the previously updated physical record number is processed. An object of the present invention is to provide a data destruction prevention method in which data in a buffer memory held in a channel is updated on a storage medium such as a file by dummy reading the data.
第1図は本発明の詳細な説明する図を示す。 FIG. 1 shows a detailed illustration of the invention.
第1図に示す本発明の原理図中の7はサブルーチンBの
指示に基づき加工処理するバッファメモリ部に格納する
データが1物理レコードの時はサブルーチンA及びサブ
ルーチンBの指示内容を受取りそれ以降の一連の手順を
指示する共通ルーチンであり、
8は共通ルーチン7の指示の基にファイル装置から他の
物理レコードに属する複数レコードをリードするために
、バッファメモリ部に格納すべきデータの論理レコード
長、物理レコード長や最大レコード数を含む状態情報を
記憶する状態記憶領域と、レコード中のデータを記憶す
るデータ記憶領域と、状態記憶領域とデータ記憶領域か
らバッファメモリ部に付加するための論理レコード数を
算出する演算処理領域とを有する共通処理部であり、
データ加工処理にて所定加工処理を施すためのバッファ
メモリ部内データが1物理レコード長の時は、共通ルー
チン7の指示に基づき共通処理部8にてファイル装置6
から2物理レコード長以上になるために不足するレコー
ド長を算出してリードし、バッファメモリ部に追加格納
するように構成することにより、本課題を解決するため
の手段とする。7 in the principle diagram of the present invention shown in FIG. 1 receives the instruction contents of subroutine A and subroutine B when the data stored in the buffer memory section to be processed based on the instructions of subroutine B is one physical record. This is a common routine that instructs a series of procedures, and 8 is the logical record length of data to be stored in the buffer memory section in order to read multiple records belonging to other physical records from the file device based on the instructions of the common routine 7. , a status storage area that stores status information including the physical record length and maximum number of records, a data storage area that stores data in the record, and a logical record that is added to the buffer memory section from the status storage area and data storage area. It is a common processing unit that has an arithmetic processing area that calculates numbers, and when the data in the buffer memory unit for performing predetermined processing in data processing is one physical record length, it performs common processing based on the instructions of common routine 7. File device 6 in section 8
This problem is solved by configuring the system to calculate and read the record length that is insufficient because it becomes two physical record lengths or more, and to additionally store it in the buffer memory section.
バッファメモリ部から読出しデータ加工処理部にて所定
加工処理を施すデータが1物理レコード長の時は、サブ
ルーチンA及びサブルーチンBはその後の一連の処理指
示を共通ルーチン7に渡し、共通ルーチン7の指示に基
づき共通処理部8でファイル6から1物理レコード長以
上になるために不足するレコード長を算出し、そのレコ
ードをリードしてバッファメモリ部に格納するように構
成することにより、ファイル装置6上で更新したデータ
が保証され、ファイル装置6からリード/ライトしたデ
ータを消失し破壊することなく加工処理することが可能
となる。When the data to be read from the buffer memory section and subjected to predetermined processing in the data processing section has a length of one physical record, subroutine A and subroutine B pass a series of subsequent processing instructions to common routine 7; Based on this, the common processing unit 8 calculates the insufficient record length from the file 6 to exceed one physical record length, reads the record, and stores it in the buffer memory unit. The updated data is guaranteed, and the data read/written from the file device 6 can be processed without being lost or destroyed.
以下本発明の要旨を第2図〜第4図に示す実施例により
具体的に説明する。The gist of the present invention will be specifically explained below with reference to embodiments shown in FIGS. 2 to 4.
第2図は本発明の詳細な説明する図、第3図は本発明の
実施例のデータ処理状況を説明する図、第4図は本発明
の実施例におけるデータ破壊防止処理の処理フローチャ
ートを説明する図をそれぞれ示す。尚、全図を通じて同
一符号は同一対象物を示す。Fig. 2 is a diagram explaining the present invention in detail, Fig. 3 is a diagram explaining the data processing situation in the embodiment of the present invention, and Fig. 4 is a processing flowchart of data destruction prevention processing in the embodiment of the present invention. Figures are shown for each. Note that the same reference numerals indicate the same objects throughout the figures.
第2図に示す本発明の実施例はプロセッサ10内2つの
サブルーチンAl (1)、Bl (2)から共有
する外部記憶装置であるファイル装置6をアクセスする
データ処理システムであり、本実施例のり一ド/ライト
制御装置5及びファイル装置6は第5図で説明したもの
と同一内容を有するものとする。The embodiment of the present invention shown in FIG. 2 is a data processing system in which two subroutines Al(1) and Bl(2) in a processor 10 access a file device 6 which is a shared external storage device. It is assumed that the read/write control device 5 and the file device 6 have the same contents as explained in FIG.
又、本発明に係わるチャネル20 (1)、20(2
)は同一内容を有し、その内容は第5図で説明したのと
同様な内容を有するデータ受信処理部2と、データ加工
処理部3と、バッファメモリ部4と、
第1図に示す最大レコード数、レコード番号。Also, channels 20 (1) and 20 (2) according to the present invention
) have the same contents, and the contents are the same as those explained in FIG. 5. Number of records, record number.
物理レコード長、論理レコード長及びチャネル番号を格
納する状態記憶領域81と、レコード中のデータを記憶
するデータ記憶領域82と、各種論理演算処理を行う演
算処理領域83とからなる共通処理部8から構成した例
である。From a common processing unit 8 consisting of a state storage area 81 for storing physical record length, logical record length, and channel number, a data storage area 82 for storing data in records, and an arithmetic processing area 83 for performing various logical calculation processes. This is an example of a configuration.
又、プロセッサlOは第5図で説明したサブルーチンA
l (1)、Bl (2)と、共通処理部8の一連の
手順を指示する共通ルーチン7とからなる。Further, the processor IO executes the subroutine A explained in FIG.
1 (1), Bl (2), and a common routine 7 that instructs a series of procedures of the common processing section 8.
この共通ルーチン7はデータ加工処理部3がバッファメ
モリ部4に格納しているデータの更新処理を行った後の
アクセスにより起動され、データ受信処理部2及びデー
タ加工処理部3からその後の処理の制御が渡される。This common routine 7 is activated by access after the data processing section 3 updates the data stored in the buffer memory section 4, and is accessed by the data reception processing section 2 and the data processing section 3 for subsequent processing. Control is passed.
この時、データ受信処理部2及びデータ加工処理部3か
ら論理レコード長、物理レコード長、レコード番号(ポ
インタ)、最大レコード数、チャネル番号とレコード中
のデータを記憶するための領域をLl−L5.Dlとし
て通知され、これを共通処理部8内状態記憶領域81及
びデータ記憶領域82に格納する。At this time, an area for storing the logical record length, physical record length, record number (pointer), maximum record number, channel number, and data in the record is provided from the data reception processing unit 2 and data processing unit 3 to Ll-L5. .. Dl, and stores this in the state storage area 81 and data storage area 82 in the common processing unit 8.
そして、演算処理領域83は第4図に示す処理を実行す
る。即ち、Ll(論理レコード長)とL2 (物理レコ
ード長)よりスキップする論理レコード数Sを、
S’= (L2/Ll)+1の整数部として求め、この
スキップ論理レコード数Sとレコード番号(ポインタ)
により、ダミーリードポインタR(=S+L3)を求め
最大レコード数L4と比較し、R≧L4の条件を満足し
ない場合は、R=L3−3とする。The arithmetic processing area 83 then executes the processing shown in FIG. That is, the number S of logical records to be skipped is determined from Ll (logical record length) and L2 (physical record length) as the integer part of S' = (L2/Ll) + 1, and this number S of logical records to be skipped and the record number (pointer )
Accordingly, the dummy read pointer R (=S+L3) is obtained and compared with the maximum record number L4. If the condition of R≧L4 is not satisfied, R=L3-3 is set.
このようして得たダミーリードポインタRを用いチャネ
ル番号L5のデータファイルからデータをバッファメモ
リ部4への格納をデータ加工処理部3を介してリード/
ライト制御装置5へ指示する。Using the dummy read pointer R obtained in this way, data is stored in the buffer memory section 4 from the data file of channel number L5 and read/read via the data processing section 3.
Instructs the light control device 5.
これにより、バッファメモリ部4へ格納されるデータ長
が2物理レコード長以上となり更新データのファイル装
置6へのライトが実行され、以後次の処理に移る。As a result, the data length stored in the buffer memory unit 4 becomes equal to or greater than the length of two physical records, and the update data is written to the file device 6, and the process then moves on to the next process.
以上の一連の処理を第3図に示す。即ち、l物理レコー
ド長をデータ受信処理部2にて処理する場合は、ファイ
ル装置6からリードしたデータを受信整形すると、第4
図に示すデータ破壊防止処理のフローへ移行する。The above series of processing is shown in FIG. That is, when processing l physical record length in the data reception processing unit 2, when the data read from the file device 6 is received and formatted, the 4th
The flow moves to the data destruction prevention process shown in the figure.
そして、第4図に示すデータ破壊防止処理のフローが終
了するともとの処理に戻り、A用チャネル2(1)を介
してファイル装置6へそのデータをライトし、未処理件
数を+1としてバッファメモリ部4へ保持する。Then, when the flow of data destruction prevention processing shown in FIG. It is retained in the memory section 4.
次に、データ加工処理部3の処理ではデータ受信処理部
2の処理の未処理件数を常に監視しておき、未処理件数
≠0の時は同様にデータ破壊防止処理のフローへ移行す
る。Next, in the process of the data processing section 3, the number of unprocessed cases of the processing of the data reception processing section 2 is constantly monitored, and when the number of unprocessed cases≠0, the flow similarly shifts to the data destruction prevention process.
そして、同様にデータ破壊防止処理のフローが終了する
ともとの処理に戻り、ファイル装置6ヘライトしたデー
タをリードし加工処理を行い、処理完了後未処理件数を
−1としてサブルーチンA1 (1)へ通知する。Similarly, when the flow of the data destruction prevention process is completed, the process returns to the original process, reads the data written to the file device 6, processes it, and after the process is completed, sets the number of unprocessed items to -1 and returns to subroutine A1 (1). Notice.
このように、バッファメモリ部4へ1物理レコード長の
データが格納されると、サブルーチンBl(2)を起動
してバッファメモリ部4へ格納しているデータをサブル
ーチンAl (1)を介してデータ受信処理部2へ送
り、リード/ライト制御部5を起動してファイル装置6
の同一箇所へそのデータをリライトする。In this way, when data of one physical record length is stored in the buffer memory section 4, subroutine Bl (2) is started and the data stored in the buffer memory section 4 is transferred to the data via subroutine Al (1). It is sent to the reception processing section 2, starts the read/write control section 5, and sends it to the file device 6.
Rewrite the data to the same location.
上述のように、バッファメモリ部4へ格納しているレコ
ード長が1物理レコード長の場合は、次のデータがバッ
ツァメモリ部4ヘダミーレコードとして格納され、それ
が2物理レコード長以上になって初めて、更新されたレ
コードがファイル装置6ヘリライトされ、ファイル装置
6内のデータも更新後のデータとして保証される。As mentioned above, when the record length stored in the buffer memory section 4 is one physical record length, the next data is stored as a dummy record in the Batza memory section 4, and only when the length becomes two physical record length or more. , the updated record is written to the file device 6, and the data in the file device 6 is also guaranteed as updated data.
以上のような本発明によれば、大容量のデータ処理にお
いてデータの消失や破壊をすることなくリード/ライト
及び加工処理することの出来るデータ破壊防止方式を実
現出来る。According to the present invention as described above, it is possible to realize a data destruction prevention method that can perform read/write and processing processing without data loss or destruction in large-capacity data processing.
第1図は本発明の詳細な説明する図、
第2図は本発明の詳細な説明する図、
第3図は本発明の実施例のデータ処理状況を説明する図
、
第4図は本発明の実施例におけるデータ破壊防止処理の
処理フローチャートを説明する図、第5図は従来例を説
明する図、
第6図はデータ処理の構成を説明する図、第7図はファ
イルにおけるデータ格納状況を説明する図、
第8図は物理レコードと論理レコードの関係を説明する
図、
をそれぞれ示す。
図において、
1.10はプロセッサ、 1(1)はサブルーチンA
、1(2)はサブルーチンB、2はデータ受信処理部、
2(IL2(2) 、20(1) 、20(2)はチャ
ネル、3はデータ加工処理部、4はバッファメモリ部、
5はリード/ライト制御装置、
6はファイル装置、 7は共通ルーチン、8は共通処
理部、 81は状態記憶領域、82はデータ記憶領
域、 83は演算処理領域、をそれぞれ示す。
本発明の詳細な説明する図
第1図
本発明の詳細な説明する図
第2図
第5図
(B)FIG. 1 is a diagram explaining the present invention in detail. FIG. 2 is a diagram explaining the present invention in detail. FIG. 3 is a diagram explaining the data processing situation of the embodiment of the present invention. FIG. 4 is a diagram explaining the present invention. Figure 5 is a diagram explaining a conventional example, Figure 6 is a diagram explaining the configuration of data processing, and Figure 7 is a diagram explaining the data storage situation in a file. Figure 8 is a diagram explaining the relationship between physical records and logical records. In the figure, 1.10 is the processor, 1(1) is the subroutine A
, 1 (2) is subroutine B, 2 is data reception processing section,
2 (IL2(2), 20(1), 20(2) are channels, 3 is a data processing unit, 4 is a buffer memory unit,
5 is a read/write control device, 6 is a file device, 7 is a common routine, 8 is a common processing section, 81 is a state storage area, 82 is a data storage area, and 83 is an arithmetic processing area. Figure 1 Detailed explanation of the present invention Figure 2 Figure 5 (B)
Claims (1)
単位にデータを記憶するファイル装置(6)を備え、前
記ファイル装置(6)からリードしたデータの受信処理
及び加工処理を並列に処理するための複数のサブルーチ
ンを有するデータ処理システムにおいて、 データの受信処理を行うための一連の手順が組み込まれ
ているサブルーチンAの指示に基づき前記ファイル装置
(6)からリードしたデータをバッファメモリ部に格納
し、前記バッファメモリ部に格納するデータの加工処理
を行うための一連の手順が組み込まれているサブルーチ
ンBの指示に基づきデータの加工処理を行う場合、 前記サブルーチンBの指示に基づき加工処理する前記バ
ッファメモリ部に格納するデータが1物理レコード長の
時は前記サブルーチンA及びサブルーチンBの指示内容
を受取りそれ以降の一連の手順を指示する共通ルーチン
(7)と、 前記共通ルーチン(7)の指示の基に前記ファイル装置
(6)から他の物理レコードに属する複数レコードをリ
ードするために、前記バッファメモリ部に格納すべきデ
ータの論理レコード長、物理レコード長や最大レコード
数を含む状態情報を記憶する状態記憶領域(81)と、
レコード中のデータを記憶するデータ記憶領域(82)
と、前記状態記憶領域(81)とデータ記憶領域(82
)から前記バッファメモリ部に付加するための論理レコ
ード数を算出する演算処理領域(83)とを有する共通
処理部(8)とを設け、 前記データ加工処理にて所定加工処理を施すための前記
バッファメモリ部内データが1物理レコード長の時は、
前記共通ルーチン(7)の指示に基づき前記共通処理部
(8)にて前記ファイル装置(6)から2物理レコード
長以上になるために不足するレコード長を算出してリー
ドし、前記バッファメモリ部に追加格納することを特徴
とするデータ破壊防止方式。[Scope of Claims] A file device (6) that stores data in units of physical records including at least one logical record, and receives and processes data read from the file device (6) in parallel. In a data processing system having a plurality of subroutines for processing, data read from the file device (6) is transferred to a buffer memory based on instructions from subroutine A, which incorporates a series of procedures for data reception processing. When data processing is performed based on the instructions of subroutine B, which includes a series of procedures for processing the data stored in the buffer memory section, the processing is performed based on the instructions of subroutine B. a common routine (7) that receives instructions from the subroutine A and subroutine B and instructs a series of subsequent procedures when the data to be stored in the buffer memory section has a length of one physical record; A state including the logical record length, physical record length, and maximum number of records of data to be stored in the buffer memory section in order to read multiple records belonging to other physical records from the file device (6) based on instructions from a state storage area (81) for storing information;
Data storage area (82) for storing data in records
, the state storage area (81) and the data storage area (82).
) for calculating the number of logical records to be added to the buffer memory section, and a common processing section (8) having an arithmetic processing area (83) for calculating the number of logical records to be added to the buffer memory section, and for performing predetermined processing in the data processing. When the data in the buffer memory is one physical record length,
Based on the instructions of the common routine (7), the common processing unit (8) calculates and reads the insufficient record length from the file device (6) due to the length of two or more physical records, and reads the record length from the file device (6). A data destruction prevention method characterized by additional storage.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63126362A JPH01295346A (en) | 1988-05-24 | 1988-05-24 | Data destruction preventing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63126362A JPH01295346A (en) | 1988-05-24 | 1988-05-24 | Data destruction preventing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01295346A true JPH01295346A (en) | 1989-11-29 |
Family
ID=14933308
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63126362A Pending JPH01295346A (en) | 1988-05-24 | 1988-05-24 | Data destruction preventing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01295346A (en) |
-
1988
- 1988-05-24 JP JP63126362A patent/JPH01295346A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5813011A (en) | Storage of a compressed file containing its own compression management table | |
| US5627783A (en) | Semiconductor disk device | |
| EP1224538B1 (en) | Linked list dma descriptor architecture | |
| JPH11282821A5 (en) | ||
| US5860088A (en) | Method for extraction of a variable length record from fixed length sectors on a disk drive | |
| JPH01295346A (en) | Data destruction preventing system | |
| EP0955574A2 (en) | Methods and systems for transferring data between a readable data storage medium and a host system | |
| JPH08202595A (en) | File system | |
| JPH0250786A (en) | Ic card and its program rewriting system | |
| JP3022011B2 (en) | Data backup system | |
| JPH0385650A (en) | Disk volume restoration system | |
| JPH10312693A (en) | Storage device | |
| JP2735400B2 (en) | Asynchronous I/O control method | |
| JPS63239521A (en) | Data processing method of magnetic tape device | |
| JPH07104758B2 (en) | Record processing method | |
| JPH0156411B2 (en) | ||
| JPH01237853A (en) | System for processing degeneration of prime page in hash file | |
| JPH0668088A (en) | Text management system in distributed processing editer | |
| JPS63280356A (en) | Buffer management system for virtual disk device | |
| JPS6167155A (en) | random file system | |
| JPH01163848A (en) | Disk file double update prevention method | |
| JPH04105117A (en) | Data input/output system | |
| JPH0212346A (en) | Data assurance system | |
| JPH01188966A (en) | Magnetic disk controller containing cache | |
| JPS62221045A (en) | File writing system |