JPH03265029A - Data sum-up processing system - Google Patents

Data sum-up processing system

Info

Publication number
JPH03265029A
JPH03265029A JP2065380A JP6538090A JPH03265029A JP H03265029 A JPH03265029 A JP H03265029A JP 2065380 A JP2065380 A JP 2065380A JP 6538090 A JP6538090 A JP 6538090A JP H03265029 A JPH03265029 A JP H03265029A
Authority
JP
Japan
Prior art keywords
file
aggregation
sum
record
data
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
JP2065380A
Other languages
Japanese (ja)
Inventor
Yoko Hatasaki
畑崎 陽子
Yoshio Miura
美穂 三浦
Hiroshi Kadonaga
門永 宏
Hisahiro Nakada
中田 壽宏
Nobuo Kataue
片上 伸夫
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
NEC Software Kansai Ltd
Original Assignee
NEC Corp
NEC Software Kansai Ltd
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, NEC Software Kansai Ltd filed Critical NEC Corp
Priority to JP2065380A priority Critical patent/JPH03265029A/en
Publication of JPH03265029A publication Critical patent/JPH03265029A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the generating rate of bugging in a program and to simplify a test by registering a sum-up rule to a file, successively reading the rule by the program and executing the read, calculation and write of data according to the registered sum-up rule. CONSTITUTION:A data file (DF) 4 inputs items to be summed up to a record and a sum-up file (SF) is composed of the same number of records corresponding to the DF4 and respectively stores the sum-up rules of respective records for four items such as a sum-up destination 1, arithmetic 1, sum-up destination 2 and arithmetic 2. An application program (AP) 1 is composed of a calculating means 2 and a file read/write means 3 and when the AP1 is executed, the DF4 is updated so as to read the SF5 for each record. When the records are not summed up, the sum-up destination 1 becomes 0 and therefore, the next record is read. When the records are summed up, calculation is executed by the means 2 according to the arithmetic 1 item and the result of arithmetic is written to the records, which is instructed by the sum-up destination 1 item, by the means 3. When there are two sum-up destinations, the processing is executed according to the sum-up destination 2 item and arithmetic 2 item. Thus, the contents of the program are simplified, the generation of bugging is suppressed and the test can be simplified.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータファイルの集計方法に係り、特に大規模
データファイルにおいてレコード間で集計を行うときの
集計方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data file aggregation method, and particularly to a aggregation method when performing aggregation between records in a large-scale data file.

〔従来の技術〕[Conventional technology]

従来、データファイルのレコード間集計を行うに際して
は、アプリケーションプログラムの中でレコード単位の
集計ルールを持ち、集計するデータを指定して読み込み
、各レコードに応じた集計を行い、集計データを集計光
レコードに書き込む。
Conventionally, when performing inter-record aggregation of a data file, an application program has an aggregation rule for each record, specifies and reads the data to be aggregated, performs aggregation according to each record, and stores the aggregated data in the aggregate optical record. write to.

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

従来ではアプリケーションプログラムの中で集計ルール
を持っているので、アプリケーションプログラム自体、
そのアルゴリズムは非常に複雑化しており、集計ルール
の定義ミス等によるバグ発生率も高く、アプリケーショ
ンプログラム作成後のテスト、チエツクにも多大の工数
を要する。また、−旦作成した後の集計ルールの変更は
頻繁に発生する為、変更の度にアプリケーションプログ
ラムのソースを修正し、再コンパイル、リンク。
Conventionally, the application program has aggregation rules, so the application program itself
The algorithms are extremely complex, the rate of bugs due to mistakes in the definition of aggregation rules is high, and testing and checking after creating an application program requires a large amount of man-hours. Additionally, since changes to aggregation rules occur frequently after they have been created, the application program source must be modified, recompiled, and linked each time a change is made.

テストという手順を踏まなければならず、その際の改修
に要する工数は非常に大きいという欠点がある。すなわ
ちアプリケーションプログラムの汎用性が低く、改修に
伴なうバグの発生の危険性も高い。
The drawback is that a testing procedure must be followed, and the number of man-hours required for modification is extremely large. In other words, the versatility of the application program is low, and there is a high risk of bugs occurring during modification.

〔課題を解法するための手段〕[Means for solving problems]

本発明のデータ集計処理方式は、データファイルと、各
レコードの数値をどのレコードに集計するかを示した集
計ルールを持つ集計ファイルと、前記データファイルと
前記集計ファイルの読み出し・書き込みを行うファイル
読出し書込み手段と、前記集計ファイルのレコードを順
次読みながら前記集計ファイルに登録された情報に従っ
て前記データファイルの演算を行う演算手段とを有する
The data aggregation processing method of the present invention includes a data file, an aggregation file having an aggregation rule indicating to which record the numerical value of each record is to be aggregated, and a file readout that reads and writes the data file and the aggregation file. It has a writing means, and an arithmetic means for performing calculations on the data file according to information registered in the aggregation file while sequentially reading records of the aggregation file.

