JPH03147150A - Data processing system - Google Patents

Data processing system

Info

Publication number
JPH03147150A
JPH03147150A JP1286259A JP28625989A JPH03147150A JP H03147150 A JPH03147150 A JP H03147150A JP 1286259 A JP1286259 A JP 1286259A JP 28625989 A JP28625989 A JP 28625989A JP H03147150 A JPH03147150 A JP H03147150A
Authority
JP
Japan
Prior art keywords
file
data processing
time
input
read
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
JP1286259A
Other languages
Japanese (ja)
Inventor
Sakae Tashiro
田代 榮
Naoki Hashiguchi
直樹 橋口
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 Fielding Ltd
Original Assignee
NEC Fielding 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 Fielding Ltd filed Critical NEC Fielding Ltd
Priority to JP1286259A priority Critical patent/JPH03147150A/en
Publication of JPH03147150A publication Critical patent/JPH03147150A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten time for a data processing by rearranging input records in the order of values provided for items in advance by a central processing unit and executing an output record preparation processing while skipping a reference instruction when a previously read key value is coincident with a key value to be read this time. CONSTITUTION:A central processing unit 10 reads an inputted file intermediate file 42 and moves a field A of an input file 41 to a new key area 21. Next, the new key area 21 is compared with an old key area 22 and when they are same, the file is already read the previous time or the time before the previous time. Therefore, the next output record preparation processing is executed without referring a reference file 30. Thus, the number of times for accessing the reference file with the data processing, namely, access time is reduced and the time for the data processing of a program is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理方式に関し、特に入力レコード中の
所定の項目により、他ファイルを参照するデータ処理方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing method, and more particularly to a data processing method in which other files are referenced by predetermined items in an input record.

〔従来の技術〕[Conventional technology]

従来、この種のデータ処理方式は、入力レコード中の所
定の項目により、他ファイルを参照する場合、特に何の
考慮もせずに無条件に他ファイルの参照を行っていた。
Conventionally, in this type of data processing method, when referring to another file based on a predetermined item in an input record, the other file is referred to unconditionally without any particular consideration.

このため、入力レコード数と同じ数だけの他ファイルを
参照していた。
Therefore, the same number of other files as the number of input records were referenced.

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

上述した従来のデータ処理方式では、無条件に他ファイ
ルを参照するため、入力レコード数に直接依存したデー
タ処理時間が必要となり、入力レコード数が多い場合に
は、データ処理時間が長くなるという欠点がある。
In the conventional data processing method described above, since other files are referenced unconditionally, the data processing time is directly dependent on the number of input records, and the disadvantage is that the data processing time becomes longer when the number of input records is large. There is.

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

本発明は、入力レコード中の特定の項目により、他ファ
イルを参照するコンピュータ・システムのデータ処理方
式において、中央処理装置は前記入力レコードを事前に
前記項目の持つ値の1項番に並べ替え、且つ、前記他フ
ァイルの参照命令の直前に、1回前に読み込んだキー値
と今回読むベきキー値とが一致するかをチエ・ツクし、
一致すれば前記参照命令をスキップし、出力レコード作
成処理を実行することを特徴とする。
The present invention provides a data processing method for a computer system that refers to other files based on a specific item in an input record, in which a central processing unit sorts the input record in advance into one item number of the value of the item, Immediately before the instruction to reference the other file, check whether the key value read previously matches the key value to be read this time,
If they match, the reference command is skipped and output record creation processing is executed.

〔実施例〕〔Example〕

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

第1図は本発明のデータ処理方式を実現するためのハー
ドウェアの実施例を示すブロック図である。第1図にお
いて、10は中央処理装置であり、また、20は主記憶
装置であって、このエリア内には新キー・エリア21及
び旧キー・エリア22が確保されている。30は参照フ
ァイルであって、磁気ディスク装置上に存在する。41
・42・43はそれぞれ入力ファイル、中間ファイル及
び出力ファイルであって、磁気テープ装置が用いられて
いる。
FIG. 1 is a block diagram showing an embodiment of hardware for realizing the data processing method of the present invention. In FIG. 1, 10 is a central processing unit, and 20 is a main memory, in which a new key area 21 and an old key area 22 are secured. 30 is a reference file, which exists on the magnetic disk device. 41
・42 and 43 are input files, intermediate files, and output files, respectively, and magnetic tape devices are used.

第2図は第1図のハードウェアのジョブフローを説明す
る図である。第2図において、各ステ・ノブの説明は次
の通りである。
FIG. 2 is a diagram illustrating the job flow of the hardware shown in FIG. 1. In FIG. 2, the explanation of each stem knob is as follows.

