JPH04310183A - Method for retrieving/outputting relational data base - Google Patents

Method for retrieving/outputting relational data base

Info

Publication number
JPH04310183A
JPH04310183A JP3075477A JP7547791A JPH04310183A JP H04310183 A JPH04310183 A JP H04310183A JP 3075477 A JP3075477 A JP 3075477A JP 7547791 A JP7547791 A JP 7547791A JP H04310183 A JPH04310183 A JP H04310183A
Authority
JP
Japan
Prior art keywords
data
file
record number
search
output
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
JP3075477A
Other languages
Japanese (ja)
Inventor
Sueko Fujie
藤江 季子
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 Software Kansai Ltd
Original Assignee
NEC Software Kansai Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Kansai Ltd filed Critical NEC Software Kansai Ltd
Priority to JP3075477A priority Critical patent/JPH04310183A/en
Publication of JPH04310183A publication Critical patent/JPH04310183A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To shorten the waiting time of a terminal even when the number of retrievals is large by storing only the internal management number in a read file in the case of the retrieval and executing the read and edition processings of real data and the output processing of documents according to another program independent of the retrieval. CONSTITUTION:A main program 2 and a sub program 5 are provided. The main program 2 receives various operation instructions such as the retrieval, display and documents output or the like from a screen 1 of the terminal as commands. When the retrieving instruction is received, the record number of a retrieved record is outputted to a record number file 4 and the sub program 5 is activated. The sub program 5 reads the real data from a relational data base 3, edits the data and outputs a document 6 by using the record number stored in the record number file 4 independently of a main processing. Thus, even when a lot of data are edited/outputted in a complicated form, the waiting time of the terminal can be suppressed at a minimum.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、リレーショナル型デー
タベースの検索・出力方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for searching and outputting a relational database.

【0002】0002

【従来の技術】従来、リレーショナル型データベースの
データを条件検索し、その検索結果を編集し帳票出力す
る場合には、次のような方法で処理するのが一般的であ
る。すなわち、リレーショナル型データベースから指定
された検索条件に合致するレコードのレコード番号の集
合を一旦リレーショナル型データベースが管理する中間
ファイル(以降、中間ファイルと記する)に格納し、次
に中間ファイル内のレコード番号を使ってデータベース
から一件づつレコード(実データ)を読込んでいく。こ
のよにして得た実データに対して編集を行ない、帳票出
力する。
2. Description of the Related Art Conventionally, when data in a relational database is searched under conditions and the search results are edited and output as a form, processing is generally performed in the following manner. In other words, a set of record numbers of records matching specified search conditions from a relational database is stored in an intermediate file (hereinafter referred to as an intermediate file) managed by the relational database, and then records in the intermediate file are stored. Read records (actual data) from the database one by one using numbers. The actual data obtained in this way is edited and output as a form.

【0003】上記の中間ファイルはリレーショナル型デ
ータベースシステムにより提供されるもので、中間ファ
イル識別番号は1つのジョブの中でのみ一意となるもの
である。従って他のジョブから中間ファイルを操作する
ことはできないので、実データを得る場合、必ず1つの
ジョブ内でデータを検索,読込み,編集,出力を続けて
行なわなければならない。
[0003] The above intermediate file is provided by a relational database system, and the intermediate file identification number is unique only within one job. Therefore, since it is not possible to manipulate intermediate files from other jobs, in order to obtain actual data, data must be searched, read, edited, and output in succession within one job.

【0004】0004

【発明が解決しようとする課題】上述した従来のデータ
検索および帳票出力方式では、リレーショナル型データ
ベースからの検索件数が大量である場合、データ検索,
読込みに長時間かかった。また、編集出力形式が複雑に
なれはばなるほど、出力イメージを編集し帳票出力する
までに長時間を必要とした。
[Problems to be Solved by the Invention] In the conventional data search and form output method described above, when the number of searches from a relational database is large, the data search and
It took a long time to load. Furthermore, the more complex the editing output format, the longer it takes to edit the output image and output the form.

