JPH03141470A - Table processor - Google Patents

Table processor

Info

Publication number
JPH03141470A
JPH03141470A JP1278421A JP27842189A JPH03141470A JP H03141470 A JPH03141470 A JP H03141470A JP 1278421 A JP1278421 A JP 1278421A JP 27842189 A JP27842189 A JP 27842189A JP H03141470 A JPH03141470 A JP H03141470A
Authority
JP
Japan
Prior art keywords
data
items
output
block
record
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
JP1278421A
Other languages
Japanese (ja)
Inventor
Toshimichi Suzuki
利道 鈴木
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.)
Hitachi Taga Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Taga Engineering Co Ltd
Hitachi 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 Hitachi Taga Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Taga Engineering Co Ltd
Priority to JP1278421A priority Critical patent/JPH03141470A/en
Publication of JPH03141470A publication Critical patent/JPH03141470A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To change the output form of data into an easy-to-see form and to perform the output of data by fixing the items serving as the data arrangement conditions including the sort, etc., at a specific position of a record via a means which automatically changes the arrangement of items within the record. CONSTITUTION:A control means 2-4 outputs the data arranged under the data arrangement conditions received from an input means 2-3 to an output means 2-1 in a table form. In this case, the means 2-4 changes the arrangement order of items in a line and fixes the items to which the data arrangement conditions are set at a specific position of the line. Thus it is possible to instantaneously obtain the easy-to-see output result in response to the change of the data arrangement conditions. In addition, it is not required to develop such a program that outputs data with mapping to an output format produced separately.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、蓄積しであるデータを加工する表処理装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a table processing device for processing accumulated data.

〔従来の技術〕[Conventional technology]

蓄積されているデータを出力装置に出力するときのデー
タの出力形式は、外部から出力形式を与えないかぎりは
蓄積されている通りに出力するのが一般的である。
When outputting stored data to an output device, the output format of the data is generally to output the data as stored unless an output format is provided from outside.

例えば、1件のデータの項目の並びはデータベースファ
イルを定義した時の順番となる。1件のデータの項目の
並びを替えるには1次の2つ方法が考えられる。
For example, the items of one data item are arranged in the order in which the database file was defined. There are two possible ways to rearrange the items of one data item:

(1)データベースファイルの定義を変える事などによ
り蓄積されているデータそのものの順番を変える。
(1) Change the order of the stored data itself by changing the definition of the database file.

(2)出力するフォーマット文書を別に作成し、それに
マツピングする。
(2) Create a separate format document to output and map to it.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

前記従来技術によれば、 ■出力する形式が変わるときはその度にデータベースフ
ァイルの定義を変更する必要があり操作がわずられしい
According to the prior art, (1) It is necessary to change the definition of the database file each time the output format changes, which makes operations cumbersome.

■出力するフォーマット文書を別に作成して、それにマ
ツピングするなどのプログラムを開発しなければならず
大がかりなシステムとなってしまう。
■It is necessary to separately create a format document to be output and develop a program for mapping to it, resulting in a large-scale system.

といった問題がある。There are problems like this.

本発明の目的は、外部から特別な操作をしないでデータ
の出力形式を見易い形式に変更して出力する表処理装置
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a table processing device that changes the output format of data into an easily viewable format without performing any special external operations.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、データ整理時に整理するための条件が設定
された項目を利用することにより達成される。
The above purpose is achieved by using items for which conditions for organizing data are set when organizing data.

〔作用〕[Effect]

レコード内の項目の並びを自動的に替える手段は、ソー
ト等のデータ整理条件とな、つた項目をレコードの特定
の位置に固定することで解決する。
The means for automatically changing the order of items in a record is solved by fixing the items at specific positions in the record, which is a data organization condition such as sorting.

〔実施例〕〔Example〕

以下、本発明を日本語ワードプロセッサ上で実施した例
を図面を用いて説明する。
An example in which the present invention is implemented on a Japanese word processor will be described below with reference to the drawings.

本実施例では、データ整理の条件となった項目をレコー
ドの先頭位置に固定するが、固定する位置をどこにして
も本発明の本来の考えには無関係である。また、データ
の整理そのものについては発明と直接関係ないため整理
された結果から出力するデータを作成する方式について
のみ記述する。
In this embodiment, the item that is the condition for data organization is fixed at the top position of the record, but the fixed position has no bearing on the original idea of the present invention. Furthermore, since the data organization itself is not directly related to the invention, only the method for creating data to be output from the organized results will be described.

