JPH10222406A - Record extracting device and recording medium - Google Patents

Record extracting device and recording medium

Info

Publication number
JPH10222406A
JPH10222406A JP9022702A JP2270297A JPH10222406A JP H10222406 A JPH10222406 A JP H10222406A JP 9022702 A JP9022702 A JP 9022702A JP 2270297 A JP2270297 A JP 2270297A JP H10222406 A JPH10222406 A JP H10222406A
Authority
JP
Japan
Prior art keywords
record
level
control table
records
next lower
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
JP9022702A
Other languages
Japanese (ja)
Inventor
Yoshiaki Yuyama
好章 湯山
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP9022702A priority Critical patent/JPH10222406A/en
Publication of JPH10222406A publication Critical patent/JPH10222406A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To easily extract a record desirable for a user out of plural records divided by plural hierarchies at high speed. SOLUTION: When a record at low-order level is to be extracted while designating any arbitrary record at desired level, a CPU classifies the respective records at plural hierarchical levels for each level, acquires the detailed number of records added to the relevant designated record and the detailed number of records added to the record next to the relevant designated record from a control table adding the detailed number of records at the next low-order level to be extracted concerning the relevant record for each record classified for each level (steps S52 and S54), retrieves the records at the low-order level within these ranges (steps S58 and S66) and outputs them (step S64).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数階層で区分さ
れるレコードを帳票出力する際にレコードを抽出する処
理を行うレコード抽出装置、及びこのようなレコード抽
出処理をコンピュータに実行させる命令を含むプログラ
ムを格納したコンピュータが読み取り可能な記録媒体に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a record extracting apparatus for extracting records when a record divided into a plurality of hierarchies is output on a form, and an instruction for causing a computer to execute such record extracting processing. The present invention relates to a computer-readable recording medium storing a program.

【0002】[0002]

【従来の技術】従来より、データ処理装置等によって生
成されて記憶されたデータファイルから、データレコー
ドを、予め定義されたレコード毎の書式情報に従って、
レコード毎に順次出力、例えば印字出力するように構成
された帳票出力装置が知られている。
2. Description of the Related Art Conventionally, a data record is created from a data file generated and stored by a data processing device or the like in accordance with format information for each predefined record.
2. Description of the Related Art A form output device configured to sequentially output, for example, print out each record is known.

【0003】このような帳票出力装置では、複数階層で
区分されるレコードを帳票出力する際、その階層毎の従
属関係がわかるような帳票が直ちに出力できるように、
それを前提として各階層のレコードを混在させてソート
して記憶している。
[0003] In such a form output device, when a record divided into a plurality of hierarchies is output as a form, a form in which the subordinate relation of each hierarchy can be immediately output can be output immediately.
On the premise of this, records of each hierarchy are mixed and sorted and stored.

【0004】[0004]

【発明が解決しようとする課題】このような記憶は、上
記形式の帳票を出力する際は良いが、あるレベル、ある
区分のあるレコードを指定し、その下のレベルで同一区
分のレコード全てを抽出して、それを出力対象としたい
といった場合には、該当するレコードかどこに記憶され
ているのかは何ら管理されていないため、その指定段階
で全レコードを検索対象として検索抽出することが必要
になり、その処理が煩雑なものとなっていた。
Such storage is good when outputting a form in the above format, but a certain level, a certain record of a certain section is designated, and all the records of the same section at the lower level are specified. If you want to extract it and make it an output target, there is no control over the record or where it is stored, so it is necessary to search and extract all records as search targets at the specified stage. And the processing is complicated.

【0005】また、同様に、あるレベルを指定してその
同一レベルのレコードだけを出力対象としたいといった
場合にも、その指定段階で全レコードを検索対象として
検索抽出することが必要になり、その処理が煩雑なもの
となっていた。本発明の課題は、複数階層で区分される
複数のレコードからユーザが所望するレコードを簡単且
つ高速に抽出できるようにすることである。
Similarly, when a certain level is specified and only records of the same level are to be output, it is necessary to search and extract all records at the specified stage as search targets. The processing was complicated. An object of the present invention is to enable a user to easily and quickly extract a desired record from a plurality of records divided in a plurality of hierarchies.

【0006】[0006]