5TEP  I :  入力ファイル41の゛フィール
ドA ”をソートキーとしてフィール ドA・ エリアの持つ値の順番にソート(分 類)することにより、フィールドA・ エリアに同一値を持つ入力レコードは 連続して中間ファイル42に出力され る。これにより、次のステップにおけ るキーチェック・ルーチンのヒツト率 の向上をはかつている。なお、このス テップIはサービスプログラムを使用 して実行可能なため、ジョブ制御言語 (JCL)の追加コーディングのみで 済む。
5TEP I: By sorting (classifying) the input file 41 in the order of the values in the field A/area using "Field A" as the sort key, input records with the same value in the field A/area are successively stored in the intermediate file. 42. This improves the hit rate of the key check routine in the next step. Note that since step I can be executed using a service program, it is possible to use the job control language (JCL). Only additional coding is required.

5TEP II :  ユーザにより作成されたデータ
処理プログラムであり、入力ファイル41の″フィール
ドA ”によりソートされた中間ファイル42を入力し
、フィールドA・エリアの持つ値で参照ファイル30を
参照して出力ファイル43に出力する出力レコードを作
成するプログラムで ある。
5TEP II: This is a data processing program created by the user, which inputs the intermediate file 42 sorted by "field A" of the input file 41, refers to the reference file 30 using the value of field A/area, and generates an output file. This is a program that creates an output record to be output to 43.

