JPH08137889A - Method and device for data retrieval - Google Patents

Method and device for data retrieval

Info

Publication number
JPH08137889A
JPH08137889A JP6274958A JP27495894A JPH08137889A JP H08137889 A JPH08137889 A JP H08137889A JP 6274958 A JP6274958 A JP 6274958A JP 27495894 A JP27495894 A JP 27495894A JP H08137889 A JPH08137889 A JP H08137889A
Authority
JP
Japan
Prior art keywords
search
data
file
item
information
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.)
Withdrawn
Application number
JP6274958A
Other languages
Japanese (ja)
Inventor
Masafumi Murata
雅文 村田
Takehiko Uemura
武彦 植村
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP6274958A priority Critical patent/JPH08137889A/en
Publication of JPH08137889A publication Critical patent/JPH08137889A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To retrieve data at an arbitrary position in an item and do it easily without any knowledge for required generating sort parameters. CONSTITUTION: When designation input of the item to which data on a retrieval object belongs and input of data on the retrieval object are made from an input means 3, start position information, length information, and data type information on the item to which the data on the retrieval object belongs are obtained from an item file 6. Then a retrieval parameter generating means 14 generates the sort parameters for sorting from the data on the retrieval object, and a retrieval executing means 15 retrieves data in a file in a 1st storage means 5 on the basis of the sort parameters, and a retrieval result editing means 16 edits plural retrieval results according to the retrieval conditions.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、ファイル内の所要デ
ータを検索するためのデータ検索方法及びデータ検索装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data search method and a data search device for searching required data in a file.

【0002】[0002]

【従来の技術】従来、データの検索を考慮して、アプリ
ケーションによりマスタデータを索引編成ファイルで構
築するシステムが知られている。しかしながら、係るシ
ステムにおいてデータ検索を行う場合には、検索対象に
係るデータがキーとして登録されていない場合には、検
索を行えない。つまり、レコード内の任意の位置にある
文字列などを検索するには不向きである。
2. Description of the Related Art Conventionally, there is known a system in which master data is constructed by an index organization file by an application in consideration of data retrieval. However, when performing a data search in such a system, the search cannot be performed if the data related to the search target is not registered as a key. That is, it is not suitable for searching for a character string or the like located at an arbitrary position in a record.

【0003】上記に対し、COBOLアプリケーション
により所定文字列(例えば、住所内の所定市、町、建物
名)を有するデータを検索する手法が知られている。し
かしながら、この手法はコマンド等の作成を行わねばな
らず、簡単な指定で検索を行うことができなかった。ま
た、このCOBOLアプリケーションにより検索をおこ
おなう場合、データを全件読み出して命令で漢字フィー
ルドに関してサーチをかけることから膨大なデータのフ
ァイルに対しては、多大な読み出し時間が必要であり、
実用的ではなかった。
On the other hand, there is known a method of retrieving data having a predetermined character string (for example, a predetermined city, town, building name in an address) by a COBOL application. However, this method requires the creation of commands and the like, and cannot perform a search with a simple specification. Further, when a search is performed by this COBOL application, a large amount of read time is required for a huge data file because all the data is read and a search is performed for the Kanji field by a command.
It wasn't practical.

【0004】[0004]

【発明が解決しようとする課題】更に、1次の検索結果
に対して、絞り込みを行うようにすることができず、複
数の条件の組み合わせによる検索が行えないという問題
点があった。
Further, there is a problem that it is not possible to narrow down the primary search results, and it is not possible to perform a search by combining a plurality of conditions.

【0005】本発明は上記従来のコンピュータシステム
の問題点に鑑みてなされたもので、その目的は、レコー
ド内の任意の位置にある文字列などのデータを検索可能
等することである。また、他の目的は、簡単な指定で検
索指示を行うことのできるデータ検索方法及びデータ検
索装置を提供することである。更に他の目的は、1次の
検索結果に対して、絞り込みを行う等、複数の条件の組
み合わせによる検索を可能とするデータ検索方法及びデ
ータ検索装置を提供することである。
The present invention has been made in view of the above problems of the conventional computer system, and an object thereof is to search data such as a character string at an arbitrary position in a record. Another object of the present invention is to provide a data search method and a data search device capable of issuing a search instruction by simple designation. Still another object is to provide a data search method and a data search device that enable a search based on a combination of a plurality of conditions, such as narrowing down primary search results.

【0006】[0006]

【課題を解決するための手段】本願の請求項1に記載の
発明に係るデータ検索方法は、レコード内部の項目に関
し、開始位置情報、長さ情報、データタイプ情報が対応
付けられて記憶された項目ファイルから、検索対象のデ
ータが属する項目の開始位置情報、長さ情報、データタ
イプ情報を得て、これら開始位置情報、長さ情報、デー
タタイプ情報と、複数の検索対象データとから複数回の
ソートを行うためのソートパラメータを作成し、このソ
ートパラメータに基づきファイル内のデータ検索を複数
回行い、複数回のデータ検索結果を検索条件に応じて編
集して最終結果を得ることを特徴とする。
In the data search method according to the invention described in claim 1 of the present application, the start position information, the length information, and the data type information are stored in association with each other regarding the items inside the record. The start position information, length information, and data type information of the item to which the search target data belongs are obtained from the item file, and the start position information, the length information, the data type information, and the search target data are searched multiple times. It is characterized by creating a sort parameter for sorting, searching the data in the file multiple times based on this sort parameter, and editing the data search results of multiple times according to the search conditions to obtain the final result. To do.

【0007】本願の請求項2に記載の発明に係るデータ
検索方法は、レコード内部の項目に関し、開始位置情
報、長さ情報、データタイプ情報が対応付けられて記憶
された項目ファイルから、検索対象のデータが属する項
目の開始位置情報、長さ情報、データタイプ情報を得
て、これら開始位置情報、長さ情報、データタイプ情報
と、検索対象データとからソートパラメータを作成し、
このソートパラメータに基づきファイル内のデータ検索
を行い、検索結果を得ると共に、この検索結果について
更に絞り込みを行う場合には、レコード内部の項目に関
し、開始位置情報、長さ情報、データタイプ情報が対応
付けられて記憶された項目ファイルから、検索対象のデ
ータが属する項目の開始位置情報、長さ情報、データタ
イプ情報を得て、これら開始位置情報、長さ情報、デー
タタイプ情報と、検索対象データとからソートパラメー
タを作成し、このソートパラメータに基づきファイル内
のデータ検索を行い、検索結果を得て、前回の検索結果
と今回の検索結果とを検索条件に応じて編集する処理を
必要に応じて繰り返して、最終結果を得ることを特徴と
する。
A data search method according to a second aspect of the present invention relates to an item inside a record, and a search target is obtained from an item file in which start position information, length information, and data type information are associated and stored. The start position information, the length information, the data type information of the item to which the data belongs, and create the sort parameter from the start position information, the length information, the data type information, and the search target data,
When searching the data in the file based on this sort parameter and obtaining the search result and further narrowing down the search result, the start position information, length information, and data type information correspond to the items inside the record. The start position information, length information, and data type information of the item to which the search target data belongs are obtained from the attached and stored item file, and these start position information, length information, data type information, and search target data Create a sort parameter from and search the data in the file based on this sort parameter, obtain the search result, and edit the previous search result and the current search result according to the search conditions. And repeat to obtain the final result.

【0008】本願の請求項3に記載のデータ検索装置
は、検索対象データのファイルが記憶された第1の記憶
手段と、この第1の記憶手段のレコード内部の項目に関
し、開始位置情報、長さ情報、データタイプ情報が対応
付けられて記憶された項目ファイルと、データを入力す
るための入力手段と、データを表示するための表示手段
と、検索対象データと検索条件とを入力させるための画
面表示を前記表示手段において行わせるべく制御を行う
表示制御手段と、前記入力手段から検索対象のデータが
属する項目の指示入力及び検索対象データの入力がなさ
れた場合に、前記項目ファイルから、当該検索対象のデ
ータが属する項目の開始位置情報、長さ情報、データタ
イプ情報を得て、前記検索対象データとからソートを行
うためのソートパラメータを作成する検索パラメータ作
成手段と、この検索パラメータ作成手段により作成され
たソートパラメータに基づき前記第1の記憶手段内のフ
ァイルについてデータの検索を実行する検索実行手段
と、この検索実行手段により検索された複数の検索結果
について、検索条件に応じて編集する検索結果編集手段
とを具備することを特徴とする。
According to a third aspect of the present invention, there is provided a data retrieval apparatus, which relates to first storage means in which a file of data to be retrieved is stored and items in a record of the first storage means. File in which size information and data type information are stored in association with each other, input means for inputting data, display means for displaying data, search target data and search conditions for inputting Display control means for controlling the screen display to be performed in the display means, and when the input of the item to which the search target data belongs and the search target data are input from the input means, from the item file, A sort parameter for obtaining start position information, length information, and data type information of the item to which the search target data belongs and sorting from the search target data. A search parameter creating means for creating a data, a search executing means for executing a data search for a file in the first storage means based on the sort parameter created by the search parameter creating means, and a search executing means for executing the search. It is characterized by comprising a search result editing means for editing a plurality of searched search results according to a search condition.

