JPH08263347A - Data totalization method and device - Google Patents

Data totalization method and device

Info

Publication number
JPH08263347A
JPH08263347A JP7062822A JP6282295A JPH08263347A JP H08263347 A JPH08263347 A JP H08263347A JP 7062822 A JP7062822 A JP 7062822A JP 6282295 A JP6282295 A JP 6282295A JP H08263347 A JPH08263347 A JP H08263347A
Authority
JP
Japan
Prior art keywords
data
aggregation
totaling
file
totalization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7062822A
Other languages
Japanese (ja)
Inventor
Hideki Tomita
秀樹 富田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP7062822A priority Critical patent/JPH08263347A/en
Publication of JPH08263347A publication Critical patent/JPH08263347A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To reduce the capacity necessary for a data storage means and also to shorten the data totalization processing time by carrying out the data totaliza tion processing based on the final correction result of data. CONSTITUTION: A data totalization method/device consists of a data input means 11 which corrects and updates the registered data that are called out of a data storage means 12 which registers the data and stores these data, a totalizing object decision means 13 which compares the contents of the precedently totalized data and those of the presently corrected totalization data to decide whether or not the data to be sent to the means 12 from the means 11 should be totalized and then gives a marking only to the data that should be totalized, and a data totalization means 14 which extracts only the data that received the marking from the means 13, deletes the marking totalizes the data and updates a totalization file.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はデータ集計方法および装
置に関し、特にバッチ集計処理等において集計対象とな
るデータを抽出し、集計ファイルの更新を行う機能を有
するデータ集計方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data totaling method and apparatus, and more particularly to a data totaling method and apparatus having a function of extracting data to be totaled in batch totaling processing and updating a totalization file.

【0002】[0002]

【従来の技術】従来のデータ集計方法および装置は、デ
ータ入力手段によって入力されたデータから集計ファイ
ル更新用のトランザクションデータを生成し、一定期間
毎に作業者のキー入力もしくは自動起動によって起動さ
れるバッチ処理によって、それらのデータの集計処理を
行っている。この方法では、同一レコードに対するファ
イル更新に対して、集計処理を起動するまでの間に発生
した複数トランザクションデータを時系列的に保持しな
ければならず、同一レコードを頻繁に更新するシステム
における、集計処理対象トランザクションデータの増大
をまねき、集計処理時間の膨れ上がりにつながる。
2. Description of the Related Art A conventional data totaling method and apparatus generate transaction data for updating a totaling file from data input by data input means, and are activated by a key input by a worker or automatic activation at regular intervals. Batch processing is performed on the data. With this method, for the file update to the same record, it is necessary to hold the multiple transaction data generated until the aggregation process is started in chronological order, and in the system that frequently updates the same record, This leads to an increase in transaction data to be processed, leading to an increase in the total processing time.

【0003】従来のデータ集計方法および装置の一例
が、特開平02−157947号公報に記載されてい
る。本公報に記載されたデータ集計方法および装置は、
入力されたデータをトランザクションデータとして記憶
し、そのデータに付与されたデータ更新条件が満たされ
た時点で、データ集計を行う装置である。この装置は、
トランザクションデータの記憶を行うデータ記憶手段
と、データ更新条件から集計対象であるかを判断する更
新制御手段と、抽出されたデータに基づいてデータ集計
を行う集計処理手段とから構成されている。この中でバ
ッチ的に起動される集計処理手段は、データ記憶手段か
ら呼び出されたデータが、更新制御手段にて、そのデー
タに付与されている集計実施時刻などの条件が満たされ
ていると判断された場合にのみデータを受け渡され、デ
ータの集計処理を行っている。この装置においては、上
記のトランザクションデータによる更新の問題点は解決
されていない。
An example of a conventional data totaling method and apparatus is described in Japanese Patent Application Laid-Open No. 02-157947. The data aggregation method and device described in this publication are
It is a device that stores the input data as transaction data and totals the data when the data update condition given to the data is satisfied. This device
It is composed of a data storage means for storing transaction data, an update control means for judging from the data update condition whether or not the data is to be totalized, and a totalization processing means for totalizing data based on the extracted data. Among these, the aggregation processing means that is started in batch determines that the data called from the data storage means satisfies the conditions such as the aggregation execution time given to the data by the update control means. Data is passed only when it is done, and the data is aggregated. This device has not solved the above-mentioned problem of updating by transaction data.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のデータ
集計方法および装置は、データを入力(登録/修正)し
た結果をトランザクションデータとして記憶し、定時起
動もしくは作業者によって起動されたバッチ処理によっ
て集計処理を行っている。そのため、従来のデータ集計
方法および装置では、データを入力(登録/修正)する
たびにトランザクションデータとして、その入力結果を
記憶しなければならない関係上、データの修正が頻繁に
行われる装置においては、一つのデータに関して多数の
トランザクションデータが集計処理実施時点に存在する
こととなり、それがデータ記憶手段の容量を圧迫すると
ともに、全てのトランザクションデータを時間順に適応
する関係上、集計処理時間を増加させることになってい
た。
The above-described conventional data totaling method and apparatus store the result of data input (registration / correction) as transaction data, and totalize the data by a regular start or a batch process started by an operator. It is processing. Therefore, in the conventional data summarizing method and apparatus, since the input result must be stored as transaction data every time data is input (registered / corrected), in the apparatus in which the data is frequently corrected, Since a large number of transaction data exist for one data at the time of aggregating processing, it puts pressure on the capacity of the data storage means and increases the aggregating processing time because all transaction data are applied in chronological order. It was.

