JPH06161841A - Record converting device - Google Patents

Record converting device

Info

Publication number
JPH06161841A
JPH06161841A JP4334923A JP33492392A JPH06161841A JP H06161841 A JPH06161841 A JP H06161841A JP 4334923 A JP4334923 A JP 4334923A JP 33492392 A JP33492392 A JP 33492392A JP H06161841 A JPH06161841 A JP H06161841A
Authority
JP
Japan
Prior art keywords
record
output
item
memory
data
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
JP4334923A
Other languages
Japanese (ja)
Inventor
Kazumi Tsuchide
和海 土手
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 JP4334923A priority Critical patent/JPH06161841A/en
Publication of JPH06161841A publication Critical patent/JPH06161841A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain longitudinal/lateral conversion of file data only with simple designation. CONSTITUTION:Record selecting conditions showing which record is extracted from the data of an objective file designated by an input part 12 are stored in a record selecting condition memory 18, and the designation of output editing such as which items are outputted in which order, whether a comma is added at the time of outputting or not and what title is added or the like is stored in an output item memory 20. When there is any unprocessed item in the output item memory 20, all the records corresponding to the record selecting conditions stored in the record selecting condition memory 18 are read from the file data in an external storage device 16, and one output record is prepared, written out to a work memory 22 and preserved. Next, one item No. to be a record key is counted up and the next output item is processed later.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、情報処理装置における
ファイルデータのレコードを出力用に縦横変換するレコ
ード変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a record conversion device for vertically and horizontally converting a record of file data in an information processing device for output.

【0002】[0002]

【従来の技術】従来より、帳票を作成したり、データベ
ースを構築するための情報処理装置が知られている。
2. Description of the Related Art Conventionally, an information processing apparatus for creating forms and building a database has been known.

【0003】このような情報処理装置は、ディスクなど
の外部記憶装置から1レコードずつファイルデータを読
み込んで必要な項目を加工した後に、表示出力もしくは
印字出力するというのが、その処理の基本パターンとな
っている。
Such an information processing apparatus reads the file data record by record from an external storage device such as a disk, processes the necessary items, and then outputs or prints out the basic pattern of the processing. Has become.

【0004】従って、例えば図2の(A)に示すような
ファイルデータが外部記憶装置に記憶されていれば、そ
れを同じ様な形式で出力するのが一般的となっている。
Therefore, if the file data as shown in FIG. 2A is stored in the external storage device, it is generally output in the same format.

【0005】[0005]

【発明が解決しようとする課題】しかし、図2の(A)
に示すようなファイルデータを、図4のような形式、即
ち、限定した機種名を横に並べ、項目名を行データとし
て1ページもしくは複数ページにわたって出力する形式
で、出力することはできなかった。
However, FIG. 2A shows the problem to be solved by the invention.
It was not possible to output the file data as shown in FIG. 4 in a format as shown in FIG. 4, that is, in a format in which limited model names are arranged side by side and item names are output as row data over one page or a plurality of pages. .

【0006】あるいは、出力できるとしても、複雑なプ
ログラムを、出力したい帳票専用に作成する必要があっ
た。
Alternatively, even if output is possible, it is necessary to create a complicated program exclusively for the form to be output.

【0007】つまり、ファイルデータの形式は、図2の
(A)のように、1機種が1レコードとするのが合理的
であが、出力の形式は、図2の(A)の形式で良い場合
もあれば、図4の形式で出力したい場合もある。しかし
現状は、図4の形式は実現が困難であるため、実際に
は、そのような出力機能を持った情報処理装置は少な
い。
That is, it is reasonable that the format of the file data is one record for one model as shown in FIG. 2A, but the output format is the format shown in FIG. There are cases where it is good, and there are cases where it is desired to output in the format of FIG. However, at present, since the format of FIG. 4 is difficult to realize, in reality, there are few information processing apparatuses having such an output function.

【0008】本発明の課題は、出力したい帳票専用の複
雑なプログラムなしに、簡単な指定により、一般的なフ
ァイルデータを縦と横を変換した形式で出力できるよう
にすることである。
An object of the present invention is to enable general file data to be output in a format in which the vertical and horizontal sides are converted by a simple designation without a complicated program dedicated to the form to be output.

