JPH05120347A - File retrieving system - Google Patents

File retrieving system

Info

Publication number
JPH05120347A
JPH05120347A JP3281006A JP28100691A JPH05120347A JP H05120347 A JPH05120347 A JP H05120347A JP 3281006 A JP3281006 A JP 3281006A JP 28100691 A JP28100691 A JP 28100691A JP H05120347 A JPH05120347 A JP H05120347A
Authority
JP
Japan
Prior art keywords
record
file
key
read
layout
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
JP3281006A
Other languages
Japanese (ja)
Inventor
Koji Yoshikawa
晃司 吉川
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe 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 KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP3281006A priority Critical patent/JPH05120347A/en
Publication of JPH05120347A publication Critical patent/JPH05120347A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To enable a use retrie data only with logical contents. CONSTITUTION:The real file name, file class and record layout information of a file to be retrieved are obtained from a file definition table and record layout information (file definition retrieval step 1 and layout definition retrieval step 2) and based on these kinds of information, a key record is read (key record reading step 3). It is checked whether the read key record is a desired record to be retrieved or not (retrieval condition judging step 4), and when it is the relevant record, the remaining records of the real file are read (remaining record reading step 5). Items are operated between one and another and rearranged so as to transform the read key record into an output record form (record developing step 6). The steps from the key record reading step 3 to the record developing step 6 are executed concerning all the desired key records to be retrieved (record end judging step 7).

Description

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

【0001】[0001]

【産業上の利用分野】本発明はコンピュータ利用者が意
思決定を行う場合のファイル検索方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file search method when a computer user makes a decision.

【0002】[0002]

【従来の技術】意思決定支援システム(DSS)の分野
において、業務データをいかにタイムリーに、かつ容易
に検索するかということは非常に重要なことである。
2. Description of the Related Art In the field of decision support system (DSS), how to retrieve business data in a timely and easy manner is very important.

【0003】代表的な利用法として、RDB検索ツール
を利用して検索する方法、アプリケーションプログラム
を作成して検索する方法がある。
[0003] Typical uses include a search method using an RDB search tool and a method of creating an application program and searching.

【0004】これらの方法について説明する。 I.RDB(リレーショナルデータベース)検索ツール
を利用して検索する方法 データベースに登録されているデータであれば、検索ツ
ールを利用して容易に検索することが可能である。最近
では、SQL言語を使用して、異なる表をあたかもひと
つの表として検索することが可能であり、さまざまな加
工を検索時に実行することが可能である。 II.アプリケーションプログラムを作成して検索する方
法 利用者の環境に基づいたアプリケーションプログラムを
作成して、検索する方法である。この方法は、利用者の
データがいかなるデータであっても検索することが可能
である。
These methods will be described. I. Method of Searching Using RDB (Relational Database) Search Tool Any data registered in the database can be easily searched using the search tool. Recently, it is possible to search different tables as if they were one table by using the SQL language, and it is possible to execute various processes at the time of search. II. Method of creating and searching for application programs This is a method of creating and searching application programs based on the user's environment. With this method, it is possible to retrieve whatever data the user has.

【0005】[0005]

【発明が解決しようとする課題】上述した「RDB検索
ツールを利用して検索する方法」は、データの格納先が
RDBに限られてしまうため、業務で広く用いられてい
る索引順編成ファイルや順編成ファイルを直接検索する
ことができず、また業務データをRDBへ再登録しなけ
ればならないので、最新情報を検索するのが非常に困難
であるという欠点がある。
In the above-mentioned "method for searching using the RDB search tool", the data storage destination is limited to the RDB, and therefore the index sequential files and files widely used in business are used. There is a drawback that it is very difficult to retrieve the latest information because the sequential files cannot be retrieved directly and the business data must be re-registered in the RDB.

【0006】「アプリケーションプログラムを作成して
検索する方法」は、アプリケーションプログラムを作成
するのにかなり工数を費やす必要があり、しかも、利用
者が試行錯誤的な処理を行えないため(違う視点から検
索しようとした場合、再度アプリケーションプログラム
を作成する必要がある)、意思決定を支援することは困
難であるという欠点がある。
The "method for creating and searching for an application program" requires a considerable amount of man-hours for creating an application program, and the user cannot perform trial and error processing (searching from a different viewpoint). If you try to do this, you will have to create the application program again), and it is difficult to support decision making.