【0005】本発明の目的は、データ集計処理のバッチ
処理を起動するにあたり、時系列的な最終修正結果デー
タのみによるデータ集計処理を行うことにより、データ
記憶手段の必要容量の削減をはかるとともに、データ集
計処理時間の削減を図るデータ集計方法および装置を提
供することにある。
An object of the present invention is to reduce the required capacity of the data storage means by performing the data totalizing process only with the time-series final correction result data when starting the batch process of the data totaling process. An object of the present invention is to provide a data totaling method and device for reducing the data totaling processing time.

【0006】[0006]

【課題を解決するための手段】本発明のデータ集計方法
および装置は、入力されたデータの内容に従って集計フ
ァイルの更新を行うデータ集計方法および装置におい
て、データの登録と登録済みデータの呼び出し、登録済
みデータの修正/更新処理を行うデータ入力手段と、デ
ータ入力手段にて入力されたデータの記憶を行うデータ
記憶手段と、データ入力手段からデータ記憶手段へ受け
渡されるデータが集計対象となるデータであるかどうか
をを判定し、集計対象と判断されたデータのみにマーキ
ングを行う集計対象判定手段と、集計対象判定手段によ
りマーキングされたデータのみを抽出し、マーキングの
削除をするとともに、データ集計を行い、集計ファイル
の更新を行うデータ集計手段とを有する。
SUMMARY OF THE INVENTION A data totaling method and apparatus of the present invention is a data totaling method and apparatus for updating a totalization file according to the contents of input data. Data input means for correcting / updating completed data, data storage means for storing data input by the data input means, and data passed from the data input means to the data storage means to be aggregated data It is determined whether or not, and the aggregation target determination means that marks only the data that is determined to be aggregated, and only the data marked by the aggregation target determination means is extracted, the marking is deleted, and the data is aggregated. And a data totalizing means for updating the totalization file.

【0007】[0007]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0008】図1は本発明のデータ集計方法および装置
の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a data totaling method and apparatus of the present invention.

【0009】本実施例のデータ集計方法および装置にお
けるデータ入力手段11には、パーソナルコンピュータ
などの情報入力端末が用いられる。この情報入力端末
は、データファイルのキーデータ部に相当する情報の入
力を受け、その入力情報と同等の内容を持つデータがデ
ータ記憶手段12に既に登録されているならば、登録さ
れているキーデータ部以外の情報の修正を受け付け、同
等の内容を持つデータがデータ記憶手段12に未登録な
らば、集計対象データ部などのその他データの新規登録
を受け付ける機能を有している。
An information input terminal such as a personal computer is used as the data input means 11 in the data totaling method and apparatus of this embodiment. This information input terminal receives the input of information corresponding to the key data part of the data file, and if the data having the same content as the input information is already registered in the data storage means 12, the registered key It has a function of accepting correction of information other than the data part and accepting new registration of other data such as the data part to be aggregated if data having the same content is not registered in the data storage means 12.

【0010】データ入力手段11で入力されたデータ
は、集計対象判定手段13に受け渡され、図4の本実施
例のデータ集計方法および装置におけるデータファイル
に対するデータの登録/更新処理の一例を示す流れ図に
従った処理が行われる。すなわち、集計対象判定手段1
3は、入力されたデータを受け取った後(ステップ4
1)、そのデータが新規登録か更新処理かを判断し(ス
テップ42)、新規登録の場合には、集計対象フラグの
値を[1] と設定し(ステップ45)、更新処理の場合に
は、データ入力手段11から受け渡されたデータの集計
対象データ部と更新すべきデータファイル上のデータの
前回集計データ部の記述内容とを比較し(ステップ4
3)、その内容が同じなら集計対象フラグの値を[0]
(ステップ44)、違うなら[1] (ステップ45)と設
定する。
The data input by the data input means 11 is transferred to the totalization object determination means 13, and an example of data registration / update processing for the data file in the data totalization method and apparatus of this embodiment of FIG. 4 is shown. Processing according to the flow chart is performed. That is, the counting target determination means 1
3 receives the input data (step 4
1) Judge whether the data is new registration or update processing (step 42). In the case of new registration, set the value of the aggregation target flag to [1] (step 45), and in the case of update processing. , The data to be aggregated from the data input means 11 is compared with the description contents of the previously aggregated data portion of the data on the data file to be updated (step 4
3) If the contents are the same, set the value of the aggregation target flag to [0]
(Step 44), if not, set [1] (Step 45).