第3図は第2図中で実行されるデータ処理を示すフロー
チャートである。第3図において、破線で囲まれている
フローが本発明を採用により、従来のフローと変更され
た部分である。まず、中央処理装置10は入力されたフ
ァイル(第2図における中間ファイル42)を読み込み
(101) 、入力ファイル41のフィールドAを主記
憶装置20を新キー・エリア21(参照ファイル30の
キー項目の項目明とする)へ移送する(102)。次に
、新キー・エリア21と旧キー・エリア22(前回の参
照ファイル30を参照したときのキー値を格納しておく
エリアのエリア名とする)とを比較しく+03> 、も
しも、同一であれば前回(又は、前々回)既に読み込み
済みであるため、参照ファイル30は参照せずに次の出
力レコード作成処理を実行する(1θ6)。また、新キ
ー・エリア21と旧キー・エリア22とが同一でなけれ
ば、参照ファイル30を読み込み(104>、日キー値
を新キー値に変更後(+05> 、次の出力レコード作
成処理を実行する(+06)。なお、(旧キー値)≠(
新キー値)となる回数は、第2図のステップIにおいて
、既に実施済みであるため、最大でも参照ファイル30
の持つキー数(データ数)以下である。すなわち、1つ
のキー値に対して、参照ファイルは1回だけ参照される
FIG. 3 is a flowchart showing the data processing performed in FIG. In FIG. 3, the flow surrounded by broken lines is the part that has been changed from the conventional flow by adopting the present invention. First, the central processing unit 10 reads an input file (intermediate file 42 in FIG. (102). Next, compare the new key area 21 and the old key area 22 (this is the area name of the area that stores the key value when the previous reference file 30 was referenced). +03> If they are the same, If there is, it has already been read the previous time (or the time before the previous time), so the next output record creation process is executed without referring to the reference file 30 (1θ6). Also, if the new key area 21 and old key area 22 are not the same, read the reference file 30 (104>, change the day key value to the new key value (+05>), and then start the next output record creation process. Execute (+06). Note that (old key value) ≠ (
Since the number of times the new key value) is already performed in step I of Fig. 2, the maximum number of times the reference file
is less than or equal to the number of keys (number of data) it has. That is, the reference file is referenced only once for one key value.

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

以上説明したように本発明のデータ処理方式によれば、
従来、入力レコード件数(例えば、mとする)と同じ回
数だけ参照ファイルを参照していたものが、最大で参照
ファイルの持つキー数(データ数と同じで、例えば、n
とする)以下となる。すなわち、1つのキー項目に対し
て、参照ファイルは1回だけ参照される。このため、m
anの場合では、入力データ数が参照データ数に比較し
て多ければ多いほどその有効性も大きい また、man
の場合でも、入力データ中に同一の参照キーを持つデー
タがあれば、参照ファイルの参照回数は従来の方法に比
べて低減する。
As explained above, according to the data processing method of the present invention,
Previously, the reference file was referenced the same number of times as the number of input records (for example, m), but the maximum number of keys that the reference file has (same as the number of data, for example, n
) The following is true. That is, the reference file is referenced only once for one key item. For this reason, m
In the case of an, the greater the number of input data compared to the number of reference data, the greater its effectiveness.
Even in this case, if there is data with the same reference key in the input data, the number of times the reference file is referenced is reduced compared to the conventional method.

従って、データ処理に伴う参照ファイルのアクセス回数
、すなわち、アクセス時間が低減し、プログラムのデー
タ処理時間を短縮できるという効果がある。
Therefore, the number of times the reference file is accessed during data processing, that is, the access time is reduced, and the data processing time of the program can be reduced.

−例として、入力レコード数30万件、参照ファイルの
データ数2千件(m=300,000 、n=2.00
0 >の場合、従来の方式では約8時間を要していた処
理が、ソートを含めて1/8の約1時間程度にまで短縮
することができる。
- As an example, the number of input records is 300,000, and the number of reference file data is 2,000 (m=300,000, n=2.00
0>, the process that took about 8 hours in the conventional method can be reduced to 1/8, or about 1 hour, including sorting.

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

第1図は本発明のデータ処理方式を実現するためのハー
ドウェアの実施例を示すブロック図、第2図は第1図の
ハードウェアのジョブフローを説明する図、第3図は第
2図中で実行されるデータ処理を示すフローチャートで
ある。 10・・・中央処理装置、20・・・主記憶装置、21
・・・新キー・エリア、22・・・旧キー・エリア、3
0・・・参照ファイル、41・・・入力ファイル、42
・・・中間ファイル、43・・・出力ファイル。
Figure 1 is a block diagram showing an embodiment of hardware for realizing the data processing method of the present invention, Figure 2 is a diagram explaining the job flow of the hardware in Figure 1, and Figure 3 is the diagram in Figure 2. 3 is a flowchart showing data processing executed in the process. 10... Central processing unit, 20... Main storage device, 21
...New key area, 22...Old key area, 3
0...Reference file, 41...Input file, 42
...Intermediate file, 43...Output file.

Claims (1)

【特許請求の範囲】[Claims] 入力レコード中の特定の項目により、他ファイルを参照
するコンピュータ・システムのデータ処理方式において
、中央処理装置は前記入力レコードを事前に前記項目の
持つ値の順番に並べ替え、且つ、前記他ファイルの参照
命令の直前に、1回前に読み込んだキー値と今回読むべ
きキー値とが一致するかをチェックし、一致すれば前記
参照命令をスキップし、出力レコード作成処理を実行す
ることを特徴とするデータ処理方式。
In a data processing method for a computer system that refers to other files based on specific items in an input record, the central processing unit sorts the input records in advance in the order of the values of the items, and Immediately before a reference command, it is checked whether the key value read previously matches the key value to be read this time, and if they match, the reference command is skipped and output record creation processing is executed. data processing method.
JP1286259A 1989-11-02 1989-11-02 Data processing system Pending JPH03147150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1286259A JPH03147150A (en) 1989-11-02 1989-11-02 Data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1286259A JPH03147150A (en) 1989-11-02 1989-11-02 Data processing system

Publications (1)

Publication Number Publication Date
JPH03147150A true JPH03147150A (en) 1991-06-24

Family

ID=17702054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1286259A Pending JPH03147150A (en) 1989-11-02 1989-11-02 Data processing system

Country Status (1)

Country Link
JP (1) JPH03147150A (en)

Similar Documents

Publication Publication Date Title
AU698148B2 (en) Parallel processing system for traversing a data base
JPH04229355A (en) Data access method and data processing system
US5995960A (en) Method and system for improving efficiency of programs utilizing databases by exeuting scenarios based on recalled processed information
JPH03147150A (en) Data processing system
JPH0782429B2 (en) How to merge multiple files
JPH0581337A (en) Data processor
JP2843748B2 (en) Exclusive control method
JP2923952B2 (en) Merge processing method
JPH0239225A (en) Filing system
JPH11265389A (en) Shared data base device ahd shared data base system
GB2262370A (en) Database management.
JPH0581339A (en) Data processor
JP3008483B2 (en) Link processing device
JP2581145B2 (en) Security processing method
JPH04336341A (en) File access control system
JPH0635710A (en) Translation designation obtaining method for general computer on-line program
JPH04304559A (en) Data retrieving system
JPH09330259A (en) Computer system and file access method for the same
JPH04353944A (en) Record additional system for index order formation file
JPH03226829A (en) Information processor
IE914225A1 (en) A memory control process
JPS63231527A (en) Time series retrieving system
JPH06149635A (en) Method for additional processing of record
JPH07141395A (en) Batch job multiprocessing control system
JPH05233654A (en) Data management system