【0007】本発明の目的は、利用者が論理的な内容の
みでデータ検索が行なえるファイル検索方式を提供する
ことである。
An object of the present invention is to provide a file search method that allows a user to search data only with logical contents.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、本発明のファイル検索方式は、各ファイルの実ファ
イル名、ファイル種別等の各種情報を含むファイル定義
テーブルと、各ファイルのレコードレイアウト情報を含
むレコードレイアウト定義テーブルとを有し、指定され
たファイルの実ファイル名をファイル定義テーブルから
検索するとともにファイル種別を認識するファイル定義
検索ステップと、前記ファイルのレコードレイアウト情
報をファイルレイアウト定義テーブルから検索するレイ
アウト定義検索ステップと、前記ファイルからキーとな
るレコードを読み込むキーレコード読み込みステップ
と、読み込んだキーレコードが検索したいレコードかど
うかを判断し、検索したいレコードでなければ前記キー
レコード読み込みステップに戻る検索条件判定ステップ
と、読み込んだキーレコードが検索したいレコードなら
ば、前記キーレコードとリンクした他のファイルのレコ
ードを読み込む残りレコード読み込みステップと、項目
同志の演算や項目の並び換えを行って、読み込んだキー
レコードを出力レコード形式に変換するレコード展開ス
テップと、全てのキーレコードについて処理が終了した
かどうか判断し、終了していなければ前記キーレコード
読み込みステップに戻り、終了していれば検索処理を終
了する終了判断ステップとを有する。
In order to achieve the above object, the file search method of the present invention uses a file definition table containing various information such as the actual file name and file type of each file and the record layout of each file. A file layout definition table that includes a record layout definition table containing information, and a file definition search step that searches the file definition table for the actual file name of the specified file and recognizes the file type; From the layout definition search step, the key record reading step that reads the key record from the file, and whether the read key record is the record that you want to search. Return to the search condition determination step, and if the read key record is the record that you want to search, perform the remaining record reading step that reads the record of the other file linked to the key record, the operation of item comrades and the rearrangement of items. Go to the record expansion step to convert the read key record into the output record format, and determine whether all the key records have been processed. If not, return to the key record reading step and finish. For example, there is an end judgment step for ending the search processing.

【0009】[0009]

【作用】検索したいファイルを指定すれば、ファイル定
義テーブルから実ファイル名とファイル種別が得られ、
レコードレイアウト定義テーブルから該ファイルのレコ
ードレイアウト情報が得られる。この後、該ファイルか
らキーレコードが読み込まれ、検索したいキーレコード
と他のファイルのレコードとの項目同志の演算や並べ換
えが行なわれ、出力レコード形式に変換される。
[Operation] If you specify the file you want to search, you can get the actual file name and file type from the file definition table.
The record layout information of the file is obtained from the record layout definition table. After that, the key record is read from the file, the items of the key record to be searched and the record of the other file are calculated and rearranged to be converted into the output record format.

【0010】[0010]

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

【0011】図1は本発明のファイル検索方式の一実施
例の処理の流れ図、図2は仮想ファイルVAR1と実フ
ァイルの関係図、図3は出力レイアウトへの展開図、図
4は本実施例で使用するファイル定義テーブルを示す
図、図5は本実施例で使用するファイルレイアウト定義
テーブルを示す図、図6は本実施例で使用する仮想ファ
イル定義テーブルを示す図である。
FIG. 1 is a process flow chart of an embodiment of the file search method of the present invention, FIG. 2 is a relationship diagram of a virtual file VAR1 and a real file, FIG. 3 is an expanded view to an output layout, and FIG. 4 is this embodiment. 5 is a diagram showing a file definition table used in FIG. 5, FIG. 5 is a diagram showing a file layout definition table used in this embodiment, and FIG. 6 is a diagram showing a virtual file definition table used in this embodiment.

【0012】本実施例では、順編成ファイルDSS@S
EQ1、RDB表DSS@TBL1から構成される仮想
ファイルVAR1を検索する例を示す。
In this embodiment, the sequential organization file DSS @ S
An example of searching the virtual file VAR1 composed of the EQ1 and the RDB table DSS @ TBL1 will be shown.

【0013】本実施例は、図1に示すようにステップ1
〜7で構成される。
In this embodiment, as shown in FIG.
~ 7.