【0005】この間、端末の画面が占有されるために指
示コマンドが入力不可となり、利用者の作業効率が著し
く低下するという問題点があった。
[0005] During this time, there was a problem in that the screen of the terminal was occupied, making it impossible to input instruction commands, and the work efficiency of the user was significantly reduced.

【0006】[0006]

【課題を解決するための手段】本発明のリレーショナル
型データベースの検索・出力方法は、リレーショナル型
データベースを与えられた検索条件に従って即時検索し
,検索されたデータを編集し,出力装置に帳票出力する
システムにおいて、検索時には内部管理番号のみを読込
んでユーザファイルに格納し、実データの読込みと編集
処置および帳票出力処理は前記ユーザファイルを媒介と
して検索とは独立した別のプログラムで実行するように
構成される。
[Means for Solving the Problems] The relational database search/output method of the present invention immediately searches a relational database according to given search conditions, edits the searched data, and outputs a form to an output device. The system is configured so that only the internal management number is read and stored in a user file during a search, and the actual data reading, editing, and form output processing are executed by a separate program independent of the search using the user file as a medium. be done.

【0007】[0007]

【実施例】次に本発明について図面を参照して説明する
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0008】図1は本発明の一実施例を示す説明図であ
る。同図においてリレーショナル型データベースの検索
・出力方法は、メインプログラム2を中心とするメイン
処理,サブプログラム5を中心とするサブ処理に二分さ
れ、メイン処理とサブ処理は独立して実行される。図中
、1は端末の画面,3はリレーショナル型データベース
,4はレコード番号ファイル,6は帳票をそれぞれ示す
FIG. 1 is an explanatory diagram showing one embodiment of the present invention. In the figure, the relational database search/output method is divided into main processing centered on main program 2 and sub-processing centered on subprogram 5, and the main processing and sub-processing are executed independently. In the figure, 1 is a terminal screen, 3 is a relational database, 4 is a record number file, and 6 is a form.

【0009】メインプログラム2は端末の画面1より検
索,表示,帳票出力等の様々な動作指示をコマンドとし
て受け取る。検索指示を受けた場合は、検索されとレコ
ードのレコード番号をレコード番号ファアル4に出力し
、サブプログラム5を起動し、処理を終了する。この部
分がメイン処理である。サブプラグラムが起動されると
、端末の画面1が使用可能となる。
The main program 2 receives various operation instructions such as search, display, and form output from the terminal screen 1 as commands. When a search instruction is received, the record number of the record to be searched is output to the record number file 4, the subprogram 5 is started, and the process is terminated. This part is the main processing. When the subprogram is activated, screen 1 of the terminal becomes available for use.

【0010】メインプログラム2より起動されたサブプ
ログラム5は、レコード番号ファイル4に格納されたレ
コード番号を使ってリレーショナル型データベース3よ
り実データを読み込み、編集し帳票6を出力する。この
部分がサブ処理である。
The subprogram 5 started by the main program 2 reads actual data from the relational database 3 using the record number stored in the record number file 4, edits it, and outputs a form 6. This part is sub-processing.

【0011】図2はメイン処理の機能ブロック図である
。図中、7は検索指示データ,8は検索モジュール,9
は中間ファイル,10は帳票出力指示データ,11は番
号読込みモジュール,12はパラメータファイルである
。なお、検索モジュール8と番読込モジュール11はメ
インプログラム2の一部である。
FIG. 2 is a functional block diagram of main processing. In the figure, 7 is search instruction data, 8 is a search module, 9
1 is an intermediate file, 10 is form output instruction data, 11 is a number reading module, and 12 is a parameter file. Note that the search module 8 and number reading module 11 are part of the main program 2.

【0012】検索モジュール8と番号読込モジュール1
1は検索指示データ7に従ってリレーショナル型データ
ベース3を検索し、検索条件に合致するレコードのレコ
ード番号の集合を中間ファイル9のうちの1つに格納す
る。
Search module 8 and number reading module 1
1 searches the relational database 3 according to the search instruction data 7 and stores a set of record numbers of records matching the search conditions in one of the intermediate files 9.