【0011】集計対象の設定を行ったデータは、その設
定を行った判定結果とともにデータ入力手段11に返却
され、そこで、データ記憶手段12に対する登録/更新
処理依頼が発行される。登録/更新処理依頼を受け取っ
たデータ記憶手段12は、その依頼内容に従って登録/
更新処理を実行する。
The data for which the totaling target has been set is returned to the data input means 11 together with the determination result of the setting, and a registration / update processing request for the data storage means 12 is issued there. The data storage means 12 that has received the registration / update processing request registers / registers according to the contents of the request.
Execute the update process.

【0012】以上の処理が必要に応じて実施され、デー
タファイルに対するデータの登録/更新処理が行われ
る。
The above processing is carried out as necessary, and the data registration / update processing for the data file is performed.

【0013】ここで、データファイルのフォーマットに
ついて説明する。図2の本実施例のデータ集計方法およ
び装置におけるデータファイルのフォーマットを示す図
に示されている様に、データファイルのフォーマット
は、大きく5つの部分からなっている。すなわち、キー
データ部、一般データ部、集計対象データ部、集計対象
フラグ部、前回集計データ部である。キーデータ部と一
般データ部、集計対象データ部は全てデータ入力手段1
1から直接入力されたデータを記憶する部分であるが、
各部分によって記憶される内容は異なる。キーデータ部
には集計する際の集計キーすなわち「発注月」「発注部
門コード」「品目コード」が記憶され、集計対象データ
部には集計されるべきデータすなわち「発注数量」「納
品数量」が記憶され、一般データ部にはデータ入力手段
11より入力されたデータの内でキーデータ部にも集計
対象データ部にも該当しない残りの全てのデータすなわ
ち「発注日」「部門名」「品名」が記憶される。集計対
象フラグ部は、集計対象判定手段13の判定結果を記憶
する部分でありすなわち集計対象フラグが記憶され、こ
の集計対象フラグは、データ集計手段14が集計対象デ
ータを抽出する際に用いられる。前回集計データ部は、
集計対象判定手段13が集計対象データ部と比較するた
めのデータすなわち「発注数量」「納品数量」が記憶さ
れ、データ集計を実施する際に、データ集計手段14が
集計対象データ部の記憶内容を複写することによって更
新される。
Here, the format of the data file will be described. As shown in FIG. 2 which is a diagram showing the format of the data file in the data totaling method and apparatus of the present embodiment, the format of the data file is roughly composed of five parts. That is, the key data part, the general data part, the aggregation target data part, the aggregation target flag part, and the previous aggregation data part. The key data part, the general data part, and the data part to be aggregated are all data input means 1
The part that stores the data directly input from 1.
The contents stored in each part are different. The key data part stores the totaling key when totaling, that is, “ordering month”, “ordering department code”, and “item code”, and the data to be totaled includes the data to be aggregated, that is, “ordering quantity” and “delivery quantity”. All the remaining data stored in the general data part that does not correspond to the key data part or the data part to be aggregated out of the data input by the data input means 11, that is, "ordering date", "department name", and "product name" Is memorized. The aggregation target flag unit is a part that stores the determination result of the aggregation target determination unit 13, that is, the aggregation target flag is stored, and this aggregation target flag is used when the data aggregation unit 14 extracts the aggregation target data. The last time data section is
Data to be compared by the aggregation target determination unit 13 with the aggregation target data unit, that is, “ordered quantity” and “delivery quantity” are stored, and when the data aggregation is performed, the data aggregation unit 14 stores the stored contents of the aggregation target data unit. Updated by copying.

【0014】データ集計手段14は、データ入力手段1
1からの指示によって起動される。この指示を出す方法
としては、データ入力手段11での作業者によるキー入
力や、自動起動設定による定時起動処理など採用でき
る。
The data totaling means 14 is the data inputting means 1
It is activated by an instruction from 1. As a method of issuing this instruction, a key input by an operator in the data input means 11 or a regular activation process by automatic activation setting can be adopted.