〔実施例〕 次に本発明について図面を参照して説明する。〔Example〕 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示す全体構成図である。同
図において4はデータファイルで、レコードには集計す
る項目が入っている。5は集計ファイルで、 データフ
ァイルに対応して同レコード数から成り、各レコードの
集計ルールが格納されている。
FIG. 1 is an overall configuration diagram showing an embodiment of the present invention. In the figure, 4 is a data file, and records include items to be totaled. 5 is an aggregation file, which consists of the same number of records corresponding to the data file, and stores aggregation rules for each record.

アプリケーションプログラム1を実行すると、データフ
ァイル4が更新される。また、このプログラム内には2
つの手段があり、演算手段2は読み込んだレコードの項
目について集計ファイルで指示したルールに従って演算
を行う、ファイル読み出し書き込み手段3は集計ファイ
ルおよびデータファイルを順次読み込み、演算手段によ
り演算した結果を集計ファイルで指示したレコードに書
き込む。
When the application program 1 is executed, the data file 4 is updated. Also, this program contains 2
The calculation means 2 performs calculations on the items of the read records according to the rules specified in the summary file, and the file reading/writing means 3 sequentially reads the summary file and the data file and stores the results calculated by the calculation means in the summary file. Write to the record specified by .

第2図(a>および(b)はデータファイル4と集計フ
ァイル5の構成図である。これら2つのファイルはそれ
ぞれ同じレコード数から構成されている。データファイ
ル4中の集計する項目6はアプリケーションプログラム
1を実行すると更新される。7および9は演算結果を書
き出すデータファイル4のレコード番号、8および10
は演算処理時における加算や減算等を指示する。集計フ
ァイル5のレコードレイアウトが示すように、ルコード
に対して1ケ所まで集計光を指定することができる。
Figures 2 (a> and (b) are configuration diagrams of the data file 4 and the total file 5.These two files are each composed of the same number of records.The item 6 to be totaled in the data file 4 is an application It is updated when program 1 is executed. 7 and 9 are the record numbers of data file 4 where the calculation results are written, 8 and 10
indicates addition, subtraction, etc. during arithmetic processing. As shown in the record layout of the tally file 5, it is possible to specify up to one tally light for each code.

第3図はアプリケーションプログラム1の処理手順を示
す流れ図である。集計ファイル5をルコードずつ読み込
み(ステップ31)、特に集計しない場合には集計光1
が0になっている(ステップ32)ので、次レコードを
読む。集計する場合には演算1に従って演算処理を行い
(ステップ33)、集計光1で指示したレコードに演算
結果を書き出す(ステップ34)。集計光が2ケ所ある
場合(ステップ35)は集計光2.演算2に従って処理
する(ステップ36.37>。
FIG. 3 is a flowchart showing the processing procedure of the application program 1. Read the tally file 5 code by code (step 31), and if you do not want to tally it, read the tally light 1
is 0 (step 32), so the next record is read. In the case of totaling, arithmetic processing is performed according to calculation 1 (step 33), and the calculation results are written to the record specified by the totalization light 1 (step 34). If there are two aggregate lights (step 35), aggregate lights 2. Process according to operation 2 (steps 36 and 37>).

第4図は第2図で示したデータファイル4と集計ファイ
ル5を使用してアプリケーションプログラムlを実行し
た結果を示す。データファイル4の項目6は4レコード
目および6レコード目が更新されている。
FIG. 4 shows the result of executing the application program 1 using the data file 4 and total file 5 shown in FIG. In item 6 of data file 4, the fourth and sixth records have been updated.

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

本発明によるデータ集計方式は次に述べる効果を挙げる
ことができる。
The data aggregation method according to the present invention can bring about the following effects.

本発明によれば集計ルールをファイルに登録することに
より、アプリケーションプログラムでは単に集計ファイ
ルを順次読み集計ファイルに登録された集計ルールに従
ってデータファイルの読み込み、演算、書き出しという
操作を行えばよい。
According to the present invention, by registering aggregation rules in a file, an application program can simply read the aggregation file one by one and perform operations such as reading, calculating, and writing data files in accordance with the aggregation rules registered in the aggregation file.

したがってプログラムの内容は簡潔なものとなり、プロ
グラムのバグ発生率は低下し、作成後のテストも簡略化
することができる。
Therefore, the content of the program becomes concise, the bug occurrence rate of the program is reduced, and testing after creation can be simplified.

また、作成したアプリケーションプログラムは集計処理
用としてデータファイルまたは集計ファイルを差し換え
ることによりいがなる集計処理にも流用でき、汎用性の
高いものとなる。
Furthermore, the created application program can be used for aggregation processing by replacing the data file or the aggregation file for the aggregation processing, making it highly versatile.

集計ルールに変更が生じた場合、従来はアプリケーショ
ンプログラムを改修しなければならなかったが、集計フ
ァイルを持つことにより単に集計ファイルの内容を修正
するのみでよく、その操作性、安全性が向上する。
In the past, when the aggregation rules changed, the application program had to be modified, but by having the aggregation file, you only need to modify the contents of the aggregation file, improving operability and safety. .

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

第1図は本発明の一実施例を示す全体構成図、第2図は
ファイルの構成図、第3図はアプリケーションプログラ
ムの処理手順を示す流れ図、第4図はアプリケーション
プログラムを実行した例を示す説明図である。 1・・・アプリケーションプログラム、2・・・演算処
理、3・・・ファイル読み出し・書き込み処理、4.・
・データファイル、5・・・集計ファイル。
Fig. 1 is an overall configuration diagram showing an embodiment of the present invention, Fig. 2 is a file configuration diagram, Fig. 3 is a flow chart showing the processing procedure of an application program, and Fig. 4 shows an example of executing the application program. It is an explanatory diagram. 1... Application program, 2... Arithmetic processing, 3... File read/write processing, 4.・
・Data file, 5...Tally file.

Claims (2)

【特許請求の範囲】[Claims] (1)データファイルと、各レコードの数値をどのレコ
ードに集計するかを示した集計ルールを持つ集計ファイ
ルと、前記データファイルと前記集計ファイルの読み出
し・書き込みを行うファイル読出し書込み手段と、前記
集計ファイルのレコードを順次読みながら前記集計ファ
イルに登録された情報に従って前記データファイルの演
算を行う演算手段とを有することを特徴とするデータ集
計処理方式。
(1) a data file, a totalization file having aggregation rules indicating to which record the numerical value of each record is to be aggregated, a file read/write means for reading and writing the data file and the totalization file, and the aggregation file. 1. A data aggregation processing method, comprising: arithmetic means for performing arithmetic operations on the data file according to information registered in the aggregation file while sequentially reading records of the file.
(2)データファイルと、各レコードの数値をどのレコ
ードに集計するかを示した集計ルールを持つ集計ファイ
ルとを有し、前記データファイルと前記集計ファイルの
読み出し・書き込みを行い、前記集計ファイルのレコー
ドを順次読みながら前記集計ファイルに登録された情報
に従って前記データファイルの演算を行うことを特徴と
する特許請求の範囲第一項記載のデータ集計処理方式。
(2) It has a data file and an aggregation file that has an aggregation rule indicating which record to aggregate the numerical value of each record, reads and writes the data file and the aggregation file, and writes the aggregation file to the aggregation file. 2. The data aggregation processing method according to claim 1, wherein calculations are performed on the data file according to information registered in the aggregation file while sequentially reading records.
JP2065380A 1990-03-14 1990-03-14 Data sum-up processing system Pending JPH03265029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2065380A JPH03265029A (en) 1990-03-14 1990-03-14 Data sum-up processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2065380A JPH03265029A (en) 1990-03-14 1990-03-14 Data sum-up processing system

Publications (1)

Publication Number Publication Date
JPH03265029A true JPH03265029A (en) 1991-11-26

Family

ID=13285315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2065380A Pending JPH03265029A (en) 1990-03-14 1990-03-14 Data sum-up processing system

Country Status (1)

Country Link
JP (1) JPH03265029A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664794B2 (en) 2000-02-14 2010-02-16 Nice Systems Ltd. Content-based storage management

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664794B2 (en) 2000-02-14 2010-02-16 Nice Systems Ltd. Content-based storage management
US8195616B2 (en) 2000-02-14 2012-06-05 Nice Systems Ltd. Content-based storage management

Similar Documents

Publication Publication Date Title
CA2241767C (en) A system for transforming and exchanging data between distributed heterogeneous computer systems
Liu Systematic Program Design: From Clarity to Efficiency
JPH03265029A (en) Data sum-up processing system
US20170090882A1 (en) Program development support system and program development support software
JPS62128365A (en) Data management system for cad system
JP2820184B2 (en) Load module unit test support device
CN107885492A (en) The method and device of data structure dynamic generation in main frame
JPH0695862A (en) Instruction string optimization supporting device
JPS59117660A (en) Processing system for restoration of simulation state
JPS58166481A (en) Graphic data processing system
JP2560608B2 (en) Micro program check system
JP2912359B1 (en) Simulation method and recording medium recording the program
JPH04281528A (en) Software design specification confirming system
Wiley et al. Writing Functions
JPH0264744A (en) Fault analyzing information acquiring system
JPH0283634A (en) Program debugging system
JPS5846439A (en) Program editing method of computer
JPH05165613A (en) Resource relational information display processing system
JPH04229343A (en) Memory contents display system in interactive debugger
JPH04195640A (en) Program testing method
JPH04119436A (en) Generalizing method for control program in automatic test system
JPH03225532A (en) Code generation system of compiler for tracing variable of debugger
JPH044434A (en) Program tracing method
JPH0373068A (en) Logic simulation system
JPH04167130A (en) Field check system