【0009】本願の請求項4に記載のデータ検索装置
は、第1の記憶手段内のファイル中に定数部を設定し、
検索結果編集手段はこの定数部を用いて検索条件に応じ
て編集することを特徴とする。
The data retrieval apparatus according to claim 4 of the present application sets a constant part in a file in the first storage means,
The search result editing means is characterized in that it edits according to the search condition using this constant part.

【0010】本願の請求項5に記載のデータ検索装置
は、第1の記憶手段内のファイルからレコード内部の項
目に関し、開始位置情報、長さ情報、データタイプ情報
を抽出し、項目と対応付けて項目ファイルに登録する項
目登録手段が備えられていることを特徴とする。
The data retrieval device according to claim 5 of the present application extracts start position information, length information, and data type information from the file in the first storage means with respect to the items in the record and associates them with the items. It is characterized in that an item registration means for registering in the item file is provided.

【0011】本願の請求項6に記載のデータ検索装置
は、入力手段から入力されるデータを第1の記憶手段に
ファイル化して登録する登録制御手段が備えられている
ことを特徴とする。
The data retrieval apparatus according to claim 6 of the present application is characterized in that it is provided with registration control means for converting the data inputted from the input means into a file in the first storage means and registering it.

【0012】本願の請求項7に記載のデータ検索装置
は、検索実行手段により検索された検索結果を記憶する
ための第2の記憶手段が備えられていることを特徴とす
る。
The data retrieval apparatus according to claim 7 of the present application is characterized in that it is provided with a second storage means for storing the retrieval result retrieved by the retrieval execution means.

【0013】本願の請求項8に記載のデータ検索装置
は、検索結果を出力するための出力手段が備えられてい
ることを特徴とする。
A data search device according to claim 8 of the present application is characterized in that it is provided with an output means for outputting a search result.

【0014】[0014]

【作用】本願の請求項1に記載の発明に係るデータ検索
方法により、レコード内部の項目に関し、開始位置情
報、長さ情報、データタイプ情報が対応付けられて記憶
された項目ファイルから、検索対象のデータが属する項
目の開始位置情報、長さ情報、データタイプ情報が得ら
れて、これら開始位置情報、長さ情報、データタイプ情
報と、複数の検索対象データとから複数回のソートを行
うためのソートパラメータの作成が自動的になされ、こ
のソートパラメータに基づきファイル内のデータ検索が
複数回行われ、複数回のデータ検索結果を検索条件に応
じて編集して最終結果が得られる。
With the data search method according to the first aspect of the present invention, the search target is selected from the item file in which the start position information, the length information, and the data type information are associated and stored with respect to the items inside the record. To obtain start position information, length information, and data type information of the item to which the data belongs, and to perform multiple sorts from these start position information, length information, data type information, and multiple search target data. The sort parameters are automatically created, the data in the file is searched a plurality of times based on the sort parameters, and the final results are obtained by editing the data search results of the plurality of times according to the search conditions.

【0015】本願の請求項2に記載の発明に係るデータ
検索方法により、レコード内部の項目に関し、開始位置
情報、長さ情報、データタイプ情報が対応付けられて記
憶された項目ファイルから、検索対象のデータが属する
項目の開始位置情報、長さ情報、データタイプ情報が得
られ、これら開始位置情報、長さ情報、データタイプ情
報と、検索対象データとからソートパラメータが作成さ
れ、このソートパラメータに基づきファイル内のデータ
検索を行い、検索結果を得ると共に、この検索結果につ
いて更に絞り込みを行う場合には、レコード内部の項目
に関し、開始位置情報、長さ情報、データタイプ情報が
対応付けられて記憶された項目ファイルから、検索対象
のデータが属する項目の開始位置情報、長さ情報、デー
タタイプ情報が得られ、これら開始位置情報、長さ情
報、データタイプ情報と、検索対象データとからソート
パラメータが作成され、このソートパラメータに基づき
ファイル内のデータ検索が行われ、検索結果が得られ
て、前回の検索結果と今回の検索結果とを検索条件に応
じて編集する処理を必要に応じて繰り返して、最終結果
が得られる。
With the data search method according to the second aspect of the present invention, the search target is selected from the item file in which the start position information, the length information, and the data type information are associated and stored with respect to the items inside the record. The start position information, length information, and data type information of the item to which the data of belongs belongs are obtained, and a sort parameter is created from these start position information, length information, data type information, and search target data. When the data in the file is searched based on the search result and the search result is further narrowed down, the start position information, the length information, and the data type information are stored in association with each other for the items inside the record. The start position information, length information, and data type information of the item to which the search target data belongs are obtained from the specified item file. Then, a sort parameter is created from these start position information, length information, data type information, and search target data, and the data in the file is searched based on this sort parameter, and the search result is obtained. The final result is obtained by repeating the process of editing the search result and the current search result according to the search condition as necessary.

【0016】本願の請求項3に記載のデータ検索装置
は、入力手段から検索対象のデータが属する項目の指示
入力及び検索対象データの入力がなされた場合に、項目
ファイルから、当該検索対象のデータが属する項目の開
始位置情報、長さ情報、データタイプ情報を得て、検索
対象データとからソートを行うためのソートパラメータ
を作成し、この作成されたソートパラメータに基づき第
1の記憶手段内のファイルについてデータの検索を実行
し、検索された複数の検索結果について、検索条件に応
じて編集するように働く。
In the data retrieval apparatus according to claim 3 of the present application, when the input of the item to which the retrieval target data belongs is input and the retrieval target data is input from the input means, the retrieval target data is retrieved from the item file. Obtains start position information, length information, and data type information of the item to which the item belongs, and creates a sort parameter for sorting from the search target data. Based on the created sort parameter, the sort parameter in the first storage means is stored. Performs a data search for files and edits the multiple search results that are searched according to the search conditions.

【0017】本願の請求項4に記載のデータ検索装置
は、第1の記憶手段内のファイル中に定数部を設定し、
検索結果編集手段はこの定数部を用いて検索条件に応じ
て編集するように働く。
The data retrieval apparatus according to claim 4 of the present application sets a constant part in the file in the first storage means,
The search result editing means works to edit according to the search condition using this constant part.

【0018】本願の請求項5に記載のデータ検索装置
は、第1の記憶手段内のファイルからレコード内部の項
目に関し、開始位置情報、長さ情報、データタイプ情報
を抽出し、項目と対応付けて項目ファイルに登録するよ
うに働く。
The data retrieval apparatus according to claim 5 of the present application extracts the start position information, the length information, and the data type information from the file in the first storage means with respect to the items in the record and associates them with the items. Works like registering in an item file.

【0019】本願の請求項6に記載のデータ検索装置
は、入力手段から入力されるデータを第1の記憶手段に
ファイル化して登録するように働く。
The data retrieval apparatus according to claim 6 of the present application functions to register the data input from the input means in the first storage means as a file.

【0020】本願の請求項7に記載のデータ検索装置で
は、第2の記憶手段が備えられ、検索実行手段により検
索された検索結果が記憶される。
In the data search device according to claim 7 of the present application, the second storage means is provided, and the search result searched by the search execution means is stored.

【0021】本願の請求項8に記載のデータ検索装置
は、検索された検索結果、或いは編集結果を出力するよ
うに働く。
The data search device according to claim 8 of the present application works to output the searched search result or the edited result.

【0022】[0022]

【実施例】以下添付図面を参照して本発明の実施例に係
るデータ検索方法及びデータ検索装置を説明する。な
お、各図において、同一の構成要素には同一の符号を付
して重複する説明を省略する。図1には、本発明に係る
データ検索装置の機能ブロック図が示されている。デー
タ検索等に関する各処理を行う処理部1には、表示手段
2、入力手段3、プリント出力手段4が接続されてい
る。また、処理部1には、マスタファイル(第1の記憶
手段)5、項目ファイル6、パラメータファイル7、検
索結果ファイル(第2の記憶手段)8が付設されてい
る。処理部1内の各手段の内、少なくとも、表示制御手
段11、検索パラメータ作成手段14、検索実行手段1
5、検索結果編集手段16は、コンピュータにおいて、
オペレータによる「SORT」の指示入力により起動さ
れ、コンピュータをデータ検索装置として機能させる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A data search method and a data search apparatus according to embodiments of the present invention will be described below with reference to the accompanying drawings. In each drawing, the same constituent elements are designated by the same reference numerals, and overlapping description will be omitted. FIG. 1 shows a functional block diagram of a data search device according to the present invention. A display unit 2, an input unit 3, and a print output unit 4 are connected to the processing unit 1 that performs each process related to data retrieval and the like. Further, the processing unit 1 is additionally provided with a master file (first storage means) 5, an item file 6, a parameter file 7, and a search result file (second storage means) 8. Of the respective means in the processing unit 1, at least the display control means 11, the search parameter creation means 14, and the search execution means 1
5. The search result editing means 16 is
It is activated by the operator's input of "SORT", and causes the computer to function as a data search device.