【0015】データ集計手段14は起動されると、図5
の本実施例のデータ集計方法および装置における集計フ
ァイルに対するデータの登録/更新処理の一例を示す流
れ図に従って処理を行い、図3の本実施例のデータ集計
方法および装置における集計ファイルのフォーマットを
示す図にある集計ファイルを作成する。すなわち、デー
タ記憶手段12に記憶されているデータファイルのデー
タを読み出し(ステップ51)、集計対象フラグの値が
[1] となっているデータを抽出する(ステップ52)。
抽出されたデータファイルのデータのキーデータ部と同
じ内容のキーデータ部を持っている集計ファイルのデー
タの集計対象データ部に対して、抽出されたデータファ
イルのデータの集計対象データ部の内容を加算し、前回
集計データ部の内容を減算する(ステップ53)。この
処理を、図2と図3のデータ項目名を用いて説明する
と、「図3の集計対象データ部の発注総量」は、「図3
の集計対象データ部の発注総量」に「図2の集計対象デ
ータ部の発注数量」を加算し「図2の前回集計データ部
の発注数量」を減算したものとなり、また、「図3の集
計対象データ部の納品総量」は、「図3の集計対象デー
タ部の納品総量」に「図2の集計対象データ部の納品数
量」を加算し「図2の前回集計データ部の納品数量」を
減算したものとなる。上記処理終了後、データファイル
から抽出されたデータの集計対象フラグの値を[0] に更
新し(ステップ54)、前回集計データ部の内容を集計
対象データ部の内容へと更新する(ステップ55)。
When the data totalizing means 14 is activated, FIG.
FIG. 3 is a diagram showing a format of a totalizing file in the data totaling method and apparatus of this embodiment shown in FIG. Create a summary file in. That is, the data of the data file stored in the data storage means 12 is read (step 51), and the value of the aggregation target flag is
The data of [1] is extracted (step 52).
For the data subject to aggregation of the data in the summary file that has a key data portion with the same content as the key data portion of the data in the extracted data file, specify the contents of the data subject to aggregation in the data of the extracted data file. Add and subtract the contents of the previous aggregated data section (step 53). This processing will be described using the data item names in FIGS. 2 and 3, and the “total order quantity of the data part to be aggregated in FIG. 3” is “FIG.
2 is added to the "total order quantity of the data part to be aggregated" and the "order quantity of the data part of the aggregate of Fig. 2" is subtracted, and the "order quantity of the previously aggregated data part of Fig. 2" is subtracted. "Total delivery quantity of the target data section" is the "total delivery quantity of the aggregation target data section of Fig. 3" plus "delivery quantity of the aggregation target data section of Fig. 2" to obtain "delivery quantity of the previous aggregation data section of Fig. 2". It will be subtracted. After the above processing is completed, the value of the aggregation target flag of the data extracted from the data file is updated to [0] (step 54), and the contents of the previous aggregation data part are updated to the contents of the aggregation target data part (step 55). ).

【0016】上記処理内におけるデータファイル・集計
ファイルに対するデータの更新処理は、データ集計手段
14より発行される更新依頼が、データ記憶手段12に
て、その依頼内容に従った登録/更新処理が実行される
ことによってデータ記憶手段12の記憶内容に反映され
る。なお、データファイルより読み出したデータのキー
データ部と同等の内容が登録されている、集計ファイル
のデータが存在しない場合には、データファイルより抽
出したデータのキーデータ部の内容をキーデータ部とし
たデータが集計ファイルに自動的に生成される。
In the update processing of data for the data file / totalized file in the above processing, the update request issued from the data totalizing means 14 is executed in the data storage means 12 according to the contents of the request. By doing so, the contents stored in the data storage means 12 are reflected. If the data equivalent to the key data part of the data read from the data file is registered and there is no data in the summary file, the content of the key data part of the data extracted from the data file is used as the key data part. The generated data is automatically generated in the summary file.

【0017】以上の処理がデータファイルに登録されて
いる集計対象フラグが[1] である全てのデータに対して
実施され、データファイルと集計ファイルの登録/更新
処理が行われる。
The above processing is carried out for all the data whose aggregation target flag is [1] registered in the data file, and the registration / update processing of the data file and the aggregation file is carried out.

【0018】データファイルに登録されているデータの
キーデータ部に関する集計結果を記憶する集計ファイル
は、図3の本実施例のデータ集計方法および装置におけ
る集計ファイルのフォーマットを示す図にあるように、
キーデータ部、集計対象データ部、一般データ部の3つ
の部分から構成される。キーデータ部はデータファイル
のキーデータ部と相対するデータ部であり、集計キーす
なわち「発注月」「発注部門コード」「品名コード」が
記憶されている。集計対象データ部はデータファイルの
集計対象データ部の各値を集計した結果すなわち「発注
総量」「納品総量」を記憶する部位である。一般データ
部は、集計日時などの集計に関した付随情報すなわち
「集計実施日時」が記憶される。
A totaling file for storing the totaling result concerning the key data part of the data registered in the data file is as shown in FIG. 3 showing the format of the totaling file in the data totaling method and apparatus of this embodiment.
It is composed of three parts: a key data part, an aggregation target data part, and a general data part. The key data section is a data section that faces the key data section of the data file, and stores a totaling key, that is, "ordering month", "ordering department code", and "product name code". The aggregation target data part is a part for storing the result of totaling the respective values of the aggregation target data part of the data file, that is, "total order amount" and "total delivery amount". In the general data section, accompanying information relating to aggregation such as aggregation date and time, that is, “aggregation execution date and time” is stored.