【0014】ステップ1では、ファイル定義テーブル
(図4)から検索時に指定されたファイルの実際のファ
イル名やファイル種別の認識を行う。本実施例では、V
AR1が仮想ファイルであることを認識する。
In step 1, the actual file name and file type of the file designated at the time of retrieval are recognized from the file definition table (FIG. 4). In this embodiment, V
Recognize that AR1 is a virtual file.

【0015】ステップ2では、ファイルレイアウト定義
テーブル(図5)と仮想ファイルレイアウト定義テーブ
ル(図6)から検索する実ファイルのレコードレイアウ
トの認識を行うとともに実際に出力する仮想ファイルの
レコードレイアウトの認識も行う。図2のように、仮想
ファイルVAR1は、順編成ファイルDSS@SEQ1
の“商品番号”、“A店売上高”、“B店売上高”、R
DB表DSS@TBL1の“商品名”、“売上高合計”
(DSS@SEQ1のA店売上高+B店売上高)から構
成されていることがわかる。
In step 2, the record layout of the real file searched from the file layout definition table (FIG. 5) and the virtual file layout definition table (FIG. 6) is recognized, and the record layout of the virtual file actually output is also recognized. To do. As shown in FIG. 2, the virtual file VAR1 is a sequential file DSS @ SEQ1.
"Product number", "A store sales", "B store sales", R
DB table DSS @ TBL1 "Product Name", "Total Sales"
It can be seen that it is composed of (Sales of A store of DSS @ SEQ1 + Sales of B store).

【0016】ステップ3では、実際のファイルをアクセ
スして、レコードの読み込みを行う。この場合は、まず
順編成ファイルDSS@SEQ1のデータを読み込む。
In step 3, the actual file is accessed to read the record. In this case, first, the data of the sequential organization file DSS @ SEQ1 is read.

【0017】ステップ4では、読み込んだキーレコード
が検索条件に当てはまっているかどうかの判断を行う。
At step 4, it is judged whether or not the read key record satisfies the search condition.

【0018】ステップ3,4を繰り返すと該当するキー
レコードが一件得られる。
By repeating steps 3 and 4, one corresponding key record is obtained.

【0019】ステップ5では、読み込んだキーレコード
の“商品番号”の値を、順編成ファイルDSS@TBL
1の“商品No”のキー値としてRDB表DSS@TB
L1のレコードの読み込みを行う。
In step 5, the value of the "commodity number" of the read key record is set to the sequential file DSS @ TBL.
RDB table DSS @ TB as the key value of "Product No. 1"
The record of L1 is read.

【0020】ステップ6では、図3のように出力レイア
ウトに並び換えるとともに“売上高合計”を演算により
求める。
In step 6, the output layout is rearranged as shown in FIG. 3 and the "total sales" is calculated.

【0021】ステップ7では、順編成ファイルDSS@
SEQ1のレコードを全て読み込んだかどうかのチェッ
クを行う。
In step 7, the sequential file DSS @
It is checked whether all the records of SEQ1 have been read.

【0022】ステップ3〜7の繰り返しで、利用者が求
める仮想ファイルVAR1の検索が終了する。
By repeating steps 3 to 7, the search for the virtual file VAR1 requested by the user is completed.

【0023】以上、ステップ1〜7の内容を簡単に説明
したが、各テーブルについて詳細に説明する。 ・ファイル定義テーブル(図4) ステップ1で使用されるテーブルで、検索時に指定され
た名前が実ファイルの何に相当するのかを知るテーブル
である。
The contents of steps 1 to 7 have been briefly described above, and each table will be described in detail. File definition table (FIG. 4) A table used in step 1 to know what the name specified at the time of retrieval corresponds to in the actual file.

【0024】○フィールドの説明 番号:ファイル定義テーブルの管理番号である。Description of field No .: Management number of the file definition table.

【0025】ファイル名:利用者がDSSシステム上で
認識している名前である。
File name: A name recognized by the user on the DSS system.

【0026】実ファイル名:実際のファイル名である
(仮想ファイルでは意味を持たない)。
Real file name: This is the actual file name (it has no meaning in a virtual file).

【0027】装置名:実ファイルを格納している装置名
である(仮想ファイルでは意味を持たない)。
Device name: This is the device name that stores the actual file (it has no meaning in the virtual file).