【0023】上記入力手段3は必要な情報を入力するた
めに用いられ、通常はキーボードやポインティングディ
バイスであるマウス等により構成される。表示手段2は
CRTや液晶或いはプラズマ等のディスプレイ装置であ
り、必要な情報が表示される。プリント出力手段4は、
必要な情報を記録出力する。
The input means 3 is used for inputting necessary information, and is usually composed of a keyboard or a mouse which is a pointing device. The display means 2 is a display device such as a CRT, a liquid crystal or a plasma, and displays necessary information. The print output means 4 is
Record and output the necessary information.

【0024】マスタファイル5には、検索対象データの
ファイルが記憶される。入力手段3からファイル化すべ
きデータ列を入力すると、登録制御手段12はこれを一
定のフォーマットに基づき所定順に並べ必要なキー等を
付して1レコードとしマスタファイル5に登録してファ
イル化する。この場合、入力手段3として、キーボード
以外に、OCR装置、通信によりデータを受け取る通信
装置等を採用可能である。また、マスタファイル5に記
憶媒体(ファイルが記録済みのもの)をセットすること
により、マスタファイル5を検索対象データのファイル
が記憶された第1の記憶手段とすることも可能である。
The master file 5 stores a file of search target data. When a data string to be made into a file is inputted from the input means 3, the registration control means 12 arranges this in a predetermined order in a predetermined format and adds necessary keys and the like to make one record, which is registered in the master file 5 and made into a file. In this case, in addition to the keyboard, an OCR device, a communication device that receives data by communication, or the like can be used as the input unit 3. Further, by setting a storage medium (a file in which a file has been recorded) in the master file 5, the master file 5 can be used as the first storage means in which the file of the search target data is stored.

【0025】図3には、マスタファイル5のデータマッ
プの一例が示されている。このマスタファイル5内は
「HTNo」から次の「HTNo」の前までがホテルシ
ステム等では、その利用客1名分のデータレコードとさ
れ、各データレコードは、「HTNo」(ホームターミ
ナルナンバー)、キー、利用客番号、氏名、住所、・・
・の項目から構成されている。本実施例では、各レコー
ドのXバイト目とYバイト目とを、編集(MERGE)
に用いる定数を設定する定数部として用いる。
FIG. 3 shows an example of the data map of the master file 5. In the master file 5, from "HTNo" to the next "HTNo" is a data record for one customer in a hotel system or the like, and each data record is "HTNo" (home terminal number), Key, customer number, name, address, ...
・ It is composed of items. In this embodiment, the X-th byte and the Y-th byte of each record are edited (MERGE).
It is used as a constant part to set the constant used for.

【0026】処理部1の項目登録手段13は、マスタフ
ァイル5のファイルからレコード内部の項目に関し、開
始位置情報、長さ情報、データタイプ情報を抽出し、項
目(名称)と対応付けて項目ファイル6に登録する。こ
のようにして登録された各項目の開始位置情報、長さ情
報、データタイプ情報の例を図4に示す。つまり、各項
目のナンバー毎に、項目名と開始位置(バイト目)と長
さ(バイト長)とデータタイプ(漢字とそれ以外(つま
り、英数字と漢字タイプ)との分類)とがそれぞれ記憶
される。
The item registration means 13 of the processing unit 1 extracts start position information, length information, and data type information from the file of the master file 5 with respect to the items inside the record and associates them with the item (name) to make the item file. Register at 6. FIG. 4 shows an example of the start position information, length information, and data type information of each item registered in this way. In other words, for each item number, the item name, start position (byte), length (byte length), and data type (classification of kanji and other types (that is, alphanumeric and kanji type)) are stored. To be done.

【0027】表示制御手段11は、データ検索処理開始
の指示入力があると、検索対象データと検索条件とを入
力させるための画面表示を表示手段2において行わせる
べく制御を行う。そして、入力手段3から検索対象のデ
ータが属する項目の指示入力及び検索対象データの入力
がなされた場合には、検索パラメータ作成手段14が項
目ファイル6から、当該検索対象のデータが属する項目
の開始位置情報、長さ情報、データタイプ情報を得て、
検索対象データとからソートを行うためのソートパラメ
ータを作成する。このソートパラメータはパラメータフ
ァイル7に記憶される。
When the instruction to start the data search process is input, the display control means 11 controls the display means 2 to display a screen for inputting the search target data and the search condition. Then, when the instruction input of the item to which the search target data belongs and the search target data are input from the input unit 3, the search parameter creation unit 14 starts the item to which the search target data belongs from the item file 6. Get location info, length info, data type info,
Create sort parameters for sorting from search target data. This sort parameter is stored in the parameter file 7.

【0028】検索実行手段15は、上記検索パラメータ
作成手段14により作成されたソートパラメータに基づ
きマスタファイル5内のファイルについてデータの検索
を実行する。つまり、バックパーティション(起動区
分)でSORT(検索並べ換えに関するプログラム)を
起動し、ソートパラメータの示す条件に一致するデータ
を検索し、検索したデータを並べ換えて検索結果ファイ
ル(第2の記憶手段)8に記憶する。
The search executing means 15 executes a data search for files in the master file 5 based on the sort parameters created by the search parameter creating means 14. That is, a SORT (program related to search and rearrangement) is started in the back partition (starting section), data matching the condition indicated by the sort parameter is searched, the searched data is rearranged, and a search result file (second storage means) 8 Remember.

【0029】検索結果編集手段16は、上記検索実行手
段15による検索が終了すると、検索条件をパラメータ
ファイル7のソートパラメータから検索条件を得て、検
索された複数の検索結果について、検索条件に応じて編
集する。つまり、ソートパラメータが検索結果ファイル
8に記憶されている前回の検索結果ファイルと今回の検
索結果ファイルとのMERGE(ANDまたはNOT,
OR条件による編集)を指示している場合には、この条
件に従ってMERGEを行い結果を得る。
When the search by the search executing means 15 is completed, the search result editing means 16 obtains the search condition from the sort parameters of the parameter file 7, and according to the search condition, a plurality of searched search results are obtained. Edit. That is, MERGE (AND or NOT, of the previous search result file and the current search result file whose sort parameters are stored in the search result file 8).
In the case of instructing (editing by OR condition), MERGE is performed according to this condition and the result is obtained.

【0030】上記機能ブロック図により実現されるデー
タ処理装置は、実際上は図2に示されるコンピュータシ
ステムにおいて実現される。このコンピュータシステム
は、CPU20が主メモリ21内のプログラム及びデー
タに基づき各部の総括制御を行うシステムである。CP
U20には、バス22を介してコントローラ31〜35
が接続されている。コントローラ31〜35のそれぞれ
には、キーボード入力装置23、プリンタ装置24、マ
ウス26、磁気ディスク記憶装置27、CRTディスプ
レイ装置25が接続され、それぞれの装置に対する必要
な制御を行うように構成されている。
The data processing device realized by the above functional block diagram is actually realized by the computer system shown in FIG. This computer system is a system in which the CPU 20 performs overall control of each unit based on a program and data in the main memory 21. CP
The U31 is connected to the controllers 31 to 35 via the bus 22.
Is connected. A keyboard input device 23, a printer device 24, a mouse 26, a magnetic disk storage device 27, and a CRT display device 25 are connected to each of the controllers 31 to 35, and are configured to perform necessary control for each device. .

【0031】磁気ディスク記憶装置27には、図3に示
したマスタファイル5、図4に示した項目ファイル6が
記憶され、更に、図5のマウス26による指示ポイント
位置(座標)と項目情報のナンバーとの対応メモリテー
ブル9が記憶され、更に、図6に示されるフローチャー
トに対応する本発明によるプログラムが記憶されてい
る。この図6のフローチャートに対応するプログラム
は、キーボード入力装置23から或いはアプリケーショ
ンプログラムから、「SORT」の指示を受けると、磁
気ディスク記憶装置27から主メモリ21にロードされ
実行される。
The magnetic disk storage device 27 stores the master file 5 shown in FIG. 3 and the item file 6 shown in FIG. 4, and further, the point position (coordinates) designated by the mouse 26 in FIG. 5 and the item information. A memory table 9 corresponding to numbers is stored, and further, a program according to the present invention corresponding to the flowchart shown in FIG. 6 is stored. The program corresponding to the flowchart of FIG. 6 is loaded from the magnetic disk storage device 27 into the main memory 21 and executed when a “SORT” instruction is received from the keyboard input device 23 or the application program.

