JPH0488476A - Data totalization system - Google Patents

Data totalization system

Info

Publication number
JPH0488476A
JPH0488476A JP2197145A JP19714590A JPH0488476A JP H0488476 A JPH0488476 A JP H0488476A JP 2197145 A JP2197145 A JP 2197145A JP 19714590 A JP19714590 A JP 19714590A JP H0488476 A JPH0488476 A JP H0488476A
Authority
JP
Japan
Prior art keywords
data
key
contents
totalization
program
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
JP2197145A
Other languages
Japanese (ja)
Inventor
Hiroki Watanabe
渡辺 浩樹
Kiyosato Tanaka
田中 清里
Akira Tamaki
彰 玉木
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 JP2197145A priority Critical patent/JPH0488476A/en
Publication of JPH0488476A publication Critical patent/JPH0488476A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To eliminate limitations by a processing time, the memory of a computer, etc., by reading key contents, which are stored in a storage medium, in a program, developing them in the program, and identifying and totalizing input data individually. CONSTITUTION:The key contents stored in a key contents storage file 1 are developed in a totalization area 3 in the storage order through the operation of a key contents development processing part 2 and the input data are read in successively. The totalization area 3 is retrieved according to the key value of the input data; when there is a corresponding key value in the totalization area 3, a totalization item addition process is carried out and next data is read in. When the data of the input file are all read, the contents of the totalization area 3 are written in an output file and the data in the totalization area 3 are rearranged in the quantity order of the input data. The key contents of the rearranged totalization area 3 are written back in the key contents storage file 1. Consequently, the limitations by the processing time, the memory of the computer, etc., are eliminated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は集計キーの内容が多数のデータ、例えばデー
タベースの更新履歴を特定の集計キーにより集計するデ
ーター括処理におけるデータ集計方式に間する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data aggregation method in data batch processing in which the content of the aggregation key is aggregation of a large number of data, such as the update history of a database, using a specific aggregation key.

〔従来の技術〕[Conventional technology]

従来、データー括処理におけるデータ集計はデーター件
ごとに外部記憶媒体に直接アクセスし加減算するか、プ
ログラムのメモリ上で加減算し集計終了後に外部記憶媒
体へ格納する方法で行っていた。
Conventionally, data aggregation in data batch processing has been performed by directly accessing an external storage medium for each data item and performing additions and subtractions, or by adding and subtracting in the memory of a program and storing it in an external storage medium after the aggregation is completed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

データー件ごとに外部記憶媒体に直接アクセスする方法
かメモリ上で集計する従来の方法では、処理時間やコン
ピュータのメモリ等による制限を受けるといった問題が
ある。
Conventional methods of directly accessing an external storage medium for each data item or aggregating data in memory have the problem of being limited by processing time, computer memory, etc.

また、逐次増加するキーの種類に対応して処理を実行し
なければならない。
Furthermore, processing must be performed in response to the increasing number of key types.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデータ集計処理は、集計キー項目を持つデータ
が記憶されている配憶媒体から入力されたデータをプロ
グラムで指定された集計キー項目により集計するデータ
集計方式において、集計するキー内容を記憶媒体に格納
する手段と、格納されているキー内容をプログラムへ読
み込む手段と、読み込んだキー内容をプログラムへ展開
する手段と、入力されたデータを識別し個々に集計する
手段とを含む。
The data aggregation process of the present invention is a data aggregation method in which data input from a storage medium storing data having aggregation key items is aggregated using aggregation key items specified by a program, and the key contents to be aggregated are stored. It includes means for storing on a medium, means for reading stored key contents into a program, means for developing the read key contents into a program, and means for identifying and individually totaling input data.

また、本発明のデータ集計方式は、展開されたキー内容
に入力データの集計キー内容が該当しないとき前記入力
データを外部記憶媒体へ出力する手段を具備するように
して構成される。
Further, the data aggregation method of the present invention is configured to include means for outputting the input data to an external storage medium when the aggregation key content of the input data does not correspond to the expanded key content.

〔実施例〕〔Example〕