【0028】種別:実ファイルの種別である。Type: The type of actual file.

【0029】レイアウト番号:レイアウト定義テーブル
の番号(RDB表のように、表定義情報を持っているも
のについては意味を持たない)。
Layout number: the number of the layout definition table (it has no meaning for items having table definition information such as the RDB table).

【0030】参照ファイル番号:仮想ファイルの場合→
参照している実ファイルの番号 実ファイルの場合→参照されている仮想ファイルの番号 リンク情報:仮想ファイルで複数の実ファイルを参照し
ている場合、ファイル間の関係を示す。 ・ファイルレイアウト定義テーブル(図5) ステップ2で使用されるテーブルで、実ファイルのレコ
ードレイアウト情報が格納されている。
Reference file number: virtual file →
Referenced real file number In the case of a real file → Referenced virtual file number Link information: When a virtual file refers to multiple real files, it indicates the relationship between the files. File layout definition table (FIG. 5) This is the table used in step 2 and stores the record layout information of the actual file.

【0031】○フィールドの説明 番号:項目番号である。Description of field No .: Item number.

【0032】項目名:フィールドの論理的な名前であ
る。
Item name: A logical name of a field.

【0033】属性:フィールドの属性である。Attribute: The attribute of the field.

【0034】開始位置:フィールドの物理的な開始位置
である。
Start Position: The physical start position of the field.

【0035】※開始位置は登録時に省略されると、1か
ら自動的に割り当てられる。 ・仮想ファイルレイアウト定義テーブル(図6) ステップ2で使用されるテーブルで、仮想ファイルのレ
コードレイアウト情報が格納されている。
* If the start position is omitted during registration, it is automatically assigned from 1. Virtual file layout definition table (FIG. 6) This table is used in step 2 and stores the record layout information of the virtual file.

【0036】○フィールドの説明 番号:項目番号である。Description of field Number: Item number.

【0037】項目名:フィールドの論理的な名前であ
る。
Item name: A logical name of a field.

【0038】属性:フィールドの属性である。Attribute: The attribute of the field.

【0039】計算式:フィールドが実ファイルのどこに
相当するのかを示す(計算式を記述することも可能であ
る)。
Calculation formula: Shows where the field corresponds to the actual file (a calculation formula can be written).

【0040】※項目名、属性は登録時に省略されると、
実ファイルの情報が継承される(例えば、I5の項目名
を省略すれば項目名は“A店売上高+B店売上高”とな
る)。
* If item names and attributes are omitted during registration,
The information of the actual file is inherited (for example, if the item name of I5 is omitted, the item name becomes “sales sales of A store + sales sales of B store”).

【0041】[0041]

【発明の効果】以上説明したように本発明は、最初にシ
ステム管理者がファイル情報とレコードレイアウト情報
をファイル定義テーブル、レコードレイアウト定義テー
ブルに登録しておくことで他の利用者はファイルの装
置、名前、属性等を意識することなく、見たい情報を簡
単に得ることができるため、試行錯誤を行いながら進め
ていく意思決定の分野において効果がある。
As described above, according to the present invention, the system administrator first registers the file information and the record layout information in the file definition table and the record layout definition table. Since it is possible to easily obtain desired information without paying attention to names, attributes, etc., it is effective in the field of decision making in which trial and error are carried out.

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

【図1】本発明のファイル検索方式の一実施例の処理の
流れ図である。
FIG. 1 is a flow chart of processing of an embodiment of a file search method of the present invention.

【図2】仮想ファイルVAR1と実ファイルの関係図で
ある。
FIG. 2 is a relationship diagram between a virtual file VAR1 and a real file.

【図3】出力レイアウトへの展開図である。FIG. 3 is a development view of an output layout.

【図4】ファイル定義テーブルを示す図である。FIG. 4 is a diagram showing a file definition table.

【図5】ファイルレイアウト定義テーブルを示す図であ
る。
FIG. 5 is a diagram showing a file layout definition table.

【図6】仮想ファイルレイアウト定義テーブルを示す図
である。
FIG. 6 is a diagram showing a virtual file layout definition table.

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