【0013】番号読込モジュール11は帳票出力指示デ
ータに従って当該中間ファイルに格納されているレコー
ド番号を読み込み、レコード番号ファイル4に格納する
。レコード番号ファイル4は待機結合編成ファイルであ
り、レコード番号格納時に端末名とシステム時間をサブ
ファイル名とするサブファイルを作成し、その中に、当
該中間ファイル9のレコード番号を格納する。また、番
号読込モジュール11はサブプログラム5に処理を渡す
ため、パラメータファイル12を作成する。
The number reading module 11 reads the record number stored in the intermediate file in accordance with the form output instruction data and stores it in the record number file 4. The record number file 4 is a standby combined organization file, and when storing the record number, a subfile is created with the terminal name and system time as the subfile name, and the record number of the intermediate file 9 is stored therein. Further, the number reading module 11 creates a parameter file 12 in order to pass processing to the subprogram 5.

【0014】図3はサブ処理の機能ブロック図である。 図中、13はデータ読込モジュール,14はデータ格納
ファイル,15は編集出力モジュール,16はその他の
ファイルである。データ読込モジュール13と編集出力
モジュール15はサブプログラム5の構成要素である。
FIG. 3 is a functional block diagram of sub-processing. In the figure, 13 is a data reading module, 14 is a data storage file, 15 is an editing output module, and 16 is another file. The data reading module 13 and the editing output module 15 are components of the subprogram 5.

【0015】データ読込モジュール13は起動されると
パラメータファイル13を参照し、該当するサブファイ
ル名を得る。そして、レコード番号ファイル4中の該当
するサブファイルよりレコード番号を読み、それを使っ
てリレーショナル型データベース3より実際のデータを
読み込み、データ格納ファイル14に格納する。以上の
処理が終了すると、レコード番号ファイル4の中の該当
サブファイルを消去する。
When the data reading module 13 is activated, it refers to the parameter file 13 and obtains the corresponding subfile name. Then, the record number is read from the corresponding subfile in the record number file 4, and using it, actual data is read from the relational database 3 and stored in the data storage file 14. When the above processing is completed, the corresponding subfile in the record number file 4 is deleted.

【0016】なお、データ格納ファイル14は補助記憶
装置上に一時ファイルとして確保する。
Note that the data storage file 14 is secured as a temporary file on the auxiliary storage device.

【0017】データ読込モジュール13の処理が終了す
ると、次のステップとして編集出力モジュール15を起
動し、データ格納ファイル14やその他のファイル16
よりデータが読み込まれ、段組,コード変換,単語改行
等,種々の編集作業を行なったのち、帳票6を出力する
When the processing of the data reading module 13 is completed, the next step is to start the editing output module 15 and read the data storage file 14 and other files 16.
After the data is read in and various editing operations such as column formatting, code conversion, word breaks, etc. are performed, a form 6 is output.

【0018】[0018]

【発明の効果】以上、詳細に説明したように本発明によ
れば、データ検索時はレコード番号を読込みファイルに
格納するだけで処理を完結し、検索された実データの読
込み,編集,帳票出力等の時間のかかる処理は、別のジ
ョブ起動によって上記の検索処理とは独立させて行なう
。したがって大量デーダを複雑な形式で編集・出力する
場合でも端末の待ち時間を最低限におさえることができ
るという効果を有する。例えばデータの読込みにかかる
時間だけをとっても、レコード番号のみを読込む場合は
実際のデータを読込むのに比べ、約1/5の時間しかか
からない。
[Effects of the Invention] As described above in detail, according to the present invention, when searching for data, processing can be completed by simply reading the record number and storing it in a file, and reading, editing, and outputting the searched actual data into a form. Processing that takes time, such as searching, is performed independently of the above-mentioned search processing by starting another job. Therefore, even when editing and outputting a large amount of data in a complicated format, it is possible to minimize the waiting time at the terminal. For example, when considering only the time required to read data, reading only the record number takes about 1/5 of the time compared to reading the actual data.

【0019】これにより、利用者側から見た場合、帳票
出力のコマンドを画面から入力すると即時にそのコマン
ドが実行され画面が使用可能となるため、帳票をプリン
トアウトしながら同時に画面を使って次の指示コマンド
を実行することができ、作業効率を高めることができる
[0019] As a result, from the user's perspective, when a command to output a form is input from the screen, that command is immediately executed and the screen becomes available for use, so that the user can print out the form and use the screen at the same time to print out the next command. It is possible to execute instruction commands, increasing work efficiency.

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