以下に本発明の実施例について図面を参照しながら詳細
に説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例を示す構成図である。同図に
おいてデータ集計方式は、集計するデータのキー内容を
格納するキー内容格納ファイル1と、格納されているキ
ー内容をプログラム起動時にプログラムのメモリ上に展
開するキー内容展開処理部2と、プログラムのメモリ上
に実現される集計領域3と、外部データを入力するデー
タ入力処理部4と、データ入力処理部4で入力されたデ
ータを集計領域3を用いて集計するデータ集計処理部5
と、集計された集計領域3の内容を外部ファイルへ出力
するデータ8力処理部6から構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, the data aggregation method consists of a key content storage file 1 that stores the key content of data to be aggregated, a key content development processing unit 2 that develops the stored key content on the memory of the program when the program is started, and a program. a totalization area 3 realized on the memory of , a data input processing section 4 that inputs external data, and a data totalization processing section 5 that totalizes the data input by the data input processing section 4 using the totalization area 3.
and a data processor 6 that outputs the totalized contents of the total area 3 to an external file.

また、本データー括処理におけるデータ集計方式は、コ
ンピュータシステムに適用して実施される。
Furthermore, the data aggregation method in this data batch processing is implemented by applying it to a computer system.

第2図は上記のデータ集計方式の動作を示すフローチャ
ートである。同図においてステップ11はキー内容展開
処理部2の働きにより、キー内容格納ファイル1に格納
されているキー内容を、格納順に集計領域3へ展開する
。続いて順次、入力データをコ売み込む。
FIG. 2 is a flowchart showing the operation of the data aggregation method described above. In step 11 in the figure, the key contents expansion processing unit 2 expands the key contents stored in the key contents storage file 1 into the total area 3 in the order in which they are stored. Next, input data is submitted one after another.

ステップ12は入力データが有る場合にはステップ13
〜19の集計処理を実行し、入力データが無くなった段
階でステップ20〜22の終了を実行する。
Step 12 is step 13 if there is input data.
- 19 are executed, and when there is no more input data, steps 20 - 22 are terminated.

ステップ13は入力データのキー値により集計領域3を
検索する。該当するキー値が集計領域3に存在する場合
はステップ14にて集計項目加算処理を行い、次のデー
タを読み込む。
Step 13 searches the total area 3 using the key value of the input data. If the corresponding key value exists in the total area 3, a total item addition process is performed in step 14, and the next data is read.

該当するキー値が集計領域3に存在しない場合はステッ
プ15にて出力ファイルを入力ファイルのキー値により
読み込み、出力ファイルにデータが存在する場合は読み
込んだ出力ファイルの内容に入力ファイルのデータを加
算して(ステップ16.18)出力ファイルに書き戻す
(ステップ19)。出力ファイルにデータが存在しない
場合はステップ17で入力ファイルの内容を編集してス
テップ19で出力ファイルに書き出す。
If the corresponding key value does not exist in the aggregation area 3, the output file is read in step 15 using the key value of the input file, and if data exists in the output file, the data of the input file is added to the contents of the read output file. (step 16.18) and written back to the output file (step 19). If no data exists in the output file, the contents of the input file are edited in step 17 and written to an output file in step 19.

入力ファイルが無くなった場合は、処理をステップ20
へ移す。ステップ20は集計領域3の内容を出力ファイ
ルへ書き出す。ステップ2oは集計領域3を入力データ
の該当件数順に並び替える。ステップ22は並べ替えし
た集計領域3のキー内容をキー内容格納ファイル1へ書
き戻す。
If there are no more input files, proceed to step 20.
Move to. Step 20 writes the contents of the total area 3 to an output file. Step 2o rearranges the total area 3 in order of the number of applicable input data. Step 22 writes back the rearranged key contents of the total area 3 to the key contents storage file 1.

〔発明の効果〕〔Effect of the invention〕

以上の説明から明らかなように、本発明のデータ集計方
式を用いることにより、発生頻度が多いものが常にプロ
グラムのメモリ上の先頭領域に常駐され検索の効率が良
く、また、発生頻度の少ないものは直接出力ファイルに
アクセスすることにより、プログラムのメモリを有効に
利用することができる。
As is clear from the above explanation, by using the data aggregation method of the present invention, items that occur frequently are always resident in the first area of the program memory, improving search efficiency, and items that occur less frequently can make effective use of program memory by directly accessing the output file.