1〜7 ステップ 1 to 7 steps

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 各ファイルの実ファイル名、ファイル種
別等の各種情報を含むファイル定義テーブルと、各ファ
イルのレコードレイアウト情報を含むレコードレイアウ
ト定義テーブルとを有し、 指定されたファイルの実ファイル名を前記ファイル定義
テーブルから検索するとともにファイル種別を認識する
ファイル定義検索ステップと、 前記ファイルのレコードレイアウト情報をファイルレイ
アウト定義テーブルから検索するレイアウト定義検索ス
テップと、 前記ファイルからキーとなるレコードを読み込むキーレ
コード読み込みステップと、 読み込んだキーレコードが検索したいレコードかどうか
を判断し、検索したいレコードでなければ前記キーレコ
ード読み込みステップに戻る検索条件判定ステップと、 読み込んだキーレコードが検索したいレコードならば、
前記キーレコードとリンクした他のファイルのレコード
を読み込む残りレコード読み込みステップと、 項目同志の演算や項目の並び換えを行って、読み込んだ
キーレコードを出力レコード形式に変換するレコード展
開ステップと、 全てのキーレコードについて処理が終了したかどうか判
断し、終了していなければ前記キーレコード読み込みス
テップに戻り、終了していれば検索処理を終了する終了
判断ステップとを有するファイル検索方式。
1. A real file name of a specified file, comprising a file definition table containing various information such as the real file name of each file and file type, and a record layout definition table containing record layout information of each file. A file definition search step for searching the file definition table for recognizing the file type, a layout definition search step for searching the file layout definition table for the record layout information of the file, and a key for reading a key record from the file The record read step and the read key record are judged to be the record to be searched. If it is not the record to be searched, the process returns to the key record read step. The search condition judgment step and the read key record are detected. If the record you want to,
The remaining record reading step of reading the record of the other file linked to the key record, and the record expanding step of converting the read key record into the output record format by performing the calculation of items and rearranging items, A file search method having a termination determination step of determining whether or not the processing has been completed for the key record, and returning to the key record reading step if not completed, and ending the search processing if completed.
JP3281006A 1991-10-28 1991-10-28 File retrieving system Pending JPH05120347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3281006A JPH05120347A (en) 1991-10-28 1991-10-28 File retrieving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3281006A JPH05120347A (en) 1991-10-28 1991-10-28 File retrieving system

Publications (1)

Publication Number Publication Date
JPH05120347A true JPH05120347A (en) 1993-05-18

Family

ID=17632966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3281006A Pending JPH05120347A (en) 1991-10-28 1991-10-28 File retrieving system

Country Status (1)

Country Link
JP (1) JPH05120347A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0883223A (en) * 1994-09-13 1996-03-26 Toshiba Corp File management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0883223A (en) * 1994-09-13 1996-03-26 Toshiba Corp File management system

Similar Documents

Publication Publication Date Title
US6484181B2 (en) Method and system for handling foreign key update in an object-oriented database environment
US5265244A (en) Method and system for facilitating processing of statistical inquires on stored data accessible through a data access structure
US6427145B1 (en) Database processing method, apparatus for carrying out the same and medium storing processing program
JP2003162545A (en) File search device, index file creation device and file search program
JPH10312396A (en) Data base system and computer-readable record medium where data base retrieval program is recorded
JPH06215037A (en) Automatic updating device for index
JPH05120347A (en) File retrieving system
US7606789B2 (en) Data access and retrieval mechanism
JP4047557B2 (en) Database management system, database management processing method, database management system program, and recording medium therefor
JPH10254887A (en) Data base system
JP2785966B2 (en) Foreign key dynamic resolution processing method
JP2002108844A (en) Xml data division editing device
JP3563600B2 (en) Method of executing method and recording medium recording method execution program
JP2573577B2 (en) File access device
JP2001155028A (en) Aggregate calculation processing method and device for relational database, and computer readable recording medium recorded with aggregate arithmetic processing program
JP3398672B2 (en) Intermediate data storage device
JP2000066933A (en) Time series data management system
JPH08328929A (en) Database split management system
JP2000132439A (en) System for retrieving file stored in hard disk of personal computer
JP3508842B2 (en) Database search system and recording medium storing database search program
JPH04336341A (en) File access control system
JPH0764835A (en) Data storage system for relational data base
JPH06214849A (en) Data base system
JP2000172542A (en) File access system
JPH02222028A (en) Open system for designation of file label address of optical disk file