【0032】つまり、上記「SORT」の指示入力によ
り、図6のフローチャートのプログラムがスタートさ
れ、このプログラムにより図7の画像がCRTディスプ
レイ装置25に表示される(S61)。この項目は、C
PU20が項目ファイル6から各項目の名称を読み出
し、所定フォーマットのデータにより表示データに変換
しコントローラ35に与えて表示させたものである。こ
のとき、オペレータはCRTディスプレイ装置25に表
示された項目中の検索すべき項目をマウス26から指示
入力する。CPU20はこの指示ポイント位置をマウス
26から受け取り、このポイント位置に対応する項目ナ
ンバーを図5のメモリテーブル9を参照して検出して、
保持する。そこで、CPU20は検索すべきデータ及び
検索条件を入力するための画像を図8のように表示す
る。この図8の画面の枠内41には、キーボード入力装
置23から入力される検索文字(漢字)列或いは英数
字、またはパック10進数が表示される。枠41の右側
には、検索条件である「のみ」、「または」、「か
つ」、「除く」が表示され、この内のいずれかをマウス
26により指示入力することができる。「のみ」以外の
検索条件が入力されると、他の検索データを入力するた
めの枠42がCPU20の制御により表示される。この
枠42には、上記と同様に、キーボード入力装置23か
ら入力される検索文字列或いは英数字、またはパック1
0進数が表示される。
That is, the program of the flowchart of FIG. 6 is started by the input of the instruction of "SORT", and the image of FIG. 7 is displayed on the CRT display device 25 by this program (S61). This item is C
The PU 20 reads out the name of each item from the item file 6, converts it into display data according to data of a predetermined format, and gives it to the controller 35 to display it. At this time, the operator uses the mouse 26 to input an item to be searched among the items displayed on the CRT display device 25. The CPU 20 receives this designated point position from the mouse 26, detects the item number corresponding to this point position by referring to the memory table 9 in FIG.
Hold. Therefore, the CPU 20 displays an image for inputting data to be searched and search conditions as shown in FIG. In the frame 41 of the screen of FIG. 8, a search character (kanji) string or alphanumeric characters input from the keyboard input device 23, or a packed decimal number is displayed. On the right side of the frame 41, search conditions such as "only", "or", "and", and "exclude" are displayed, and any one of them can be designated and input by the mouse 26. When a search condition other than “only” is input, a frame 42 for inputting other search data is displayed under the control of the CPU 20. In this frame 42, similarly to the above, a search character string or alphanumeric characters input from the keyboard input device 23, or the pack 1
A decimal number is displayed.

【0033】このようにして、検索対象のデータ及び検
索条件が以下同様にして入力される。そして、全ての検
索データ及び検索条件が入力されると、オペレータは、
CPU26の制御により表示画面の左下欄に表示されて
いるSORTの処理による整列順を、「昇」(昇べき
順)または「降」(降べき順)の表示のいずれかをマウ
ス26で指示することにより選択し、検索対象のデータ
及び検索条件の入力を終了する。
In this way, the data to be searched and the search condition are similarly input. When all the search data and search conditions are entered, the operator
Under the control of the CPU 26, the SORT process displayed in the lower left column of the display screen is used to instruct the mouse 26 to display either "ascending" (ascending order) or "descending" (descending order). By doing so, the input of the data to be searched and the search condition is completed.

【0034】以上の処理において、項目「住所」につい
て、「コーポ」と「片町」とが共に含まれることを条件
とし、昇べき順にSORTすべきことを指示した場合に
は、CPU20の制御によりCRTディスプレイ装置2
5の画面には、図9に示される通りに、指示入力に係る
検索対象データ及び検索条件が表示される。また、こ検
索対象データ及び検索条件によりSORTを実行すべき
か取り消すべきかの表示が画面右下に現れる。ここで、
オペレータが「実行」をマウス26により指示すると、
CPU20は図6の検索条件指定取込において、上記の
表示画面の情報を検索条件及び検索データとして取り込
み(S62)、項目ファイル6を参照してソートパラメ
ータを作成する(S63)。
In the above processing, if the item "address" includes both "corp" and "Katamachi", and the SORT is in the ascending order, the CPU 20 controls the CRT. Display device 2
On the screen of No. 5, as shown in FIG. 9, the search target data and the search condition related to the instruction input are displayed. In addition, a display as to whether SORT should be executed or cancelled appears at the lower right of the screen depending on the search target data and the search conditions. here,
When the operator designates “execute” with the mouse 26,
In the retrieval condition designation fetch of FIG. 6, the CPU 20 fetches the information on the above-mentioned display screen as the retrieval condition and the retrieval data (S62), and creates the sort parameter by referring to the item file 6 (S63).

【0035】即ち、検索すべきデータが含まれている項
目は、「住所」であるから、CPU20は、この項目
「住所」の開始位置、長さ、データタイプを項目ファイ
ル6から抽出する。たとえば、項目「住所」のが、図1
0に示すように、開始位置バイトが10バイト目であ
り、長さが漢字n個分であり、データタイプは漢字(C
H)であるとする。そして、検索対象のデータが図11
に示すように「コーポ」であり、漢字m個分(漢字1字
分が2バイトであるから、2mバイト)の長さを持つと
きには、図12の第1行目の括弧内に示すように、住所
の項目について、開始位置が10バイト目であり、6バ
イトの長さ(m=3より、3×2バイト)を有するデー
タで、漢字(CH)であり、さらに、次の文字列に等し
い(EQ)ものをサーチするように指示するパラメータ
が作られる。「EQ」より右のヘキサ表記は、文字列
「コーポ」の漢字コードである。次に、第2行目のパラ
メータは、開始位置を2バイト(漢字1文字分)ずらし
た12バイト目を示し、他は第1行目と同一にセットし
てORでくくる。以下、同様のパラメータの作成を、
(開始位置+文字列の有効桁数)が項目の最終バイト目
に一致するまで繰り返す。図10、図11の例では、
(n−m+1)回パラメータの作成が繰り返される。ま
た、この実施例では、検索対象データが「コーポ」と
「片町」であるから、「片町」についても上記「コー
ポ」と同様にソートパラメータが作成され、「コーポ」
の文字列を検索するソートパラメータ群(図12のも
の)と「片町」の文字列を検索するソートパラメータ群
は、ANDにより結合され、全体としてソートパラメー
タが作成される。
That is, since the item containing the data to be searched is "address", the CPU 20 extracts the starting position, length and data type of this item "address" from the item file 6. For example, the item “address” is shown in FIG.
As shown in 0, the start position byte is the 10th byte, the length is n kanji, and the data type is kanji (C
H). The data to be searched is shown in FIG.
As shown in Fig. 12, when it is "corp" and has a length of m kanji (2 m bytes because one kanji is 2 bytes), as shown in parentheses on the first line of Fig. 12. , For the address item, the start position is the 10th byte, the data has a length of 6 bytes (3 = 2 bytes from m = 3), it is a Chinese character (CH), and the next character string is A parameter is created that indicates to search for equality (EQ). The hexadecimal notation to the right of "EQ" is the kanji code for the character string "corp." Next, the parameter on the second line indicates the 12th byte with the start position shifted by 2 bytes (one Kanji character), and the other parameters are set in the same manner as on the first line and are ORed. Hereafter, create a similar parameter,
Repeat until (start position + number of significant digits of character string) matches the last byte of the item. In the example of FIGS. 10 and 11,
The parameter creation is repeated (n-m + 1) times. Further, in this embodiment, since the search target data are “corporation” and “Katamachi”, sort parameters are created for “Katamachi” as in the case of “corporation”, and “corporation” is created.
The sort parameter group for searching for the character string of (in FIG. 12) and the sort parameter group for searching for the character string of "Katamachi" are combined by AND to create the sort parameter as a whole.