【図1】本発明の一実施例を示す説明図。FIG. 1 is an explanatory diagram showing one embodiment of the present invention.

【図2】メイン処理の機能ブロック図。FIG. 2 is a functional block diagram of main processing.

【図3】サブ処理の機能ブロック図。FIG. 3 is a functional block diagram of sub-processing.

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

2    メインプログラム 3    リレーショナル型データベース4    レ
コード番号ファイル 5    サブプログラム 6    帳票
2 Main program 3 Relational database 4 Record number file 5 Subprogram 6 Report

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  リレーショナル型データベースを与え
られた検索条件に従って即時検索し,検索されたデータ
を編集し,出力装置に帳票出力するシステムにおいて、
検索時には内部管理番号のみを読込んでユーザファイル
に格納し、実データの読込みと編集処置および帳票出力
処理は前記ユーザファイルを媒介として検索とは独立し
た別のプログラムで実行することを特徴とするリレーシ
ョナル型データベースの検索・出力方法。
[Claim 1] A system that instantly searches a relational database according to given search conditions, edits the searched data, and outputs a form to an output device, comprising:
A relational system characterized in that during a search, only an internal management number is read and stored in a user file, and reading of actual data, editing processing, and form output processing are executed by a separate program independent of the search using the user file as a medium. How to search and output type database.
JP3075477A 1991-04-09 1991-04-09 Method for retrieving/outputting relational data base Pending JPH04310183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3075477A JPH04310183A (en) 1991-04-09 1991-04-09 Method for retrieving/outputting relational data base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3075477A JPH04310183A (en) 1991-04-09 1991-04-09 Method for retrieving/outputting relational data base

Publications (1)

Publication Number Publication Date
JPH04310183A true JPH04310183A (en) 1992-11-02

Family

ID=13577420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3075477A Pending JPH04310183A (en) 1991-04-09 1991-04-09 Method for retrieving/outputting relational data base

Country Status (1)

Country Link
JP (1) JPH04310183A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07146879A (en) * 1993-11-22 1995-06-06 Nec Corp Relational data base condition retrieval result control system
JP2009146022A (en) * 2007-12-12 2009-07-02 Mitsubishi Electric Corp Search device, search method, and search program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07146879A (en) * 1993-11-22 1995-06-06 Nec Corp Relational data base condition retrieval result control system
JP2009146022A (en) * 2007-12-12 2009-07-02 Mitsubishi Electric Corp Search device, search method, and search program

Similar Documents

Publication Publication Date Title
JPS5936867A (en) Filing device of document picture
JPH04310183A (en) Method for retrieving/outputting relational data base
JPH06282584A (en) Picture information processor
JPH11161656A (en) Data base retrieval and extraction system and recording medium in which control program for data base retrieval and extraction is recorded
JPH0561758A (en) Information link device
JPH10326285A (en) Document management system
JP2718836B2 (en) Database system
JPS634334A (en) Electronic file device for document image
JPH06131228A (en) Method for information processing and device therefor
JP3255121B2 (en) Database search device, database search method, information processing device, recording medium storing program for causing computer to execute database search method
JP2810491B2 (en) Document filing device
JP2000076358A (en) System and method for document output management with re-outputting function
JPH05298368A (en) Method for inputting retrieving word in electronic filing system
JP3154790B2 (en) Optical character reader
JP2771382B2 (en) Magnetic tape unit
JPH07146879A (en) Relational data base condition retrieval result control system
JPH09218809A (en) File information confirmation device and method therefor
JPH07295993A (en) System for retrieving relational record
JPH05143216A (en) Multi-terminal data input system
JPH06230951A (en) Program development supporting device
JPH0448383A (en) Image filing device
JPH0713752A (en) Control method/device for program revision
JPH04308933A (en) Knowledge link information editor
JPS60203066A (en) File system of picture information
JPH06139058A (en) Program reorganization specification preparation system