【0009】[0009]

【課題を解決するための手段】本発明の手段は次の通り
である。レコード記憶手段は、複数項目からなるレコー
ドを複数記憶する。レコード作成手段は、前記複数の項
目の各項目毎に、当該項目のデータを前記レコード記憶
手段に記憶された各レコードから抽出して、該当する項
目のデータのみからなる新しいレコードを作成する。
The means of the present invention are as follows. The record storage means stores a plurality of records including a plurality of items. The record creating means extracts, for each item of the plurality of items, the data of the item from each record stored in the record storing means, and creates a new record including only the data of the corresponding item.

【0010】[0010]

【作用】本発明の手段の作用は次の通りである。レコー
ド作成手段は、レコード記憶手段に記憶された複数項目
からなる複数のレコードから、前記複数の項目の各項目
毎に、当該項目のデータを抽出して、該当する項目のデ
ータのみからなる新しい出力用のレコードを作成する。
The operation of the means of the present invention is as follows. The record creating means extracts, for each item of the plurality of items, the data of the item from the plurality of records of the plurality of items stored in the record storage means, and outputs a new output including only the data of the corresponding item. Create a record for.

【0011】[0011]

【実施例】以下、本発明の一実施例を、図1乃至図4を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

【0012】図1はその構成を示す図で、図中の参照番
号10は全体の制御を行うCPUである。12はレコー
ド選択条件や出力項目を指示するための入力部であり、
14は制御プログラムを記憶するプログラムメモリであ
る。16はファイルデータを格納している外部記憶部で
あり、18はレコード選択条件を格納するレコード選択
条件メモリである。20は上記入力部12による出力項
目及び出力編集の指示を格納する出力項目メモリであ
り、22は上記CPU10が上記プログラムメモリ14
の制御プログラムに従った動作時に使用されるワークメ
モリである。そして、24及び26はそれぞれ出力部と
しての表示部及びプリンタである。
FIG. 1 is a diagram showing the configuration thereof, and reference numeral 10 in the figure is a CPU for controlling the whole. 12 is an input unit for instructing record selection conditions and output items,
Reference numeral 14 is a program memory that stores a control program. Reference numeral 16 is an external storage unit that stores file data, and 18 is a record selection condition memory that stores record selection conditions. Reference numeral 20 is an output item memory for storing the output items and output editing instructions from the input unit 12, and 22 is the program memory 14 for the CPU 10.
It is a work memory used during operation according to the control program of. Reference numerals 24 and 26 are a display unit and a printer as output units, respectively.

【0013】上記外部記憶部16には、例えば、図2の
(A)に示すように、1機種が1レコードとしたファイ
ルデータが記憶されているものとする。
It is assumed that the external storage unit 16 stores, for example, file data in which one model has one record, as shown in FIG.

【0014】次に、以上のような構成における動作を、
図3のフローチャートを参照して説明する。
Next, the operation in the above configuration will be described.
This will be described with reference to the flowchart of FIG.

【0015】まず、入力部12により、対称とするファ
イルのデータの中から、どのレコードを抽出するかとい
うレコード選択条件を指定し、その内容をレコード選択
条件メモリ18に格納する(ステップS1)。
First, the input section 12 specifies a record selection condition as to which record is to be extracted from the data of a symmetrical file, and stores the content in the record selection condition memory 18 (step S1).

【0016】さらに、入力部12により、どの項目をど
ういう順序で出力するか及び出力時にカンマを付ける
か、タイトル名はどうするか、といった出力編集につい
て指定し、その内容を出力項目メモリ20に格納する
(ステップS2)。
Further, the input section 12 designates output editing such as which items are output in what order, whether a comma is added at the time of output and what the title name is, and the contents are stored in the output item memory 20. (Step S2).

【0017】つまり、上記ステップS1とステップS2
は、実行するための条件設定であり、以下のステップS
3以降で、ファイルデータを処理する。
That is, step S1 and step S2 described above.
Is the condition setting for execution, and the following step S
After 3, the file data is processed.