【0036】上記のようにして、ソートパラメータの作
成が終了すると、CPU20は、SORT(検索並べ換
えに関するプログラム)を起動する(S64)。これに
より、マスタファイル5の各レコードについて上記ソー
トパラメータに基づきデータの検索が行われる。即ち、
各レコードについて、図12に示したソートパラメータ
による「コーポ」の検索がなされる。このとき、図3に
示した通り、マスタファイル5の各レコードには、Xバ
イト目とYバイト目との定数部に、定数値「21」が図
13のRECに示すように設定されている。そこで、検
索対象のデータである「コーポ」が含まれるレコードを
検出すると、CPU20は、当該レコードの利用者番号
とホームターミナルナンバー「HTNo」と共に、上記
定数値のYバイト目をXYバイト目に移動し、結果ファ
イル8の今回の結果を記憶するファイル8Aに記憶す
る。このようにして、マスタファイル5の全てのレコー
ドについて検索が終了すると、結果ファイル8の今回の
結果ファイル8Aには「コーポ」が含まれるレコードの
利用者番号とがストックされている。この結果を得てC
PU20は更に検索を継続するかを、ソートパラメータ
に基づきあるいはキーボード入力装置23からの入力に
基づき検出する(S66)。この実施例では、「コー
ポ」以外に「片町」が検索対象データであるので、検索
を継続することが検出される。次に、CPU20はソー
トパラメータが作成されているかを検出する(S6
7)。ソートパラメータが作成されていないときには、
ステップS61へ戻って処理が継続される。この実施例
では、「片町」についてのソートパラメータが作成され
ているため、ステップS64からの処理が行われる。そ
して、ステップS66において更に検索を継続しないこ
とが検出され、MERGE処理へ進む(S68)。
When the creation of sort parameters is completed as described above, the CPU 20 activates SORT (a program relating to search rearrangement) (S64). As a result, data search is performed for each record of the master file 5 based on the sort parameter. That is,
For each record, a search for “corp” is performed using the sort parameters shown in FIG. At this time, as shown in FIG. 3, in each record of the master file 5, a constant value “21” is set in the constant part of the X-th byte and the Y-byte as shown in REC of FIG. . Therefore, when detecting a record containing "corporation" which is the search target data, the CPU 20 moves the Y-th byte of the constant value to the XY-byte together with the user number and the home terminal number "HTNo" of the record. Then, the current result of the result file 8 is stored in the file 8A. In this way, when the search is completed for all the records in the master file 5, the result file 8A of the result file 8 is stocked with the user numbers of the records including "corp." With this result, C
The PU 20 further detects whether to continue the search based on the sort parameter or the input from the keyboard input device 23 (S66). In this embodiment, since "Katamachi" is the search target data in addition to "Corpo", it is detected that the search is continued. Next, the CPU 20 detects whether sort parameters have been created (S6).
7). If no sort parameters have been created,
The process returns to step S61 and continues. In this embodiment, since the sort parameter for "Katamachi" is created, the processing from step S64 is performed. Then, in step S66, it is detected that the search is not further continued, and the process proceeds to the MERGE process (S68).

【0037】MERGE処理においては、「コーポ」に
ついて行った検索結果が図13の括弧内に8Aで示す前
回検索結果ファイルに記憶されており、今回「片町」に
ついて行った検索結果が括弧内に8Bとして示されてい
るファイルに記憶されているから、これらを併合させな
がらXバイト目で集計をとる。この集計処理は、SOR
Tのプログラムにおいては、指定バイトの内容の集計を
行うフィールド集計(SUM)というサブ機能がサポー
トされているので、CPU20はこのサブ機能による処
理を行う。この結果、両ファイルに同一データ(利用者
番号とHTNo)が存在した場合には、図13の結果フ
ァイル8Cに示されるようにXバイト目が「2」とな
る。そして、Xバイト目が「2」となっている。データ
を抽出して最終結果とする。このとき、CPU20は、
昇べき順に並べ換えを行って、かつ、上記フィールド集
計以外のサブ機能であるアレンジフィールドコマンド
(ARR)を用いて各レコードのXバイト目を「1」に
戻しておく。これにより、この最終結果のファイル8C
に対して、更に絞り込みかけるようにすることができ
る。
In the MERGE process, the result of the search performed for "Corp" is stored in the previous search result file indicated by 8A in parentheses in FIG. 13, and the result of the search performed for "Katamachi" this time is indicated in 8B in parentheses. Since they are stored in the file indicated by, the total is taken at the X-th byte while merging them. This tabulation process is SOR
Since the program of T supports a sub-function called field summation (SUM) for totaling the contents of designated bytes, the CPU 20 performs processing by this sub-function. As a result, when the same data (user number and HTNo) exists in both files, the X-th byte becomes "2" as shown in the result file 8C of FIG. The Xth byte is "2". Extract the data to obtain the final result. At this time, the CPU 20
The rearrangement is performed in ascending order, and the X-th byte of each record is returned to "1" by using the arrange field command (ARR) which is a sub-function other than the above-mentioned field aggregation. As a result, this final result file 8C
However, it is possible to further narrow it down.

【0038】即ち、図6に示すMERGE処理(S6
8)に続く、更に絞り込むかを検出する処理において
は、CPU20は、CRTディスプレイ装置25に、更
に絞り込みを行うか終了するかを問うアナウンス表示を
行い、マウス26による指示入力がいずれとなるかを検
出する(S69)。ここで、更に絞り込みを行うことが
選択されると、ステップS61へ戻って処理が継続され
る。この場合、条件入力画面表示(S61)において
は、図7の項目選択の画面からではなく、図8に示す対
象入力の画面からのスタートとなり、オペレータは絞り
込み用の対象データを枠41、42、・・・へ入力し、
「のみ」、「または」、「除く」の検索条件を選択すれ
ば良い。このようにして、絞り込み検索を行ったときに
も、上記と同様に、前回検索結果と今回検索結果との間
でMERGEが実行され、最終結果が得られる。
That is, the MERGE process (S6 shown in FIG.
In the process of detecting whether to further narrow down, following step 8), the CPU 20 displays an announcement on the CRT display device 25 asking whether to further narrow down or end, and determines which instruction input is made by the mouse 26. It is detected (S69). Here, if further narrowing is selected, the process returns to step S61 to continue the processing. In this case, in the condition input screen display (S61), the start is not from the item selection screen of FIG. 7 but from the target input screen shown in FIG. 8, and the operator selects the target data for narrowing down in the frames 41, 42, Enter ...
It suffices to select a search condition of "only", "or", or "exclude". In this way, even when the narrowed search is performed, MERGE is executed between the previous search result and the current search result, and the final result is obtained, as in the above.

【0039】上記の例においては、検索対象データのA
NDをとるようにしたが、OR、または、NOTをとる
ことも可能である。ここでは、NOTをとる場合につい
て説明する。図14には、前回の検索結果と今回の検索
結果についてNOTをとる場合の処理シーケンスが示さ
れている。前回の検索結果がファイル8Dにあり、今回
の検索結果がファイル8Eにある場合が示されている。
In the above example, the search target data A
Although ND is taken, it is also possible to take OR or NOT. Here, the case where NOT is taken will be described. FIG. 14 shows a processing sequence when a NOT is taken for the previous search result and the current search result. A case where the previous search result is in the file 8D and the current search result is in the file 8E is shown.

【0040】今回の検索結果のファイルを作成する場合
にはマスタファイル5の各レコードのXバイト目とYバ
イト目とにセットされている「21」をそのまま結果フ
ァイルのレコードに転記する。そして、今回の検索結果
が記憶されているファイル8Eと前回の検索結果が記憶
されているファイル8Dとに対しMERGEをかけなが
ら、Xバイト目で集計をとる。この集計も、前述のサブ
機能であるフィールド集計(SUM)が用いられる。M
ERGEをかけた結果がファイル8Fに記憶される。フ
ァイル8Fの内容に明らかなように、今回だけの検索結
果の場合はXバイト目が「2」、前回だけの検索結果の
場合はXバイト目が「1」、今回及び前回に検索された
結果の場合はXバイト目が「3」に、それぞれセットさ
れる。ここで、NOTは前回の検索結果から今回の検索
結果を除く処理の指示であるから、MERGEの結果の
ファイル8F中のレコードから、Xバイト目が「2」以
上のレコードを除外して、最終結果を得る。最終結果の
ファイルは括弧内に8Gで示すファイルであり、この最
終結果のファイルに対して更に絞り込みかけるようにす
ることができる。
When the file of the search result of this time is created, "21" set in the Xth byte and the Yth byte of each record of the master file 5 is transferred to the record of the result file as it is. Then, while performing MERGE on the file 8E in which the search result of this time is stored and the file 8D in which the search result of the previous time is stored, the total is taken at the X-th byte. Also for this aggregation, the field aggregation (SUM) that is the sub-function described above is used. M
The result of applying ERGE is stored in the file 8F. As is clear from the contents of the file 8F, the X-byte is "2" in the case of the search result only this time, the X-byte is "1" in the case of the search result only in the previous time. In the case of, the X-th byte is set to "3". Here, since NOT is an instruction of a process for removing the current search result from the previous search result, the record in the file 8F of the MERGE result is excluded from the records in which the X-th byte is “2” or more, and the final Get results. The final result file is a file indicated by 8G in parentheses, and the final result file can be further narrowed down.