【課題を解決するための手段】本発明の手段は次の通り
である。制御テーブル記憶手段は、複数階層レベルの各
レコードを各レベル毎に分類し、各レベル毎に分類され
た各レコード毎に、当該レコードについて抽出されるべ
き次下位レベルの特定レコードのアドレス情報を付加し
た制御テーブルを記憶する。レコード抽出手段は、所望
レベルの任意レコードが指定された際に、上記制御テー
ブル記憶手段に記憶された制御テーブルを参照して、当
該指定レコードに付加された次下位レベルの特定レコー
ドのアドレス情報と、当該指定レコードの次レコードに
付加された次下位レベルの特定レコードのアドレス情報
とに基づいて、抽出すべき次下位レベルのレコードの範
囲を特定して、その範囲のレコードを抽出する。
The means of the present invention are as follows. The control table storage unit classifies the records of the plurality of hierarchical levels for each level, and adds, for each record classified for each level, address information of a specific record at the next lower level to be extracted for the record. The stored control table is stored. The record extraction means refers to the control table stored in the control table storage means when an arbitrary record of a desired level is specified, and stores address information of a specific record of the next lower level added to the specified record. The range of the next lower level record to be extracted is specified based on the address information of the next lower level specific record added to the next record of the specified record, and the records in that range are extracted.

【0007】本発明の手段の作用は次の通りである。所
望レベルの任意レコードを指定してその下位レベルのレ
コードを抽出する際に、レコード抽出手段は、制御テー
ブル記憶手段に記憶された、複数階層レベルの各レコー
ドを各レベル毎に分類し、各レベル毎に分類された各レ
コード毎に、当該レコードについて抽出されるべき次下
位レベルの特定レコードのアドレス情報を付加した制御
テーブルを参照して、当該指定レコードに付加された次
下位レベルの特定レコードのアドレス情報と、当該指定
レコードの次レコードに付加された次下位レベルの特定
レコードのアドレス情報とに基づいて、抽出すべき次下
位レベルのレコードの範囲を特定して、その範囲のレコ
ードを抽出する。従って、複数階層で区分される複数の
レコードからユーザが所望するレコードを簡単且つ高速
に抽出できるようになる。
The operation of the means of the present invention is as follows. When an arbitrary record at a desired level is designated and a record at a lower level is extracted, the record extracting means classifies the records at a plurality of hierarchical levels stored in the control table storage means for each level, and For each record classified for each record, refer to the control table to which the address information of the specific record of the next lower level to be extracted for the record is added, and check the specific record of the next lower level added to the specified record. Based on the address information and the address information of the next lower level specific record added to the next record of the specified record, the range of the next lower level record to be extracted is specified, and the records in that range are extracted. . Therefore, it is possible to easily and quickly extract a record desired by the user from a plurality of records divided in a plurality of hierarchies.

【0008】[0008]

【発明の実施の形態】以下、本発明の一実施の形態のレ
コード抽出装置を図1の(A)乃至図6を参照して説明
する。図1の(A)は本発明の一実施の形態のレコード
抽出装置の適用されたコンピュータシステムの構成を示
す図で、同図中、参照番号10は当該レコード抽出装置
全体を制御するCPUである。12はキーボードやマウ
ス等の入力装置であり、14はCRT等の表示装置、1
6はページプリンタ等の印刷装置である。18は、オペ
レーティングシステム(OS)、入力制御,ファイル制
御,データレコード作成処理制御,データ表示制御、詳
細は後述するような制御テーブルの作成制御等のプログ
ラム、作成されたレコードファイルや制御テーブル、そ
の他の情報を記憶するハードディスク等の記憶装置であ
る。20は、上記CPU10がこの記憶装置18に記憶
されたプログラムを実行する際のワークメモリとして用
いられるRAMであり、上記プログラム、データレコー
ドやその他の情報が展開される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A record extracting apparatus according to one embodiment of the present invention will be described below with reference to FIGS. FIG. 1A is a diagram showing a configuration of a computer system to which a record extraction device according to an embodiment of the present invention is applied. In FIG. 1, reference numeral 10 denotes a CPU that controls the entire record extraction device. . Reference numeral 12 denotes an input device such as a keyboard and a mouse, and 14 denotes a display device such as a CRT.
Reference numeral 6 denotes a printing device such as a page printer. Reference numeral 18 denotes an operating system (OS), input control, file control, data record creation processing control, data display control, programs for creating a control table as described in detail below, created record files and control tables, and the like. Storage device such as a hard disk for storing the information of Reference numeral 20 denotes a RAM that is used as a work memory when the CPU 10 executes the program stored in the storage device 18, and stores the program, data records, and other information.

