JPH0225948A - record data processing device - Google Patents
record data processing deviceInfo
- Publication number
- JPH0225948A JPH0225948A JP63175110A JP17511088A JPH0225948A JP H0225948 A JPH0225948 A JP H0225948A JP 63175110 A JP63175110 A JP 63175110A JP 17511088 A JP17511088 A JP 17511088A JP H0225948 A JPH0225948 A JP H0225948A
- Authority
- JP
- Japan
- Prior art keywords
- record
- update
- data
- word
- 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
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 record data processing device such as an office computer that updates records in various files such as a sales file, an inventory file, and a personnel file.
[従来の技術J
従来、売上伝票等のデータを処理するものとしてパーソ
ナルコンピュータ、オフィスコンピュータ、汎用コンピ
ュータ等の事務処理装置が一般に使用されている。これ
らの事務処理装置においては1例えば売上明細ファイル
、売上集計ファイル、得意先別売上ファイル、在庫ファ
イル等を記憶管理している。[Prior Art J] Conventionally, office processing devices such as personal computers, office computers, and general-purpose computers have been generally used to process data such as sales slips. These office processing devices store and manage, for example, a sales detail file, a sales total file, a sales file by customer, an inventory file, and the like.
[発明が解決しようとする課題]
ところで、このような各種のファイルを記憶管理する為
には、システムエンシェアが予め各種ノファイルに対応
するファイル管理システムを設計しておかなければなら
ない。[Problems to be Solved by the Invention] Incidentally, in order to store and manage such various files, System Enshare must design in advance a file management system compatible with the various files.
即ち、ファイルのレコード構造は、各ファイル毎に異っ
ている為、入力された伝票データに基づいて対応するフ
ァイルの内容を更新する為には、各ファイルにl:lに
対応して更新用プログラムを設計する必要があり、また
、入力データに対応するファイルの内容を所望する更新
の種類1例えば、「追加」、「削除」等別に個々に更新
する為には、更新の種類に応じた更新データを入力する
ためのプログラムと、更新の種類別に入力された更新デ
ータによりファイルを更新するためのプログラムとを個
々の更新の種類に対応させて設計する必要がある。した
がって、ファイル数が非常に多い場合には、そのプログ
ラム設計に多大な時間と手間を要していた。In other words, the record structure of the file is different for each file, so in order to update the contents of the corresponding file based on the input slip data, it is necessary to create an update file for each file corresponding to l:l. It is necessary to design a program, and in order to update the contents of the file corresponding to the input data individually according to the desired update type 1, for example, "add", "delete", etc., it is necessary to design a program according to the update type. It is necessary to design a program for inputting update data and a program for updating files with update data input for each type of update in correspondence with each type of update. Therefore, when the number of files is very large, it takes a lot of time and effort to design the program.
この発明の課題はファイル管理システムの設計が筒中で
、その設計に要する労力を著しく低減できると共に、フ
ァイル更新を効率良く行うことができるようにすること
である。An object of the present invention is to significantly reduce the labor required for designing a file management system while the design of the file management system is in progress, and to enable efficient file updating.
[課題を解決するための手段] 第1の発明の手段は次の通りである。[Means to solve the problem] The means of the first invention is as follows.
ファイル記憶手段tA(@1図(A)の機能ブロック図
を参照、以下同じ)は、lレコードがキーワードおよび
データワードから構成され、各レコードをキーワード順
に配列して記憶するフロッピーディスクやハードディス
ク等である。The file storage means tA (see the functional block diagram in Figure 1 (A); the same applies hereinafter) is a floppy disk, hard disk, etc., in which each record is composed of a keyword and a data word, and each record is arranged and stored in the order of the keyword. be.
更新レコード生成手段2Aは、このファイル記憶手段I
A内のレコードに対する更新を行う為に、入力されたレ
コードデータに基づいてキーワード、データワード、更
新内容から成る更新レコードを生成する。ここで、「更
新内容」とは、例えば「追加」、「削除」、「訂正」、
「集計」のいずれかを示す。The update record generation means 2A stores this file storage means I.
In order to update records in A, an update record consisting of a keyword, data word, and update content is generated based on input record data. Here, "updated content" includes, for example, "addition", "deletion", "correction",
Indicates either "aggregation".
計時ワード生成手段3Aは更新レコードの生成時を示す
計時データを生成し、当該更新レコードに計時ワードと
して挿入する。ここで、計時データとは、更新レコード
の生成日時を示す日時データあるいは連続番号を計数す
るカウンタ値等を示す。The clock word generation means 3A generates clock data indicating the generation time of an update record, and inserts it into the update record as a clock word. Here, the clock data refers to date and time data indicating the generation date and time of an update record, a counter value for counting a serial number, or the like.
更新レコード記憶手段4Aは計時ワード生成手段3Aで
計時ワードが生成された更新レコードを記憶するフロッ
ピーディスクやハードディスク等である。The update record storage means 4A is a floppy disk, a hard disk, or the like that stores an update record for which a timekeeping word has been generated by the timekeeping word generation means 3A.
レコード編成手段5Aは更新レコード記憶手段4A内の
更新レコードをキーワードおよび計時ワードの順に並べ
換える。The record organizing means 5A rearranges the updated records in the updated record storage means 4A in the order of keywords and timekeeping words.
更新処理手段6Aはレコード編成手段5Aで並べ換えら
れた順に各更新レコードをファイル記憶手段IA内のレ
コードに更新するが、この際に、更新レコードの更新内
容に基づく種類の更新処理(例えば、追加処理、削除処
理、訂正処理、集計処理)を行う。The update processing means 6A updates each update record to the record in the file storage means IA in the order rearranged by the record organization means 5A, but at this time, it performs a type of update processing (for example, additional processing) based on the update contents of the update record. , deletion processing, correction processing, aggregation processing).
第2の発明の手段は次の通りである。The means of the second invention is as follows.
ファイル記憶手段IB(第1図の!R能ブロック図を参
隔、以下同じ)および更新レコード生成手段2Bは、上
記第1の発明に係るファイル記憶手段IA、更新レコー
ド生成手段2Aに対応する同様の構成となっている。The file storage means IB (see the !R function block diagram in FIG. 1, the same applies hereinafter) and the update record generation means 2B are similar to the file storage means IA and the update record generation means 2A according to the first invention. The structure is as follows.
所属ワード生成手段3Bは予め設定されている更新レコ
ードの所属を示す所属データを当該更新レコードに所属
ブードとして挿入する。ここで、所属データとは1例え
ば、レコードデータ処理装置固有のマシンナンバ、使用
者固有のユーザナンバ等で、生成された更新レコードの
所属を表わしている。The affiliation word generation means 3B inserts affiliation data indicating the affiliation of the update record set in advance as an affiliation word into the update record. Here, the affiliation data is, for example, a machine number unique to the record data processing apparatus, a user number unique to the user, etc., and represents the affiliation of the generated update record.
更新レコード記憶手段4Bは所属ワード生成手段3Bで
所属ワードが生成された更新レコードを記憶するフロッ
ピーディスクやハードディスク等である。The update record storage means 4B is a floppy disk, a hard disk, or the like that stores the update record for which the affiliation word has been generated by the affiliation word generation means 3B.
更新処理手段5Bは更新レコード記憶手段4B内の各更
新レコードをファイル記憶手段IB内のレコードへ更新
する際に、更新レコードの更新内容に基づく種類の更新
処理を行う。When updating each update record in the update record storage unit 4B to a record in the file storage unit IB, the update processing unit 5B performs a type of update process based on the update content of the update record.
報知手段6Bは更新処理手段5Bでの更新処理時にエラ
ーとなった際に、エラーとなった更新レコードの所属ワ
ードに基づいて当該更新レコードの所属を報知する表示
装置等である。The notification means 6B is a display device or the like that, when an error occurs during update processing in the update processing means 5B, notifies the affiliation of the update record based on the affiliation word of the update record in which the error occurred.
[作 用] 第1の発明の手段の作用は次の通りである。[Work] The operation of the means of the first invention is as follows.
まず、伝票データ等を入力すると、更新レコード生成手
段2Aは入力されたレコードデータに基づいてキーワー
ド、データワード、更新内容から成る更新レコードを生
成する。また、計時ワード生成手段3Aは更新レコード
が生成されると、更新レコードの生成時を示す計時デー
タを生成し、当該更新レコードの所定位置に計時ワード
として挿入する。First, when slip data and the like are input, the update record generating means 2A generates an update record consisting of keywords, data words, and update contents based on the input record data. Further, when an update record is generated, the clock word generation means 3A generates clock data indicating the time when the update record was generated, and inserts it as a clock word into a predetermined position of the update record.
このようにして計時ワードが生成挿入された更新レコー
ドは、更新レコード記憶手段4Aに記憶されると共に、
レコード編成手段5Aによってキーワード順および計時
ワード順に並べ換えられる。The update record in which the clock word has been generated and inserted in this way is stored in the update record storage means 4A, and
The records are rearranged by the record organizing means 5A in keyword order and clock word order.
そして、更新処理手段6Aはファイル更新指令等に応答
し、レコード編成後の更新レコードをファイル記憶手段
IA内のレコードに累計する処理を実行するが、この場
合、更新レコードの更新内容に基づく種類の更新処理を
行う。Then, the update processing means 6A responds to the file update command, etc., and executes a process of accumulating the updated records after record organization into the records in the file storage means IA. Perform update processing.
したがって、入力レコードに基づいて生成された更新内
容を含む更新レコードを更新レコード記憶手段4Aに蓄
え、これを任意の時点で読み出すことにより、この更新
レコードの更新内容に基づいて各レコード毎に異なる更
新種別で対応ファイルの更新を任意時点で行えるので、
入力レコードに基づく更新レコードの生成処理内容とこ
の更新1〆コードに基づくファイルの更新処理内容とを
独立して設定でき、その設定も非常に単独化され、また
システムの設計も各々独立に設計でき、その設計に要す
る労力を著しく低減することができる。更に、更新レコ
ードに含まれている一種のキーワードとしての計時ワー
ドに基づいて計時ワードの順に更新レコードが編成され
るので、ファイルの更新をデータの入力順序にしたがっ
て時系列的に効率良く処理することができる。Therefore, by storing an update record including update contents generated based on an input record in the update record storage means 4A and reading it at an arbitrary time, different updates can be made for each record based on the update contents of this update record. You can update compatible files by type at any time, so
The contents of the update record generation process based on the input record and the file update process based on this update 1 code can be set independently, the settings can be very individualized, and the system design can be designed independently for each. , the effort required for its design can be significantly reduced. Furthermore, since the update records are organized in the order of the clock words based on the clock word included in the update record as a type of keyword, file updates can be efficiently processed in chronological order according to the data input order. I can do it.
次に、第2の発明の手段の作用を説明する。Next, the operation of the means of the second invention will be explained.
まず、伝票データ等を入力すると、更新レコード生成手
段2Bは入力されたレコードデータに基づいてキーワー
ド、データワード、更新内容から成る更新レコードを生
成する。また、所属ワード生成手段3Bは更新レコード
が生成されると、その更新レコードの所定位置にその所
属を示す所属データを当該更新レコードの所属ワードと
して挿入する。First, when slip data and the like are input, the update record generating means 2B generates an update record consisting of keywords, data words, and update contents based on the input record data. Furthermore, when an update record is generated, the affiliation word generation means 3B inserts affiliation data indicating the affiliation into a predetermined position of the update record as an affiliation word of the update record.
このようにして所属ワードが挿入された更新レコーVは
、更新レコード記憶手段4Bに記憶される。The update record V into which the belonging word has been inserted in this way is stored in the update record storage means 4B.
そして、更新処理手段5Bはファイル更新指令等に、応
答し、更新レコードをファイル記憶手段IB内のレコー
ドに累計する処理を実行するが、この場合、更新レコー
ドの更新内容に基づく種類の更新を行う、この際、更新
エラーが発生すると、エラーとなった更新レコードの所
属ワードに基づいて当該更新レコードの所属を報知する
。Then, the update processing means 5B responds to the file update command etc. and executes a process of accumulating the updated records in the records in the file storage means IB. In this case, the update processing means 5B performs a type of update based on the update contents of the updated record. At this time, if an update error occurs, the affiliation of the update record is notified based on the affiliation word of the update record in which the error occurred.
したがって、この第2の発明においても上述した第1の
発明と同様に、システム設計が簡単で、その設計に要す
る労力を著しく低減することができる。更に、更新レコ
ードにレコードの所属ワードを含めることにより、任意
時点で行われるファイル更新にエラーが生じた場合には
そのレコードが例えばどこで、誰が作成したものか等を
報知することができる。Therefore, in the second invention, as in the first invention described above, the system design is simple and the labor required for the design can be significantly reduced. Furthermore, by including the word to which the record belongs in the update record, if an error occurs in the file update performed at any time, it is possible to notify where the record was created, by whom, etc.
[実施例]
以下、一実施例を第2図〜第11図を参照して説明する
。[Example] An example will be described below with reference to FIGS. 2 to 11.
第2図はデータ通信システムを構築するワークステーシ
ョンとしてのレコードデータ処理装置を示したブロック
回路図である。FIG. 2 is a block circuit diagram showing a record data processing device as a workstation for constructing a data communication system.
入力装置llは伝票データ等の各種のデータや各種のコ
マンドをキー人力するもので、そのキーボード上には、
テンキー、文字キー、各種のファンクションキー等が備
えられている。この入力装置11から入力されたデータ
は、入力処理装置12に送られる。The input device ll is used to manually enter various data such as slip data and various commands.
It is equipped with a numeric keypad, character keys, and various function keys. Data input from this input device 11 is sent to an input processing device 12.
入力処理装置12は入力装2211からの入力データを
処理し、その処理結果のデータを入力レコードメモリ1
3に順次書き込む、この場合、入力処理装2112は入
力レコードメモリ13に対してl伝票分のルコードから
なるデータもしくはl伝票分の複数レコードからなるデ
ータを入力すると、l伝票分のデータの入力終了を指示
するキーの操作に応答してレコード生成装g14を起動
させる。なお、入力レコードメモリ13は入力レコード
の各ワードを記憶するもので、入力レコードの各ワード
データは、予め定められたワード陥に対応して記憶され
ている。The input processing device 12 processes input data from the input device 2211 and stores the data as a result of the processing in the input record memory 1.
In this case, when the input processing device 2112 inputs data consisting of one document's worth of codes or data consisting of a plurality of records for one document to the input record memory 13, the input of data for one document is completed. The record generation device g14 is activated in response to a key operation instructing the record generation device g14. The input record memory 13 stores each word of the input record, and each word data of the input record is stored in correspondence with a predetermined word pattern.
レコード生成装置14は入力レコードメモリ13からの
入力レコードをレコード指定メモリ15内に予め設定さ
れている設定内容に基づいて処理することにより、後述
するマスタファイルの内容を更新するた為のメンテナン
スレコードを生成してメンテナンスレコードメモリ16
に書き込む、この場合、レコード生成装置14は設定メ
モリ17内に記憶されている各種のデータ(日時データ
、プロセスID、マシンID、ユーザID、棚ID)を
ワークメモリ18にセーブしておき、このワークメモリ
18から予め決められている所定のデータを取り出すと
共に、生成したメンテナンスレコードの所定位置にワー
クメモリ18から取り出した所定のデータを挿入して成
るレコード形態のメンテナンスレコードをメンテナンス
レコードメモリ16に書ぎ込む、なお、メンテナンスレ
コードメモリ16はレフーFJl?定メモリ15の設定
内容に応じて複数ファイル分のメンテナンスレコードを
記憶可能なもので、レコード生成装2114はテーブル
メモリ19の内容を参照し、メンテナンスレコードメモ
リ16に古き込まれたメンテナンスレコードに対応する
ファイル名がテーブルメモリ19に登録されているかの
チエツクを行い、登録されていない場合にはそれをテー
ブルメモリ19、メンテナンスファイル記録部20に登
録する。The record generation device 14 processes the input record from the input record memory 13 based on the settings preset in the record designation memory 15, thereby generating a maintenance record for updating the contents of the master file, which will be described later. Generate maintenance record memory 16
In this case, the record generation device 14 saves various data (date and time data, process ID, machine ID, user ID, shelf ID) stored in the setting memory 17 in the work memory 18, and A maintenance record in the form of a record is written in the maintenance record memory 16 by extracting predetermined data from the work memory 18 and inserting the predetermined data extracted from the work memory 18 into a predetermined position of the generated maintenance record. In addition, the maintenance record memory 16 is refu FJl? The record generation device 2114 refers to the contents of the table memory 19 and corresponds to the maintenance records stored in the maintenance record memory 16. It is checked whether the file name is registered in the table memory 19, and if it is not registered, it is registered in the table memory 19 and the maintenance file recording section 20.
レコード指定メモリ15には入力レコードメモリ13の
ワード崩で表現されたキーワード、データワードの他、
更新対象のファイル名、更新の内容を示すデータがレコ
ード指定データとして入力装置11から任意に設定記憶
されている。なお、レコード指定メモリ15は複数のレ
コード指定データを記憶可能なものである。In addition to keywords and data words expressed in word collapse from the input record memory 13, the record specification memory 15 stores
Data indicating the file name to be updated and the contents of the update are arbitrarily set and stored from the input device 11 as record designation data. Note that the record designation memory 15 is capable of storing a plurality of record designation data.
設定メモリ17は日時データ、プロセスID、マシンI
D、ユーザID、柵IDを記憶するもので、日時データ
は時計回路部21から所定のタイミング毎に入力された
現在の日時データ、また、プロセスID、マシンIn、
ユーザID、!!IIDは、入力装!!11から入力さ
れた設定データである。ここで、日時データは更新レコ
ードを生成した日時を示すデータである。また、プロセ
スID、マシンID、ユーザID、1lIDは、更新レ
コードがどの7’Oセスで、どのマシンで、どのユーザ
で、どの棚で作られたかその所属を示す為のデータで、
プロセスIDはレコード入力処理、更新レコード生成処
理等の処理の種類を示す識別データ、マシンrDはネッ
トワークシステムを構成する各レコードデータ処理装置
に夫々対応して予め決められているマシンナンバのうち
自己のマシンナンバを示す、ユーザIDは一般使用者固
有の識別データ、柵IDは例えばユーザの所属グループ
、つまり企業の部、課等を識別するデータである。The setting memory 17 contains date and time data, process ID, and machine I.
D. It stores the user ID and the fence ID, and the date and time data includes the current date and time data input from the clock circuit section 21 at each predetermined timing, as well as the process ID, machine In,
User ID,! ! IID is an input device! ! This is the setting data input from 11. Here, the date and time data is data indicating the date and time when the update record was generated. In addition, the process ID, machine ID, user ID, and 1l ID are data that indicate which 7'O process, machine, user, and shelf the updated record belongs to.
The process ID is identification data indicating the type of processing such as record input processing and update record generation processing. The user ID, which indicates the machine number, is identification data unique to a general user, and the fence ID is data that identifies, for example, the group to which the user belongs, that is, the department or division of the company.
メンテナンスファイル記憶部20はフロッピーディスク
やハードディスク等によって構成され、レコード生成装
置14によって作成されたファイル更新用のメンテナン
スレコードを各種ファイルに対応して記憶するもので、
ファイル更新装置22に対して入力?tfillからフ
ァイルの更新を指示すると、ファイル更新装置22によ
ってメンテナンスファイル記憶部20の内容が順次読み
出される。The maintenance file storage unit 20 is composed of a floppy disk, a hard disk, etc., and stores maintenance records for file updates created by the record generation device 14 in correspondence with various files.
Input to file update device 22? When a file update is instructed from tfill, the contents of the maintenance file storage section 20 are sequentially read out by the file update device 22.
ファイル更新装置22はメンテナンスファイル記憶部2
0から読み出したメンテナンスレコードのファイル名に
したがってマスタファイル記憶部23内の対応するファ
イルを指定し、メンテナンスレコードの「更新内容」に
応じた更新処理を更新用メモリ24を用いて行う、また
、ファイル更新装置22はファイル更新時のエラー検出
を行い、エラー内容をエラー表示部25から報知する。The file update device 22 is a maintenance file storage section 2
Specify the corresponding file in the master file storage unit 23 according to the file name of the maintenance record read from 0, and use the update memory 24 to perform update processing according to the "update content" of the maintenance record. The update device 22 detects errors when updating files, and notifies the error contents from the error display section 25.
なお、送受信制御装置26はネットワークシステムを構
築する他のレコードデータ処理装置との間でデータの送
受信を行う通信装置で、マスタファイル記録部23に存
在しないメンテナンスレコードが作成された場合、レコ
ード生成装置14はそれをメンテナンスファイル記憶部
20等から読み出し、送受信制御装置26から他のレコ
ードデータ処理装置に送信し、また、レコード生成装置
t14はそれとは逆に他のレコードデータ処理装置から
送受信制御装W126を介して送信されて来たメンテナ
ンスレコードを取り込んでメンテナンスファイル記憶部
20に書き込む。Note that the transmission/reception control device 26 is a communication device that sends and receives data with other record data processing devices constructing the network system, and when a maintenance record that does not exist in the master file recording unit 23 is created, the record generation device 14 reads it from the maintenance file storage unit 20 etc. and transmits it from the transmission/reception control device 26 to another record data processing device, and conversely, the record generation device t14 reads it from the other record data processing device to the transmission/reception control device W126. The maintenance record transmitted via the server is taken in and written into the maintenance file storage section 20.
次に本実施例の動作を説明する。Next, the operation of this embodiment will be explained.
いま、入力装Mllから伝票データ等を入力すると、こ
のデータは入力処理装W112に入力される。すると、
入力処理装M12は入力データを処理し、その処理結果
をワードデータとして入力レコードメモリ13に順次書
き込む、この場合、第3図に示すように、入力レコード
メモリ13にはその各ワード崩「■宜J、rI2J、r
IxJ−・・・rlnJに対応して入力レコードの各ワ
ードデータ「m】」、「m2」、「m3」・・・・・φ
rmnJが記憶されている。なお、図中「、Jはワード
の区切りコードを示しており、各ワードデータは可変長
データから成っている(以下、同じ)。Now, when slip data and the like are input from the input device Mll, this data is input to the input processing device W112. Then,
The input processing device M12 processes the input data and sequentially writes the processing results as word data into the input record memory 13. In this case, as shown in FIG. J,rI2J,r
Each word data "m]", "m2", "m3" of the input record corresponding to IxJ-...rlnJ...φ
rmnJ is stored. In the figure, ", J" indicates a word delimiter code, and each word data consists of variable length data (the same applies hereinafter).
しかして、入力レコードメモリ13に対してl伝票分の
レコードデータの入力が完了すると、入力処理装置12
はレコード生成装置14を起動させる。When the input of record data for l slips into the input record memory 13 is completed, the input processing device 12
starts the record generation device 14.
これによってレコード生成装fi14はレコード指定メ
モリ15内に予め設定されているレコード指定データに
基づいて入力レコードメモリ13内の入力レコードから
メンテナンスレコードを生成する。Thereby, the record generation device fi14 generates a maintenance record from the input record in the input record memory 13 based on the record designation data set in advance in the record designation memory 15.
いま、入力レコードメモリ13には第4図に示すように
各種のファイルに対応してレコード指定データが設定さ
れているものとする。即ち、入力レコードメモリ13に
は予めユーザが任意に設定した更新対象のファイル名、
1つまたは複数のキーワード、更新の内容を示すデータ
、データワードがレコード指定データとして記憶されて
おり、このレコード指定データのうちキーワード、デー
タワードは入力レコードメモリ13のワード動で表され
ている0例えば、第4図に示すように、レコード指定デ
ータRED 1は、ファイル名がrFa J 、キーワ
ードがrIz、I3J、更新内容が「集計」、データワ
ードがrI5.I6、I+、I4Jから構成され、また
、レコード指定データRED2はファイル名がrFe
J 、キーワードがrI+J、更新内容が「集計」、デ
ータワードがr I 13. I +aJから構成さ
れ、更に、レコード指定データRED nは、ファイル
名がrFkJ 、キーワードがri5.I6J、更新内
容が「追加」、データワードがrIs、Iq、I22、
I23」から構成されている。ここで、レコード指定デ
ータ内の更新内容として本実施例においては「追加」、
「削除」、「訂正」、「集計」の4種類の中からいずれ
かが設定される。なお、図中「;」はファイル名とキー
ワードとの間およびキーワードと更新内容との間の境界
を示す区切りコードである。It is now assumed that record designation data is set in the input record memory 13 in correspondence with various files as shown in FIG. That is, the input record memory 13 contains the file name to be updated arbitrarily set by the user in advance,
One or more keywords, data indicating update contents, and data words are stored as record designation data, and among this record designation data, keywords and data words are represented by word movements in the input record memory 13. For example, as shown in FIG. 4, record designation data RED 1 has a file name of rFa J, keywords of rIz, I3J, update content of "totalization", and data word of rI5. It consists of I6, I+, and I4J, and the record designation data RED2 has a file name of rFe.
J, keyword is rI+J, update content is "tally", data word is rI 13. The record designation data RED n is composed of I + aJ, and the file name is rFkJ and the keyword is ri5. I6J, update content is "addition", data words are rIs, Iq, I22,
I23". Here, in this example, the update content in the record specification data is "add",
One of the four types of "deletion", "correction", and "aggregation" is set. Note that ";" in the figure is a delimiter code that indicates a boundary between a file name and a keyword and between a keyword and updated content.
このようなレコード指定データに基づいて入力レコード
メモリ13内の入力レコードからメンテナンスレコード
を生成する場合、レコード生成装置14は第5図および
第6図のフローチャートにしたがって処理動作を実行す
る。なお、第5図は生成処理、第6図はその後処理を示
したフローチャートである。When generating maintenance records from input records in the input record memory 13 based on such record designation data, the record generation device 14 executes processing operations according to the flowcharts of FIGS. 5 and 6. Note that FIG. 5 is a flowchart showing the generation processing, and FIG. 6 is a flowchart showing the subsequent processing.
レコード生成装置14はその起動により第5図のフロー
チャートにしたがった動作を実行開始する。先ず、レコ
ード生成波M14はレコード指定メモリ15に予め設定
されているファイル数分のメモリ領域をメンテナンスレ
コードメモリ16に確保する(ステップAI)、次に、
設定メモリ17内に予め設定されている各種のデータ、
即ち、日時データ、プロセスID、マシンID。When the record generation device 14 is activated, it starts executing operations according to the flowchart shown in FIG. First, the record generation wave M14 secures a memory area for the number of files preset in the record designation memory 15 in the maintenance record memory 16 (step AI), and then,
Various data preset in the setting memory 17,
That is, date and time data, process ID, and machine ID.
ユーザID、[IDを読み出してワークメモリ18にセ
ーブする(ステップA2)、その内1日時テータ、プロ
セスID、マシンIDをワークメモリ18から選び出し
、それを可変長データ、つまり、本実施例において採用
する各種の区切りコードにかち合わず2 しかも有効デ
ータの長さに応じたバイト数からなる可変長データに変
換してワークメモリ18にセーブしておく(ステップA
3)。Read the user ID, [ID and save it in the work memory 18 (step A2), select one date/time data, process ID, and machine ID from the work memory 18, and use it as variable length data, that is, adopted in this embodiment. If the data does not match the various delimiter codes, it is converted into variable length data consisting of the number of bytes corresponding to the length of the valid data and saved in the work memory 18 (Step A
3).
このような初期設定処理が終ると、レコード指定メモリ
15内に設定されているレコード指定データをその先頭
から読み出し、このレコード指定データ内のファイル名
がテーブルメモリ19に登録されているかをチエツクす
る(ステップA4)、ここで、該当ファイル名がテーブ
ルメモリ19に登録されていなければ、メンテナンスフ
ァイル記憶部20の空エリアに当該ファイル名を書き込
んで新たなファイルを作成する為のファイルエリアを確
保する(ステップA5)0次に、初期設定時にワークメ
モリ18内にセーブした日時データ、フロセスID、マ
シンID、ユーザID、柵IDを読み出し、メンテナン
スファイル記憶部20内に確保した新たなファイルエリ
アにそのヘッダー情報として書き込む(ステップA6)
、また、テーブルメモリ19にもそのファイル名を占き
込んでおく(ステップA7)、このようにテーブルメモ
リ19に登録されていない新たなファイル名が指定され
た場合には、メンテナンスファイル記憶部20にそのフ
ァイルエリアを確保した上で当該ファイル名がテーブル
メモリ19に記憶される為、テーブルメモリ19にはメ
ンテナンスファイル記憶部20内の全てのメンテナンス
レコードに対応するファイル名が登録されることになる
。When such initial setting processing is completed, the record designation data set in the record designation memory 15 is read from the beginning, and it is checked whether the file name in this record designation data is registered in the table memory 19 ( Step A4): If the file name is not registered in the table memory 19, the file name is written in the empty area of the maintenance file storage unit 20 to secure a file area for creating a new file ( Step A5) Next, read the date and time data, Floss ID, machine ID, user ID, and fence ID that were saved in the work memory 18 at the time of initial setting, and store the header in a new file area secured in the maintenance file storage unit 20. Write as information (step A6)
Also, the file name is stored in the table memory 19 (step A7). When a new file name that is not registered in the table memory 19 is specified in this way, the maintenance file storage unit 20 Since the file name is stored in the table memory 19 after securing the file area, the file names corresponding to all maintenance records in the maintenance file storage section 20 are registered in the table memory 19. .
しかして、指定ファイル名がテーブルメモリ19に既に
登録されている場合または上述の如くテーブルメモリ1
9に新規登録した場合には、ステップA8に進み、メン
テナンスレコードメモリ16のフル状態をチエツクする
。ここで、メンテナンスレコードメモリ16に予め決め
られている最大レコード長分のデータを書き込むだけの
空エリアが残っていれば、メンテナンスレコードの生成
処理を行う(ステップA9〜A13)。Therefore, if the specified file name is already registered in the table memory 19, or as described above,
9, the process advances to step A8 to check whether the maintenance record memory 16 is full. Here, if an empty area remains in the maintenance record memory 16 to which data for a predetermined maximum record length can be written, maintenance record generation processing is performed (steps A9 to A13).
いま、レコード指定メモリ15に設定されている1番目
のレコード指定データREDI(第4図参照)に対応す
るメンテナンスレコードを生成する場合を例に挙げて説
明する。なお、第5図中(al) 〜(a5)はステッ
プA9〜A13の各ステップにおけるメンテナンスレコ
ードの生成過程に対応してメンテナンスレコードメモリ
16にセットされる内容を具体的に示したものである。Now, an example will be described in which a maintenance record corresponding to the first record designation data REDI (see FIG. 4) set in the record designation memory 15 is generated. Note that (al) to (a5) in FIG. 5 specifically show the contents set in the maintenance record memory 16 corresponding to the maintenance record generation process in each step of steps A9 to A13.
先ず、レコードのスタートを示す区切りコードr (J
ヲメンテナンスレコードメモリ16に書き込んでアド
レスの更新を行う(ステップA9)。First, a delimiter code r (J
The address is updated by writing it into the maintenance record memory 16 (step A9).
次に、ワークメモリ18内のマシンID、プロセスID
を読み増ってメンテナンスレコードメモリ16に書き込
みながらアドレスの更新を行い、そして区切りコード「
、」を書き込む(ステップA10)0次に、1番目のレ
コード指定データREDi内のキーワード「工2」、「
I3」で示される入力レコードメモリ13内のワードデ
ータ「ml」、「m5」を区切りコード「、」と共に順
次書き込みながらアドレスの更新を行う(ステップA1
1)、そして、ワークメモリ18内の日時データを読み
取ってメンテナンスレコードメモリ16に書き込みなが
らアドレスの更新を行い、区切りコード「、」を書き込
む(ステップA12)、続いて、1番目のレコード指定
データRED I内の更新内容をメンテナンスレコード
メモリ16に書き込み1次で区切りコード「、」を書き
込んだのち、当該レコード指定データREDl内のワー
ドデータ(入力レコードメモリ13の各ワード陽で示さ
れている)に基づいてメンテナンスレコードメモリ16
内の各入力ワードを配列し、もしくは特定ワードを生成
してメンテナンスレコードメモリ16に書き込む0例え
ば、第4図に示すように、レコード指定データRED
1が入カワード崩「I5」、rI6J’、r工+ J
。Next, the machine ID and process ID in the work memory 18
The address is updated while reading and writing to the maintenance record memory 16, and the delimiter code "
," (Step A10) 0 Next, write the keywords "Work 2" and "
The address is updated while sequentially writing the word data "ml" and "m5" in the input record memory 13 indicated by "I3" together with the delimiter code "," (Step A1
1), and updates the address while reading the date and time data in the work memory 18 and writing it to the maintenance record memory 16, and writes the delimiter code "," (step A12). Then, the first record designation data RED After writing the updated contents in I to the maintenance record memory 16 and writing the delimiter code "," in the first step, the word data (indicated by each word positive in the input record memory 13) in the record designation data REDl is updated. Maintenance record memory based on 16
For example, as shown in FIG. 4, the record designation data RED
1 enters the word collapse "I5", rI6J', r-work + J
.
「■4」で示されている場合には入力レコードメモリ1
3内のワードデータをrm5J。Input record memory 1 if indicated by “■4”
rm5J word data in 3.
「m6」、「ml」、「m4」の順に配列してメンテナ
ンスレコードメモリ16に書き込む(第7図参照)、な
お、第7図はこのようにして生成されたlレフ−1分の
メンテナンスレコードを示している。Arrange "m6", "ml", and "m4" in the order and write them into the maintenance record memory 16 (see Figure 7). Note that Figure 7 shows the maintenance record of 1 ref - 1 minute generated in this way. It shows.
このようにして1番目のファイル名rFaJのレコード
指定データREDIに基づいてそれに対応するメンテナ
ンスレコードを生成したら1次にステップA14に進み
、レコード指定メモリ15に予め設定されているファイ
ル数分のメンテナンスレコードを生成する為の処理を全
て終了したかのチエツクを行う、ここで、レコード指定
メモリ15には、第4図に示すように複数ファイル分の
レコード指定データが記憶されており、いま、最初のフ
ァイル名rFa Jのレコード指定データRED 1に
基づいてそれに対応するメンテナンスレコードを生成し
た段階であるから、次に、ファイル名rFcJのレコー
ド指定データRED2に基づいてそれに対応するメンテ
ナンスレコードを生成する為にステップA4に戻り、以
下、同様の処理を行う、これによって、次にファイル名
rFcJのレコード指定データRED2に対応するメン
テナンスレコードが生成されてメンテナンスレコードメ
モリ16に書き込まれる。After generating the corresponding maintenance record based on the record designation data REDI of the first file name rFaJ in this way, the process proceeds to step A14, where maintenance records for the number of files preset in the record designation memory 15 are created. The record specification memory 15 stores record specification data for multiple files as shown in FIG. Since we have already generated the corresponding maintenance record based on the record specification data RED1 of the file name rFa J, next, we need to generate the corresponding maintenance record based on the record specification data RED2 of the file name rFcJ. Returning to step A4, similar processing is performed thereafter, whereby a maintenance record corresponding to the record designation data RED2 with the file name rFcJ is generated and written into the maintenance record memory 16.
以下、同様にレコード指定メモリ15内の設定ファイル
数分のメンテナンスレコードを順次生成してメンテナン
スレコードメモリ16に書き込んでゆくが、この場合、
メンテナンスレコードメモリ16がフル状態となって空
エリアが無くなると、ステップA8でそのことが検出さ
れてステップA15に進み、メンテナンスレコードメモ
リ16内のメンテナンスレコードをその先頭からlレコ
ートスつ読み出し、このメンテナンスレコードに含まれ
るファイル名で指定されるメンテナンスファイル記憶部
20内のエリアに書き込む、しタカって、メンテナンス
レコードメモリ16の内容はそれがフル状態となったと
きにメンテナンスファイル記憶部20に書き込まれる。Thereafter, similarly, maintenance records for the number of setting files in the record designation memory 15 are sequentially generated and written to the maintenance record memory 16, but in this case,
When the maintenance record memory 16 becomes full and there is no empty area, this is detected in step A8 and the process proceeds to step A15, where l records from the beginning of the maintenance record in the maintenance record memory 16 are read out, and this maintenance record is read out. The contents of the maintenance record memory 16 are written to the maintenance file storage section 20 when the maintenance record memory 16 becomes full.
そして、次のステップA1Bに進み、メンテナンスレコ
ードメモリ゛16の内容をクリアしたのち、ステップA
9に進ミ、メンテナンスレコードの生成処理を行う。Then, proceed to the next step A1B, and after clearing the contents of the maintenance record memory 16, proceed to step A1B.
At step 9, maintenance record generation processing is performed.
このようにして入力レコードメモリ13内の1つの入力
レコードをもとに、レコード指定メモリ15内に設定さ
れている数のメンテナンスレコードを生成する。尚、入
力レコードメモリ13内に複数の入力レコードが記憶さ
れていれば各入力レコード毎に上述したメンテナンスレ
コードの生成処理を行う、入力レコードメモリ13内の
全ての入力レコードについてメンテナンスレコードの生
成処理が終了した後に、第6図のフローチャートにした
がった後処理を実行開始する。In this way, the number of maintenance records set in the record designation memory 15 is generated based on one input record in the input record memory 13. Note that if a plurality of input records are stored in the input record memory 13, the maintenance record generation process described above is performed for each input record.The maintenance record generation process is performed for all input records in the input record memory 13. After finishing, execution of the post-processing according to the flowchart of FIG. 6 is started.
先ず、テーブルメモリ19の先頭を指定し、その位aに
ファイル名が記憶されていれば(ステップBl)、当該
ファイル名が予め決められているマスターファイルのフ
ァイル名と一致するかを調べる(ステップB2)、ここ
で、両者の一致が検出されると、そのファイル名に対応
するレコードが既にメンテナンスファイル記憶部20に
書き込まれていない場合、つまり、メンテナンスレコー
ドメモリ16内にそのレコードが残っている場合には、
メンテナンスレコードメモリ16から当該ファイル名に
対応するレコードを読み出し、それをメンテナンスファ
イル記憶部20内に書キこむ(ステラ7’B4)、また
、マスタファイルのファイル名と一致しないファイル名
である場合には、そのファイル名に対応するレコードを
メンテナンスレコードメモリ16.またはメンテナンス
ファイル記憶部20から読み出して送受信制御装置26
に与え、他の装置へ送信する(ステップB3)。First, the beginning of the table memory 19 is specified, and if a file name is stored at that position a (step Bl), it is checked whether the file name matches the file name of a predetermined master file (step B2) Here, when a match is detected, if the record corresponding to the file name has not already been written to the maintenance file storage unit 20, that is, the record remains in the maintenance record memory 16. in case of,
Reads the record corresponding to the file name from the maintenance record memory 16 and writes it into the maintenance file storage section 20 (Stella 7'B4). Also, if the file name does not match the file name of the master file, stores the record corresponding to the file name in the maintenance record memory 16. Or read it from the maintenance file storage unit 20 and send it to the transmission/reception control device 26.
and transmits it to another device (step B3).
次に、ステップB5に進み、テーブルメモリ19から当
該ファイル名をクリアする。そして、ステップB6に進
み、テーブルメモリ19の次のファイル名を指定したの
ち、ステップB1に戻り、以下、同様の処理を実行する
。Next, proceeding to step B5, the file name is cleared from the table memory 19. Then, the process proceeds to step B6, where the next file name in the table memory 19 is specified, and then the process returns to step B1, and the same process is executed thereafter.
そして、テーブルメモリ19内に記憶されていた全ての
ファイル名に対して同様の処理を行うと、その時点でテ
ーブルメモリ19内のファイル名が全てクリアされるの
で、そのことをステップB1で検出してステップB7に
進み、メンテナンスレコードメモリ16をクリアする。Then, when the same process is performed on all the file names stored in the table memory 19, all the file names in the table memory 19 will be cleared at that point, so this is detected in step B1. The process then proceeds to step B7, where the maintenance record memory 16 is cleared.
これによってメンテナンスファイル記憶部20には各種
マスタファイルに対応するメンテナンスレコードのみが
セットされることになる。As a result, only maintenance records corresponding to various master files are set in the maintenance file storage section 20.
なお、他のレコードデータ処理装置から伝送されて来た
メンテナンスレコードを受信すると、レコード生成装3
114はそれが自己のマスタファイルに対応するメンテ
ナンスレコードであることを条件にメンテナンスファイ
ル記憶部20に書き込む。Note that when a maintenance record transmitted from another record data processing device is received, the record generation device 3
114 writes it into the maintenance file storage unit 20 on the condition that it is a maintenance record corresponding to its own master file.
次に、入力装置llからファイル更新を指示する命令を
入力すると、ファイル更新装置22はこれに応答して起
動し、第8図のフローチャートにしたがってファイル更
新処理を実行する。Next, when a command to instruct a file update is inputted from the input device 11, the file update device 22 is activated in response to this and executes the file update process according to the flowchart of FIG.
なお、第8図は更新処理の概要を示すフローチャートで
ある。Note that FIG. 8 is a flowchart showing an overview of the update process.
この場合、マスタファイル記憶部23内の1フアイルの
記憶形態は第9図に示すように、キーワードおよびデー
タワードからなる多数のレコードをファイル温順でかつ
キーワード類に配列した構成となっている。ここで、同
図において「(Jはレコードの区切りコードを、また「
;」キーワードとデータワードの境界を示す区切りコー
ドを、更にrmJは有効データの長さに応じたバイト数
からなる可変長データを示し、マスタファイル記憶fi
lI23内で各ワードおよび各レコードは実存する情報
のみが完全に詰め込まれて収容されている。In this case, the storage form of one file in the master file storage section 23 is such that a large number of records consisting of keywords and data words are arranged in file order and keywords, as shown in FIG. Here, in the same figure, "(J" is the record delimiter code, and "
;'' is a delimiter code that indicates the boundary between a keyword and a data word, and rmJ indicates variable length data consisting of the number of bytes depending on the length of valid data.
Within the II 23, each word and each record contains only existing information, completely packed.
しかして、ファイル更新装置22は第8図のフローチャ
ートを実行開始すると、先ず、メンテナンスファイル記
憶部20内にファイルが有るかを調べ(ステップCI)
、無ければこのフローから抜けるが、有れば、!ファイ
ル分の各レコードのうち更新用メモリ24に入るだけの
レコードをメンテナンスファイル記憶部20から読み出
して更新用メモリ24に書き込む(ステップC2)、そ
して、更新用メモリ24内のレコードを予め決められて
いる順序にしたがってソートする(ステップC3)、そ
して、ソート済の更新用メモリ24の内容をメンテナン
スファイル記憶部20に書き込む(ステップC4)、そ
して、lファイル分の全レコードをソートするまで(ス
テップC5)および全てのファイルをソートするまで(
ステップC6)、、、h述の動作を繰り返す(ステップ
02〜C4)。When the file update device 22 starts executing the flowchart shown in FIG. 8, it first checks whether there is a file in the maintenance file storage unit 20 (step CI).
, if it doesn't exist, you can exit from this flow, but if it exists, ! Out of each record for the file, only the records that can be stored in the update memory 24 are read from the maintenance file storage unit 20 and written to the update memory 24 (step C2), and the records in the update memory 24 are set in a predetermined manner. Then, the sorted contents of the update memory 24 are written to the maintenance file storage section 20 (step C4), and the process continues until all records for l files are sorted (step C5). ) and until all files are sorted (
Repeat the operations described in step C6), . . h (steps 02 to C4).
このようにしてメンテナンスファイル記憶部20内の全
ファイルに対して各ファイル内の全レコードを予め決め
られている順序にしたがってソートしたら、ステップC
7に進み、ソート済のメンテナンスファイルのうち同一
ファイル名のメンテナンスファイルが複数有るかを調べ
、有れば同−ファイル名の各メンテナンスファイルをマ
ージする(ステップC8)、そして、ステップC7に戻
り、他にも同一ファイル名のメンテナンスファイルが複
数有れば、それらを同様にマージしてゆく。After sorting all the records in each file in the predetermined order for all the files in the maintenance file storage unit 20 in this way, step C
Proceeding to step 7, it is checked whether there are multiple maintenance files with the same file name among the sorted maintenance files, and if there are, the maintenance files with the same file name are merged (step C8), and the process returns to step C7. If there are multiple maintenance files with the same file name, merge them in the same way.
このようにして同一ファイル名の複数のメンテナンスフ
ァイルを全てマージしたら、ステップC9に進み、メン
テナンスファイル記憶部20から1ファイル分のメンテ
ナンスファイルを読み出してそのファイル名にしたがっ
てマスタファイル記憶部23内の対応するファイルを指
定し、当該メンテナンスファイルのレコードに含まれて
いる「更新内容」にしたがって「集計」、「訂正」、「
削除」等の更新処理を更新用メモリ24を用いて行う、
即ち、「更新内容」が「追加」であれば、このメンテナ
ンスレコード(キーワードとデータワードからなる)を
対応するマスクファイル内にキーワード順に挿入する。After merging all the multiple maintenance files with the same file name in this way, the process advances to step C9, where one maintenance file is read out from the maintenance file storage section 20 and the correspondence in the master file storage section 23 is created according to the file name. Specify the file to be updated, and perform "aggregation", "correction", "
performing update processing such as "deletion" using the update memory 24;
That is, if the "update content" is "addition", this maintenance record (consisting of keywords and data words) is inserted into the corresponding mask file in keyword order.
また、「削除」であれば、メンテナンスレコードのキー
ワードに一致するマスタファイル内のレコードを削除す
る。また、「訂正」であれば、メンテナンスレコードの
キーワードと一致するマスタファイルのレコードのうち
メンテナンスレコードのデータワードで示されるデータ
に対応するワードを訂正する。更に、「更新内容」が「
集計」の場合にはメンテナンスレコードのキーワードと
−iするマスタファイルのレコードのうち、メンテナン
スファイルのデータワードで示されるデータを該当ワー
ドに加算集計する。なお、メンテナンスレコードのデー
タワードのデータが負であれば、減算集計される。Moreover, if it is "delete", the record in the master file that matches the keyword of the maintenance record is deleted. If it is "correction", the word corresponding to the data indicated by the data word of the maintenance record among the records of the master file that match the keyword of the maintenance record is corrected. Furthermore, “Update content” is “
In the case of "Total", among the records of the master file that are -i with the keyword of the maintenance record, the data indicated by the data word of the maintenance file is added to the corresponding word and the data is totaled. Note that if the data in the data word of the maintenance record is negative, the data is subtracted and totaled.
そして、1ファイル分の更新処理が終ると、ステラ7’
C10に進み、全てのマスタファイルに対して更新を行
ったかを調べ、終了していなければステップC9に戻り
1次のファイルに対する更新処理を行う、しかして、全
てのマスタファイルを更新したら、ステップC1lに進
み、ファイル更新時に生じたエラー処理を行う。When the update process for one file is completed, Stella 7'
Proceed to C10 and check whether all master files have been updated. If not, return to step C9 and update the first file. Once all master files have been updated, proceed to step C1l. Proceed to and handle errors that occur when updating files.
第10図は上述したソートおよびマージの具体的な処理
内容を示したフローチャートで、以下、ソートを行う場
合を例に挙げて説明する。FIG. 10 is a flowchart showing the specific processing contents of the above-mentioned sorting and merging, and the case where sorting is performed will be described below as an example.
先ず、更新用メモリ24の先頭から2レコ一ド分のメン
テナンスレコードを順次読み出す(ステップD1)、な
お、更新用メモリ24から読み出した2レコードの分の
メンテナンスレコードのうち前のレコードをレコード“
1″、後のレコードをレコード“2″と称すると、次の
ステップD2ではレコード“1″およびレコード′2″
の1ワード目「マシンID、プロセスIDJをスキップ
する0次に、レコード“1”およびレコード“2”の2
ワード目のワード(キーワード)を比較する(ステップ
D3)、その結果、レコード“l”くレコード″2″の
場合およびレコード“1″〉レコード“2”の場合には
(ステップD4)、この比較結果に応じて更新用メモリ
24内に各レコードを昇順配列する(ステップD11)
、一方、レコード“1″=レコード“2”の場合には(
ステップD4)、次にレコード“l”およびレコード“
2”の3ワード目(キーワード)を比較する(ステップ
D5)、その結果、レコード“1″くレコード“2”の
場合およびレコード“1″〉レコード“2″の場合には
(ステップD6)、この比較結果に応じて更新用メモリ
24内に各レコードを昇順配列する(ステップDll)
、一方、レコード“1”=レコード″2″の場合、つま
り、レコード“1″とレコード“2″の2ワード目のキ
ーワードの他に3ワード目のキーワードも等しい場合に
は(ステップD6)1次に、レコード“l”およびレコ
ード“2”の4ワード目(日時)を比較する(ステップ
D7)、その結果、レコード“l”くレコード″2”お
よびレコード“l”〉レコード“2”の場合には(ステ
ップD8)、この比較結果に応じて更新用メモリ24内
に各レコードを昇順配列する(ステップDll)、一方
、レコード″l”=レコード“2″の場合、つまり、レ
コード“1″の各キーワードとレコード“2″の各キー
ワードの他、日時も等しい場合には(ステップD8)、
次に、レコード“1”およびレコード“2″の5ワード
目(更新内容)を比較する(ステップD9)、ここで、
「更新内容」は「削除」、「追加」、「訂正」、「集計
」の順に予めその順位が決められており、その結果レコ
ード“工”くレコード°”2″の場合およびレコード“
1″〉レコード“2”の場合には(ステップDIO)、
この比較結果に応じて更新用メモリ24内に各レコード
を昇順配列する(ステップDll、DI3)、一方、レ
コード“l“ニレコード“2″′の場合、つまり、レコ
ード“1”とレコード“2”がその各キーワード、日時
の他、更新内容までも等しい場合には(ステップD10
)、 レコード“1”、レコード“2”の順に配列する
(ステップD12)。First, two maintenance records are sequentially read from the beginning of the update memory 24 (step D1).The previous record among the two maintenance records read from the update memory 24 is referred to as the record ".
1", and the subsequent record is called record "2", then in the next step D2, record "1" and record '2"
The 1st word of "machine ID, skip process IDJ 0" Next, record "1" and record "2" 2
The word th word (keyword) is compared (step D3), and as a result, if record “l” is record “2” and record “1”>record “2” (step D4), this comparison Arrange each record in ascending order in the update memory 24 according to the result (step D11)
, On the other hand, if record "1" = record "2", (
step D4), then record “l” and record “
Compare the third word (keyword) of ``2'' (step D5), and as a result, if record ``1'' is record ``2'' and if record ``1''>record ``2'' (step D6), Each record is arranged in ascending order in the update memory 24 according to the comparison result (step Dll).
, On the other hand, if record "1" = record "2", that is, if the keyword of the third word as well as the keyword of the second word of record "1" and record "2" are equal (step D6) 1 Next, the fourth word (date and time) of record "l" and record "2" are compared (step D7), and as a result, record "l"> record "2" and record "l"> record "2" are compared. (step D8), each record is arranged in ascending order in the update memory 24 according to the comparison result (step Dll). On the other hand, if record "l"=record "2", that is, record "1" If the keywords of `` and the keywords of record ``2'' as well as the date and time are the same (step D8),
Next, the fifth word (updated content) of record "1" and record "2" are compared (step D9), where:
The order of "update contents" is determined in advance in the order of "deletion", "addition", "correction", and "aggregation".
1″> In the case of record “2” (step DIO),
Each record is arranged in ascending order in the update memory 24 according to the comparison result (steps Dll, DI3).On the other hand, in the case of record "1" and record "2"', that is, record "1" and record "2" ” are the same for each keyword, date and time, and even the updated content (step D10).
), record “1” and record “2” are arranged in this order (step D12).
このようにして更新用メモリ24内の全レコードがキー
ワード順、同一キーワードであればロ時順、更に、キー
ワードおよび日時が同一であれば更新内容順に昇順配列
されるまで上述のフローチャートを繰り返す。In this way, the above-described flowchart is repeated until all the records in the update memory 24 are arranged in ascending order of keyword, in ascending order of time if the keyword is the same, and in order of update content if the keyword and date and time are the same.
第11図は上述したファイル更新時におけるエラー処理
の具体的な内容を示したフローチャートである。FIG. 11 is a flowchart showing specific details of the error processing at the time of file update described above.
先ず、更新エラーの種別を判断しくステップEl)、そ
の結果、メンテナンスレコードに問題のあるエラーか、
その他のエラーかを調べる(ステップE2)。First, determine the type of update error (Step El), and as a result, whether the error is due to a problem with the maintenance record or
Check whether it is another error (step E2).
ここで、メンテナンスレコード自身に問題のあるエラー
としては(1)、マスタファイルに存在しないキーワー
ドのレコードを削除しようとした場合、(2)マスクフ
ァイルに既に存在しているキーワードのレコードを追加
しようとした場合、(3)マスクファイルに存在しない
キーワードのレコードを訂正しようとした場合、(4)
マスタファイルに存在しないキーワードのレコードを集
シ1しようとした場合等である。また、メンテナンスレ
コードには問題がない他のエラーとしてはマスクファイ
ル記憶部23に空スペースがない場合等である。Here, errors caused by problems with the maintenance record itself include (1) an attempt to delete a record of a keyword that does not exist in the master file, and (2) an attempt to add a record of a keyword that already exists in the mask file. (3) If you try to correct a record with a keyword that does not exist in the mask file, (4)
This is the case, for example, when an attempt is made to collect records for keywords that do not exist in the master file. Further, other errors that do not cause problems in the maintenance record include a case where there is no empty space in the mask file storage section 23.
しかして、メンテナンスレコード自身に問題のあるエラ
ーが発生すると、当該レコード中に含まれている可変長
データのマシンID、プロセスID、 日時を夫々読
み出し、ステップE3でマシンIDを、ステップE4で
プロセスIDをステップE5で日時を通常のデータに変
換する。このようなして変換したマシンID、プロセス
ID、日時を持ったファイルをメンテナンスファイル記
憶部20から検索し、当該ファイルのヘッダー情報を読
み出す(ステップE6)、そして、このヘッダ情報をエ
ラ・−表示部25に送り1表示出力させる。この結果、
エラーとなったメンテナンスレコードが、いつ、どのマ
シンで、どの柵の誰れが何というプロセスで作成したレ
コードであるかの報知が行われる。そして、ステップE
9に進み、当該メンテナンスレコードに対する更新処理
を取り消し、更新処理は行なわない。If a problematic error occurs in the maintenance record itself, the machine ID, process ID, and date and time of the variable-length data contained in the record are read, and the machine ID is read in step E3, and the process ID is read in step E4. In step E5, the date and time are converted into normal data. A file having the machine ID, process ID, and date and time thus converted is searched from the maintenance file storage unit 20, the header information of the file is read (step E6), and this header information is displayed in the error display unit. 25 to output 1 display. As a result,
It is reported when the maintenance record that caused the error was created, by which machine, in which fence, by whom, and by what process. And step E
Proceeding to step 9, the update process for the maintenance record is canceled and the update process is not performed.
一方、メンテナンスレコードに問題のないその他のエラ
ーが発生した場合には、ステップE8に進み、その旨を
エラー表示部25にメツセージ表示させたのち、更新取
消処理を行う(ステップE9)。On the other hand, if another error that is not a problem occurs in the maintenance record, the process proceeds to step E8, and after displaying a message to that effect on the error display section 25, update cancellation processing is performed (step E9).
なお、上述のようにして更新されたマスタファイル内の
レコードは、表示や印字等の出力したいレコードのキー
ワードを指定することによって該当レコードが検索され
て出力される。Note that the records in the master file updated as described above are searched and output by specifying the keyword of the record to be output, such as display or print.
なお、−h記実施例は計時データとして日時データを示
したが連続番号を一定時間毎に自動的にカウントするカ
ウンタの値を用いてもよく、更にエラー報知を印字等で
行ってもよい、勿論、ネットワークシステムを構成する
ワークスチーシラン等に限らず、スタンドアロン機であ
っても適用0T渣である。Although the embodiment described in -h shows date and time data as time measurement data, the value of a counter that automatically counts consecutive numbers at regular intervals may be used, and furthermore, error notification may be performed by printing, etc. Of course, the application is not limited to workstations that constitute a network system, but also applies to stand-alone machines.
[発明の効果]
第1の発明によれば、入力し・コードに基づいて生成さ
れた更新内容を含む更新レコードを記憶しておき、これ
を任意の時点で読み出すことにより、この更新レコード
の更新内容に基づいて各レコード毎に異なる更新種別で
対応ファイルの更新を任意時点で行えるように構成した
ので、入力レコードの処理とファイルの処理とを独立し
て行うことが可能になり、各々の処理に対する処理内容
の設定が単独化され、且つ、各システムの設計も各々独
立して設計でき、その設計に要する労力を著しく低減す
ることができる。更に、上記ファイルの更新処理におい
て、種々の順に入力された多数の更新レコードを、各更
新レコードに含まれている一種のキーワードとしての計
時ワードに基づいて計時ワードの順に編成した後に更新
するので、更新レコードに対するファイルへの更新がそ
の入力順序にしたがって時系列的に処理される結果、レ
コードの入力順序とレコードの更新順序の整合性がとれ
、効率の良い処理が可能になる。[Effects of the Invention] According to the first invention, an update record including update contents generated based on an input code is stored, and by reading this at any time, the update record can be updated. Since the configuration is configured so that the corresponding file can be updated at any time using a different update type for each record based on the content, it is now possible to process input records and files independently, and each process The settings for the processing contents for each system can be made independent, and each system can be designed independently, thereby significantly reducing the labor required for the design. Furthermore, in the above file update process, a large number of update records input in various orders are organized in the order of clock words based on a clock word as a type of keyword included in each update record, and then updated. As a result of updating files to update records in a chronological manner according to the input order, the record input order and the record update order are consistent, and efficient processing becomes possible.
第2の発明においても上述した第1の発明と同様に、シ
ステムの設計が簡単で、その設計に要する労力を著しく
低減することができる。更に、更新レコードにレコード
の所属ワードを含めることにより、ファイル更新時にエ
ラーが生じた場合でもそのレコードが例えばどこで、誰
が作成したものか等を報知することができる。Similarly to the first invention described above, in the second invention, the system design is simple, and the labor required for the design can be significantly reduced. Furthermore, by including the word to which the record belongs in the update record, even if an error occurs when updating the file, it is possible to notify where the record is, who created it, etc.
第1図(A)は第1の発明の機能ブロック図、第1図(
B)は第2の発明の機能ブロック図、第2図〜第11図
は実施例を示し、第2図はレコードデータ処理装置の回
路構成図、第3図は入力レコードメモリ13に入力され
たレコードデータを示す図、第4図はレコード指定メモ
リ15の設定内容の具体例を示す図、第5図はレコード
生成装置14の生成処理を示すフローチャート、第6図
はその後処理を示すフローチャート、第7図はメンテナ
ンスレコードメモリ16のルコードの記憶形態を示す図
、第8図はファイル更新装置22が行うファイル更新処
理の概要を示すフローチャート、第9図はマスタファイ
ル記憶部23の記憶内容を示す図、第1O図はソートあ
るいはマージの具体的な処理内容を示すフローチャート
、第11図はファイル更新時のエラー処理を具体的に示
すフローチャートである。
11・・・・・・入力装置、12・・・・・・入力処理
装置、13・・・・・・入力レコードメモリ、14・・
・・・・レコード生成装H216・・・・・・メンテナ
ンスレコードメモリ、17・・・・・・設定メモリ、2
0−・・・・・メンテナンスファイル記憶部、21・・
・・・・時計回路部、22・・・・・・ファイル更新装
置、23・・・・・・マスタファイル記憶部、24・・
・・・・更新用メモリ、25・・・・・・エラー表示部
。FIG. 1(A) is a functional block diagram of the first invention;
B) is a functional block diagram of the second invention, FIGS. 2 to 11 show embodiments, FIG. 2 is a circuit configuration diagram of a record data processing device, and FIG. 4 is a diagram showing a specific example of the setting contents of the record designation memory 15, FIG. 5 is a flowchart showing the generation process of the record generation device 14, FIG. 6 is a flowchart showing the subsequent processing, and FIG. 7 is a diagram showing the storage format of the code in the maintenance record memory 16, FIG. 8 is a flowchart showing an overview of the file update process performed by the file update device 22, and FIG. 9 is a diagram showing the storage contents of the master file storage unit 23. , FIG. 1O is a flowchart showing the specific processing contents of sorting or merging, and FIG. 11 is a flowchart specifically showing the error processing at the time of file update. 11... Input device, 12... Input processing device, 13... Input record memory, 14...
... Record generation device H216 ... Maintenance record memory, 17 ... Setting memory, 2
0-...Maintenance file storage section, 21...
... Clock circuit section, 22 ... File update device, 23 ... Master file storage section, 24 ...
...Update memory, 25...Error display section.
Claims (2)
構成され、各レコードをキーワード順に配列して記憶す
るファイル記憶手段と、 このファイル記憶手段内のレコードに対する更新を行う
為に、入力されたレコードデータに基づいてキーワード
、データワード、更新内容から成る更新レコードを生成
する更新レコード生成手段と、 前記更新レコードの生成時を示す計時データを生成し、
当該更新レコードに計時ワードとして挿入する計時ワー
ド生成手段と、 この計時ワード生成手段で計時ワードが生成された更新
レコードを記憶する更新レコード記憶手段と、 この更新レコード記憶手段内の更新レコードをキーワー
ドおよび計時ワードの順に並び換えるレコード編成手段
と、 前記ファイル記憶手段内のレコードに対して、前記レコ
ード編成手段で並べ換えられた順に、且つ前記各更新レ
コードの更新内容に基づく種類の更新処理を行う更新処
理手段と、 を具備したことを特徴とするレコードデータ処理装置。(1) A file storage means in which one record is composed of a keyword and a data word, and each record is arranged and stored in the order of the keyword; and in order to update the record in this file storage means, based on the input record data. an update record generating means for generating an update record consisting of a keyword, a data word, and update contents; and generating time measurement data indicating when the update record was generated;
A clock word generation means for inserting the clock word into the update record as a clock word; an update record storage means for storing the update record in which the clock word has been generated by the clock word generation means; record organizing means for rearranging records in the order of clock words; and update processing for performing a type of update process on the records in the file storage means in the order rearranged by the record organizing means and based on the update contents of each update record. A record data processing device comprising: means;
構成され、各レコードをキーワード順に配列して記憶す
るファイル記憶手段と、 このファイル記憶手段内のレコードに対する更新を行う
為に、入力されたレコードデータに基づいてキーワード
、データワード、更新内容から成る更新レコードを生成
する更新レコード生成手段と、 予め設定されている前記更新レコードの所属を示す所属
データを当該更新レコードに所属ワードとして挿入する
所属ワード生成手段と、 この所属ワード生成手段で所属ワードが生成された更新
レコードを記憶する更新レコード記憶手段と、 この更新レコード記憶手段内の各更新レコードを前記フ
ァイル記憶手段内のレコードに更新する際に、前記更新
レコードの更新内容に基づく種類の更新処理を行う更新
処理手段と、 この更新処理手段での更新処理時にエラーとなった際に
、エラーとなった前記更新レコードの所属ワードに基づ
いて当該更新レコードの所属を報知する報知手段と、 を具備したことを特徴とするレコードデータ処理装置。(2) A file storage means in which one record is composed of a keyword and a data word, and each record is arranged and stored in the order of the keyword; and in order to update the record in this file storage means, based on the input record data. update record generation means for generating an update record consisting of a keyword, data word, and update content; and affiliation word generation means for inserting preset affiliation data indicating the affiliation of the update record into the update record as an affiliation word. , an update record storage means for storing an update record for which an affiliation word has been generated by the affiliation word generation means; and when updating each update record in the update record storage means to a record in the file storage means; an update processing means that performs a type of update processing based on the update contents of a record; and when an error occurs during update processing in this update processing means, update processing of the update record is performed based on the word to which the update record that has caused the error belongs; A record data processing device comprising: a notification means for notifying an affiliation; and a record data processing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63175110A JPH0225948A (en) | 1988-07-15 | 1988-07-15 | record data processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63175110A JPH0225948A (en) | 1988-07-15 | 1988-07-15 | record data processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0225948A true JPH0225948A (en) | 1990-01-29 |
Family
ID=15990442
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63175110A Pending JPH0225948A (en) | 1988-07-15 | 1988-07-15 | record data processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0225948A (en) |
-
1988
- 1988-07-15 JP JP63175110A patent/JPH0225948A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1566753B1 (en) | Searchable archive | |
| CN106503186A (en) | A kind of data managing method, client and system | |
| JPS5968040A (en) | Card format change processing system | |
| JP2001222524A (en) | System and method for formatting computer generated document and recording medium | |
| US7398264B2 (en) | Simplifying movement of data to different desired storage portions depending on the state of the corresponding transaction | |
| JP4836545B2 (en) | Screen creation device and program | |
| JPH039493B2 (en) | ||
| JPH02157946A (en) | record data processing device | |
| JP2580601B2 (en) | Form data processing method | |
| JP3465933B2 (en) | Data backup method | |
| JP3521822B2 (en) | Electronic report device and machine-readable recording medium recording program | |
| JP4501040B2 (en) | Computer-readable recording medium recording customer master general-purpose data receiving program | |
| JP2760755B2 (en) | Method of storing and redisplaying the operation button history for computer processing | |
| JP3109330B2 (en) | Form output device | |
| JPS62214438A (en) | Software specification reuse system | |
| JP3109331B2 (en) | Form output device | |
| JP3047399B2 (en) | File processing device | |
| JP3537052B2 (en) | File processing device | |
| JP2852162B2 (en) | Database management device | |
| JP2844460B2 (en) | Data processing device | |
| JP2737850B2 (en) | Information processing method | |
| KR0159814B1 (en) | Article management method in electronic cash register | |
| JPH01277932A (en) | Data base rearrangement method | |
| JPS62137639A (en) | Information processing system | |
| JPH0573378A (en) | Data base record layout conversion system |