JPH0371328A - Sort key information definition processing method - Google Patents
Sort key information definition processing methodInfo
- Publication number
- JPH0371328A JPH0371328A JP1206819A JP20681989A JPH0371328A JP H0371328 A JPH0371328 A JP H0371328A JP 1206819 A JP1206819 A JP 1206819A JP 20681989 A JP20681989 A JP 20681989A JP H0371328 A JPH0371328 A JP H0371328A
- Authority
- JP
- Japan
- Prior art keywords
- key information
- sort
- sort key
- definition
- processing
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、ソートキー情報定義処理方式に関し、特に、
データベースに対してソート処理を実行する場合に、ソ
ートプログラムを使用する際のソートキー情報の定義作
業を簡略化できるソートキー情報定義処理方式に関する
ものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a sort key information definition processing method, and in particular,
The present invention relates to a sort key information definition processing method that can simplify the work of defining sort key information when using a sort program when performing sort processing on a database.
データベースに対してソート処理を実行するためには、
ソートプログラムを使用して、所望するソート条件にし
たがってソート処理できるように予めソートキー情報が
定義されていなければならない、このようなソート処理
およびソートキー情報の定義作業の概略を第3図および
第4図を参照して説明する。To perform sort processing on the database,
Sort key information must be defined in advance so that sorting can be performed according to desired sorting conditions using a sorting program. Figures 3 and 4 outline the sorting process and sort key information definition work. Explain with reference to.
第3図は、ソートキー情報定義処理およびソート処理を
行うデータ処理システムの機器構成の概略を示すブロッ
ク図であり、第4図は、ソートキー情報定義作業の処理
を示すフローチャートである。FIG. 3 is a block diagram schematically showing the equipment configuration of a data processing system that performs sort key information definition processing and sorting processing, and FIG. 4 is a flowchart showing processing of sort key information definition work.
第3図において、30はデータ処理装置、31は端末装
置、32はファイル装置である。データ処理装置30に
は、ソート処理プログラム33、エディタ34が備えら
れている。また、ファイル装置32には。In FIG. 3, 30 is a data processing device, 31 is a terminal device, and 32 is a file device. The data processing device 30 is equipped with a sort processing program 33 and an editor 34. Also, in the file device 32.
データ処理を行うためのファイルが格納されている。こ
こでは、第3図に示すように、ソート処理。Contains files for data processing. Here, as shown in FIG. 3, sorting processing is performed.
ソートキー情報定義処理に関係するファイルとして、ソ
ート対象ファイル35.ソートキー情報定義ファイル3
6.ソート結果ファイル37が設けられている。このよ
うなデータ処理システムにおいて。As a file related to the sort key information definition process, there is a sort target file 35. Sort key information definition file 3
6. A sort result file 37 is provided. In such data processing systems.
ソート処理は、例えば、ソート対象ファイル35に対し
て、ソート処理プログラム33がソートキー情報定義フ
ァイル36からのソートキー情報を用いて行われる。ソ
ート処理を行ったソート結果はソート結果ファイル37
に格納される。For example, the sorting process is performed on the sorting target file 35 by the sorting process program 33 using the sorting key information from the sorting key information definition file 36. The sorting results after the sorting process are stored in the sorting result file 37.
is stored in
この場合、ソート処理の利用者は、予めソートキー情報
の定義処理を行って、当該ソートキー情報をソートキー
情報定義ファイル36に格納しておく、このソートキー
情報の定義処理は、エディタ34を用いて端末装置31
からソートキー情報であるキーの位置、長さおよび属性
等を入力することにより行う。In this case, the user of the sorting process performs the sort key information definition process in advance and stores the sort key information in the sort key information definition file 36. 31
This is done by inputting sort key information such as key position, length, and attributes.
次に、第4図を参照して、エディタを用いてキー情報を
入力する手順を説明すると、まず、ステップ41におい
て、ソート利用者は、ソート対象ファイルのレコード仕
様書からキーとするフィールドを検索する。そして、検
索により該当するフィールドを見つけた後、次のステッ
プ42において、そのフィールドの位置、長さおよび属
性等を、エディタの画面から入力する。Next, the procedure for inputting key information using an editor will be explained with reference to FIG. do. After finding a corresponding field through the search, in the next step 42, the position, length, attributes, etc. of that field are input from the editor screen.
このように、ソート処理を行うについて、ソートキー情
報の定義処理が行われる。この場合、次の点についての
配慮がなされておらず、ソート利用者がソート処理を行
うための負担が多いという問題がある。すなわち、
(1)利用者がキー情報であるキーの位置、キーの長さ
、キーの優先順位などを、ジョブ毎に全て定義する必要
があり、ソートキー情報を定義するための作業量が多い
。In this way, when performing sorting processing, sort key information definition processing is performed. In this case, there is a problem in that the following points are not considered, and the burden on the sorting user to perform the sorting process is heavy. That is, (1) the user must define all the key information such as key position, key length, key priority, etc. for each job, which requires a large amount of work to define sort key information.
(2)利用者がレコード仕様書などを参照して、手入力
で定義を行うため、誤入力が多い。(2) Users manually input definitions by referring to record specifications, etc., resulting in many input errors.
本発明は、前記問題点を解決するためになされたもので
ある。The present invention has been made to solve the above problems.
本発明の目的は、ソート対象に対してソート処理を実行
する場合に行うソートキー情報定義処理の作業を軽減す
るソートキー情報定義処理方式を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a sort key information definition processing method that reduces the work of sort key information definition processing performed when performing sort processing on sort targets.
本発明の前記ならびにその他の目的と新規な特徴は、本
明細書の記述及び添付図面によって明らかになるであろ
う。The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.
上記目的を達成するために、本発明においては、ソート
対象ファイルに対してソート処理を実行するためのソー
トキー情報を定義するソートキー情報定義処理方式であ
って、関係データベースディクショナリ中に存在するソ
ート対象ファイルのフィールド定義情報を画面に表示し
、画面上でのソートキーとすべきフィールドの指示から
、ソートキーの位置、長さおよび属性のソートキー情報
を定義するキー情報定義処理手段を備えることを特徴と
する。In order to achieve the above object, the present invention provides a sort key information definition processing method for defining sort key information for performing sort processing on sort target files, which includes sort target files existing in a relational database dictionary. The present invention is characterized by comprising key information definition processing means for displaying field definition information on a screen and defining sort key information such as the position, length, and attributes of the sort key from an instruction on the screen of a field to be used as a sort key.
前記手段によれば、ソート処理を実行するためのソート
キー情報の定義を簡易に行うために、トキー情報定義処
理手段が備えられる。このキー情報定義処理手段は、関
係データベースディクショナリ中に存在するソート対象
ファイルのフィールド定義情報を画面に表示し1画面上
でのソートキーとすべきフィールドの指示から、ソート
キーの位置、長さおよび属性のソートキー情報を定義す
る。According to the means, the key information definition processing means is provided in order to easily define the sort key information for executing the sorting process. This key information definition processing means displays the field definition information of the files to be sorted that exists in the relational database dictionary on the screen, and determines the position, length, and attributes of the sort key from the instructions of the field that should be the sort key on one screen. Define sort key information.
すなわち、WI係データベースディクショナリにおける
フィールド定義情報を利用し、ソートキー情報の定義に
引用する。このフィールド定義情報には、フィールドの
位置、長さおよび属性の情報が含まれており、これらの
情報を用いてソートキー情報の定義処理を行う、ソート
キ一定義作業においては1画面に表示したフィールド定
義情報から1画面上で利用者がフィールド名を選択する
。That is, the field definition information in the WI database dictionary is used and quoted in the definition of the sort key information. This field definition information includes field position, length, and attribute information, and this information is used to define sort key information.In sort key definition work, field definitions displayed on one screen are used. The user selects a field name from the information on one screen.
これにより1選択されたフィールド名により、フィール
ドの位置、長さおよび属性の3つが一組としてそのまま
指定される。このため、ソートキー情報の定義はフィー
ルド名の指定だけで可能となり、ソートキー情報の定義
作業が軽減され、指定〔実施例)
以下、本発明の一実施例を図面を用いて具体的に説明す
る。As a result, the position, length, and attribute of the field are specified as a set by the selected field name. Therefore, sort key information can be defined simply by specifying a field name, reducing the work of defining sort key information.Specification (Embodiment) An embodiment of the present invention will be specifically described below with reference to the drawings.
第工図は、本発明の一実施例にかかるソートキー情報定
義処理を実行する処理システムの要部構成を示したブロ
ック図である。FIG. 1 is a block diagram showing the configuration of main parts of a processing system that executes sort key information definition processing according to an embodiment of the present invention.
第1図において、1は端末装置、2は中央処理装置、3
はディスク装置である。端末装置1は、オペレータに対
して、中央処理装置2からの出力データを画面表示し、
オペレータに入力要求メツセージを画面表示して入力を
受付け、また、オペレータからの任意のコマンド等の入
力を受付け、中央処理装置2に与える。中央処理装置2
は、例えば、データの入出力処理、ソート処理、ソート
キー情報の定義処理などを行うためのプログラム。In FIG. 1, 1 is a terminal device, 2 is a central processing unit, and 3 is a terminal device.
is a disk device. The terminal device 1 displays output data from the central processing unit 2 on a screen to the operator,
An input request message is displayed on the screen for the operator and input is accepted, and input of arbitrary commands and the like from the operator is accepted and provided to the central processing unit 2. Central processing unit 2
is a program that performs, for example, data input/output processing, sorting processing, sort key information definition processing, etc.
処理制御部を備え、各種のデータ処理を行う。It is equipped with a processing control unit and performs various data processing.
ディスク装w3は、外部記憶装置として用いるものであ
り、ここにはデータ処理のための各種のファイルが格納
されている1例えば、図示するよリファイル15.ソー
トキ一定義情報格納ファイル16、ソート対象ファイル
17.などのファイルが格納されている。RDBディク
ショナリファイル15には、RDBディクショナリ情報
として、複数のフィールド定義情報15aと、このフィ
ールド定義情報15aを管理するファイルインデックス
15bが設けられている。フィールド定義情報15aは
、ファイルインデックス15bからポインタによりポイ
ントされて、管理される。The disk unit w3 is used as an external storage device, and various files for data processing are stored here.For example, as shown in the figure, files 15. Sort key definition information storage file 16, sort target file 17. Files such as are stored. The RDB dictionary file 15 is provided with a plurality of field definition information 15a and a file index 15b for managing the field definition information 15a as RDB dictionary information. The field definition information 15a is managed by being pointed to by a pointer from the file index 15b.
また、第工図のブロック図には、本実施例にかかるソー
トキー情報の定義処理を実行する処理ブロックとして、
中央処理装置2に設けられる各々の処理ブロックが図示
されている。すなわち、ソート対象ファイル名人力部1
1.RDBディクショナリ検索部12.キー情報定義画
面表示入力部13゜およびソートキー情報出力部14の
各処理ブロックである。Additionally, in the block diagram of the first engineering drawing, as a processing block that executes the sort key information definition processing according to this embodiment,
Each processing block provided in the central processing unit 2 is illustrated. In other words, sort target file Meijinrikibu 1
1. RDB dictionary search unit 12. These are each processing block of a key information definition screen display input section 13° and a sort key information output section 14.
第21!lは、ソートキー情報定義処理で用いるデータ
構造を説明する図である。第2図では、RD場合に、端
末装置の表示画面に表示されるキー情報定義画面の表示
画面情報と、フィールド定義情報と関係、および、ソー
トキー情報を定義した結果のソートキー情報格納ファイ
ルとの関係を示している。21st! 1 is a diagram illustrating a data structure used in sort key information definition processing. In Figure 2, in the case of RD, the display screen information of the key information definition screen displayed on the display screen of the terminal device, the relationship with field definition information, and the relationship with the sort key information storage file as a result of defining the sort key information. It shows.
次に、第1図および第2図を参照して、ソートキー情報
定義処理の動作について説明する。Next, the operation of sort key information definition processing will be described with reference to FIGS. 1 and 2.
オペレータが、端末装置tからソートキー情報の作成、
ソートキー情報の更新などを対話型式で実行することを
指示するコマンド(EDIT SMD)を投入すると
、ソートキー情報定義処理を実行するプログラムが起動
される。The operator creates sort key information from the terminal device t,
When a command (EDIT SMD) instructing to update sort key information or the like in an interactive manner is input, a program for executing sort key information definition processing is started.
このプログラムが起動されると、ソート対象ファイル名
人力部11は、ソート対象ファイル名と、ソートキー情
報格納ファイル名の入力指示をオペレータに促す機能選
択画面を端末装置1に表示する。これに対して、オペレ
ータはソート対象ファイル名とソートキー情報格納ファ
イル名を入力する。例えば、オペレータは、ソート対象
ファイル名としてrGOODsJ 、また、ソートキー
情報格納ファイル名としてrGOODsKEYJ を入
力する。When this program is started, the sort target file name human power unit 11 displays a function selection screen on the terminal device 1 that prompts the operator to input the name of the file to be sorted and the name of the file storing sort key information. In response, the operator inputs the name of the file to be sorted and the name of the sort key information storage file. For example, the operator inputs rGOODsJ as the file name to be sorted, and rGOODsKEYJ as the name of the sort key information storage file.
ソート対象ファイル名とソートキー情報格納ファイル名
が入力されると、次に、RDBディクショナリ検索部1
2が、ファイル名(GOODS)をキーにして、RDB
ディクショナリ15中のファイルインデックス15bか
らrGOODsJと同一のファイル名を検索し、ポイン
タをたどって、当該ファイル名のフィールド定義情報1
5aをメモリに読み込む。When the sort target file name and the sort key information storage file name are input, the RDB dictionary search unit 1
2 uses the file name (GOODS) as a key and RDB
Search for the same file name as rGOODsJ from the file index 15b in the dictionary 15, follow the pointer, and search for the field definition information 1 of the file name.
5a into memory.
メモリに読み込んだフィールド定義情報には、第2図に
示すように、各フィールド名に対して、その位置、長さ
、その他の属性情報が格納されているので、これらのフ
ィールド名に対する位置。As shown in FIG. 2, the field definition information read into the memory stores the position, length, and other attribute information for each field name.
長さなどの属性情報を端末装置1の表示画面に表示出力
する。この処理はキー情報定義画面表示入力部13が行
う。Attribute information such as length is displayed on the display screen of the terminal device 1. This process is performed by the key information definition screen display input section 13.
このように、キー情報定義画面表示入力部13により、
フィールド定義情報15aのうちキー情報定義に必要な
情報(位置、長さ等)を、キー情報定義画面21として
端末装置lに表示する。この時、表示画面には同時にソ
ートキーとなるフィールドの選択入力を行うことを促す
メツセージ「キーの優先順位と並びを指定してください
」が表示される。これに対して、オペレータが1例えば
、商品コードを1番目のキーとして選択し、また、2番
目のキーとして色を指定するため、それぞれの優先順位
の欄にroIJ 、r02Jを入力する。また、更に、
同時に2つのキーは共に昇順にソートすることを指示す
るために、キー情報定義画面21において「並び」の欄
にrAOJというパラメータ値を入力する。これにより
、ソートキー情報出力部14は、選択入力とパラメータ
の指示により、選択された(優先順位が投入された)フ
ィールドに対するキー情報を作成し、ソートキー情報格
納ファイル16に作成したキ一定義情報を出力する。In this way, the key information definition screen display input section 13 allows
Among the field definition information 15a, information necessary for key information definition (position, length, etc.) is displayed on the terminal device l as a key information definition screen 21. At this time, a message ``Please specify the priority order and arrangement of keys'' is displayed on the display screen, prompting the user to select and input a field that will serve as a sort key. On the other hand, the operator selects, for example, the product code as the first key and specifies the color as the second key, so he inputs roIJ and r02J in the respective priority columns. Moreover, furthermore,
At the same time, in order to instruct that both keys be sorted in ascending order, a parameter value rAOJ is entered in the "Order" column on the key information definition screen 21. As a result, the sort key information output unit 14 creates key information for the selected (priority input) field according to the selection input and parameter instructions, and stores the created key definition information in the sort key information storage file 16. Output.
これにより、ソートキー情報格納ファイル16のファイ
ル名rGOODsKEYJのファイルには。As a result, the file with the file name rGOODsKEYJ of the sort key information storage file 16 has the following information:
第2図に示すように、フィールド名2位置、長さのソー
トキー情報が、RDBディクショナリファイル15のフ
ィールド定義情報15aから作成されて格納される。As shown in FIG. 2, sort key information of field name 2 position and length is created from the field definition information 15a of the RDB dictionary file 15 and stored.
このように、ソートキー情報としては「商品コード」お
よび「色」に対するフィールド定義情報がrGOODs
KEYJに格納される。In this way, the field definition information for "product code" and "color" is rGOODs as sort key information.
Stored in KEYJ.
このようにしてソートキー情報を定義した後。After defining the sort key information in this way.
定義したソートキー情報によりソート処理を行うため、
コマンド(SORT)によりソート処理プログラム(3
3;第3図)を起動し、ソート処理を実行する。In order to perform the sorting process using the defined sort key information,
The sort processing program (3) is executed by the command (SORT).
3; start up the software (Fig. 3) and execute the sorting process.
以上、本発明を実施例にもとづき具体的に説明したが、
本発明は、前記実施例に限定されるものではなく、その
要旨を逸脱しない範囲において種々変更可能であること
は言うまでもない。The present invention has been specifically explained above based on examples, but
It goes without saying that the present invention is not limited to the embodiments described above, and can be modified in various ways without departing from the spirit thereof.
以上、説明したように、本発明のソートキー情報定義処
理方式によれば、RDBディクショナリからフィールド
定義情報を引用することにより、フィールド名の指定の
みで、一連のソートキー情報が定義できるため、利用者
のソート処理の定義作業において、ソートキー情報とな
るフィールドの位置、長さ、属性などを、特に入力する
必要がなくなるため、ソートキ一定義の作業時間を短縮
できる。また、ソートキー情報の定義作業における誤り
を減少させることができる。As explained above, according to the sort key information definition processing method of the present invention, by quoting field definition information from the RDB dictionary, a series of sort key information can be defined simply by specifying the field name. In the definition work for sorting processing, it is no longer necessary to input the position, length, attributes, etc. of fields that serve as sort key information, so the work time for defining a sort key can be shortened. Furthermore, errors in the definition work of sort key information can be reduced.
第1図は1本発明の一実施例にかかるソートキー情報定
義処理を実行する処理システムの要部構成を示したブロ
ック図、
第2図は、ソートキー情報定義処理で用いるデータ構造
を説明する図、
第3図は、ソートキー情報定義処理およびソート処理を
行うデータ処理システムの機器構成の概略を示すブロッ
ク図、
第4図は、ソートキー情報定義作業の処理を示すフロー
チャートである。
1.31・・・端末装置、2・・・中央処理装置、3・
・・ディスク装置、15・・・RDBディクショナリ、
15a・・・フィールド定義情報、15b・・・ファイ
ルインデックス、16・・・ソートキー情報格納ファイ
ル、17.35・・・ソート対象ファイル、21・・・
キー情報定義画面、30・・・データ処理装置、32・
・・ファイル装置、33・・・ソート処理プログラム、
33・・・エディタ、36・・・ソートキー情報定義フ
ァイル、37・・・ソート結果ファイル。
笥
1
凹
鴻2部1 is a block diagram showing the main part configuration of a processing system that executes sort key information definition processing according to an embodiment of the present invention; FIG. 2 is a diagram illustrating a data structure used in sort key information definition processing; FIG. 3 is a block diagram showing an outline of the equipment configuration of a data processing system that performs sort key information definition processing and sorting processing, and FIG. 4 is a flowchart showing processing of sort key information definition work. 1.31...Terminal device, 2...Central processing unit, 3.
...Disk device, 15...RDB dictionary,
15a...Field definition information, 15b...File index, 16...Sort key information storage file, 17.35...Sort target file, 21...
Key information definition screen, 30... data processing device, 32.
...File device, 33...Sort processing program,
33... Editor, 36... Sort key information definition file, 37... Sort result file. 1 bamboo 2 parts
Claims (1)
ためのソートキー情報を定義するソートキー情報定義処
理方式であって、関係データベースディクショナリ中に
存在するソート対象ファイルのフィールド定義情報を画
面に表示し、画面上でのソートキーとすべきフィールド
の指示から、ソートキーの位置、長さおよび属性のソー
トキー情報を定義するキー情報定義処理手段を備えるこ
とを特徴とするソートキー情報定義処理方式。1. A sort key information definition processing method that defines sort key information for executing sort processing on files to be sorted, which displays field definition information for files to be sorted that exists in a relational database dictionary on the screen, and A sort key information definition processing method comprising: a key information definition processing means for defining sort key information of the position, length, and attributes of a sort key based on the above instruction of a field to be used as a sort key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1206819A JPH0371328A (en) | 1989-08-11 | 1989-08-11 | Sort key information definition processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1206819A JPH0371328A (en) | 1989-08-11 | 1989-08-11 | Sort key information definition processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0371328A true JPH0371328A (en) | 1991-03-27 |
Family
ID=16529612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1206819A Pending JPH0371328A (en) | 1989-08-11 | 1989-08-11 | Sort key information definition processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0371328A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5446514A (en) * | 1993-01-11 | 1995-08-29 | Copal Company Limited | Shutter blades drive mechanism for photographic cameras |
-
1989
- 1989-08-11 JP JP1206819A patent/JPH0371328A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5446514A (en) * | 1993-01-11 | 1995-08-29 | Copal Company Limited | Shutter blades drive mechanism for photographic cameras |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4545767A (en) | Training operation system and simulator for training in electric power system | |
JPH0371328A (en) | Sort key information definition processing method | |
US5155848A (en) | Method of searching and displaying selected data and for updating displayed data in a text editing system | |
JP2760755B2 (en) | Method of storing and redisplaying the operation button history for computer processing | |
JPH0277838A (en) | Control system for program selective execution menu | |
JPH0816518A (en) | Information processor | |
JPH05113818A (en) | Numerical controller with multi-program function | |
JPH0376491B2 (en) | ||
JP2520934B2 (en) | Data processing device | |
JPH04188356A (en) | Menu control system | |
JPH04318672A (en) | Information retreiving device | |
JP3260439B2 (en) | File name list display method | |
JPS63204434A (en) | Electronic document retrieving device | |
JPH02140866A (en) | Facility control processor | |
JPH065509B2 (en) | Object management processing method | |
JPH047776A (en) | Command menue control system | |
JPH05181661A (en) | General purpose menu system for each user | |
JPS6244804A (en) | Method for accessing working program by numerical controller | |
JPH06187208A (en) | Index file processor | |
JPH0798729A (en) | Estimate data processor | |
JPS621073A (en) | Drawing managing method for drawing production system | |
JPH0357020A (en) | System processing program generating device | |
JPH05250238A (en) | Data processing device | |
JPS6159530A (en) | Retrieval system of processing object | |
JPH02267671A (en) | Retrieval display device for table format database |