【0019】なお、データ記憶手段12は、データファ
イルや集計ファイルに対して発行された登録/更新依頼
を処理する機能と、これらのデータファイルや集計ファ
イルを記憶するハードディスク等の記憶媒体である。
The data storage means 12 is a storage medium such as a hard disk for storing a registration / update request issued to a data file or a total file and a data file or total file.

【0020】次に、本実施例の動作を、図6の本実施例
のデータ集計方法および装置における動作を説明するた
めのデータ登録/更新処理の一例を示す推移図に従って
説明する。これは本実施例の動作に伴う、ある1データ
のデータファイルでの記憶内容の時間的な変化に従って
推移する状態を示している。図6の状態1は、キーコー
ドが発注月[01]+ 発注部門コード[23601]+品名コード[3
61-266487-25] のデータがデータ入力手段11より新規
に入力された状態である。このとき、データが新規登録
されたため、集計対象判定手段13は集計対象となる旨
を判断し、集計対象フラグの値を[1] とし、集計対象で
あることを示すマーキングを行っている。また、前回集
計データ部は、集計対象データ部のデータがまだデータ
集計手段14にて1回も処理されていないため、[
][ ]の空となっている。
Next, the operation of this embodiment will be described with reference to a transition diagram showing an example of data registration / update processing for explaining the operation of the data totaling method and apparatus of this embodiment shown in FIG. This shows a state in which the stored contents of a data file of one piece of data changes with the operation of this embodiment. In the state 1 of FIG. 6, the key code is the ordering month [01] + ordering department code [23601] + product name code [3
61-266487-25] is newly input from the data input means 11. At this time, since the data has been newly registered, the aggregation target determination unit 13 determines that the data is to be aggregated, sets the value of the aggregation target flag to [1], and performs marking indicating that the data is to be aggregated. In the previous aggregation data section, the data in the aggregation target data section has not been processed by the data aggregation means 14 even once.
] [] Is empty.

【0021】状態2は、50個の納品があったことよ
り、データ入力手段11より集計対象データ部の「納品
数量」項目が[000050]に更新された状態である。このと
き、集計対象判定手段13は、前回集計データ部の登録
内容が[ ][ ]であり、修正された集計対象デ
ータ部の[000500][000050]と異なるため、集計対象フラ
グの値を[1] と判断し、集計対象であることを示すマー
キングを行っている。
The state 2 is a state in which the "delivery quantity" item of the data portion to be aggregated has been updated to [000050] by the data input means 11 since 50 items have been delivered. At this time, the aggregation target determination unit 13 sets the value of the aggregation target flag to [] because the registered content of the previous aggregation data part is [] [], which is different from [000500] [000050] of the modified aggregation target data part. 1] and mark it to indicate that it is a target for aggregation.

【0022】状態3は、定時処理によって自動的にデー
タ入力手段11より指示が発せられデータ集計手段14
が起動されて、集計処理が行われた状態である。このと
き、集計処理の実施されたことにより、集計対象フラグ
の値はマーキングがとれたことを示す[0] となり、前回
集計データ部の内容は、集計対象データ部の内容が複写
されるため、[000500][000050]となっている。また、デ
ータファイルのキーデータ部と同じキーデータ部([01]
+[23601]+[361-266487-25])を持つ集計ファイルのデー
タの集計対象データ部の内容は、発注総量に+500、
納品総量に+50が加算される。
In the state 3, the data input means 11 automatically issues an instruction by the regular processing and the data totalization means 14
Is activated, and the aggregation process is performed. At this time, the value of the aggregation target flag becomes [0] indicating that the marking was removed due to the aggregation processing being performed, and the content of the aggregation data part of the previous time is copied because the content of the aggregation data part is copied. It is [000500] [000050]. Also, the same key data part as the key data part of the data file ([01]
+ [23601] + [361-266487-25]) The contents of the data part of the aggregation target of the data of the aggregation file is +500 to the total order quantity,
+50 is added to the total delivered quantity.

【0023】この集計処理において、従来のトランザク
ションを用いる方式では、状態1でのトランザクション
による集計処理と状態2でのトランザクションによる集
計処理の2回の集計処理が実行されるところであるが、
図1に示すデータ集計方法および装置においては、状態
2における集計処理のみを行うにとどまっている。これ
は、トランザクションを用いるのではなく、データその
もの(状態2のデータの記述内容のみ)によって集計処
理を実施しているからである。
In this aggregation processing, in the method using the conventional transaction, the aggregation processing by the transaction in the state 1 and the aggregation processing by the transaction in the state 2 are executed twice.
The data totaling method and apparatus shown in FIG. 1 perform only the totaling process in the state 2. This is because the aggregation process is performed by the data itself (only the description content of the data in the state 2), not by using the transaction.