【0041】以上のようにして得られた検索結果につい
ては、キーボード入力装置23からの指示により、CR
Tディスプレイ装置25において表示し、或いは、プリ
ンタ装置24から出力することができる。この場合に
は、検索結果のファイルに記憶されている利用者番号と
「HTNo」との出力は勿論、この利用者番号と「HT
No」とから、マスタファイル5内の対応するレコード
の情報を全て読み出しリスト化して出力する。
The search result obtained as described above is CR by an instruction from the keyboard input device 23.
It can be displayed on the T display device 25 or output from the printer device 24. In this case, the user number and "HTNo" stored in the search result file as well as the user number and "HTNo" are output.
No ”, all the information of the corresponding records in the master file 5 is read out and made into a list and output.

【0042】なお、以上の実施例では、漢字を検索対象
データとしたが、本実施例のデータ検索装置は、漢字以
外の英数字やパック10進数を検索対象データとするこ
とも可能である。漢字以外のデータタイプを持つデータ
を検索する場合には、例えば、図15に示すようなソー
トパラメータが自動作成される。この図15のソートパ
ラメータの第1行目は、キーの開始位置バイトがiバイ
ト目であり、その長さがjバイトで漢字以外のデータタ
イプ(NCH)であるレコードを検索することを示す。
また、第2行目は、開始位置バイトが1バイト目であ
り、その長さが10バイトで漢字以外のデータタイプ
(NCH)である項目のデータが「1」以上のものを検
索することを示す。第3行目は、開始位置バイトが1バ
イト目であり、その長さが10バイトで漢字以外のデー
タタイプ(NCH)である項目のデータが「50」以下
のものを検索し、第2行目のパラメータによる検索結果
とANDを取ることを示す。係るソートパラメータは、
図3のマスタファイル5についての例では、例えば、年
令を項目として指定し、図16の如き検索対象の入力画
面において、「1」才以上で、かつ、「50」才以下の
ものを検索することを指示した場合について生じる。そ
して、このソートパラメータに基づき、前述の図13に
て説明した検索処理が実行され、前回検索のファイルと
の間で検索条件に基づくMERGEが行われ、2回のM
ERGEにより最終検索結果のファイルが得られる。な
お、上記実施例はORの処理を示していないが、これに
ついては、図13の括弧内の8Cで示されるファイル、
または、図14の8Fで示されるファイルを検索結果と
する。そして、更なる絞り込みに備え、各レコードのX
バイト目を「1」に戻しておく。
In the above embodiments, the kanji was used as the search target data, but the data search device of this embodiment can also use alphanumeric characters other than kanji and packed decimal numbers as the search target data. When searching for data having a data type other than Kanji, for example, sort parameters as shown in FIG. 15 are automatically created. The first line of the sort parameter in FIG. 15 indicates that a record in which the start position byte of the key is the i-th byte, the length thereof is the j-byte, and the data type (NCH) is other than Kanji is searched.
In the second line, the start position byte is the 1st byte, the length is 10 bytes, and the data of the item of the data type (NCH) other than Kanji is "1" or more. Show. In the 3rd line, the start position byte is the 1st byte, the length is 10 bytes, and the data of the item whose data type (NCH) is other than Kanji is "50" or less is searched and the 2nd line is searched. It indicates that AND is performed with the search result by the eye parameter. The sorting parameter is
In the example of the master file 5 of FIG. 3, for example, the age is designated as an item, and in the input screen of the search target as shown in FIG. 16, search for a file that is "1" or older and is "50" or younger. This occurs when you instruct to do so. Then, the search process described with reference to FIG. 13 is executed based on this sort parameter, and MERGE based on the search condition is performed with the file of the previous search, and M times of two times are executed.
A file of the final search result is obtained by ERGE. It should be noted that although the above embodiment does not show the OR processing, the file shown by 8C in parentheses in FIG.
Alternatively, the file indicated by 8F in FIG. 14 is used as the search result. And in preparation for further narrowing down, X of each record
Return the byte to "1".

【0043】以上の通り、本実施例では、SORTによ
りデータ検索を行うので、マスタファイルの全データで
はなく、所要項目のデータに対してデータ検索を行うこ
とになり、索引編成ファイルの主索引以外の項目で検索
する場合に比べて、ツリー構造のキーを辿る時間を要せ
ず、高速な検索が可能である。また、COBOLアプリ
ケーションによる検索の場合に比べても、全データを読
み出して漢字フィールドに関してサーチをかけるのでは
なく、所要項目のデータに対してデータ検索を行うの
で、高速な検索が可能である。また、1度の検索結果に
対し更に絞り込みを行うなどの編集が、SORTのサブ
機能を用いて容易に実現できる。
As described above, in the present embodiment, since the data search is performed by SORT, the data search is performed not for all the data in the master file but for the data of the required item, except for the main index of the index organization file. Compared with the case of searching with the item, the time required to trace the key of the tree structure is not required, and the search can be performed at high speed. Further, as compared with the case of the search by the COBOL application, a high-speed search is possible because the data of the required item is searched instead of reading all the data and searching the Kanji field. In addition, editing such as further narrowing down of one search result can be easily realized by using the sub function of SORT.

【0044】[0044]

【発明の効果】以上説明したように本願の請求項1に記
載の発明に係るデータ検索方法によれば、レコード内部
の項目に関し、開始位置情報、長さ情報、データタイプ
情報が対応付けられて記憶された項目ファイルから、検
索対象のデータが属する項目の開始位置情報、長さ情
報、データタイプ情報が得られ、これら開始位置情報、
長さ情報、データタイプ情報と、複数の検索対象データ
とから複数回のソートを行うためのソートパラメータが
自動的に作成され、このソートパラメータに基づきファ
イル内のデータ検索が複数回行われ、複数回のデータ検
索結果から検索条件に応じて編集がなされて最終結果が
得られるので、項目中の任意の位置のデータを検索でき
る上、ソートパラメータを作成する知識を要せず、簡単
に必要なデータの検索が可能である。また、複数回の検
索を編集して必要な条件での検索結果を得ることができ
る。
As described above, according to the data retrieving method of the first aspect of the present invention, the start position information, the length information, and the data type information are associated with the items inside the record. From the stored item file, the start position information, length information, and data type information of the item to which the search target data belongs can be obtained.
Sort parameters for performing multiple sorts are automatically created from length information, data type information, and multiple search target data, and data search in the file is performed multiple times based on this sort parameter, and multiple sorts are performed. Since the final result can be obtained by editing according to the search condition from the data search result of the second time, it is possible to search the data at any position in the item, and it is not necessary to create sort parameters and it is easy Data can be searched. Further, it is possible to edit a plurality of searches and obtain search results under necessary conditions.

【0045】また、本願の請求項2に記載の発明に係る
データ検索方法によれば、レコード内部の項目に関し、
開始位置情報、長さ情報、データタイプ情報が対応付け
られて記憶された項目ファイルから、検索対象のデータ
が属する項目の開始位置情報、長さ情報、データタイプ
情報が得られ、これら開始位置情報、長さ情報、データ
タイプ情報と、検索対象データとからソートパラメータ
が作成され、このソートパラメータに基づきファイル内
のデータ検索が行われ、検索結果が得られと共に、この
検索結果について更に絞り込みを行う場合には、レコー
ド内部の項目に関し、開始位置情報、長さ情報、データ
タイプ情報が対応付けられて記憶された項目ファイルか
ら、検索対象のデータが属する項目の開始位置情報、長
さ情報、データタイプ情報が得られ、これら開始位置情
報、長さ情報、データタイプ情報と、検索対象データと
からソートパラメータが作成され、このソートパラメー
タに基づきファイル内のデータ検索が行われ、検索結果
が得られて、前回の検索結果と今回の検索結果とを検索
条件に応じて編集する処理を必要に応じて繰り返され
て、最終結果が得られるので、項目中の任意の位置のデ
ータを検索できる上、ソートパラメータを作成する知識
を要せず、簡単に必要なデータの検索が可能である。ま
た、複数回の検索を必要に応じて行い、その結果を編集
して必要な条件での検索結果を得ることができる。
According to the data search method of the invention described in claim 2 of the present application, regarding the items inside the record,
From the item file in which the start position information, the length information, and the data type information are associated and stored, the start position information, the length information, and the data type information of the item to which the search target data belongs are obtained. , The length information, the data type information, and the search target data are used to create a sort parameter, the data in the file is searched based on the sort parameter, the search result is obtained, and the search result is further narrowed down. In this case, regarding the items inside the record, from the item file in which the start position information, the length information, and the data type information are associated and stored, the start position information, the length information, and the data of the item to which the search target data belongs are stored. Type information is obtained, and sort parameters are calculated from the start position information, length information, data type information, and search target data. Data is created in the file based on this sort parameter, the search results are obtained, and the process of editing the previous search result and the current search result according to the search conditions is performed as necessary. Since it is repeated to obtain the final result, it is possible to retrieve the data at any position in the item, and it is possible to easily retrieve the required data without the knowledge of creating sort parameters. In addition, a plurality of searches can be performed as needed, and the results can be edited to obtain search results under the necessary conditions.