【0009】なお、上記記憶装置18に記憶されるプロ
グラムやデータ等は、予め記憶されていても良いし、フ
ロッピーディスクや光(磁気)ディスク等の可搬型記憶
媒体22や通信回線24によって供給されて、記憶装置
18に格納されるものであっても良い。あるいは、該記
憶装置18に記憶されたプログラム以外にも、CPU1
0は、可搬型記憶媒体22に記憶されたプログラムや通
信回線24を介して与えられるプログラムを直接RAM
20に読み込んで実行することも可能である。
The programs and data stored in the storage device 18 may be stored in advance, or may be supplied via a portable storage medium 22 such as a floppy disk or an optical (magnetic) disk or a communication line 24. Alternatively, the information may be stored in the storage device 18. Alternatively, in addition to the program stored in the storage device 18, the CPU 1
0 is a program for directly storing a program stored in the portable storage medium 22 or a program given through the communication line 24 in the RAM.
20 and can be executed.

【0010】図2は、上記記憶装置18に記憶されたレ
コードファイルの一例としての売上ファイルを示す図で
ある。この売上ファイルは、「コード」、「名称」、
「区分」、「売上金額」、「粗利金額」、「粗利率」、
「債権回転日数」、「レベル」、「従属」等のフィール
ドよりなる。ここで、「レベル」フィールドは、明細の
レベルを表し、“0”が最上位レベルで、数が大きくな
るにつれてレベルが深くなる。即ち、「区分」が“1”
つまり「上期」の1段下の明細は「商品A」、「商品
B」、「商品C」であるということを示す。また、「従
属」のフィールドは、どのコード部(「コード」及び
「名称」のフィールド)に従属するかを示している。
FIG. 2 is a diagram showing a sales file as an example of a record file stored in the storage device 18. As shown in FIG. This sales file contains "code", "name",
"Segment", "Sales amount", "Gross margin amount", "Gross margin ratio"
It consists of fields such as “Days of turnover”, “Level”, “Dependency” and so on. Here, the “level” field indicates the level of details, with “0” being the highest level, and the level increases as the number increases. That is, the “section” is “1”
In other words, it indicates that the description one row below “first half” is “product A”, “product B”, and “product C”. Further, the “dependent” field indicates which code part (the “code” and “name” fields) is dependent.

【0011】本実施の形態のレコード抽出装置は、この
ような売上ファイルより、図1の(B)に示すような帳
票を出力するために、所望レベルの任意レコードを指定
してその下位レベルのレコードを抽出する際には、その
都度売上ファイルの全てのレコードを検索して所望のレ
コードを抽出するという処理を行うのではなく、まず、
図2に示した売上ファイルより制御テーブルを作成し、
この制御テーブルを参照することによって所望のレコー
ドを直ちに抽出するというものである。
The record extracting apparatus according to the present embodiment designates an arbitrary record at a desired level and outputs a report as shown in FIG. When extracting records, instead of performing a process of searching for all records in the sales file and extracting desired records each time, first,
Create a control table from the sales file shown in FIG.
A desired record is immediately extracted by referring to the control table.

【0012】まず、図3のフローチャートを参照して、
図4に示すような制御テーブルを記憶装置18上に作成
する処理を説明する。即ち、CPU10はまず、記憶装
置18に記憶されたレコードファイル、本実施の形態に
於いては売上ファイルより、1レコードを取り出して、
RAM20に格納し(ステップS10)、その内容がエ
ンドオブファイル(EOF)かどうか判断する(ステッ
プS12)。EOFでなければ、当該レコードのデータ
を、フィールド「コード」及び「名称」に対応するコー
ド部と、フィールド「売上金額」、「粗利金額」、「粗
利率」、「債権回転日数」に対応する実データ部とに分
配するレコード分配処理を行う(ステップS14)。ま
たこのとき、これに加えて、取り出したレコードが1レ
コード目の場合には、項目名称テーブルを作成して記憶
装置18に記憶する処理を行う。
First, referring to the flowchart of FIG.
Processing for creating a control table as shown in FIG. 4 on the storage device 18 will be described. That is, the CPU 10 first retrieves one record from the record file stored in the storage device 18, in this embodiment, the sales file,
It is stored in the RAM 20 (step S10), and it is determined whether or not the content is an end of file (EOF) (step S12). If it is not EOF, the data of the record corresponds to the code part corresponding to the fields “code” and “name”, and the fields “sales amount”, “gross profit amount”, “gross profit rate”, and “number of days of receivable turnover” A record distribution process for distributing the data to the actual data part is performed (step S14). At this time, in addition to this, if the retrieved record is the first record, a process of creating an item name table and storing it in the storage device 18 is performed.