【0024】状態4と状態5は共に、納品数量の値がデ
ータ入力手段11により更新された状態を示している。
これは、状態3の時点以後に、50の物品が納品された
ものの、品質上の問題から返品された経緯を示してい
る。そのため、いったん状態4において納品数量の値が
[000100]に更新された後、状態5において[000050]に再
度更新されている。この状態5における[000050]という
値は、前回集計データ部の納品数量の値と同じ値[00005
0]であるため、集計対象判定手段13は、集計対象では
ないと判断し、集計対象であることを示すマーキングを
行わないため、集計対象フラグの値は、状態4にて集計
対象と判定され行ったマーキング(集計対象フラグの値
の[1] への更新)を削除するかたちで、[0] への更新を
している。この時点でデータ集計手段14が起動された
としても、本データは集計対象データとはならず、集計
処理の実施に何ら影響を与えることはない。これが、従
来のトランザクションを用いる方式であった場合には、
状態4と状態5のデータ更新処理により発生したトラン
ザクションに対する集計処理が行われることとなる。
Both the state 4 and the state 5 show the state in which the value of the delivered quantity is updated by the data input means 11.
This shows how 50 items were delivered after the state 3, but were returned due to quality problems. Therefore, once the value of the delivered quantity in state 4
After being updated to [000100], it is updated again to [000050] in state 5. The value [000050] in this state 5 is the same as the value of the delivered quantity in the last time data section [00005].
Therefore, the aggregation target determination unit 13 determines that the aggregation target is not the aggregation target, and does not perform marking to indicate that the aggregation target is set. Therefore, the value of the aggregation target flag is determined to be the aggregation target in the state 4. The marking (the updating of the value of the aggregation target flag to [1]) is deleted and updated to [0]. Even if the data totalizing means 14 is activated at this point, this data does not become the target data for aggregation and does not affect the implementation of the aggregation process. If this is the conventional transaction method,
The aggregation processing is performed on the transactions generated by the data update processing in the states 4 and 5.

【0025】状態6は、状態5の時点以降に30の物品
が納品されたために、データ入力手段11によって集計
対象データ部の納品数量の値が[000080]に更新された状
態である。このデータの更新によって、集計対象判定手
段13は、このデータの集計対象データ部の値と前回集
計データ部の値を比較し、データが集計対象であること
を示すマーキングである集計対象フラグの値の[1] への
更新を行っている。
The state 6 is a state in which the value of the delivered quantity of the data portion to be totalized is updated to [000080] by the data input means 11 because 30 articles have been delivered after the state 5. By updating this data, the aggregation target determination unit 13 compares the value of the aggregation target data part of this data with the value of the previous aggregation data part, and the value of the aggregation target flag that is a marking indicating that the data is the aggregation target. Is being updated to [1].

【0026】状態7は、定時処理によって自動的にデー
タ入力手段11より指示が発せられデータ集計手段14
が起動されて、集計処理が行われた状態である。このと
き、集計処理の実施されたことにより、集計対象フラグ
の値はマーキングがとれたことを示す[0] となり、前回
集計データ部の内容は、集計対象データ部の内容が複写
されるため、[000500][000080]となっている。また、デ
ータファイルのキーデータ部と同じキーデータ部([01]
+[23601]+[361-266487-25])を持つ集計ファイルのデー
タの集計対象データ部の内容は、発注総量に±0([000
500]の加算と[000500]の減算の結果)、納品数量に+3
0([000080]の加算と[000050]の減算の結果)が加算さ
れる。
In the state 7, the data input means 11 automatically issues an instruction by the regular processing and the data totalization means 14
Is activated, and the aggregation process is performed. At this time, the value of the aggregation target flag becomes [0] indicating that the marking was removed due to the aggregation processing being performed, and the content of the aggregation data part of the previous time is copied because the content of the aggregation data part is copied. It is [000500] [000080]. Also, the same key data part as the key data part of the data file ([01]
+ [23601] + [361-266487-25]) The contents of the aggregation target data part of the data of the aggregation file that has +0 ([000
Addition of 500] and subtraction of [000500]), +3 to the delivered quantity
0 (the result of addition of [000080] and subtraction of [000050]) is added.