【0046】本願の請求項3に記載のデータ検索装置に
よれば、入力手段から検索対象のデータが属する項目の
指示入力及び検索対象データの入力がなされた場合に、
項目ファイルから、当該検索対象のデータが属する項目
の開始位置情報、長さ情報、データタイプ情報を得て、
検索対象データとからソートを行うためのソートパラメ
ータが作成され、この作成されたソートパラメータに基
づき第1の記憶手段内のファイルについてデータの検索
を実行し、検索された複数の検索結果について、検索条
件に応じて編集するので、項目中の任意の位置のデータ
を検索できる上、ソートパラメータを作成する知識を要
せず、簡単に必要なデータの検索が可能である。そし
て、複数の検索結果を編集して必要な条件による絞り込
みが可能である。
According to the data search apparatus of the third aspect of the present application, when the input of the item to which the data to be searched belongs and the data to be searched are input from the input means,
From the item file, obtain the start position information, length information, and data type information of the item to which the search target data belongs,
A sort parameter for sorting is created from the search target data, data is searched for a file in the first storage means based on the created sort parameter, and a plurality of searched search results are searched. Since the data is edited according to the conditions, it is possible to retrieve the data at any position in the item, and it is possible to easily retrieve the required data without the knowledge of creating sort parameters. Then, a plurality of search results can be edited and narrowed down according to necessary conditions.

【0047】本願の請求項4に記載のデータ検索装置に
よれば、第1の記憶手段内のファイル中に定数部を設定
し、検索結果編集手段はこの定数部を用いて検索条件に
応じて編集するので、編集を定数部の数により的確に実
行できる。
According to the data search apparatus of the fourth aspect of the present application, the constant part is set in the file in the first storage means, and the search result editing means uses the constant part according to the search condition. Since the editing is performed, the editing can be accurately performed by the number of constant parts.

【0048】本願の請求項5に記載のデータ検索装置に
よれば、第1の記憶手段内のファイルからレコード内部
の項目に関し、開始位置情報、長さ情報、データタイプ
情報を抽出し、項目と対応付けて項目ファイルに登録す
るので、ソートパラメータを作成するための情報が項目
ファイルが登録されており、ソートパラメータの自動作
成を可能とする。
According to the data retrieving apparatus of the fifth aspect of the present application, the start position information, the length information, and the data type information are extracted from the file in the first storage means to extract the items and Since the items are registered in the item file in association with each other, the information for creating the sort parameter is registered in the item file, and the sort parameter can be automatically created.

【0049】本願の請求項6に記載のデータ検索装置に
よれば、入力手段から入力されるデータを第1の記憶手
段にファイル化して登録するので、第1の記憶手段に検
索対象データのファイルが記憶されていることになる。
According to the data retrieval apparatus of the sixth aspect of the present application, the data inputted from the input means is filed and registered in the first storage means. Therefore, the file of the retrieval target data is stored in the first storage means. Will be remembered.

【0050】本願の請求項7に記載のデータ検索装置に
よれば、検索実行手段により検索された検索結果を記憶
するための第2の記憶手段が備えられているので、複数
回の検索結果を記憶可能であり、検索結果の編集に有利
である。
According to the data retrieving apparatus of the seventh aspect of the present application, since the second storage means for storing the retrieval result retrieved by the retrieval executing means is provided, the retrieval results of a plurality of times are stored. It can be stored, which is advantageous for editing search results.

【0051】本願の請求項8に記載のデータ検索装置に
よれば、検索結果を出力するための出力手段が備えられ
ているので、必要時に検索結果を出力させて用いること
が可能である。
According to the data retrieving apparatus according to the eighth aspect of the present application, since the output means for outputting the retrieval result is provided, it is possible to output the retrieval result when necessary and use it.

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

【図1】本発明の実施例に係るデータ検索装置の機能ブ
ロック図。
FIG. 1 is a functional block diagram of a data search device according to an embodiment of the present invention.

【図2】本発明の実施例に係るデータ検索装置の構成
図。
FIG. 2 is a configuration diagram of a data search device according to an embodiment of the present invention.

【図3】本発明の実施例に係るデータ検索装置に備えら
れるマスタファイルの一例を示す図。
FIG. 3 is a diagram showing an example of a master file included in the data search device according to the embodiment of the present invention.

【図4】本発明の実施例に係るデータ検索装置に備えら
れる項目ファイルの一例を示す図。
FIG. 4 is a diagram showing an example of an item file included in the data search device according to the embodiment of the present invention.

【図5】本発明の実施例に係るデータ検索装置に備えら
れるポインティングディバイスによる指示位置と項目ナ
ンバーとの対応メモリテーブルの一例を示す図。
FIG. 5 is a diagram showing an example of a memory table for associating designated positions with item numbers with pointing devices provided in the data search device according to the embodiment of the present invention.

【図6】本発明の実施例に係るデータ検索装置の動作を
示すフローチャート。
FIG. 6 is a flowchart showing the operation of the data search device according to the embodiment of the present invention.

【図7】本発明の実施例に係るデータ検索装置における
項目選択画面の表示例を示す図。
FIG. 7 is a diagram showing a display example of an item selection screen in the data search device according to the embodiment of the present invention.

【図8】本発明の実施例に係るデータ検索装置における
対象入力画面の表示例を示す図。
FIG. 8 is a diagram showing a display example of a target input screen in the data search device according to the embodiment of the present invention.

【図9】本発明の実施例に係るデータ検索装置における
確認画面の表示例を示す図。
FIG. 9 is a diagram showing a display example of a confirmation screen in the data search device according to the embodiment of the present invention.

【図10】本発明の実施例に係るデータ検索装置におけ
るレコード内の住所の文字列の一例を示す図。
FIG. 10 is a diagram showing an example of a character string of an address in a record in the data search device according to the embodiment of the present invention.

【図11】本発明の実施例に係るデータ検索装置におけ
る検索対象の文字列の一例を示す図。
FIG. 11 is a diagram showing an example of a search target character string in the data search device according to the embodiment of the present invention.

【図12】本発明の実施例に係るデータ検索装置におい
て自動作成されたソートパラメータの一例を示す図。
FIG. 12 is a diagram showing an example of sort parameters automatically created by the data search device according to the embodiment of the present invention.

【図13】本発明の実施例に係るデータ検索装置におい
て前回の検索結果と今回の検索結果についてANDをと
る場合の処理シーケンスを示す図。
FIG. 13 is a diagram showing a processing sequence in the case where the previous search result and the current search result are ANDed in the data search device according to the embodiment of the present invention.

【図14】本発明の実施例に係るデータ検索装置におい
て前回の検索結果と今回の検索結果についてNOTをと
る場合の処理シーケンスを示す図。
FIG. 14 is a diagram showing a processing sequence in a case where the data search device according to the embodiment of the present invention performs a NOT on the previous search result and the current search result.

【図15】本発明の実施例に係るデータ検索装置におい
て自動作成されたソートパラメータの他の例を示す図。
FIG. 15 is a diagram showing another example of sort parameters automatically created by the data search device according to the embodiment of the present invention.

【図16】上記自動作成されたソートパラメータの他の
例を生じさせる対象入力画面の表示例を示す図。
FIG. 16 is a diagram showing a display example of a target input screen that causes another example of the automatically created sort parameter.

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

