JPH0224714A - Data processor - Google Patents
Data processorInfo
- Publication number
- JPH0224714A JPH0224714A JP63175403A JP17540388A JPH0224714A JP H0224714 A JPH0224714 A JP H0224714A JP 63175403 A JP63175403 A JP 63175403A JP 17540388 A JP17540388 A JP 17540388A JP H0224714 A JPH0224714 A JP H0224714A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage means
- update
- record
- processing
- 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
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はコンピュータシステムに係り、さらに詳しくは
データをワードとレコードで管理するデータ処理装置に
関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer system, and more particularly to a data processing device that manages data in words and records.
コンピュータシステムによってデータを管理する場合、
データの管理コードによってデータを記憶するためファ
イル構造が複雑となってしまう。When data is managed by a computer system,
Because data is stored using data management codes, the file structure becomes complicated.
本発明はデータをレコードとワードとの区切コードによ
って管理すると共に外部記憶手段内の各レコードをキー
ワードの順に配列したものである。The present invention manages data using delimiter codes between records and words, and arranges each record in an external storage means in the order of keywords.
本発明によればデータの管理が簡略化され、データの処
理方法が一元化できる。According to the present invention, data management can be simplified and data processing methods can be unified.
マイクロプロセッサの発展により、各種のデータの管理
をスタンドアロンのシステムによりおこなうことが回部
となった。例えばデータベース等も簡単に行うことがで
きるようになった。このような例えばデータベースにお
いては項目単位でファイルを作成し、データの項目によ
ってファイルをチェーン化する、更にはデータ同士の関
係を予め記憶し、その構造や関係によってデータを検索
する方式が多く用いられている。With the development of microprocessors, it has become common practice to manage various types of data using stand-alone systems. For example, databases can now be created easily. For example, in databases, methods are often used in which files are created for each item and the files are chained based on the data item.Furthermore, the relationships between data are stored in advance and data is searched based on the structure and relationships. ing.
前述したような従来のデータベースでは項目単位等によ
ってデータを管理しているため複数のファイルにまたが
って関係がつけられるため、検索に多(の時間を°要す
るという問題を有していた。Conventional databases such as those described above manage data in terms of items, so relationships can be established across multiple files, which poses the problem of requiring a large amount of time to search.
特に検索するためのキーが多い場合には更に多(の時間
を要するという問題を有していた。In particular, when there are many keys to search, there is a problem in that it takes even more time.
また、日時変化するデータ例えば商社等における売上、
在庫等の管理においては、−日の集計を行う処理では各
項目単位でそのデータを更新しなくてはならないためそ
の処理が複雑となる問題を有していた。In addition, data that changes by date and time, such as sales at trading companies, etc.
In the management of inventory, etc., there has been a problem in that the processing for aggregating -days requires updating the data for each item, making the processing complicated.
本発明は上記従来の欠点に鑑み、データの管理を簡略化
しさらにデータの処理を一元化できるデータ処理装置を
提供することを目的とする。SUMMARY OF THE INVENTION In view of the above-mentioned conventional drawbacks, it is an object of the present invention to provide a data processing device that can simplify data management and unify data processing.
本発明の手段は次の通りである。ワードと複数の該ワー
ドとよりなるレコードとを区切りコードで区分してデー
タを管理するデータシステムにおいて、外部記憶手段1
(第1図の発明のブロック図参照、以下同様)は前記
レコードをキーワードの順に記憶する。The means of the present invention are as follows. In a data system that manages data by dividing a word and a record consisting of a plurality of such words using a delimiter code, an external storage means 1
(See the block diagram of the invention in FIG. 1, the same applies hereinafter) stores the records in the order of keywords.
内部記憶手段2は前記外部記憶手段1に記憶されている
レコードを読みだして記憶する。The internal storage means 2 reads and stores records stored in the external storage means 1.
処理手段3は前記内部記憶手段2に記憶されているレコ
ードを順に読みだして指定される処理を実行するととも
に、読みだしたデータが予め定められた区切りコードと
一致した時に処理を終了する。The processing means 3 sequentially reads the records stored in the internal storage means 2 and executes the specified processing, and ends the processing when the read data matches a predetermined delimiter code.
書き込み手段4は前記外部記憶手段lから前記内部記憶
手段2ヘレコードのデータの読みだしが完了した際に、
データの最後尾にデータ終了の区切りコードを書き込む
。When the writing means 4 completes reading the record data from the external storage means 1 to the internal storage means 2,
Write the data end delimiter code at the end of the data.
更新レコード記憶手段5は入力されたデータを更新レコ
ードとして逐次記憶する。The update record storage means 5 sequentially stores the input data as an update record.
マージ手段6は更新レコード記憶手段5内の各更新レコ
ードに基づく処理を実行し、前記外部記憶手段1内にレ
コードのキーワード順にマージする。The merging means 6 executes processing based on each update record in the update record storage means 5, and merges the records into the external storage means 1 in keyword order.
本発明の作用は次の如くである。 The operation of the present invention is as follows.
外部記憶手段1はワードと複数の前記ワードよりなるレ
コード等を区切りコードで区分してデータを記憶してい
る。The external storage means 1 stores data by dividing words and records each consisting of a plurality of words using delimiter codes.
書き込み手段4は内部記憶手段2が読みだしたレコード
の最終位置にレコードの終わりを表すコードを内部記憶
手段2に格納するので、内部記憶手段2より処理手段3
がデータを順次読みだし、処理を行うとともに(演算処
理)読み出したデータが終わりのコードであった時には
その処理を終了する。最終コードが書き込み手段4で書
き込まれているので処理手段3は内部記憶手段2内で記
憶する各レコードのデータを連続してレコードの終りコ
ードが来るまで行うことができる。The writing means 4 stores in the internal storage means 2 a code indicating the end of the record at the final position of the record read by the internal storage means 2.
reads the data sequentially, performs processing (arithmetic processing), and ends the processing when the read data is the final code. Since the final code has been written by the writing means 4, the processing means 3 can continuously process the data of each record stored in the internal storage means 2 until the end code of the record is reached.
またさらにマージ手段6は更新レコード記憶手段5で新
たに付は加えるべき更新レコードを記憶しているので、
キーワード順に外部記憶手段1内に新しいレコードをマ
ージすることができる。Furthermore, since the merging means 6 stores update records to be newly added in the update record storage means 5,
New records can be merged into the external storage means 1 in keyword order.
以下、第2図乃至第6図を用いて詳細に説明する。 A detailed explanation will be given below using FIGS. 2 to 6.
第2図は実施例の構成図である。中央処理装置10はデ
ータバスDB、アドレスバスAB、コントロールバスC
Bを有し、各バス(DB、AB。FIG. 2 is a configuration diagram of the embodiment. The central processing unit 10 has a data bus DB, an address bus AB, and a control bus C.
B, each bus (DB, AB.
CB)には出力部11、コンソール制御装置12、ラン
ダムアクセスメモリ13.14.15.16(RAM−
R1、RAM−R2,RAM−W)ディスク制御装置1
7が接続されている。コンソール制御装置12には入力
部18、表示部19に接続されており、例えば本装置を
操作するオペレータはこの入力部18を介して目的の処
理を行うコマンドデータ等を入力する。またこのコマン
ド等のデータが入力部I8より加わるとコンソール制御
装置12は中央処理装置10に対し入力が加わったこと
を通知し、中央処理装置IOはその入力したデータに対
応する処理を実行する。そして例えばその結果を表示部
19にコンソール制御装置12を介して出力する。また
、その結果がプリンタ等への出力であった場合には出力
部11に出力する。CB) includes an output unit 11, a console control device 12, and a random access memory 13.14.15.16 (RAM-
R1, RAM-R2, RAM-W) Disk control device 1
7 is connected. The console control device 12 is connected to an input section 18 and a display section 19, and, for example, an operator operating the device inputs command data and the like for performing a desired process through the input section 18. When data such as this command is input from the input unit I8, the console control device 12 notifies the central processing unit 10 that the input has been input, and the central processing unit IO executes processing corresponding to the input data. Then, for example, the results are outputted to the display section 19 via the console control device 12. Further, if the result is to be output to a printer or the like, it is output to the output unit 11.
更に、ディスク制御装置17には外部記憶装置20のイ
ンデックスファイル■F1データファイルDF、更新フ
ァイルKFが接続される。Furthermore, the index file (1) F1 data file DF and update file KF of the external storage device 20 are connected to the disk control device 17.
第3図はデータファイルDF内のデータ構成図である。FIG. 3 is a diagram showing the data structure within the data file DF.
mは可変長データを示し、各可変長データはワードの区
切りコード“、”で区分されている。またlレコードは
複数ワードで構成され、各レコードは区切りコードとし
て“ (”で区切られている。そして、各レコードの先
頭から区切コード“;”までのワードデータはキーワー
ドとして構成されている。m indicates variable length data, and each variable length data is separated by a word delimiter code ",". Further, an l record is composed of a plurality of words, and each record is separated by a delimiter code "(".The word data from the beginning of each record to the delimiter code ";" is constituted as a keyword.
このような1つのデータファイルが複数のレコードより
なりワードとレコードとでデータを管理しているが、例
えば目的とするデータがどこに存在するかを求めるため
に、インテ・ツクスフアイルIFが設けられている。One data file is made up of multiple records, and data is managed using words and records. For example, in order to find out where the desired data exists, an internal file IF is provided. There is.
第4図はインデックスファイルの構成図である。FIG. 4 is a diagram showing the structure of the index file.
前述したデータ構成において例えば区切りコード“ (
″の第1番目のワードと次に続く第2番目のワードはキ
ーワードを表している。このキーワード順に各キーに対
しインデックスファイルIFはそのデータファイル内の
アドレス(ポインタ)を対応して記憶している。このキ
ーはすべてのレコードに対して記憶することも可能であ
るが、本実施例においてはブロック単位例えば複数のレ
コード単位でその先頭のキーを対象としてそのポインタ
を設けている。In the data structure mentioned above, for example, the delimiter code " (
The first word of `` and the second word that follows represent a keyword. For each key in this keyword order, the index file IF stores an address (pointer) in the data file correspondingly. This key can be stored for all records, but in this embodiment, the pointer is provided for the first key in blocks, for example, in units of multiple records.
データファイルDF内の各レコードはキーワード順に順
次連続的に記憶されているので、レコードの追加、削除
さらには訂正等が発生した場合にただちにそのレコード
の更新等を行うとデータファイルDF内のすべてのデー
タを再度キーワードの順に配列しなくてはならない。こ
のため実施例においては更新ファイルKFを設は更新を
要するレコードを更新ファイルKFに一旦記憶している
。Each record in the data file DF is stored sequentially and consecutively in the order of keywords, so if a record is added, deleted, or corrected, immediately updating that record will save all records in the data file DF. The data must be arranged in keyword order again. For this reason, in the embodiment, an update file KF is provided, and records that require updating are temporarily stored in the update file KF.
これはリアルタイムでデータを管理する場合を前提とし
ているものではなく、例えば1日の集計環1臼単位の処
理等を対象としたシステムである。This system is not intended to manage data in real time, but is intended for processing, for example, one millimeter of aggregation in one day.
第5図は中央処理装置10内の構成図である。FIG. 5 is a diagram showing the internal configuration of the central processing unit 10. As shown in FIG.
インストラクションメモリ21は命令を記憶している。Instruction memory 21 stores instructions.
アドレスカウンタ22はインストラクションメモリ21
のアドレスを指定するものである。The address counter 22 is the instruction memory 21
This specifies the address of .
インストラクションメモリ21からは、次の命令のアド
レスを指定する信号がアドレスカウンタ22へ、更にラ
ンダムアクセスメモリ13,14゜15.16の読み出
し/書き込みをfh定する信号がアドレス線ABI、A
B2を介してアドレス制御回路23へ、区切コードのデ
ータがコード検出回路24へ、処理回数データが処理カ
ウンタ25へ、命令コードがデコーダ26へ出力される
。前記デコーダ26には制御回路27が接続され、デコ
ーダ26でデコードされた命令に応じた各種の制御信号
を中央処理装置10内の各回路へ出力する。From the instruction memory 21, a signal that specifies the address of the next instruction is sent to the address counter 22, and a signal that determines read/write of the random access memories 13, 14, 15, and 16 is sent to the address lines ABI and A.
Via B2, the delimiter code data is output to the address control circuit 23, the delimiter code data is output to the code detection circuit 24, the processing number data is output to the processing counter 25, and the instruction code is output to the decoder 26. A control circuit 27 is connected to the decoder 26 and outputs various control signals according to the commands decoded by the decoder 26 to each circuit in the central processing unit 10.
アドレス制御回路23はアドレス線ABI、或いはアド
レス線ABZ上のアドレスを初期値として制御回路27
からの制御信号によって更新され、このアドレスをアド
レスバスABに出力する。このアドレスが出力されると
例えばランダムアクセスメモリ14が指示され、データ
バスDBに対しデータを出力する。そしてその結果は演
算回路28、コード検出回路24に加わる。コード検出
回路24はデータが読み出されるごとにそのデータがイ
ンストラクションメモリ21から出力されている区切コ
ードと一致するか否か、更にデータ終了の区切コードで
あるか否かを判別する回路である。演算回路28は前記
読み出されたデータの演算を行う。コード検出回路24
の出力は処理カウンタ25及び制御回路27へ出力され
る。コード検出回路24からデータの終了を示す区切コ
ードが検出された場合は、制御回路27は制御信号の出
力を停止し、アドレスカウンタ22のアドレスを更新し
て、次の処理に移る。一方、コード検出回路によって、
インストラクションメモリから出力されている区切コー
ドと同じ区切コードが検出された場合には処理カウンタ
25内のカウント値を減算カウントし、処理カウンタ2
5内のカウント値が“O”になった時には、この信号を
制御回路27へ出力する結果、制御回路27は前述の如
く次の処理へ移る。The address control circuit 23 uses the address on the address line ABI or the address line ABZ as an initial value, and the control circuit 27
The address is updated by a control signal from the address bus AB and outputs this address to the address bus AB. When this address is output, for example, the random access memory 14 is instructed and outputs data to the data bus DB. The result is then applied to the arithmetic circuit 28 and the code detection circuit 24. The code detection circuit 24 is a circuit that determines, each time data is read, whether the data matches the delimiter code output from the instruction memory 21 and further determines whether the delimiter code indicates the end of data. The arithmetic circuit 28 performs arithmetic operations on the read data. Code detection circuit 24
The output is output to the processing counter 25 and the control circuit 27. When a delimiter code indicating the end of data is detected from the code detection circuit 24, the control circuit 27 stops outputting the control signal, updates the address of the address counter 22, and moves on to the next process. On the other hand, the code detection circuit
If the same delimiter code as the delimiter code output from the instruction memory is detected, the count value in the processing counter 25 is subtracted and the count value in the processing counter 2 is counted.
When the count value in 5 becomes "O", this signal is output to the control circuit 27, and as a result, the control circuit 27 moves on to the next process as described above.
第6図はレコードの読み出しのフローチャートである。FIG. 6 is a flow chart of record reading.
入力部1Bからオペレータの操作によっである特定のキ
ーワードを有するレコードのデータを読み出す等の命令
が加わった時には第6図の処理を中央処理装置10は実
行する。この処理をスタートするとまず第1にインデッ
クスファイルIFをオーブンする処理S1を行い、イン
デックスファイルを続いて読み出す(S2)。そして該
当キーのレコードが存在するポインタを求める(S3)
。When an operator inputs a command to read data of a record having a specific keyword from the input unit 1B, the central processing unit 10 executes the process shown in FIG. 6. When this process is started, first, a process S1 is performed to open the index file IF, and then the index file is read out (S2). Then, find the pointer where the record with the corresponding key exists (S3)
.
インデックスファイルIF内に目的とするキーワードの
レコードが存在するか否かを続いて判別する(S4)、
そして存在する場合には(有)まずデータファイルをオ
ーブン(S5)、続いて該当レコード等を読み出しラン
ダムアクセスメモリ14に格納する(S6)。この処理
によってランダムアクセスメモリ14内に該当するレコ
ードが格納される。続いて読みだしたレコードを記憶し
ているランダムアクセスメモリ14のレコードの最後に
データの終了を示す区切コードとして包NDコードを書
き込む処理(S7)を行う。この処理によって後述する
が中央処理装置から何らかの処理を行うような場合、レ
コードの最終がどこで有るかを判別することができる。Subsequently, it is determined whether a record of the target keyword exists in the index file IF (S4);
If the data file exists, the data file is first opened (S5), and then the corresponding record is read and stored in the random access memory 14 (S6). Through this process, the corresponding record is stored in the random access memory 14. Subsequently, a process (S7) is performed in which a wrap-up ND code is written as a delimiter code indicating the end of data at the end of the record in the random access memory 14 that stores the read record. Through this processing, as will be described later, when some processing is performed from the central processing unit, it is possible to determine where the end of the record is.
次にはデータファイルDFをクローズする処理(S8)
を行う。Next is the process of closing the data file DF (S8)
I do.
判別(S4)において該当キーが存在しない(無)場合
やデータクローズ処理(S8)の後にはインテ・7クス
フアイルをクローズする処理(S9)、さらにはたとえ
ば入力部から要求した処理(StO)を行う。そしてこ
の(310)ではメモリ内のレコードの最後尾にEND
コードが書き込まれているのでそのENDコードデータ
を判別することによってレコードが最終であることを認
識し処理(S I O)を終了することができる。If the corresponding key does not exist (absent) in the determination (S4), or after the data close process (S8), the process of closing the Intel 7 file (S9) and, for example, the process requested from the input unit (StO) is performed. . And in this (310), END is placed at the end of the record in memory.
Since a code has been written, by determining the END code data, it is possible to recognize that the record is final and terminate the process (S I O).
第7図は更新レコードの入力処理のフローチャートであ
る。FIG. 7 is a flowchart of update record input processing.
この更新処理のフローチャートを実行すると、まず更新
レコードの作成(311)を行う。これは入力されたレ
コードをキーワード、更新種別データ、データワードか
らなる更新レコードの形態に変換するものである。本発
明の実施例においてはキーワードによって各レコードを
管理している。When this update process flowchart is executed, an update record is first created (311). This converts the input record into an update record format consisting of a keyword, update type data, and data word. In the embodiment of the present invention, each record is managed using keywords.
また更新種別データとは追加、削除、訂正等である。こ
れによってランダムアクセスメモリ内に更新レコードが
作成されるので、次には更新ファイルKFをオーブンす
る処理(S 12)を行い、その後に処理(Sll)で
作成した更新レコードを更新ファイルKFに書き込み(
313)、つづいて更新ファイルヘッダの変更(S 1
4)を行う。The update type data includes addition, deletion, correction, etc. As a result, an update record is created in the random access memory, the next step is to open the update file KF (S12), and then write the update record created in the process (Sll) to the update file KF (
313), followed by changing the update file header (S 1
Do 4).
更新ファイルKFは順次更新レコードが格納されるので
、その先頭と終わりを記憶しており、前述の更新ファイ
ルヘッダとはヘッダの書き換えによって現在の更新ファ
イルが格納されている領域を求めて変更することである
。更新ファイルヘッダ変更処理(S 14)の後には更
新ファイルをクローズ処理(315)を行い処理を終了
する。The update file KF stores update records sequentially, so it remembers the beginning and end of each record.The above-mentioned update file header means that the area where the current update file is stored is found and changed by rewriting the header. It is. After the update file header change process (S14), the update file is closed (315) and the process ends.
例えば、1日の処理が終了した場合には更新レコードに
よるデータファイルの更新を行う。For example, when one day's processing is completed, the data file is updated using an update record.
第8図は更新レコードによる更新によるマージの動作の
フローチャートである。FIG. 8 is a flowchart of the merging operation by updating with an updated record.
まず、更新処理を実行(スタート)すると、更新処理を
オーブンする処理(520)を行う。更新ファイルKF
内にはキーワード順に格納されているとはかぎらずレコ
ードの追加、訂正、削除、集計が発生した時に更新ファ
イルをオーブンして順次レコード単位で格納するのでキ
ーワード順にはならばれていない。このためオーブン処
理(S20)の後には更新ファイル内の更新レコードを
キーワード順にソートする処理(S21)を行い、まず
更新ファイルを呼び出す(S22)、つづいてデータフ
ァイルを更新するためインデックスファイルオーブンす
る処理(323)を行う。そしてオーブンの後にインデ
ックスファイルを読みだし、ランダムアクセスメモリ1
3 (RAM−X)に格納する。続いてデータファイ
ルをオーブンする処理を行う (S25)。これらの処
理によってインデックスファイル、データファイル、更
新ファイルがすべてオーブンされた状態となる。続いて
インデックスファイルで指示されるデータを読みだしラ
ンダムアクセスメモリRAM −R2にそのレコードを
呼び出し記憶する。さらには最後のレコードの最後尾に
ENDコードを書き込む処理(S26)を行う。処理(
326)は第6図に示したファイル呼び出しの処理フロ
ーチャートと同様である。なお、この処理(S26)に
おいてはファイルはクローズしない、続いて前述した処
理(S26)の後に、該当するレコードの読みだしくS
27)さらにはランダムアクセスメモリ14゜15か
らそれらのレコードを読みだし更新種別による処理(3
28)を行う0例えば集計であるならば処理(328)
で集計処理を実行してレコードを更新する。そしてラン
ダムアクセスメモリ16に書き込む処理を行う(S 2
9)。この処理(S29)の後にレコード長(バイト数
)の累計を求め、それをデータ容量とする処理(330
)を行う。本実施例においては1インデツクス当たりの
データ容量は決められており、一定容量をオーバしたか
否かを判別しく531)、一定容量を越えていれば続い
て新しいインデックス作成処理(332)を行う。そし
てランダムアクセスメモリ16内の新しコード分をデー
タファイルへ書き込む処理(S33)を行い、データ容
量を初期化(334)をする。そして処理(S34)の
後或いは判別(S30)において容量をオーバしていな
いと判別(N)した時には、ランダムアクセスメモリ1
4が終了したか否かを判別する。ランダムアクセスメモ
リ14内のデータが終了してない時、さらにはランダム
アクセスメモリ内16内のデータが終了していない時に
は判別(S35)、(S36)において終了していない
(N)となり、処理(327)から繰り返す。First, when the update process is executed (started), the update process is opened (520). Update file KF
The records are not necessarily stored in keyword order; when records are added, corrected, deleted, or tallied, updated files are opened and sequentially stored record by record, so they are not arranged in keyword order. Therefore, after the oven process (S20), a process of sorting the update records in the update file in keyword order (S21) is performed, first the update file is called (S22), and then an index file oven process is performed to update the data file. Perform (323). Then, after the oven, read the index file and random access memory 1
3 (RAM-X). Next, the data file is opened (S25). Through these processes, the index file, data file, and update file are all in an open state. Subsequently, the data specified by the index file is read out, and the record is called and stored in the random access memory RAM-R2. Furthermore, a process (S26) is performed to write an END code at the end of the last record. process(
326) is similar to the file calling process flowchart shown in FIG. Note that the file is not closed in this process (S26), and after the above-mentioned process (S26), S is executed to read the corresponding record.
27) Furthermore, those records are read from the random access memory 14 and 15 and processed according to the update type (3
28) 0 For example, if it is aggregation, process (328)
Execute aggregation processing and update records. Then, the process of writing to the random access memory 16 is performed (S 2
9). After this process (S29), a process (330
)I do. In this embodiment, the data capacity per index is determined, and it is determined whether the fixed capacity has been exceeded (531), and if the fixed capacity has been exceeded, a new index creation process (332) is subsequently performed. The new code in the random access memory 16 is then written to the data file (S33), and the data capacity is initialized (334). After the process (S34) or when it is determined (N) that the capacity has not been exceeded in the determination (S30), the random access memory 1
4 is completed. When the data in the random access memory 14 is not completed, and furthermore, when the data in the random access memory 16 is not completed, it is determined that the data is not completed (N) in the determination (S35) and (S36), and the process ( Repeat from 327).
一方、判別(335)でランダムアクセスメモリ14
(RAM−R1)のデータの処理を終了した場合(Y)
には更新ファイルに残りの更新レコードがあるかの判別
(337)を行い、更新ファイルがない時には更新ファ
イルら次のデータをリードする処理(338)を行い、
更新ファイルが終了している時には判別(S36)を行
う。そして判別(33,6)においてランダムアクセス
メモIJ15が終了で(Y)であった時にはデータファ
イル内のレコードが終了したいか否かを判別(S39)
する。さらには更新ファイルが終了であるからの判別(
340)を行う。On the other hand, in the determination (335), the random access memory 14
When processing of data in (RAM-R1) is finished (Y)
It is determined whether there are any remaining update records in the update file (337), and if there is no update file, the process of reading the next data from the update file (338) is performed.
If the update file has been completed, a determination is made (S36). Then, in the determination (33, 6), if the random access memo IJ15 is completed (Y), it is determined whether or not the record in the data file is to be completed (S39).
do. Furthermore, it is determined that the updated file has ended (
340).
データファイルが終了あるいは更新ファ・fルが終了で
ない時には次のインデックスの指定を行い(S41)、
再度処理(S26)から行う。If the data file is finished or the update file is not finished, specify the next index (S41),
The process is repeated from step S26.
一方、判別(339)においてデータファイルが終了で
あり、さらに更新ファイルが終了であった時(Y)には
現在の新インデックス群をインデックスファイルへ書き
込む処理(342)を行う。On the other hand, if it is determined in the determination (339) that the data file has ended and that the update file has ended (Y), a process (342) is performed to write the current new index group to the index file.
これによって新しいインデックスが書き込まれる。This will write a new index.
そして続いてデータファイルをクローズ(S43)し、
さらにはインデックスファイルをクローズ(S44)す
る。これによってインデックスファイルとデータファイ
ルが新しく更新される。Then, close the data file (S43),
Furthermore, the index file is closed (S44). This will update the index file and data file.
以上の処理によって更新ファイル内の更新レコードは全
てデータファイルへ更新されてOとなっている。よって
更新ファイルをクリアするため、これに合わせて更新フ
ァイルヘッダの変更を行った後更新ファイルをクローズ
する(345,346)。Through the above processing, all update records in the update file are updated to the data file and become O. Therefore, in order to clear the update file, the update file header is changed accordingly and the update file is closed (345, 346).
以上のべたように本発明によればワードとレコード単位
でデータを管理し、それに区切りコードやキーコードを
設けているので管理が簡単化され、更には処理において
もENDコードによって処理を終了するので自動的に演
算処理を開始、終了することができる。また、別途更新
ファイルを設けているのでデータが代わるたびに更新を
行う必要もなく更新ファイルに書き込むことによってそ
の更新が後に盲動的に行うことができる。As described above, according to the present invention, data is managed in units of words and records, and data is provided with delimiter codes and key codes, which simplifies management.Furthermore, processing is terminated with an END code. Arithmetic processing can be started and ended automatically. Further, since a separate update file is provided, there is no need to update the data every time the data changes, and the update can be performed later blindly by writing to the update file.
以上述べたように本発明によればデータの管理が簡素化
され、さらにデータの処理が一元化できさらにはデータ
形態に最適なハードウェアが設定することができるデー
タ処理装置を得ることができる。As described above, according to the present invention, it is possible to obtain a data processing apparatus in which data management is simplified, data processing can be unified, and hardware can be set optimally for the data format.
第1図は本発明のブロック図、
第2図は実施例のシステム構成図、
第3図はデータ構成図、
第4図はインデックスファイルの構成図、第5図は中央
処理装置の構成図、
第6図はレコードの読み出しの処理のフローチャート、
第7図は更新レコードの入力処理を示すフローチャート
、
第8図は更新処理による更新のフローチャートである。
1・・・外部記憶手段、
2・・・内部記憶手段、
3・・・処理手段、
4・・・書き込み手段、
5・・・更新レコード記憶手段、
6・・・マージ手段。
特許出願人 カシオ計算機株式会社
第
図
第
図
第
図
EI
第
図Figure 1 is a block diagram of the present invention, Figure 2 is a system configuration diagram of an embodiment, Figure 3 is a data configuration diagram, Figure 4 is an index file configuration diagram, and Figure 5 is a central processing unit configuration diagram. FIG. 6 is a flowchart of record read processing, FIG. 7 is a flowchart of update record input processing, and FIG. 8 is a flowchart of updating by update processing. DESCRIPTION OF SYMBOLS 1... External storage means, 2... Internal storage means, 3... Processing means, 4... Writing means, 5... Update record storage means, 6... Merging means. Patent applicant Casio Computer Co., Ltd. Figure Figure Figure EI Figure
Claims (2)
コードで区分されたデータを処理するデータ処理装置に
おいて、 前記レコードをキーワードの順に記憶する外部記憶手段
と、 該外部記憶手段から読み出されたデータを記憶する内部
記憶手段と、 前記内部記憶手段へレコードのデータの読み出しが完了
した際に、データの最後尾にデータ終了の区切コードを
書き込む書き込み手段と、 前記内部記憶手段に記憶されているデータを順に読み出
して指定される処理を実行すると共に、読み出したデー
タが予め定められた区切コードと一致するまで、もしく
は前記データ終了の区切コードが検出されるまで前記処
理を実行する処理手段とを有することを特徴とするデー
タ処理装置。(1) A data processing device that processes data in which records consisting of words and a plurality of words are divided by delimiter codes, comprising an external storage means for storing the records in the order of keywords, and data read from the external storage means. an internal storage means for storing data; a writing means for writing a data end delimiter code at the end of the data when reading data of a record into the internal storage means is completed; and a write means for writing a data end delimiter code at the end of the data; and a processing means for sequentially reading out the data and executing specified processing, and executing the processing until the read data matches a predetermined delimiter code or until the data end delimiter code is detected. A data processing device characterized by:
コードで区分されたデータを処理するデータ処理装置に
おいて、 レコードをキーワードの順に記憶する外部記憶手段と、 入力されたデータを更新レコードとして逐次記憶する更
新レコード記憶手段と、 前記外部記憶手段内のデータを読み出して指定された処
理を実行すると共に、読み出した区切コードが予め定め
られた区切コードと一致した際に前記処理を終了する処
理手段と、前記更新レコード記憶手段内の各更新レコー
ドを前記外部記憶手段内にレコードのキーワード順にマ
ージするマージ手段とよりなることを特徴とするデータ
処理装置。(2) In a data processing device that processes data in which words and records consisting of multiple words are divided by delimiter codes, external storage means stores records in the order of keywords, and sequentially stores input data as update records. update record storage means; processing means for reading data in the external storage means and executing specified processing, and for terminating the processing when the read delimiter code matches a predetermined delimiter code; A data processing device comprising: merging means for merging each update record in said update record storage means into said external storage means in the order of keywords of the records.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63175403A JPH0224714A (en) | 1988-07-14 | 1988-07-14 | Data processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63175403A JPH0224714A (en) | 1988-07-14 | 1988-07-14 | Data processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0224714A true JPH0224714A (en) | 1990-01-26 |
Family
ID=15995484
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63175403A Pending JPH0224714A (en) | 1988-07-14 | 1988-07-14 | Data processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0224714A (en) |
-
1988
- 1988-07-14 JP JP63175403A patent/JPH0224714A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0224714A (en) | Data processor | |
| JPS62226375A (en) | Image information search method | |
| US20220138338A1 (en) | Data replacement apparatus, data replacement method, and program | |
| JP2002032357A (en) | In-place memory management for fft | |
| JP2822869B2 (en) | Library file management device | |
| JPS62287350A (en) | Index integrally updating system | |
| JPH02151944A (en) | data processing equipment | |
| JPH0225946A (en) | File controller | |
| JP2615046B2 (en) | Record addition processing method | |
| JPH03147036A (en) | variable length data processing device | |
| JPH05120343A (en) | Index updating system | |
| JPH06203075A (en) | Electronic telephone directory | |
| JP2507399B2 (en) | Database equipment | |
| JPH07182215A (en) | Data management device | |
| JP3698945B2 (en) | Data update processing method | |
| JPH05151042A (en) | Method for designing file for computer processing system | |
| JPH0317727A (en) | Record input/output control system | |
| JP2001134480A (en) | System and method for file exclusive control and recording medium | |
| JPH012133A (en) | file management device | |
| JPH04205173A (en) | Information retrieval system | |
| JPH01243143A (en) | System for adding record in sequential organization file system | |
| JPH01163848A (en) | Disk file double update prevention method | |
| JPH02257282A (en) | Table preparation processor | |
| JPH0488476A (en) | Data totalization system | |
| JPH04172541A (en) | Record storage unit |