【0013】次に、RAM20に格納したレコードに於
けるフィールド「区分」のデータを取り出し(ステップ
S16)、その区分内容を選別する(ステップS1
8)。また、フィールド「レベル」のデータによりその
レベルを選別して(ステップS20)、レベルm区分n
のデータ管理制御テーブルを選定する(ステップS2
2)。
Next, the data of the field "section" in the record stored in the RAM 20 is taken out (step S16), and the contents of the section are selected (step S1).
8). Further, the level is selected based on the data of the field “level” (step S20), and the level m section n
Is selected (step S2).
2).

【0014】ここで、前レコードの処理時のレベルと比
較して(ステップS24)、変化がない場合には、RA
M20に一時記憶してある当該レベルのデータ件数をイ
ンクリメントし(ステップS26)、上記選定されたデ
ータ管理制御テーブルにデータを登録して(ステップS
28)、上記ステップS10に戻る。
Here, if there is no change compared with the level at the time of processing the previous record (step S24), RA
The number of data of the level temporarily stored in M20 is incremented (step S26), and data is registered in the selected data management control table (step S26).
28), and return to step S10.

【0015】従って、図2の売上ファイルの最初のレコ
ードについての処理を行うと、レベル0データ管理制御
テーブルのレコード番号“0”のレコードの内のコード
部及び区分1データ部にデータが登録される。但しこの
場合、コード部の「明細化」フィールドについてはまだ
データは登録されない。
Therefore, when the process is performed on the first record of the sales file of FIG. 2, data is registered in the code part and the division 1 data part of the record of record number "0" of the level 0 data management control table. You. However, in this case, data is not yet registered in the “specification” field of the code part.

【0016】なお、図では、説明の都合上、コード部、
区分1データ部、及び区分2データ部を別々に描いてい
るが、これらは一続きのレコードである。即ち、レベル
0データ管理制御テーブルの各レコードは、「コー
ド」、「名称」、「明細化」、「売上金額(区分
1)」、「粗利金額(区分1)」、「粗利率(区分
1)」、「債権回転日数(区分1)」、「売上金額(区
分2)」、「粗利金額(区分2)」、「粗利率(区分
2)」、及び「債権回転日数(区分2)」のフィールド
よりなる。これは、レベル1データ管理制御テーブルに
於いても同様である。
In the figure, for convenience of explanation, a code part,
Although the division 1 data section and the division 2 data section are drawn separately, these are a series of records. That is, each record of the level 0 data management control table includes “code”, “name”, “specification”, “sales amount (category 1)”, “gross profit amount (category 1)”, “gross profit rate (category 1)”. 1), "Days of credit turnover (Category 1)", "Sales amount (Category 2)", "Gross profit amount (Category 2)", "Gross profit rate (Category 2)", and "Days of credit turnover (Category 2)" ) "Field. This is the same in the level 1 data management control table.

【0017】よって、図2の売上ファイルの2番目のレ
コードについての処理を行うと、レベル0データ管理制
御テーブルのレコード番号“0”のレコードの内の区分
2データ部にデータが登録される。この場合、ステップ
S26でのデータ件数のインクリメントは行われない。
Therefore, when the processing for the second record in the sales file of FIG. 2 is performed, data is registered in the section 2 data portion of the record with the record number “0” in the level 0 data management control table. In this case, the data number is not incremented in step S26.

【0018】また、上記ステップS24に於いて、レベ
ルがダウン(Down)したと判断されたときには、下
位レベルのデータ件数を初期化し(ステップS30)、
選定されたデータ管理制御テーブルにデータを登録して
(ステップS28)、上記ステップS10に戻る。
If it is determined in step S24 that the level has been lowered (Down), the number of data items in the lower level is initialized (step S30).
The data is registered in the selected data management control table (step S28), and the process returns to step S10.

【0019】従って、例えば図2の売上ファイルの3番
目のレコードについての処理を行った場合、レベルが
“0”から“1”にレベルダウンするので、下位レベル
即ちレベル“1”のデータ件数が“1”に初期化され、
レベル1データ管理制御テーブルのレコード番号“0”
のレコードの内のコード部及び区分1データ部にデータ
が登録される。
Therefore, for example, when the processing is performed on the third record of the sales file shown in FIG. 2, the level is lowered from "0" to "1". Initialized to “1”,
Record number "0" of level 1 data management control table
The data is registered in the code part and the division 1 data part of the record of.