整理したデータを出力する際には、レコード内のデータ
をそのままの並びで出力する場合もあるがその指定方法
と出力方式については省略する。
When outputting organized data, the data in a record may be output in the same order as it is, but the specification method and output method will be omitted.

第1図は、表をソートの条件を変えて処理した結果を表
示した例である。1−1に示すとおり1件のデータは本
来「支店名」、「製品名」、「売上高」、「担当者」の
並びで格納されている。例えば、「製品名」をソートの
条件にして実行した結果は1−2の様に「製品名」、「
支店名」。
FIG. 1 is an example of displaying the results of processing a table with different sorting conditions. As shown in 1-1, one piece of data is originally stored in the order of "branch name,""productname,""salesamount," and "person in charge." For example, the result of executing with "Product Name" as the sorting condition is "Product Name", "
Branch name".

「売上高」、「担当者」の並びになり、「担当者」をソ
ートの条件にして実行した結果は1−3の様に「担当者
」、「支店名」、「製品名」、「売上高」の並びになる
。本実施例では、製品名をソート条件にして1−3の結
果を得る場合について述べる。
``Sales'' and ``Person in charge'' are sorted, and when executed with ``Person in charge'' as the sorting condition, the result is ``Person in charge'', ``Branch name'', ``Product name'', ``Sales'' as shown in 1-3. ``High''. In this embodiment, a case will be described in which results 1-3 are obtained using the product name as a sorting condition.

第2図は、本発明を適用したキーボード型日本語ワード
プロセッサのハードウェア構成のブロック図である。2
−1はデータの整理結果等を表示する表示装置、2−2
はデータ、文字フォント。
FIG. 2 is a block diagram of the hardware configuration of a keyboard-type Japanese word processor to which the present invention is applied. 2
-1 is a display device for displaying data arrangement results, etc., 2-2
is data, character font.