【0018】即ち、まず、処理の終わりを判別するため
に、上記出力項目メモリ20に格納された指定出力項目
を全て処理したかどうかの判別を行う(ステップS
3)。そして、まだ未処理項目があればステップS4
へ、なければステップS7へ分岐する。
That is, first, in order to determine the end of processing, it is determined whether or not all the designated output items stored in the output item memory 20 have been processed (step S).
3). If there are still unprocessed items, step S4
Otherwise, the process branches to step S7.

【0019】未処理項目があれば、次に、図2の(A)
に示すような外部記憶装置16のファイルデータの中か
ら、上記レコード選択条件メモリ18に格納されたレコ
ード選択条件に合致するレコード全てを読んで、図2の
(B)に示すような出力レコードを1件、作成する(ス
テップS4)。即ち、例えば未処理項目が「コスト」で
あり、A乃至Dの機種のレコードが選択されているとす
れば、A乃至Dの機種のレコードからコストのデータを
読出し、図2の(B)の項目No.1のレコードを作成
する。そして、上記ステップS4で作成した出力レコー
ドを、後で使用するために、ワークメモリ22に書き出
して保存する(ステップS5)。次に、レコードキーと
なる項目No.を1つカウントアップした後(ステップ
S6)、上記ステップS3に戻って、次の出力項目を処
理する。
If there are any unprocessed items, then, as shown in FIG.
From the file data of the external storage device 16 as shown in FIG. 2, all the records matching the record selection condition stored in the record selection condition memory 18 are read, and the output record as shown in FIG. Create one case (step S4). That is, for example, if the unprocessed item is “cost” and the records of the models A to D are selected, the cost data is read from the records of the models A to D, and the data of FIG. Item No. Create record 1. Then, the output record created in step S4 is written and saved in the work memory 22 for later use (step S5). Next, the item number that becomes the record key. Is incremented by 1 (step S6), the process returns to step S3 to process the next output item.

【0020】以上のようにして指定された出力項目を全
て処理したならば、次に、ワークメモリ22に記憶され
た処理すべき出力レコードがなくなったかどうかを判別
し(ステップS7)、なくなれば終了する。
When all the designated output items have been processed as described above, it is next judged whether or not there are any output records to be processed stored in the work memory 22 (step S7). To do.

【0021】しかし、出力レコードがまだあれば、ワー
クメモリ22から出力レコードを1件読み込み(ステッ
プS8)、図4のような印字出力をするために必要な、
タイトル付けやカンマ付けのような出力編集を行う(ス
テップS9)。そして、プリンタ26にて印字出力した
後(ステップS10)、上記ステップS7に戻る。
However, if there is an output record, it is necessary to read one output record from the work memory 22 (step S8) and print out as shown in FIG.
Output editing such as adding a title or commas is performed (step S9). After the printer 26 prints out (step S10), the process returns to step S7.

【0022】以上のように、外部記憶部16に記憶され
た複数項目からなる複数のレコードから、上記複数の項
目の各項目毎に、当該項目のデータを抽出して、該当す
る項目のデータのみからなる新しい出力用のレコードを
作成するようにしているため、出力したい帳票専用の複
雑なプログラムなしに、簡単な指定により、一般的なフ
ァイルデータを縦と横を変換した形式で出力できるよう
になる。
As described above, the data of the item is extracted for each item of the plurality of items from the plurality of records of the plurality of items stored in the external storage unit 16, and only the data of the corresponding item is extracted. Since a new output record consisting of is created, it is possible to output general file data in a format in which the vertical and horizontal formats are converted by a simple specification without the complicated program dedicated to the form to be output. Become.

【0023】なお、上記実施例はプリンタ26にて印字
出力する場合を説明したが、表示部24に表示出力する
場合も同様である。
Although the above embodiment has described the case where the printer 26 prints out, the same applies to the case where the display output is performed on the display unit 24.

【0024】[0024]

【発明の効果】本発明によれば、出力したい帳票専用の
複雑なプログラムなしに、簡単な指定により、一般的な
ファイルデータを縦と横を変換した形式で出力できるよ
うになる。
According to the present invention, general file data can be output in a vertically and horizontally converted format by a simple designation without a complicated program dedicated to the form to be output.