【0020】また、上記ステップS24に於いて、レベ
ルがアップ(Up)したと判断されたときには、本レベ
ルのデータ件数を上位レベルの明細化情報に登録した後
(ステップS32)、選定されたデータ管理制御テーブ
ルにデータを登録して(ステップS28)、上記ステッ
プS10に戻る。
If it is determined in step S24 that the level has been increased (Up), the number of data of this level is registered in the specification information of the upper level (step S32), and the selected data The data is registered in the management control table (step S28), and the process returns to step S10.

【0021】従って、例えば図2の売上ファイルの7番
目のレコードについての処理を行った場合、レベルが
“1”から“0”にレベルアップするので、RAM20
に一時記憶されているレベル“1”のデータ件数“2”
が、レベル0データ管理制御テーブルのコード部の「明
細化」フィールドに登録される。
Therefore, for example, when the processing is performed on the seventh record of the sales file shown in FIG. 2, the level is increased from "1" to "0".
Number of data of level “1” temporarily stored in “2”
Is registered in the “specification” field of the code part of the level 0 data management control table.

【0022】以下、このような処理を繰り返して、上記
ステップS12に於いてEOFと判断されたならば、こ
の制御テーブルの作成処理を終える。これにより、図4
に示すような制御テーブルが記憶装置18に作成され
る。なお、本実施の形態に於いては、レベル“1”まで
しかないため、レベル1データ管理制御テーブルの各レ
コードの「明細化」フィールドは“0”となる。
Thereafter, such processing is repeated, and if it is determined in step S12 that EOF has occurred, the control table creation processing ends. As a result, FIG.
A control table as shown in FIG. In this embodiment, since there is only the level "1", the "specification" field of each record of the level 1 data management control table is "0".

【0023】次に、所望レベルの任意レコードを指定し
てその下位レベルのレコードを抽出する際に、この制御
テーブルを参照することによって所望のレコードを直ち
に抽出する下位レベル抽出処理を図5のフローチャート
に従って説明する。
FIG. 5 is a flowchart showing a lower level extraction process for immediately extracting a desired record by referring to this control table when an arbitrary record at a desired level is designated and a lower level record is extracted. It will be described according to.

【0024】即ち、まずユーザによって指定された明細
化対象範囲を検索し(ステップS40)、その明細化レ
ベルmを取得して(ステップS42)、記憶装置18に
記憶された制御テーブルの明細化レベルmのデータ管理
制御テーブルから明細化対象を選定する(ステップS4
4)。そして、明細化レベルmのデータ管理制御テーブ
ルから1レコード取り出し(ステップS46)、EOF
かどうか判定する(ステップS48)。EOFでなけれ
ば、その取り出したレコードが上記ステップS44で選
定された明細化対象であるかどうか判断し(ステップS
50)、そうでなければ上記ステップS46に戻る。
That is, first, the specification range specified by the user is searched (step S40), the specification level m is obtained (step S42), and the specification level of the control table stored in the storage device 18 is obtained. The specification target is selected from the data management control table of m (step S4)
4). Then, one record is extracted from the data management control table at the specification level m (step S46), and the EOF is performed.
It is determined whether or not it is (step S48). If it is not EOF, it is determined whether or not the retrieved record is the specification target selected in step S44 (step S44).
50), otherwise return to step S46.

【0025】明細化対象の場合には、当該レコードのコ
ード部の「明細化」フィールドより明細レコード数xを
取得する(ステップS52)。また、次レコードの「明
細化」フィールドより明細レコード数yを取得して(ス
テップS54)、本明細レコード数を(y−x)の演算
により算出する(ステップS56)。そして、明細レベ
ルm+1のデータ管理制御テーブルからxレコード目を
検索し(ステップS58)、処理レコード数zを“0”
に初期化して(ステップS60)、本明細レコード数y
−xが処理レコード数zよりも大きい場合にのみ(ステ
ップS62)、この検索したxレコード目を出力する
(ステップS64)。その後、次レコードを検索すると
共に処理レコード数zをインクリメントした後(ステッ
プS66)、上記ステップS62に戻る。そして、本明
細レコード数y−xと処理レコード数zが同じになった
ならば(ステップS62)、上記ステップS46に戻
る。
If the record is to be specified, the number x of detailed records is obtained from the "specification" field of the code part of the record (step S52). In addition, the number y of detailed records is obtained from the “detailed” field of the next record (step S54), and the number of main detailed records is calculated by (y−x) (step S56). Then, the x-th record is searched from the data management control table at the detail level m + 1 (step S58), and the number z of processed records is set to “0”.
(Step S60), and the number of records in the present specification y
Only when −x is greater than the number of processed records z (step S62), the x-th searched record is output (step S64). Then, after searching for the next record and incrementing the number z of records to be processed (step S66), the process returns to step S62. Then, when the number y-x of the present specification records becomes the same as the number z of processed records (step S62), the process returns to the step S46.