プログラム等を格納する記憶袋[,2−3は入力装置、
2−4は前記2−1〜2−3の各装置を制御する制御装
置である。
A memory bag for storing programs, etc. [, 2-3 is an input device,
2-4 is a control device that controls each of the devices 2-1 to 2-3.

第3図、第4図、第5図は、本実施例で使用するテーブ
ルであり、前記記憶装置2−2に存在する。3−1はレ
コードの項目を管理する項目管理テーブルである。3−
1−1は項目名で「支店名」。
3, 4, and 5 are tables used in this embodiment, and exist in the storage device 2-2. 3-1 is an item management table for managing record items. 3-
1-1 is the item name "branch name".

「製品名」等の情報である。3−1−2はその項目に入
力可能な文字数である。3−2はルコードを構成する項
目数。前記3−1.3−2はデータベース定義時に作成
される。
This is information such as "product name". 3-1-2 is the number of characters that can be input into that item. 3-2 is the number of items that make up the code. The above 3-1.3-2 is created at the time of database definition.

第4図は、入力したデータが蓄えられているデータベー
スの内部構造を表したものである。データはルコードご
とに順番に格納され、ルコード内のデータはデータベー
スを定義した項目順に並んでいる。この場合「支店名」
、「製品名」。
FIG. 4 shows the internal structure of the database in which input data is stored. Data is stored in order for each code, and the data within a code is arranged in the order of the items that define the database. In this case, "branch name"
,"product name".

「売上高」、「担当者」の項目順に格納されている。The items are stored in the order of "Sales amount" and "Person in charge".

第5図は、データ整理プログラムとのインタフェースエ
リアである。5−1は表示するレコード番号が表示する
順番で格納されているテーブルである。例えば、ソート
を実行した場合にはソート後のレコードの並びが格納さ
れている。この場合、製品名をソート条件にして実行し
た結果である。
FIG. 5 shows the interface area with the data reduction program. 5-1 is a table in which record numbers to be displayed are stored in the order in which they are displayed. For example, when sorting is performed, the sorted record sequence is stored. In this case, this is the result of executing with the product name as the sorting condition.

5−2は有効なレコードの終わりを識別するコード(E
 OR: End Of Record)が格納されて
いる。
5-2 is a code (E
OR: End Of Record) is stored.

5−3はデータ整理の条件となった項目名が格納されて
おり、ソート条件の[製品名」が格納されている。
5-3 stores the item names that are the conditions for data organization, and stores the [product name] that is the sorting condition.

第6図、第7図は1本実施例を実現するためのフローチ
ャートである。
FIGS. 6 and 7 are flowcharts for realizing one embodiment.

第6図は、メインプログラムである。ブロック6−1は
出力するデータが有るか否かを判定する。
FIG. 6 shows the main program. Block 6-1 determines whether there is data to be output.

データが無い場合処理を終了する。ブロック6−2は表
示するレコード番号が格納されているテーブル5−1を
参照するためのポインタP1を初期化する。ブロック6
−3は表示データを作成するサブプログラムをコールす
る。その際作成するデ−タのレコード番号をパラメタと
して渡す。ブロック6−4はブロック6−3で作成した
データを表示するためのプログラムをコールする。ブロ
ック6−4はレコード番号参照用ポインタP1を更新す
る。ブロック6−6は表示するレコード番号が格納され
ているテーブル5−1の最後まで表示したかを判定する
。具体的には5−2の有効なレコードの終わりを識別す
るコードを検知したら終了する。表示データが有る場合
ブロック6−3に戻り表示を続ける。
If there is no data, the process ends. Block 6-2 initializes pointer P1 for referring to table 5-1 in which record numbers to be displayed are stored. Block 6
-3 calls a subprogram that creates display data. At that time, the record number of the data to be created is passed as a parameter. Block 6-4 calls a program for displaying the data created in block 6-3. Block 6-4 updates the record number reference pointer P1. Block 6-6 determines whether the end of table 5-1 in which record numbers to be displayed are stored has been displayed. Specifically, the process ends when a code identifying the end of a valid record in 5-2 is detected. If there is display data, the process returns to block 6-3 to continue displaying.

第7図は、表示データを作成するサブプログラムであり
、作成するデータのレコード番号をパラメタとして渡さ
れる。ブロック7−1は表示データ作成用のインタフェ
ースエリアを初期化する。
FIG. 7 shows a subprogram that creates display data, and the record number of the data to be created is passed as a parameter. Block 7-1 initializes the interface area for creating display data.

ブロック7−2は前記インタフェースエリアにデータを
セットするためのポインタP2を初期化する。ブロック
7−3はキー項目をサーチするために項目管理テーブル
3−1を参照するためのポインタP3を初期化する。ブ
ロック7−4.7−5はデータ整理の条件となった項目
名5−3を元に項目管理テーブル3−1の該当エントリ
ーをサーチする。この場合、「製品名」の項目をサーチ
する。ブロック7−6はパラメタとして渡されたレコー
ド番号とキーとなった項目をもとにして3−1−2の該
当文字数分データベース4から該当データを表示データ
作成用のインタフェースエリアの先頭からセットする。
Block 7-2 initializes pointer P2 for setting data in the interface area. Block 7-3 initializes pointer P3 for referring to item management table 3-1 in order to search for key items. Blocks 7-4 and 7-5 search for the corresponding entry in the item management table 3-1 based on the item name 5-3, which is a condition for data organization. In this case, the item "product name" is searched. Block 7-6 sets the corresponding data from the database 4 for the corresponding number of characters in 3-1-2 from the beginning of the interface area for creating display data, based on the record number and key item passed as parameters. .

ブロック7−7はポインタP2をセットした文字数分更
新する。ブロック7−8は表示する項目が1つの場合か
を判定し1つの場合終了する。
Block 7-7 updates pointer P2 by the set number of characters. Block 7-8 determines whether there is one item to be displayed, and if there is one item, the process ends.

ブロック7−9は残りの項目データをセットするために
項目管理テーブル5−3を参照するポインタP4を初期
化する。ブロック7−10はキー項目として既にデータ
をセット済みであるかを判定する。セット済の場合ブロ
ック7−13にジャンプする。
Block 7-9 initializes pointer P4 that refers to item management table 5-3 in order to set the remaining item data. Block 7-10 determines whether data has already been set as a key item. If set, jump to block 7-13.

ブロック7−11は3−1−2の該当文字数分データベ
ース4から該当データを表示データ作成用のインタフェ
ースエリアのポインタP2で示される位置にセットする
。ブロック7−12はポインタP2をセットした文字数
分更新する。ブロック7−13はポインタP4を更新す
る。
Block 7-11 sets the corresponding data from the database 4 for the corresponding number of characters 3-1-2 at the position indicated by pointer P2 in the display data creation interface area. Block 7-12 updates pointer P2 by the set number of characters. Block 7-13 updates pointer P4.

ブロック7−14は3−2の項目数と項目管理テーブル
参照用ポインタP4を比較して全ての項目データのセッ
トが終了したか否かを判定する。
Block 7-14 compares the number of items in 3-2 with the item management table reference pointer P4 to determine whether all item data has been set.

未セットの項目が在る場合ブロック7−10に戻り処理
を繰り返す。
If there are any unset items, the process returns to block 7-10 and repeats the process.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、 ■データを整理する条件が変わった場合でも即座にそれ
に対応して見易い出力結果が得られる。
According to the present invention, (1) Even if the conditions for organizing data change, easy-to-read output results can be obtained immediately in response to the change.

■出力フオーマットを別に作成してそれに出力データを
マツピングして出力するといったプログラムを開発しな
くてよい。
■There is no need to develop a program to create a separate output format and map output data to it.

と言った効果がある。It has the effect of saying.

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

第1図はソート条件を変えたときの結果の表示例を示す
図、第2図は本発明を実施する場合の装置のブロック図
、第3図、第4図、第5図は本実施例で使用するテーブ
ル等を示す図、第6図、第7図は実施例を実現するフロ
ーチャートである。 2−1・・・表示装置、2−2・・・記憶装置、2−3
・・・入力装置、2−4・・・制御装置、3−1・・・
項目管理チーフル、3−2・・・項目数、5−1・・・
レコード番号格納エリア、5−2・・・レコード終端記
号、5−3・・・レコード数。 第 1 図 第 図 第 図 第 図 第6図
Fig. 1 is a diagram showing an example of displaying results when sorting conditions are changed, Fig. 2 is a block diagram of an apparatus for implementing the present invention, and Figs. 3, 4, and 5 are examples of this embodiment. 6 and 7 are flowcharts for realizing the embodiment. 2-1...Display device, 2-2...Storage device, 2-3
...Input device, 2-4...Control device, 3-1...
Item management chiful, 3-2...Number of items, 5-1...
Record number storage area, 5-2...Record end symbol, 5-3...Number of records. Fig. 1 Fig. Fig. Fig. 6

Claims (1)

【特許請求の範囲】[Claims] 1、入力データ、文字フォントおよびプログラムを格納
する記憶手段、ソート等のデータを整理するための条件
を入力する入力手段、整理したデータの結果を出力する
出力手段および、これらを制御する制御手段を備えたデ
ータベースのデータ処理において、前記データ整理条件
で整理されたデータを前記出力手段に表形式で出力する
際、一行の中の項目の並び順を変更し、データの整理条
件が設定された項目を行の特定位置に固定して出力する
ことを特徴とする表処理装置。
1. Storage means for storing input data, character fonts and programs, input means for inputting conditions for organizing data such as sorting, output means for outputting the results of the organized data, and control means for controlling these. In the data processing of the database provided with the database, when outputting the data organized according to the data organizing conditions to the output means in a tabular format, the order of the items in one line is changed, and the items for which the data organizing conditions are set are changed. A table processing device characterized in that output is fixed at a specific position in a row.
JP1278421A 1989-10-27 1989-10-27 Table processor Pending JPH03141470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1278421A JPH03141470A (en) 1989-10-27 1989-10-27 Table processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1278421A JPH03141470A (en) 1989-10-27 1989-10-27 Table processor

Publications (1)

Publication Number Publication Date
JPH03141470A true JPH03141470A (en) 1991-06-17

Family

ID=17597109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1278421A Pending JPH03141470A (en) 1989-10-27 1989-10-27 Table processor

Country Status (1)

Country Link
JP (1) JPH03141470A (en)

Similar Documents

Publication Publication Date Title
JP2959069B2 (en) Slip input processor
JPH1040247A (en) Data processor
JPH03141470A (en) Table processor
JP3178001B2 (en) Data processing device
JPH0376491B2 (en)
JPH0635987A (en) Device and mehtod for preparing circuit diagram
JP3143909B2 (en) File processing device
JPH0398169A (en) Collective changing system for features of plural elements of interactive cad
JP2000057128A5 (en) Document data management method and device and storage medium
JPS5968041A (en) Card image processing data processor with line retrieving function
JPH045766A (en) Parts table automatic preparing processing system
JPH02186481A (en) Cad system
JPH09305355A (en) Device and method for information input
JPS62266631A (en) Address book preparing system for document preparing device
JPH04152441A (en) Data base processing system
JPH0589106A (en) Device and method for editing document
JPH0362115A (en) Menu control system
JPH03259369A (en) Character input device
JPH04250526A (en) File processor
JPH08235220A (en) Data processor
JPH05257955A (en) Method for editing table
JPH03288961A (en) Document data processor
JPS63155275A (en) Graphic data access system
JPH0471020A (en) Data input processor
JPH02226474A (en) Input processing system for electronic filing system