【0025】即ち、本発明は、一般的なファイルデータ
を簡単な指定だけで縦横変換した形で出力できるので、
特定のレコード群で、多くの項目を比較するような帳票
の出力に有効である。特に、ファイルを限定しないの
で、幅広く利用できる。
That is, according to the present invention, since general file data can be output in the form of vertical / horizontal conversion by simply specifying,
It is effective for outputting a form that compares many items in a specific record group. Especially, since the file is not limited, it can be widely used.

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

【図1】本発明の一実施例に係るレコード変換装置のブ
ロック構成図である。
FIG. 1 is a block configuration diagram of a record conversion apparatus according to an embodiment of the present invention.

【図2】(A)はファイルデータの例を示す図であり、
(B)は縦横変換後の出力レコードの例を示す図であ
る。
FIG. 2A is a diagram showing an example of file data,
FIG. 9B is a diagram showing an example of an output record after vertical / horizontal conversion.

【図3】実施例の動作を説明するためのフローチャート
である。
FIG. 3 is a flowchart for explaining the operation of the embodiment.

【図4】印字出力の例を示す図である。FIG. 4 is a diagram illustrating an example of print output.

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

10…CPU、12…入力部、14…プログラムメモ
リ、16…外部記憶部、18…レコード選択条件メモ
リ、20…出力項目メモリ、22…ワークメモリ、24
…表示部、26…プリンタ。
10 ... CPU, 12 ... Input section, 14 ... Program memory, 16 ... External storage section, 18 ... Record selection condition memory, 20 ... Output item memory, 22 ... Work memory, 24
... Display unit, 26 ... Printer.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数項目からなるレコードを複数記憶す
るレコード記憶手段と、 前記複数の項目の各項目毎に、当該項目のデータを前記
レコード記憶手段に記憶された各レコードから抽出し
て、該当する項目のデータのみからなる新しいレコード
を作成するレコード作成手段と、 を具備することを特徴とするレコード変換装置。
1. A record storage unit for storing a plurality of records including a plurality of items, and data for each item of the plurality of items extracted from each record stored in the record storage unit, And a record creating means for creating a new record consisting only of the data of the item to be recorded.
JP4334923A 1992-11-24 1992-11-24 Record converting device Pending JPH06161841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4334923A JPH06161841A (en) 1992-11-24 1992-11-24 Record converting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4334923A JPH06161841A (en) 1992-11-24 1992-11-24 Record converting device

Publications (1)

Publication Number Publication Date
JPH06161841A true JPH06161841A (en) 1994-06-10

Family

ID=18282756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4334923A Pending JPH06161841A (en) 1992-11-24 1992-11-24 Record converting device

Country Status (1)

Country Link
JP (1) JPH06161841A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015197831A (en) * 2014-04-02 2015-11-09 株式会社文溪堂 Record management program and data transition method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015197831A (en) * 2014-04-02 2015-11-09 株式会社文溪堂 Record management program and data transition method

Similar Documents

Publication Publication Date Title
JPH06161841A (en) Record converting device
JPH0567159A (en) Table form data processing device
JP4090193B2 (en) CSV data converter for form data
JP2613881B2 (en) Automatic creation of shipping documents
JP3451289B2 (en) Table output device
JP2893935B2 (en) Form output device
JPS62245478A (en) Information retrieving method
JPH04241618A (en) Slip preparing device
JP2723528B2 (en) Message editing processor
JPH0126109B2 (en)
JP3154790B2 (en) Optical character reader
JP2969707B2 (en) Image editing device
JPH06162021A (en) Document preparing device and document preparation control method
JPH10289279A (en) System and method for document processing, and recording medium
JPH05242089A (en) Partially variable format system
JPH04178735A (en) State transition table converter
JPH05150963A (en) Method for preparing program specifications
JPH05143258A (en) Document output editing system
JPH08171469A (en) Slip output device
JPH0635643A (en) Screen output method for data
JPH05174017A (en) Automatic editing table processor
JPH07134706A (en) Method and device for editing document
JPH04373066A (en) Document processor
JPH05307550A (en) Document preparing device
JPH0749228B2 (en) Form output device