【0026】即ち、例えばレベル0データ管理制御テー
ブルのレコード“0”に於ける明細レコード数xは
“1”であり、次レコードの明細レコード数yは“2”
であるので、本明細レコード数(y−x)は“2”とな
る。よって、ステップS58に於いて、レベル1データ
管理制御テーブルのレコード“0”の区分1データ部及
び区分2データ部がそれぞれ検索され、ステップS64
でそれぞれ出力される。その後、ステップS66にて次
レコードが検索されて再びステップS64にて出力され
た後、ステップS66にてさらに次のレコードが検索さ
れるが、ステップS62に於いて、本明細レコード数y
−xと処理レコード数zとが同じ“2”になったと判断
されるので、この検索されたレコード“2”は出力され
ることはない。
That is, for example, the number x of detail records in the record “0” of the level 0 data management control table is “1”, and the number y of detail records of the next record is “2”.
Therefore, the number of records (y−x) of the present specification is “2”. Therefore, in step S58, the section 1 data section and the section 2 data section of the record "0" of the level 1 data management control table are respectively searched, and step S64 is performed.
Is output respectively. Then, in step S66, the next record is searched and output again in step S64. Then, in step S66, the next record is further searched.
Since it is determined that −x and the number of processed records z are the same “2”, the searched record “2” is not output.

【0027】また、レベル0データ管理制御テーブルの
レコード“1”が明細化対象として取り出された場合に
は、その明細レコード数xは“2”であり、次レコード
の明細レコード数yも“2”であるので、本明細レコー
ド数(y−x)は“0”となる。よって、ステップS5
8に於いて、レベル1データ管理制御テーブルのレコー
ド“2”の区分1データ部及び区分2データ部がそれぞ
れ検索されたとしても、ステップS62に於いて、本明
細レコード数y−xと処理レコード数zとが同じ“2”
であると判断されるので、この検索されたレコード
“2”は出力されることはない。
When the record “1” of the level 0 data management control table is taken out as the specification target, the number x of the detail records is “2”, and the number y of the detail records of the next record is also “2”. Therefore, the number of records (y−x) of the present specification is “0”. Therefore, step S5
In step S62, even if the division 1 data part and the division 2 data part of the record "2" of the level 1 data management control table are respectively searched, in step S62, the number of the detailed records yx and the processing record "2" with the same number z
Therefore, the retrieved record “2” is not output.

【0028】このように、複数階層で区分される複数の
レコードが、レベル毎に分類されて各レベル毎に分類さ
れた各レコード毎に次下位レベルへのアドレス情報を付
加した制御テーブルにより管理されるので、所望レベル
の任意レコードを指定してその下位レベルのレコードを
抽出する際は、上記制御テーブルを参照することによ
り、そのレコードで特定される次下位レベルへのアドレ
ス情報及び次レコードのアドレス情報に基づいて抽出す
べき次下位レベルのレコードの範囲(開始アドレス、件
数)を直ちに特定することができる。
As described above, a plurality of records classified into a plurality of hierarchies are managed by a control table in which address information to the next lower level is added for each record classified for each level and for each record classified for each level. Therefore, when an arbitrary record at a desired level is designated and a record at a lower level is extracted, address information to the next lower level specified by the record and the address of the next record are referred to by referring to the control table. The range (start address, number of records) of the next lower level record to be extracted based on the information can be immediately specified.

【0029】なお、本実施の形態は、説明を簡単にする
ために、2階層の場合を例に説明したが、さらに多数階
層の場合も、同様にして処理できることは勿論である。
また、本発明は、レコード構成にてデータを管理するも
のであれば、どのようなデータベース、表データであっ
ても適用可能なことは勿論である。
In this embodiment, the case of two layers has been described as an example for the sake of simplicity. However, it is needless to say that the same processing can be performed in the case of more layers.
In addition, the present invention can be applied to any database and table data as long as the data is managed in a record configuration.