【0027】この集計処理において、従来のトランザク
ションを用いる方式では、状態4でのトランザクション
による集計処理と状態5でのトランザクションによる集
計処理と状態6でのトランザクションによる集計処理の
合計3の集計処理が実行されるところであるが、本発明
のデータ集計方法および装置においては、状態6におけ
る集計処理のみを行うにとどまっている。これは、トラ
ンザクションを用いるのではなく、データそのもの(状
態6でのデータの記述内容のみ)によって集計処理を実
施しているからである。
In this tabulation process, in the method using the conventional transaction, the tabulation process by the transaction in the state 4, the tabulation process by the transaction in the state 5 and the tabulation process by the transaction in the state 6 are performed in total. However, the data totaling method and apparatus of the present invention only perform the totalizing process in the state 6. This is because the aggregation process is performed by the data itself (only the description content of the data in the state 6), not by using the transaction.

【0028】このように、集計対象データと判断される
データへのマーキングを、データファイルのデータの集
計対象データ部と前回集計データ部の値が異なる場合に
のみ行い、また、データ集計手段14が起動された時点
において、集計対象であることを示すマーキングされた
データすなわち、集計対象フラグが[1] であるデータの
みを抽出してデータ集計処理を行うことにより必要最低
限のデータ集計のみを行うことができ、データ集計処理
時間の低減を実現している。また、トランザクションデ
ータを別途必要としないことから、実データ以外の記憶
容量をデータ記憶手段12に準備しなくてもよくなる。
In this way, the marking of the data judged as the data to be totaled is performed only when the values of the data to be totalized and the previous totalized data part of the data of the data file are different, and the data totaling means 14 At the time of activation, only the minimum necessary data is aggregated by extracting the marked data indicating that it is the aggregation target, that is, the data whose aggregation target flag is [1] and performing the data aggregation process. It is possible to reduce the data aggregation processing time. Further, since transaction data is not required separately, it is not necessary to prepare a storage capacity other than actual data in the data storage means 12.

【0029】上記実施例では、発注データについて説明
したが、品質状況を示すデータや競馬の掛け率を表すオ
ッズを示すデータなどの他の種別のデータに関しても同
様である。また、集計対象データ部に記述するデータの
内容に関しても、特に数値データのみに対象を限定する
わけではない、たとえそれが文字データであった場合で
も、その文字コードによる演算や、件数のカウントなど
のデータ集計方法を用いる場合には、本データ集計方法
および装置が適用可能である。
In the above embodiment, the ordering data has been described, but the same applies to other types of data such as data indicating quality status and data indicating odds indicating a horse racing rate. Also, regarding the content of the data described in the data part to be aggregated, the target is not limited to numerical data in particular, even if it is character data, calculation by the character code and counting of the number of cases etc. When using the data aggregation method of No. 2, this data aggregation method and apparatus can be applied.

【0030】[0030]

【発明の効果】以上説明したように、本発明のデータ集
計方法および装置は、データ集計手段が起動された時点
において、前回のデータ集計手段が起動された際の集計
対象データ部の値から変化のあったデータのみを抽出し
て集計処理を実施することにより、最終的な集計データ
部の値によって必要最低限のデータ集計を行えばよく、
データ集計の処理時間を低減できる。
As described above, the data summarizing method and apparatus of the present invention, when the data summarizing means is activated, change from the value of the data portion to be summed when the previous data summarizing means was activated. By collecting only the data that has been present and performing the aggregation process, it is sufficient to perform the minimum necessary data aggregation by the value of the final aggregated data section,
The processing time for data aggregation can be reduced.

【0031】また、本発明のデータ集計方法および装置
ではトランザクションデータを生成しないため、データ
記憶手段に実際のデータ以外の容量を必要とせず、ま
た、データ記憶手段の容量も想定しやすいという効果も
ある。
Further, since the data summarization method and apparatus of the present invention does not generate transaction data, the data storage means need not have a capacity other than actual data, and the capacity of the data storage means can be easily assumed. is there.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明のデータ集計方法および装置の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a data totaling method and device of the present invention.

【図2】本実施例のデータ集計方法および装置における
データファイルのフォーマットを示す図である。
FIG. 2 is a diagram showing the format of a data file in the data totaling method and apparatus of this embodiment.

【図3】本実施例のデータ集計方法および装置における
集計ファイルのフォーマットを示す図である。
FIG. 3 is a diagram showing a format of an aggregation file in the data aggregation method and apparatus of this embodiment.

【図4】本実施例のデータ集計方法および装置における
データファイルに対するデータの登録/更新処理の一例
を示す流れ図である。
FIG. 4 is a flow chart showing an example of data registration / update processing for a data file in the data totaling method and apparatus of the present embodiment.

【図5】本実施例のデータ集計方法および装置における
集計ファイルに対するデータの登録/更新処理の一例を
示す流れ図である。
FIG. 5 is a flowchart showing an example of data registration / update processing for a totalization file in the data totalization method and apparatus of the present embodiment.