さらに、日々増加するキーの種類にそのたびに対応する
必要がなくなる。
Furthermore, there is no need to deal with the increasing number of key types every day.

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

第1図は本発明の一実施例を示す構成図、第2図は動作
手順の例を示す流れ図である。 1・・・キー内容格納ファイル、2・・・キー内容展開
処理部、3・・・集計領域、4・・・データ入力処理部
、5・・・データ集計処理部、6・・・データ圧力処理
部。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart showing an example of an operating procedure. DESCRIPTION OF SYMBOLS 1...Key content storage file, 2...Key content expansion processing section, 3...Aggregation area, 4...Data input processing section, 5...Data aggregation processing section, 6...Data pressure processing section.

Claims (1)

【特許請求の範囲】 1、集計キー項目を持つデータが記憶されている記憶媒
体から入力されたデータをプログラムで指定された集計
キー項目により集計するデータ集計方式において、集計
するキー内容を記憶媒体に格納する手段と、格納されて
いるキー内容をプログラムへ読み込む手段と、読み込ん
だキー内容をプログラムへ展開する手段と、入力された
データを識別し個々に集計する手段とを含むことを特徴
とするデータ集計方式。 2、請求項1記載のデータ集計方式において、展開され
たキー内容に入力データの集計キー内容が該当しないと
き前記入力データを外部記憶媒体へ出力する手段を具備
することを特徴とするデータ集計方式。
[Claims] 1. In a data aggregation method in which data input from a storage medium storing data having aggregation key items is aggregated using aggregation key items specified by a program, the key contents to be aggregated are stored in the storage medium. The present invention is characterized by comprising means for storing the stored key contents in the program, means for loading the stored key contents into the program, means for expanding the read key contents into the program, and means for identifying and individually aggregating the input data. data aggregation method. 2. The data aggregation method according to claim 1, further comprising means for outputting the input data to an external storage medium when the aggregation key content of the input data does not correspond to the expanded key content. .
JP2197145A 1990-07-25 1990-07-25 Data totalization system Pending JPH0488476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2197145A JPH0488476A (en) 1990-07-25 1990-07-25 Data totalization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2197145A JPH0488476A (en) 1990-07-25 1990-07-25 Data totalization system

Publications (1)

Publication Number Publication Date
JPH0488476A true JPH0488476A (en) 1992-03-23

Family

ID=16369510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2197145A Pending JPH0488476A (en) 1990-07-25 1990-07-25 Data totalization system

Country Status (1)

Country Link
JP (1) JPH0488476A (en)

Similar Documents

Publication Publication Date Title
JPH0488476A (en) Data totalization system
CN115544096B (en) Data query method and device, computer equipment and storage medium
US20240311372A1 (en) Method and database system for optimizing query processing execution scheme
EP3940571A1 (en) Data substitution device, data substitution method, and program
JP3008483B2 (en) Link processing device
JPH02151944A (en) Data processor
JP2002297897A (en) Method and program for storing data
JPS62121532A (en) Data retrieving method
JP2507399B2 (en) Database equipment
JPH02116936A (en) Reorganizing system
JP3189804B2 (en) Data backup method and device
JPH025153A (en) Data base record format conversion system
JPH08235044A (en) Journal retrieval systm
CN110895531A (en) Data writing method of data storage table, partition server and electronic equipment
JPS61120238A (en) File access system
JPH05165686A (en) Data store control system
JPH0573390A (en) Deadlock handling process system for data base
JPH0553886A (en) Table access managing system
JPH096629A (en) Program conversion method
JPH04353944A (en) Record additional system for index order formation file
JPH07175695A (en) Controlling system for database
JPH02263265A (en) Tabulation processor
JPH06103124A (en) Data base system
JPH05158760A (en) Migration processing system
JPH0337720A (en) Data chaining system for dictionary system