【0030】[0030]

【発明の効果】本発明によれば、複数階層で区分される
複数のレコードからユーザが所望するレコードを簡単且
つ高速に抽出できるようになる。即ち、複数階層で区分
される複数のレコードが、レベル毎に分類されて各レベ
ル毎に分類された各レコード毎に次下位レベルへのアド
レス情報を付加した制御テーブルにより管理されるの
で、所望レベルの任意レコードを指定してその下位レベ
ルのレコードを抽出する際は、上記制御テーブルを参照
することにより、そのレコードで特定される次下位レベ
ルへのアドレス情報及び次レコードのアドレス情報に基
づいて抽出すべき次下位レベルのレコードの範囲(開始
アドレス、件数)を直ちに特定することができるように
なる。
According to the present invention, a record desired by a user can be easily and quickly extracted from a plurality of records divided in a plurality of hierarchies. That is, a plurality of records classified into a plurality of layers are managed by a control table in which address information to the next lower level is added for each record classified for each level and for each record classified for each level. When an arbitrary record is specified and a lower-level record is extracted, by referring to the control table, the extraction is performed based on the address information to the next lower level specified by the record and the address information of the next record. The range of the next lower level record (start address, number of records) to be specified can be immediately specified.

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

【図1】(A)は本発明の一実施の形態のレコード抽出
装置の適用されたコンピュータシステムのブロック構成
図であり、(B)は階層で区分されるレコード帳票の出
力例を示す図である。
FIG. 1A is a block diagram of a computer system to which a record extraction device according to an embodiment of the present invention is applied, and FIG. 1B is a diagram showing an output example of a record form divided by hierarchy. is there.

【図2】レコードファイルの一例としての売上ファイル
の内容を示す図である。
FIG. 2 is a diagram showing the contents of a sales file as an example of a record file.

【図3】制御テーブル作成処理のフローチャートであ
る。
FIG. 3 is a flowchart of a control table creation process.

【図4】制御テーブルの構成を示す図である。FIG. 4 is a diagram showing a configuration of a control table.

【図5】下位レベル抽出処理のフローチャートである。FIG. 5 is a flowchart of a lower level extraction process.

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

10 CPU 12 入力装置 14 表示装置 16 印刷装置 18 記憶装置 20 RAM 22 記憶媒体 24 通信回線 Reference Signs List 10 CPU 12 Input device 14 Display device 16 Printing device 18 Storage device 20 RAM 22 Storage medium 24 Communication line

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数階層レベルの各レコードを各レベル
毎に分類し、各レベル毎に分類された各レコード毎に、
当該レコードについて抽出されるべき次下位レベルの特
定レコードのアドレス情報を付加した制御テーブルを記
憶する制御テーブル記憶手段と、 所望レベルの任意レコードが指定された際に、上記制御
テーブル記憶手段に記憶された制御テーブルを参照し
て、当該指定レコードに付加された次下位レベルの特定
レコードのアドレス情報と、当該指定レコードの次レコ
ードに付加された次下位レベルの特定レコードのアドレ
ス情報とに基づいて、抽出すべき次下位レベルのレコー
ドの範囲を特定して、その範囲のレコードを抽出するレ
コード抽出手段と、 を具備することを特徴とするレコード抽出装置。
1. Classifying each record of a plurality of hierarchical levels for each level, and for each record classified for each level,
A control table storing means for storing a control table to which address information of a specific record of the next lower level to be extracted for the record is added; and a control table storing means for storing an arbitrary record of a desired level when the record is designated. With reference to the control table, based on the address information of the next lower-level specific record added to the specified record and the address information of the next lower-level specific record added to the next record of the specified record, A record extraction device, comprising: a record extraction unit for specifying a range of a record of a next lower level to be extracted and extracting records in the range.
【請求項2】 当該レコードの階層を示す情報を含む複
数のレコードでなるレコードファイルと、 上記レコードファイルより上記制御テーブルを作成し、
上記制御テーブル記憶手段に記憶する制御テーブル作成
手段と、 をさらに具備することを特徴とする請求項1に記載のレ
コード抽出装置。
2. The control table is created from a record file including a plurality of records including information indicating a hierarchy of the record, and the record file.
The record extracting apparatus according to claim 1, further comprising: a control table creating unit that stores the control table in the control table storage unit.
【請求項3】 所望レベルの任意レコードを指定してそ
の下位レベルのレコードを抽出する際に、 複数階層レベルの各レコードを各レベル毎に分類し、各
レベル毎に分類された各レコード毎に、当該レコードに
ついて抽出されるべき次下位レベルの特定レコードのア
ドレス情報を付加した制御テーブルを参照して、当該指
定レコードに付加された次下位レベルの特定レコードの
アドレス情報と、当該指定レコードの次レコードに付加
された次下位レベルの特定レコードのアドレス情報とに
基づいて、抽出すべき次下位レベルのレコードの範囲を
特定して、その範囲のレコードを抽出する処理をコンピ
ュータに実行させる命令を含むプログラムを格納した、
コンピュータが読み取り可能な記録媒体。
3. When designating an arbitrary record at a desired level and extracting a record at a lower level thereof, the records at a plurality of hierarchical levels are classified at each level, and each record classified at each level is classified at each level. Referring to the control table to which the address information of the next lower-level specific record to be extracted for the record is added, the address information of the next lower-level specific record added to the specified record, and the next Based on the address information of the specific record of the next lower level added to the record, a range of the next lower level record to be extracted is specified, and an instruction for causing the computer to execute a process of extracting the record of the range is included. Stored the program,
Computer-readable recording medium.
JP9022702A 1997-02-05 1997-02-05 Record extracting device and recording medium Pending JPH10222406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9022702A JPH10222406A (en) 1997-02-05 1997-02-05 Record extracting device and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9022702A JPH10222406A (en) 1997-02-05 1997-02-05 Record extracting device and recording medium