1 処理部 2 表示手段 3 入力手段 4 プリント
出力手段 5 マスタファイル(第1の記憶手段) 6 項目ファ
イル 7 パラメータファイル 8 検索結果
ファイル 9 メモリテーブル 11 表示制
御手段 12 登録制御手段 13 項目登
録手段 14 検索パラメータ作成手段 15 検索実
行手段 16 検索結果編集手段 20 CPU 21 主メモリ 22 バス 23 キーボード入力装置 24 プリン
タ装置 25 CRTディスプレイ装置 26 マウス 27 磁気ディスク記憶装置 31〜35
コントローラ
1 Processing Unit 2 Display Means 3 Input Means 4 Print Output Means 5 Master File (First Storage Means) 6 Item File 7 Parameter File 8 Search Result File 9 Memory Table 11 Display Control Means 12 Registration Control Means 13 Item Registration Means 14 Search Parameter creating means 15 Search executing means 16 Search result editing means 20 CPU 21 Main memory 22 Bus 23 Keyboard input device 24 Printer device 25 CRT display device 26 Mouse 27 Magnetic disk storage device 31-35
controller

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 レコード内部の項目に関し、開始位置情
報、長さ情報、データタイプ情報が対応付けられて記憶
された項目ファイルから、検索対象のデータが属する項
目の開始位置情報、長さ情報、データタイプ情報を得
て、 これら開始位置情報、長さ情報、データタイプ情報と、
複数の検索対象データとから複数回のソートを行うため
のソートパラメータを作成し、 このソートパラメータに基づきファイル内のデータ検索
を複数回行い、複数回のデータ検索結果を検索条件に応
じて編集して最終結果を得ることを特徴とするデータ検
索方法。
1. An item file in which start position information, length information, and data type information are associated and stored with respect to items inside a record, and start position information, length information of an item to which search target data belongs, After obtaining the data type information, these start position information, length information, data type information,
Create a sort parameter to sort multiple times from multiple search target data, perform data search in the file multiple times based on this sort parameter, and edit the data search results of multiple times according to the search conditions. A data retrieval method characterized by obtaining a final result as a result.
【請求項2】 レコード内部の項目に関し、開始位置情
報、長さ情報、データタイプ情報が対応付けられて記憶
された項目ファイルから、検索対象のデータが属する項
目の開始位置情報、長さ情報、データタイプ情報を得
て、 これら開始位置情報、長さ情報、データタイプ情報と、
検索対象データとからソートパラメータを作成し、 このソートパラメータに基づきファイル内のデータ検索
を行い、検索結果を得ると共に、 この検索結果について更に絞り込みを行う場合には、レ
コード内部の項目に関し、開始位置情報、長さ情報、デ
ータタイプ情報が対応付けられて記憶された項目ファイ
ルから、検索対象のデータが属する項目の開始位置情
報、長さ情報、データタイプ情報を得て、 これら開始位置情報、長さ情報、データタイプ情報と、
検索対象データとからソートパラメータを作成し、 このソートパラメータに基づきファイル内のデータ検索
を行い、検索結果を得て、 前回の検索結果と今回の検索結果とを検索条件に応じて
編集する処理を必要に応じて繰り返して、最終結果を得
ることを特徴とするデータ検索方法。
2. An item file in which start position information, length information, and data type information are associated and stored with respect to items inside a record, and start position information, length information of an item to which search target data belongs, After obtaining the data type information, these start position information, length information, data type information,
When a sort parameter is created from the search target data, the data in the file is searched based on this sort parameter, the search result is obtained, and when further narrowing down this search result, the start position of the item inside the record The start position information, the length information, and the data type information of the item to which the search target data belongs are obtained from the item file in which the information, the length information, and the data type information are associated and stored. Information, data type information,
Create a sort parameter from the search target data, perform a data search in the file based on this sort parameter, obtain the search result, and edit the previous search result and the current search result according to the search conditions. A data search method characterized by obtaining the final result by repeating the process as necessary.
【請求項3】 検索対象データのファイルが記憶された
第1の記憶手段と、 この第1の記憶手段のレコード内部の項目に関し、開始
位置情報、長さ情報、データタイプ情報が対応付けられ
て記憶された項目ファイルと、 データを入力するための入力手段と、 データを表示するための表示手段と、 検索対象データと検索条件とを入力させるための画面表
示を前記表示手段において行わせるべく制御を行う表示
制御手段と、 前記入力手段から検索対象のデータが属する項目の指示
入力及び検索対象データの入力がなされた場合に、前記
項目ファイルから、当該検索対象のデータが属する項目
の開始位置情報、長さ情報、データタイプ情報を得て、
前記検索対象データとからソートを行うためのソートパ
ラメータを作成する検索パラメータ作成手段と、 この検索パラメータ作成手段により作成されたソートパ
ラメータに基づき前記第1の記憶手段内のファイルにつ
いてデータの検索を実行する検索実行手段と、 この検索実行手段により検索された複数の検索結果につ
いて、検索条件に応じて編集する検索結果編集手段とを
具備することを特徴とするデータ検索装置。
3. Start position information, length information, and data type information are associated with the first storage means in which a file of search target data is stored and the items inside the record of the first storage means. Control so that the stored item file, input means for inputting data, display means for displaying data, and screen display for inputting search target data and search conditions are displayed on the display means. Display control means for performing, and when the input of the item to which the search target data belongs is input from the input means and the search target data is input, the start position information of the item to which the search target data belongs from the item file , Get length information, data type information,
Search parameter creating means for creating a sort parameter for sorting from the search target data, and a data search is performed for a file in the first storage means based on the sort parameter created by the search parameter creating means. And a search result editing unit that edits a plurality of search results searched by the search executing unit according to a search condition.
【請求項4】 第1の記憶手段内のファイル中に定数部
を設定し、 検索結果編集手段はこの定数部を用いて検索条件に応じ
て編集することを特徴とする請求項3記載のデータ検索
装置。
4. The data according to claim 3, wherein a constant part is set in the file in the first storage means, and the search result editing means uses the constant part to edit according to a search condition. Search device.
【請求項5】 第1の記憶手段内のファイルからレコー
ド内部の項目に関し、開始位置情報、長さ情報、データ
タイプ情報を抽出し、項目と対応付けて項目ファイルに
登録する項目登録手段が備えられていることを特徴とす
る請求項3または請求項4に記載のデータ検索装置。
5. An item registration means for extracting start position information, length information, and data type information regarding an item inside a record from a file in the first storage means, and registering the extracted information in the item file in association with the item. The data search apparatus according to claim 3, wherein the data search apparatus is provided.
【請求項6】 入力手段から入力されるデータを第1の
記憶手段にファイル化して登録する登録制御手段が備え
られていることを特徴とする請求項3乃至5のいずれか
1項に記載のデータ検索装置。
6. The registration control means for registering the data input from the input means as a file in the first storage means and registering the data in the first storage means. Data retrieval device.
【請求項7】 検索実行手段により検索された検索結果
を記憶するための第2の記憶手段が備えられていること
を特徴とする請求項3乃至6のいずれか1項に記載のデ
ータ検索装置。
7. The data search apparatus according to claim 3, further comprising a second storage unit for storing the search result searched by the search execution unit. .
【請求項8】 検索結果を出力するための出力手段が備
えられていることを特徴とする請求項3乃至7のいずれ
か1項に記載のデータ検索装置。
8. The data search device according to claim 3, further comprising output means for outputting a search result.
JP6274958A 1994-11-09 1994-11-09 Method and device for data retrieval Withdrawn JPH08137889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6274958A JPH08137889A (en) 1994-11-09 1994-11-09 Method and device for data retrieval

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6274958A JPH08137889A (en) 1994-11-09 1994-11-09 Method and device for data retrieval

Publications (1)

Publication Number Publication Date
JPH08137889A true JPH08137889A (en) 1996-05-31

Family

ID=17548941

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6274958A Withdrawn JPH08137889A (en) 1994-11-09 1994-11-09 Method and device for data retrieval

Country Status (1)

Country Link
JP (1) JPH08137889A (en)

Similar Documents

Publication Publication Date Title
JP2821220B2 (en) Information retrieval method in map utilization system
JPH08137889A (en) Method and device for data retrieval
JPH08329101A (en) Data base system
JP3145723B2 (en) Search and display device for holdings in museums
JPH0520005A (en) Menu information generation device
JP2798147B2 (en) Database input / output method and input / output device
JP2741923B2 (en) Dictionary search device
JP2669839B2 (en) Formula input editing device
JP3237709B2 (en) Document processing apparatus and document processing method
JP3536302B2 (en) Data management device and method, search device and method
JP3047400B2 (en) Data processing device
JPH01211028A (en) Document retrieving system
JP2609680B2 (en) Data registration device
JP3111081B2 (en) Data retrieval device
JP3537052B2 (en) File processing device
JPH07121548A (en) Information managing device
JP2672899B2 (en) Screen program creation processing method
JPH02210578A (en) Data retrieving and display system
JPH06266487A (en) Information processor and help information presenting method
JP2000003401A (en) Form preparation processing system
JPH04230576A (en) Method for retrieving record
JPH11110397A (en) Method and device for retrieving dictionary and computer readable recording medium recording dictionary retrieval program
JPH03251959A (en) Information file device
JPH06187208A (en) Index file processor
JPH05151241A (en) Data input device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115