【図6】本実施例のデータ集計方法および装置における
動作を説明するためのデータ登録/更新処理の一例を示
す推移図である。
FIG. 6 is a transition diagram showing an example of data registration / update processing for explaining the operation of the data totaling method and apparatus of the present embodiment.

【符号の説明】[Explanation of symbols]

11 データ入力手段 12 データ記憶手段 13 集計対象判定手段 14 データ集計手段 11 Data Input Means 12 Data Storage Means 13 Aggregation Target Determination Means 14 Data Aggregation Means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データ入力手段がデータの登録と登録済
みデータの呼び出し、登録済みデータの修正/更新処理
を行い、データ記憶手段に前記データ入力手段にて入力
されたデータの記憶を行い、集計対象判定手段が前記デ
ータ入力手段から前記データ記憶手段へ受け渡されるデ
ータが集計対象となるデータであるかどうかをを判定
し、集計対象と判断されたデータのみにマーキングを行
い、データ集計手段が前記集計対象判定手段によりマー
キングされたデータのみを抽出し、マーキングの削除を
するとともに、データ集計を行い、集計ファイルの更新
を行うことを特徴とするデータ集計方法。
1. A data input means registers data, calls registered data, corrects / updates the registered data, stores the data input by the data input means in the data storage means, and totalizes the data. The object determining unit determines whether the data transferred from the data input unit to the data storage unit is the data to be aggregated, and only the data determined to be aggregated is marked, and the data aggregation unit A data totaling method characterized in that only the data marked by the totaling object judging means is extracted, the marking is deleted, the data is totaled, and the totalization file is updated.
【請求項2】 前記データ記憶手段がデータ集計を実施
した時点での情報を保有し、前記集計対象判定手段が、
前記データ記憶手段によって保有されたデータが修正さ
れた時点で集計対象データとなるかどうかの判断を行う
ことを特徴とする請求項1記載のデータ集計方法。
2. The data storage means retains information at the time of data aggregation, and the aggregation object determination means,
The data totaling method according to claim 1, wherein it is determined whether or not the data held by the data storage means becomes the totaling target data when the data is corrected.
【請求項3】 請求項1記載のデータ集計方法を用い、
データ入力手段と、集計対象判定手段と、データ集計手
段とを備えることを特徴とするデータ集計装置。
3. The data totaling method according to claim 1,
A data totaling apparatus comprising: a data inputting unit, a totaling target determining unit, and a data totaling unit.
【請求項4】 請求項2記載のデータ集計方法を用い、
データ入力手段と、集計対象判定手段と、データ集計手
段とを備えることを特徴とするデータ集計装置。
4. The data aggregation method according to claim 2,
A data totaling apparatus comprising: a data inputting unit, a totaling target determining unit, and a data totaling unit.
JP7062822A 1995-03-22 1995-03-22 Data totalization method and device Pending JPH08263347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7062822A JPH08263347A (en) 1995-03-22 1995-03-22 Data totalization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7062822A JPH08263347A (en) 1995-03-22 1995-03-22 Data totalization method and device

Publications (1)

Publication Number Publication Date
JPH08263347A true JPH08263347A (en) 1996-10-11

Family

ID=13211418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7062822A Pending JPH08263347A (en) 1995-03-22 1995-03-22 Data totalization method and device

Country Status (1)

Country Link
JP (1) JPH08263347A (en)

Similar Documents

Publication Publication Date Title
US7870099B2 (en) Computer readable recording medium having stored therein database synchronizing process program, and apparatus for and method of performing database synchronizing process
AU694583B2 (en) Database system and its data exploitation support apparatus
US20080065454A1 (en) Database system and information processing system with process code information
JPH08272626A (en) Batch job processing method
JPH1031791A (en) Sales data processor
JP5086674B2 (en) Report creation method, report creation device, and report creation program
US6728717B2 (en) Storage system with online manual
JPH08263347A (en) Data totalization method and device
JP2004355203A (en) Update/history/tabulation management system for data
JP3764971B2 (en) History information management device
JP3771753B2 (en) Integrated resource management method
JP2573926B2 (en) Verification method of file update
JP2000259742A (en) Method for judging necessity of adding/excluding and correcting history record of account data, account processor, and recording medium for program for judging the necessity of adding/excluding and correcting history record
JP2685997B2 (en) OCR data input processing method
JP3143930B2 (en) Data processing device
JP2008033815A (en) Project management device, method and program
JP2001052220A (en) Operation totalization system, totalization server, terminal of person in charge, and recording medium
JP3387310B2 (en) Accounting data deletion / restoration processing method
JP3061003B2 (en) Budget management system
JPH0628373A (en) Slip balance controller
JPH08179975A (en) File processing system
JP2001243397A (en) Information processor
JP3866239B2 (en) Accounting apparatus and method, and accounting program
JP3544555B2 (en) Batch job management method and data processing system
JPH06324930A (en) Data processor and data processing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980203