Publications (1)

Publication Number Publication Date
JPH10222406A true JPH10222406A (en) 1998-08-21

Family

ID=12090204

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9022702A Pending JPH10222406A (en) 1997-02-05 1997-02-05 Record extracting device and recording medium

Country Status (1)

Country Link
JP (1) JPH10222406A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163438A (en) * 2007-12-28 2009-07-23 Canon Inc Data search device, data search method, and computer program
CN112771611A (en) * 2018-09-26 2021-05-07 富士胶片株式会社 Recording device, reading device, recording method, recording program, reading method, reading program, and magnetic tape

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163438A (en) * 2007-12-28 2009-07-23 Canon Inc Data search device, data search method, and computer program
CN112771611A (en) * 2018-09-26 2021-05-07 富士胶片株式会社 Recording device, reading device, recording method, recording program, reading method, reading program, and magnetic tape

Similar Documents

Publication Publication Date Title
JP3883810B2 (en) Information management, retrieval and display system and related methods
US8019747B2 (en) Facilitating flexible windows in data stream management systems
JP4848317B2 (en) Database indexing system, method and program
US20030212960A1 (en) Computer-implemented system and method for report generation
US20040088650A1 (en) Methods and apparatus for generating a spreadsheet report template
US6185556B1 (en) Method and apparatus for changing temporal database
US20070055924A1 (en) Dynamic generation of form pages for accessing a database
US8527867B2 (en) Enabling users to edit very large XML data
US20020147725A1 (en) Method and apparatus for database table definition
JP2001344276A (en) Method and device for document retrieval and recording medium having document retrieval processing program recorded thereon
CN111443912A (en) Page rendering method and device based on components, computer equipment and storage medium
US20050076293A1 (en) Document storage
US8145580B2 (en) Data management apparatus and method for managing data elements using a plurality of metadata elements
JP2002142092A (en) Automatic layout system and recording medium
US7865818B2 (en) Form output control apparatus, form output control method, and computer readable program
US5526518A (en) Data processing apparatus
CN101393549A (en) Method and system for modifying table element displaying attribute
JPH10222406A (en) Record extracting device and recording medium
US20060136438A1 (en) Process server array for processing documents and document components and a method related thereto
JP2016018279A (en) Document file search program, document file search device, document file search method, document information output program, document information output device, and document information output method
JP2005141476A (en) Document management device, program and recording medium
JP4253134B2 (en) Document processing apparatus, document processing method, program, and recording medium
JP3933407B2 (en) Document processing apparatus, document processing method, and storage medium storing document processing program
JP2001147922A (en) Device and method for managing document and storage medium
JPWO2019012674A1 (en) Integrated analysis management system of program and integrated analysis management method therefor

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060711

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060908

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061219