JPH0778212A - Form output device - Google Patents

Form output device

Info

Publication number
JPH0778212A
JPH0778212A JP5169821A JP16982193A JPH0778212A JP H0778212 A JPH0778212 A JP H0778212A JP 5169821 A JP5169821 A JP 5169821A JP 16982193 A JP16982193 A JP 16982193A JP H0778212 A JPH0778212 A JP H0778212A
Authority
JP
Japan
Prior art keywords
record
level
totaling
file
name
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.)
Granted
Application number
JP5169821A
Other languages
Japanese (ja)
Other versions
JP3533469B2 (en
Inventor
Toshio Higashihara
利雄 東原
Takashi Kurihara
栗原  隆
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 JP16982193A priority Critical patent/JP3533469B2/en
Publication of JPH0778212A publication Critical patent/JPH0778212A/en
Application granted granted Critical
Publication of JP3533469B2 publication Critical patent/JP3533469B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

(57)【要約】 【目的】 集計レベルに対応して集計レコードのレコー
ド名等を任意に指定しておくだけで、指定された集計レ
ベルの親子関係に応じて上位レベルへの集計を行い、そ
の集計結果をレコード名の並び順にしたがって指定内容
通りの階層構造で出力する。 【構成】 展開集計処理部11はA表の定義内容(集計
レベルに対応する集計レコード名、このレコード名に対
応する集計対象コード)に基づいて所定ファイルから読
み出された集計対象コードに該当するデータを対応する
集計レコードに集計すると共に、この集計結果をそれよ
りも上位レベルにあるしコードに集計する際、上位レベ
ルのレコード名の配置を判別し、それに応じて上集計あ
るいは下集計を行う。印刷処理部13は集計ファイル1
2の内容をA表の定義内容通りに印刷する。
(57) [Summary] [Purpose] By simply specifying the record name etc. of the summary record corresponding to the aggregation level, aggregation is performed to the higher level according to the parent-child relationship of the specified aggregation level, The totaled result is output in a hierarchical structure according to the specified contents according to the order of the record names. [Structure] The expanded totalization processing unit 11 corresponds to the totalization target code read from a predetermined file based on the definition contents of table A (totalization record name corresponding to the totalization level, totalization target code corresponding to this record name). When data is aggregated to the corresponding summary record and this summary result is aggregated to a code higher than that and to the code, the arrangement of the record name at the higher level is determined and the upper summary or the lower summary is performed accordingly. . The print processing unit 13 is the tally file 1
The contents of 2 are printed as defined in Table A.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、オフィスコンピュー
タやパーソナルコンピュータ等において、例えば、会計
ファイル、人事ファイル等からレコードデータを集計
と、その集計結果を帳票として出力する帳票出力装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a form output device for accumulating record data from, for example, an accounting file, a personnel file, etc. in an office computer, a personal computer or the like, and outputting the totalized result as a form.

【0002】[0002]

【従来の技術】従来、オフィスコンピュータや汎用コン
ピュータ等の事務処理装置においては、会計ファイル、
人事ファイル、売上伝票ファイル、在庫ファイル等、各
種多様のファイルを記憶管理しているが、各ファイルを
構成するレコード構造は、ファイル毎に異なっており、
同一レコード形態(レコードを構成する各項目が一致す
るレコード)毎にまとめて別ファイルとして記憶管理し
ている。ここで、任意の項目を指定してその項目を含む
レコードをファイルから読み出して分類集計する場合に
おいて、項目内のデータは最初に分類集計し易いような
分類コード体系を作っても、時の経過につれて分類が現
実に適合しなくなり、そのままでは分類集計を行うこと
ができなくなるのが現状であった。そこで、従来におい
ては、この対策として分類集計用のコード変換テーブル
を設け、このコード変換テーブルを用いて分類集計に最
適なコード体系に変換することによって分類集計する方
法が現状広く採用されている。
2. Description of the Related Art Conventionally, in an office processing device such as an office computer or a general-purpose computer, an accounting file,
Various types of files such as personnel files, sales slip files, inventory files, etc. are stored and managed, but the record structure that constitutes each file is different for each file.
The same record form (records in which each item that constitutes a record matches) is collectively managed as a separate file. Here, when you specify an arbitrary item and read the record containing that item from the file and classify and aggregate it, even if you make a classification code system that makes it easy to classify and aggregate the data in the item first, As a result, the classification does not actually fit, and it is not possible to perform the classification and aggregation as it is. Therefore, conventionally, as a countermeasure, a code conversion table for classification and aggregation is provided, and a method of performing classification and aggregation by converting the code system suitable for classification and aggregation using this code conversion table is widely adopted at present.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、コード
変換テーブルを用いる方法では専門家であるシステムエ
ンジニアが分類集計用のコード体系(変換テーブル)を
作成しなければならなかった。即ち、種々の業務上の要
望に応じて分類コード体系を作成することは極めて専門
的で高度な知識を必要とする為、一般ユーザの業務担当
者にあってはその作成は極めて困難であり、システムエ
ンジニアにその作成を依頼しなければならないのが現状
であった。この発明の課題は、集計レベルに対応して集
計レコードのレコード名等を任意に指定しておくだけ
で、指定された集計レベルの親子関係に応じて上位レベ
ルへの集計を行い、その集計結果をレコード名の並び順
にしたがって指定内容通りの階層構造で出力できるよう
にすることである。
However, in the method using the code conversion table, a system engineer who is an expert has to create a code system (conversion table) for classification and aggregation. That is, creating a classification code system according to various business needs requires extremely specialized and sophisticated knowledge, so it is extremely difficult for a general user's business person to create it. The current situation was that we had to ask the system engineer to create it. An object of the present invention is to perform aggregating to a higher level according to the parent-child relationship of the specified aggregation level simply by arbitrarily specifying the record name of the aggregation record corresponding to the aggregation level, and the aggregation result. Is to be output in a hierarchical structure according to the specified contents according to the order of the record names.

【0004】[0004]

【課題を解決するための手段】第一の発明の手段は次の
通りである。 (1A)、指定手段は集計レベルに対応して集計レコー
ドのレコード名を任意の位置に配置して指定すると共
に、このレコード名に対応して集計対象を指定する。 (2A)、第一の集計手段はこの指定手段によって指定
された集計対象に該当するデータを所定のファイルから
読み出してこの集計対象に対応するレコード名のレコー
ドに集計する。 (3A)、集計方向決定手段はこの第一の集計手段によ
って集計されたレコードの集計結果をそれよりも上位レ
ベルのレコードに集計する際に、この上位レベルのレコ
ード名の配置位置に基づいて順方向に集計するか逆方向
に集計するかを決定する。 (4A)、第二の集計手段は前記第一の集計手段で集計
されたレコードの集計結果を前記集計方向決定手段によ
って決定された集計方向に配置されている上位レベルに
あるレコード名のレコードに集計する。 (5A)、出力手段はこの第二の集計手段で集計された
各レコードを前記指定手段で指定されたレコード名の配
置順にしたがって出力する。なお、前記出力手段は前記
第二の集計手段で集計された各レコードを前記指定手段
で指定されたレコード名の配置順にしたがって出力する
と共に、前記集計方向決定手段によって決定された集計
方向に対応するフォーマットで出力するようにしてもよ
い。第二の発明の手段は次の通りである。 (1B)、指定手段は集計レベルに対応して集計レコー
ドのレコード名を任意に指定すると共に、このレコード
名に対応して集計対象を指定する。 (2B)、第一の集計手段はこの指定手段によって指定
された集計対象に該当するデータを所定のファイルから
読み出してこの集計対象に対応するレコード名のレコー
ドに集計する。 (3B)、第二の集計手段はこの第一の集計手段によっ
て集計されたレコードの集計結果をそれよりも上位レベ
ルにあるレコード名のレコードに集計する。 (4B)、出力手段はこの第二の集計手段で集計された
各レコードを前記指定手段で指定されたレコード名の並
び順にしたがって出力すると共に、各レコードの集計レ
ベルのつながり具合に応じたフォーマットで出力する。
Means for Solving the Problems The means of the first invention is as follows. (1A), the specifying means arranges and specifies the record name of the totalized record at an arbitrary position corresponding to the totaling level, and specifies the totaling target corresponding to this record name. (2A), the first totaling means reads out data corresponding to the totaling target designated by the designating means from a predetermined file and totalizes the records having a record name corresponding to the totaling target. (3A), when the totaling direction determining means totals the totaling results of the records totaled by the first totaling means into higher level records, the order is based on the arrangement position of the upper level record name. Decide whether to aggregate in the direction or in the opposite direction. (4A), the second totaling means converts the totalized result of the records totaled by the first totaling means into a record having a record name at a higher level arranged in the totaling direction determined by the totaling direction determining means. Tally. (5A), the output means outputs the respective records totaled by the second totaling means according to the arrangement order of the record names designated by the designating means. The output means outputs each record totaled by the second totaling means according to the arrangement order of the record names designated by the designating means, and corresponds to the totaling direction determined by the totalizing direction determining means. You may make it output in a format. The means of the second invention is as follows. (1B), the designating unit arbitrarily designates the record name of the totalized record in correspondence with the totalization level, and designates the totalization target in correspondence with this record name. (2B), the first totaling means reads out the data corresponding to the totaling target designated by the designating means from a predetermined file and totalizes the records having the record names corresponding to the totaling target. (3B), the second tabulation means tabulates the tabulation results of the records tabulated by the first tabulation means into the records having the record names at a higher level than that. (4B), the output unit outputs each record totaled by the second totaling unit according to the arrangement order of the record names designated by the designating unit, and in a format according to the connection level of the totaling level of each record. Output.

【0005】[0005]

【作用】第一の発明の手段の作用は次の通りである。い
ま、専門的知識を有しない業務担当者が所望する帳票を
得る為に、集計レベルに対応して集計レコードのレコー
ド名を任意の位置に配置して指定すると共に、このレコ
ード名に対応して集計対象を指定するが、この場合、表
形式で集計レコードのレコード名を縦方向に並べて配置
指定したものとする。すると、指定された集計対象に該
当するデータが所定のファイルから読み出され、この集
計対象に対応するレコード名のレコードに集計される。
次に、この集計レコードの集計結果はそれよりも上位レ
ベルのレコードに集計されるが、その際、この上位レベ
ルのレコード名の配置位置に基づいて順方向に集計する
か逆方向に集計するか、この場合、上方向に集計する上
集計か下方向に集計する下集計かを決定し、その方向に
配置されている上位レベルにあるレコード名のレコード
に集計される。これによって集計された各レコードは、
指定内容通りにレコード名の配置順にしたがって帳票出
力される。第二の発明の手段の作用は次の通りである。
いま、上述と同様にレコード名、集計対象を指定する
と、この集計対象に該当するデータが所定のファイルか
ら読み出され、この集計対象に対応するレコード名のレ
コードに集計されると共に、この集計結果はそれよりも
上位レベルにあるレコード名のレコードに集計される。
これによって集計された各レコードは指定されたレコー
ド名の並び順にしたがって出力されると共に、各レコー
ドの集計レベルのつながり具合に応じたフォーマットで
出力される。したがって、集計レベルに対応して集計レ
コードのレコード名等を任意に指定しておくだけで、指
定された集計レベルの親子関係に応じて上位レベルへの
集計を行い、その集計結果をレコード名の並び順にした
がって指定内容通りの階層構造で出力することができ
る。
The operation of the means of the first invention is as follows. Now, in order to obtain the form desired by a person in charge of business who does not have specialized knowledge, the record name of the aggregated record is arranged and specified at an arbitrary position in accordance with the aggregation level, and in addition to this record name Specify the aggregation target. In this case, it is assumed that the record names of the aggregation records are arranged vertically in the table format. Then, the data corresponding to the specified aggregation target is read from the predetermined file and aggregated into the record having the record name corresponding to the aggregation target.
Next, the aggregation result of this aggregated record is aggregated to the record at a higher level than that. Whether to aggregate in the forward direction or the backward direction based on the placement position of the record name at this upper level. In this case, it is determined whether the upward totalization is performed in the upward direction or the downward totality is performed in the downward direction, and the totalized records are the records of the record names in the upper level arranged in that direction. Each record aggregated by this,
The form is output according to the arrangement order of the record names as specified. The operation of the means of the second invention is as follows.
Now, if you specify the record name and aggregation target in the same way as above, the data corresponding to this aggregation target will be read from the specified file and aggregated into the records with the record name corresponding to this aggregation target, and this aggregation result Will be aggregated to the record with the record name at a higher level than that.
Each record thus aggregated is output according to the arrangement order of the designated record names, and is also output in a format according to the connection level of the aggregation level of each record. Therefore, by simply specifying the record name etc. of the summary record corresponding to the aggregation level, aggregation is performed to the higher level according to the parent-child relationship of the specified aggregation level, and the aggregation result is It is possible to output in a hierarchical structure according to the specified contents according to the arrangement order.

【0006】[0006]

【第一実施例】以下、図1〜図27を参照して第一実施
例を説明する。図1は本実施例に係るデータ処理装置の
ブロック構成図である。このデータ処理装置はオフィス
コンピュータを構成するもので、専門的知識を有しない
業務担当者等が集計定義表を用いて集計レベルに対応し
て集計対象等を任意に指定しておくだけで、この集計定
義表の定義内容に該当するレコードを所定ファイルから
読み出して集計レベルに応じた階層構造でレコードを集
計し、この集計結果を帳票データとして印刷出力するも
のである。入力部1は各種のデータやコマンド等を入力
するキー入力装置で、入力部1から入力されたデータは
パラメータ設定部2に取り込まれて処理されると共に表
示部3に表示出力される。なお、入力部1は所定のキー
操作に応答してパラメータ設定部2に対して起動命令を
与える。
[First Embodiment] A first embodiment will be described below with reference to FIGS. FIG. 1 is a block diagram of the data processing apparatus according to this embodiment. This data processing device constitutes an office computer, and a person in charge of business who does not have specialized knowledge can simply specify the aggregation target etc. corresponding to the aggregation level using the aggregation definition table. The records corresponding to the definition contents of the tabulation definition table are read out from a predetermined file, the records are tabulated in a hierarchical structure according to the tabulation level, and the tabulation result is printed out as form data. The input unit 1 is a key input device for inputting various data and commands, and the data input from the input unit 1 is fetched by the parameter setting unit 2 and processed, and is displayed and output on the display unit 3. The input unit 1 gives a start command to the parameter setting unit 2 in response to a predetermined key operation.

【0007】パラメータ設定部2は入力部1からの起動
命令に応答して動作し、業務担当者等が所望する任意の
レコード集計を指示する為に集計レコードのレコード名
や集計対象等を定義する定義表(本実施例にあってはA
表)を入力部1から入力されたデータにしたがって生成
し、表示部3から表示出力させると共に、パラメータフ
ァイル4に設定する。なお、A表については後で詳細に
説明するので、ここでは簡単に説明しておくものとす
る。例えば、所望する帳票として図2(A)に示す様な
「損益計算書」を印刷出力させる為には図3(A)に示
す様なA表を定義し、また図2(B)に示す様な帳票を
印刷出力させる為には図3(B)に示す様なA表を定義
しておく。ここで、A表は帳票の出力イメージにしたが
って集計内容を定義する定義表であり、集計レベルA、
B、Cに対応して集計レコードのレコード名および集計
として抽出される集計対象項目の項目内容(対象項目コ
ード)等を定義する。また、集計レベルの階層構造はA
>B>Cの関係にあり、この集計レベルによってレコー
ドの親子関係(上下関係)が表わされる。なお、集計レ
ベルに対応してレコード名を定義する際、親子関係にし
たがってレコード名を配置するが、レコード名の配置位
置は任意であり、本実施例においては、最上位レベルA
に対応するレコード名を図3(A)に示す様にA表の先
頭行に配置したり、図3(B)に示す様にA表の最下行
に配置するようにしてもよい。ここで、A表の各レコー
ド名に対応するレコードの集計結果はA表の定義内容に
したがってそれと親子関係にある上位レベルのレコード
に集計される。その際、図3(A)に示す様に最上位レ
ベルのレコード名がA表の先頭行に配置されていれば、
上方向に配置されている上位レベルのレコード名に対応
するレコードに集計されるが、図3(B)に示す様に、
最上位レベルのレコード名がA表の最下行に配置されて
いれば、下方向に配置されている上位レベルのレコード
名に対応するレコードに集計される。以下、図3(A)
に示す様な定義内容に応じた集計を“上集計”、図3
(B)に示す様な定義内容に応じた集計を“下集計”と
称すると、図2(A)は上集計された場合、図2(B)
は下集計された場合の帳票出力例を示している。
The parameter setting unit 2 operates in response to a start command from the input unit 1 and defines a record name of a totalized record, a totaling target, etc. in order to instruct arbitrary totalization of records desired by a person in charge of business. Definition table (A in this embodiment
A table) is generated according to the data input from the input unit 1, is displayed and output from the display unit 3, and is set in the parameter file 4. It should be noted that the table A will be described in detail later, so that it will be briefly described here. For example, in order to print out the “income statement” as shown in FIG. 2 (A) as a desired form, a table A as shown in FIG. 3 (A) is defined and shown in FIG. 2 (B). In order to print out such a form, a table A as shown in FIG. 3B is defined. Here, the table A is a definition table that defines the total contents according to the output image of the form, and the total level A,
The record name of the totalized record and the item contents (target item code) of the totaled target items extracted as totals are defined corresponding to B and C. Also, the hierarchical structure of the aggregation level is A
There is a relation of>B> C, and the parent-child relation (upper / lower relation) of the records is represented by this aggregation level. Note that when defining the record name corresponding to the aggregation level, the record name is arranged according to the parent-child relationship, but the arrangement position of the record name is arbitrary, and in this embodiment, the highest level A
The record name corresponding to # may be arranged in the first row of table A as shown in FIG. 3A, or may be arranged in the bottom row of table A as shown in FIG. 3B. Here, the aggregation result of the records corresponding to each record name of the A table is aggregated to the upper level record having a parent-child relationship with the record according to the definition content of the A table. At that time, if the highest-level record name is arranged in the first row of the table A as shown in FIG.
The records corresponding to the upper-level record names arranged in the upward direction are aggregated, but as shown in FIG. 3 (B),
If the record name of the highest level is arranged in the bottom row of the table A, the record corresponding to the record name of the upper level arranged in the downward direction is aggregated. Below, FIG. 3 (A)
As shown in Fig. 3, the total is calculated according to the definition contents as shown in Fig. 3.
When the total according to the definition contents as shown in (B) is referred to as “lower total”, FIG.
Shows an example of the form output when the data is tabulated below.

【0008】パラメータファイル4はA表に対応してそ
の基本フォーマット(罫線データ等)が予めメーカサイ
ドによって固定的に格納されている他に、入力部1から
任意に入力された各種帳票のA表パラメータデータおよ
び、入力部1から任意に入力された各種の帳票名とA表
パラメータデータとを対応付ける対応テーブルが記憶さ
れている。なお、パラメータファイル4には入力部1か
ら任意に指定された帳票印刷時の書式もA表パラメータ
データに対応付けて記憶されている。
The parameter file 4 has its basic format (ruled line data, etc.) fixedly stored in advance by the maker side corresponding to the table A, and also the table A of various forms arbitrarily input from the input section 1. A correspondence table is stored in which the parameter data and various form names arbitrarily input from the input unit 1 are associated with the A-table parameter data. The parameter file 4 also stores a form arbitrarily designated from the input unit 1 at the time of printing the form in association with the A table parameter data.

【0009】表構造解析部5は帳票印刷時に入力部1か
ら入力された起動命令にしたがって動作し、出力対象と
して任意に指定された帳票名に対応するA表パラメータ
データにしたがって集計レベルに応じた階層構造等を解
析し、その解析結果に基づいて構成ファイル6を作成す
る。なお、構成ファイル6は後で詳述するが、A表内の
集計対象項目とそれに対応する集計レコードとの対応関
係や集計レベルの階層構造における上下関係等を表わす
各種の構成レコードから成るものである。更に、表構造
解析部5はパラメータファイル4から印刷書式を読み出
して印刷書式メモリ7に設定する。その後、表構造解析
部5は展開ファイル作成部8に起動命令を与える。
The table structure analysis unit 5 operates in accordance with the start command input from the input unit 1 when printing the form, and according to the A table parameter data corresponding to the form name arbitrarily designated as the output target, according to the aggregation level. The hierarchical structure and the like are analyzed, and the configuration file 6 is created based on the analysis result. The configuration file 6, which will be described in detail later, is made up of various configuration records that represent the correspondence between the items to be aggregated in Table A and the aggregate records corresponding to them, and the vertical relationship in the hierarchical structure of the aggregation level. is there. Further, the table structure analysis unit 5 reads the print format from the parameter file 4 and sets it in the print format memory 7. After that, the table structure analysis unit 5 gives a start command to the expansion file creation unit 8.

【0010】印刷書式メモリ7は任意に設定された印刷
書式の他に、図4に示す様に帳票名に対応して帳票フォ
ーマット作成用のフォーマットテーブルが設定されてお
り、帳票印刷時に、このフォーマットテーブルの内容を
参照することによって集計レベルに応じた帳票フォーマ
ット(罫線フォーマット)が上集計、下集計別に生成さ
れる。ここで、フォーマットテーブル内には「名称」に
対応して集計レコードのレコード名が配置される範囲を
特定する為にその始点桁および終点桁がそれぞれ設定さ
れている。また、集計レベルA、B、Cに対応して集計
レベルA、B、Cを区分する括り用の罫線を生成する為
にその始点桁が設定されている。更に、集計レコードの
値が配置される範囲を特定する為に、その始点桁および
終点桁がそれぞれ設定されている。なお、フォーマット
テーブルは入力部1から任意に入力されてパラメータフ
ァイル4に書き込まれたのち、表構造解析部5によって
設定されたもので、例えば、図4に示すフォーマットテ
ーブルは「損益計算書」用として任意に設定されたもの
である。このように集計レベルに応じて罫線の始点桁を
ずらしておけば、この“ずれ”によって集計レベルの階
層構造を表現することができる。なお、縦罫線は上集
計、下集計に関係なくレベル毎に桁位置は同じである
が、横罫線においては縦罫線に対して上集計では上、下
集計では下に位置するように生成される。
In the print format memory 7, a format table for creating a form format is set corresponding to the form name as shown in FIG. 4 in addition to the print form set arbitrarily. By referring to the contents of the table, a form format (ruled line format) according to the aggregation level is generated for each of the upper and lower totals. Here, in the format table, the start point digit and the end point digit are set in order to specify the range in which the record name of the totalized record is arranged corresponding to the “name”. Further, the starting point digit is set in order to generate a ruled line for bundling that divides the aggregation levels A, B, and C corresponding to the aggregation levels A, B, and C. Further, in order to specify the range in which the value of the totalized record is arranged, the starting point digit and the ending point digit are set respectively. The format table is set by the table structure analysis unit 5 after being arbitrarily input from the input unit 1 and written in the parameter file 4. For example, the format table shown in FIG. 4 is for the “income statement”. Is set arbitrarily. In this way, if the starting point digit of the ruled line is shifted according to the totaling level, this "shift" can express the hierarchical structure of the totaling level. The vertical ruled lines have the same digit position for each level regardless of whether they are counted up or down, but the horizontal ruled lines are generated so that they are located above the vertical ruled lines in the upper tabulation and below in the lower tabulation. .

【0011】展開ファイル作成部8はデータファイル9
を構成する各種のソースファイルA……Nの中から集計
対象ファイルを指定したり、この集計対象ファイルから
抽出したレコードを1レコードずつ展開レコードとし
て、展開ファイル10に書き出す。これによって展開フ
ァイル10を作成すると、展開ファイル作成部8は展開
集計処理部11に起動命令を与える。なお、展開ファイ
ル10の各レコードは分類コードとデータ値とから成
り、この分類コードがA表に定義されている集計対象項
目コードに相当している。
The expansion file creating section 8 uses the data file 9
The totalization target file is specified from among the various source files A ... N that compose the file, and the records extracted from the totalization target file are written into the expansion file 10 as expanded records one by one. When the expansion file 10 is created in this way, the expansion file creating unit 8 gives a start command to the expansion aggregation processing unit 11. Each record of the expansion file 10 is composed of a classification code and a data value, and this classification code corresponds to the aggregation target item code defined in the table A.

【0012】展開集計処理部11は構成ファイル6を参
照しながら展開ファイル10の内容に基づいて1レコー
ドずつ集計レコードを順次作成し、集計ファイル12に
書き出す。これによって集計ファイル12を作成する
と、展開集計処理部11は印刷処理部13に起動命令を
与える。印刷処理部13は集計ファイル12の内容を印
刷書式メモリ7に設定されている印刷書式にしたがって
1レコードずつ帳票フォーマットと共にプリンタ14か
ら印字出力させることにより、帳票作成を行う。
The development tabulation processing unit 11 refers to the configuration file 6 and sequentially creates a tabulation record for each record based on the contents of the development file 10 and writes it to the tabulation file 12. When the totalization file 12 is created by this, the expansion totalization processing unit 11 gives a start instruction to the print processing unit 13. The print processing unit 13 creates the form by printing out the contents of the totalization file 12 from the printer 14 together with the form format record by record according to the print format set in the print format memory 7.

【0013】次に、本実施例の動作を説明する。先ず、
所望する帳票を得る為に入力部1からA表の作成を指示
すると、パラメータ設定部2はこれに応答して動作す
る。先ず、A表作成時にパラメータ設定部2はパラメー
タファイル4から読み出したA表の基本フォーマットに
したがって表枠等を表示出力させる。いま、A表の基本
フォーマットが表示出力されている状態において、業務
担当者は入力部1からA表のパラメータデータを入力す
る。図3はA表にパラメータデータを入力した場合の表
示例である。ここで、A表の基本フォーマットにおい
て、その列方向の見出し部には3段階の集計レベルに対
応して「集計レベルA」、「集計レベルB」、「集計レ
ベルC」の見出し文字列が表示されていると共に「管理
単位」および「対象コード」の見出し文字列が表示され
ている。いま、図3(A)に示すデータ入力例におい
て、集計レベルAに対応して行No「01」には集計レコ
ードのレコード名として「利益」が入力され、また集計
レベルBに対応して行No「02」にはレコード名「売
上」、行No「05」にはレコード名「経費−」が入力さ
れ、更に集計レベルCに対応して行No「03」にはレコ
ード名「製品売上」、行No「04」に対応してレコード
名「部品売上」、行No「06」に対応してレコード名
「一般経費」が入力されている。このようにA表内には
集計レベルA、B、Cに対応して集計レコードのレコー
ド名が入力されている。
Next, the operation of this embodiment will be described. First,
When the input unit 1 is instructed to create the table A in order to obtain the desired form, the parameter setting unit 2 operates in response to this. First, when creating the A table, the parameter setting unit 2 displays and outputs a table frame and the like according to the basic format of the A table read from the parameter file 4. Now, in the state where the basic format of table A is displayed and output, the person in charge of business inputs the parameter data of table A from the input unit 1. FIG. 3 is a display example when the parameter data is input in the table A. Here, in the basic format of table A, the heading portion in the column direction displays the heading character strings of “totaling level A”, “totaling level B”, and “totaling level C” corresponding to the three levels of totaling. The heading character strings of “management unit” and “target code” are displayed. Now, in the data input example shown in FIG. 3A, “Profit” is entered as the record name of the aggregate record in the row No. “01” corresponding to the aggregation level A and the row corresponding to the aggregation level B. The record name "sales" is entered in No. "02", the record name "expense-" is entered in line No. "05", and the record name "product sales" is entered in line No. "03" corresponding to the aggregation level C. , The record name “part sales” is entered corresponding to the line No. “04”, and the record name “general expense” is entered corresponding to the line No. “06”. As described above, the record names of the aggregated records are entered in the table A in correspondence with the aggregation levels A, B, and C.

【0014】このように集計レベルに対応して集計レコ
ードのレコード名をA表に入力しておくと、ある行に着
目した場合、その集計レコードの集計結果はそれよりも
前の行において上位レベルにある集計レコードに集計さ
れる。つまり、例えば、行No「06」の集計レコードの
集計結果はそれよりも上位レベルにある行No「05」の
集計レコードに集計され、また行No「05」の集計レコ
ードは、それよりも上位レベルにある行No「01」の集
計レコードに集計される。ここで、上位レベルへの集計
は通常プラス集計であるが、例えば行No「05」のレコ
ード名「経費−」の様にマイナス符号がレコード名と共
に入力されている場合には上位レベルへの集計はマイナ
ス集計となる。
When the record names of the totalized records are entered in the table A in correspondence with the totalized levels in this way, when a certain line is focused, the totaled result of the totalized records is at the higher level in the lines before that. Are summarized in the summary record in. That is, for example, the aggregation result of the aggregation record of row No. "06" is aggregated to the aggregation record of row No. "05" at a higher level, and the aggregation record of row No. "05" is higher than that. It is totaled in the total record of line No. “01” in the level. Here, the summation to the higher level is usually a positive summation, but if a minus sign is entered together with the record name such as the record name "expense-" in line No. "05", the summation to the higher level is performed. Is a negative tally.

【0015】また、A表には各行Noに対応して管理単位
エリアが設けられており、任意の行を指定してそれに対
応する位置に丸印を入力することにより、当該行は項目
コードが入力されているエリアであることを示す。これ
はA表の定義内容を行単位毎に解析する際に、当該丸印
が付されている行が解析対象となり、その他の行を対象
から外すことによって処理スピードの向上を図る為であ
ると同時に、業務担当者が抽出集計すべきデータがソー
スファイル(会計ファイルなど)にある事を確認する意
味もある。また、A表の「対象コード」の見出し部に対
応する入力エリアには、集計対象項目の具体的な項目内
容(項目コード)が入力されている。例えば、行No「0
1」、即ち、集計レベルAのレコード名「利益」に対応
する入力エリアには項目コード「911」が入力されて
おり、また行No「03」において集計レベルCのレコー
ド名「製品売上」に対応する入力エリアには項目コード
「111」が入力されており、これによって所定ファイ
ルの集計対象項目のうち項目コード「911」あるいは
「111」に該当するレコードを抽出すべきことが定義
されている。なお、集計レベルAのレコード名「利益」
に対応する入力エリアに定義した項目コード「911」
は、例えば営業外利益(株式の利益金、特許料等)を集
計対象項目としている。A表の「対象コード」入力エリ
アには各行に対応して複数の項目コードを入力可能なも
ので、図3(A)に示すA表の例では2つの項目コード
を入力することができるが、A表の基本フォーマットの
一部を適宜修正変更可能であり、表枠全体を伸長するこ
とによって3以上の項目コードを入力できるようになっ
ている。なお、図3(A)は集計レベルAのレコード名
をA表の先頭行に配置した場合であるが、図3(B)に
示す様に、集計レベルAのレコード名をA表の最下行に
配置するようにしてもよい。ここで、図3(A)、
(B)のA表はレコード名の配置位置が相違するだけで
あり、その定義内容は同一である。このようにしてA表
を作成すると、パラメータ設定部2はそのA表パラメー
タデータをパラメータファイル4に設定する。
Further, the table A has a management unit area corresponding to each row No. By designating an arbitrary row and inputting a circle at the position corresponding to it, the item code of that row is changed. Indicates that the area is being input. This is because when the definition contents of table A are analyzed line by line, the line marked with the circle becomes the analysis target and the other lines are excluded from the target to improve the processing speed. At the same time, it also means that the person in charge of business confirms that the data to be extracted and aggregated is in the source file (accounting file etc.). Further, in the input area corresponding to the heading portion of “target code” in Table A, the specific item content (item code) of the totaling target item is input. For example, line No "0
1 ”, that is, the item code“ 911 ”is entered in the input area corresponding to the record name“ profit ”of the aggregation level A, and the record name“ product sales ”of the aggregation level C is entered in the line No.“ 03 ”. The item code “111” is entered in the corresponding input area, which defines that records corresponding to the item code “911” or “111” should be extracted from the items to be totaled in the predetermined file. . In addition, the record name "Profit" of the aggregation level A
Item code "911" defined in the input area corresponding to
Indicates, for example, non-operating profits (profit profit of shares, patent fees, etc.) as items to be totaled. In the “target code” input area of table A, a plurality of item codes can be entered corresponding to each line. In the example of table A shown in FIG. 3A, two item codes can be entered. , A part of the basic format of table A can be modified and changed as appropriate, and three or more item codes can be input by expanding the entire table frame. Note that, although FIG. 3A shows the case where the record name of the aggregation level A is arranged in the first row of the A table, as shown in FIG. 3B, the record name of the aggregation level A is the bottom row of the A table. It may be arranged at. Here, in FIG.
The table A in (B) is different only in the arrangement position of the record name, and the definition contents are the same. When the table A is created in this way, the parameter setting unit 2 sets the A table parameter data in the parameter file 4.

【0016】上述の様にしてA表を作成した後におい
て、入力部1から任意の帳票名を指定してその印刷指令
を与えると、表構造解析部5はパラメータファイル4内
のA表パラメータデータを解析し、構成ファイル6を作
成する処理を行う。図5〜図7は構成ファイル6を作成
する際の動作を示したフローチャートであり、図8〜図
13はこの場合における表構造解析部5の動作内容を図
式的に示すと共に、図3に示すA表の1行目〜6行目に
対応して生成される構成レコードの生成過程を示した
図、また図14は作成された構成ファイル6の内容を具
体的に示した図である。なお、構成ファイル6の各レコ
ード構造は「子コード」、「親コード」、「終了印」、
「サイン」、「名称」とから成り、「子コード」および
「親コード」はA表内の集計対象項目とそれに対応する
集計レコードとの対応関係を表わしたり、集計レベルの
階層構造における親子関係(上下関係)を表わすコード
である。また、「終了印」は親コードに集計レベルAが
含まれている場合に“1”となるフラグで、終了印に
“1”がセットされている場合にはそれよりも上位レベ
ルへのレコード集計を行わないことを示している。「サ
イン」はA表内のレコード名にマイナス符号が付されて
マイナス集計が定義されている場合に「−」の符号がセ
ットされるものである。「名称」はA表に定義されてい
る集計レコードのレコード名である。いま、図3(A)
に示す上集計のA表に基づいてその1行目〜6行目に対
応して構成レコードが生成される場合を例に挙げて図5
〜図7に示すフローチャートを具体的に説明するものと
する。
After the table A is created as described above, when an arbitrary form name is designated from the input section 1 and a print command is given, the table structure analysis section 5 causes the table structure parameter data in the parameter file 4 to be A table parameter data. Is analyzed and the processing for creating the configuration file 6 is performed. 5 to 7 are flowcharts showing the operation when creating the configuration file 6, and FIGS. 8 to 13 schematically show the operation contents of the table structure analysis unit 5 in this case and are shown in FIG. The figure which showed the production | generation process of the structure record produced | generated corresponding to the 1st line of the A table, and FIG. 14 is the figure which showed the content of the produced structure file 6 concretely. Each record structure of the configuration file 6 has a “child code”, a “parent code”, an “end mark”,
It consists of "signature" and "name", and "child code" and "parent code" represent the correspondence between the items to be totaled in table A and the corresponding totalized records, and the parent-child relationship in the hierarchical structure of the totaling level. This is a code representing (upper and lower relationships). The “end mark” is a flag that becomes “1” when the parent code includes the aggregation level A, and when the end mark is set to “1”, a record to a higher level than that. It indicates that no aggregation is performed. The "sign" is a sign that is set to "-" when a minus sign is added to the record name in the table A and a minus tabulation is defined. “Name” is the record name of the totalized record defined in table A. Now, FIG. 3 (A)
As an example, FIG. 5 illustrates a case where the configuration record is generated corresponding to the first to sixth rows based on the table A of the upper total shown in FIG.
~ The flowchart shown in Fig. 7 will be specifically described.

【0017】先ず、表構造解析部5はA表のパラメータ
を読み出し、集計レベルAに対応するレコード名の記述
位置を検索し(ステップA1)、集計レベルAのレコー
ド名がA表の先頭行に配置されているかをチェックする
(ステップA2)。ここで、先頭行に配置されていれ
ば、その先頭行(1行目)を指定するが(ステップA
3)、集計レベルAのレコード名がA表の最下行に配置
されていれば、下集計フラグを“1”にセットすると共
に(ステップA4)、その最下行を指定しておく(ステ
ップA5)。いま、図3(A)に示すA表には集計レベ
ルAのレコード名がその先頭行に配置されているので、
先頭行が指定される。次に、ステップA6に進み、指定
行の集計レベルは最上位のレベルAか否かをチェックす
る。いま、1行目の集計レベルはAであるので、初期設
定の為に、表構造解析部5内の最終項目ワークメモリ
(図8の(B)参照)の内容を全てクリアしておくと共
に(ステップA7)、現在着目中のレベル(現在レベ
ル)として集計レベルAを指定しておく(ステップA
8)。この状態において、現在レベルと現在着目してい
る行(現在行)の行Noとからレベル行データを生成する
(ステップA9)。いま、A表の1行目は集計レベルA
であり、かつその行Noは「01」であるので、この現在
レベルと行Noとを組み合せたレベル行データ「A01」
を生成する。次に、このレベル行データ「A01」と現
在行の名称(集計レコードのレコード名「利益」)とを
最終項目ワークメモリの現在レベルAに対応する位置に
セットする(ステップA10)。図8の(C)はこの場
合における最終項目ワークメモリの内容を示している。
なお、最終項目ワークメモリは図8の(B)、(C)に
示す様に集計レベルA、B、Cに対応してレベル行デー
タおよび名称を記憶する構成となっており、構成レコー
ド作成時のワークメモリである。
First, the table structure analysis unit 5 reads the parameters of the table A, searches for the description position of the record name corresponding to the aggregation level A (step A1), and the record name of the aggregation level A is in the first row of the table A. It is checked whether they are arranged (step A2). If it is located in the first line, the first line (first line) is specified (step A
3) If the record name of the summarization level A is located in the bottom row of table A, the lower summation flag is set to "1" (step A4) and the bottom row is designated (step A5). . Now, in the table A shown in FIG. 3A, the record name of the aggregation level A is arranged in the first row,
The first line is specified. Next, in step A6, it is checked whether the total level of the designated row is the highest level A. Now, since the totaling level in the first line is A, the contents of the last item work memory (see FIG. 8B) in the table structure analysis unit 5 are all cleared for initialization. In step A7), the aggregation level A is designated as the level of interest (current level) (step A).
8). In this state, level line data is generated from the current level and the line number of the line currently being focused on (current line) (step A9). Now, the first row of table A is aggregation level A
Since the line number is "01", the level line data "A01" is a combination of the current level and the line number.
To generate. Next, the level line data "A01" and the name of the current line (record name "profit" of the aggregated record) are set at the position corresponding to the current level A of the final item work memory (step A10). FIG. 8C shows the contents of the final item work memory in this case.
The final item work memory is configured to store level line data and names corresponding to the aggregation levels A, B, and C as shown in FIGS. 8B and 8C, and when the configuration record is created. Is the work memory of.

【0018】次に、現在行に対応する管理単位エリアに
丸印が付されているか否かをチェックする(ステップA
11)。いま、図3(A)に示す様に下集計のA表の1
行目には丸印が付されているので、図7のステップA2
7に進み、現在行に入力されている項目コードをその先
頭から指定し、この指定コードを構成レコードの子コー
ドとしてセットする(ステップA28)。この場合、項
目コードは「911」である為、図8の(A)に示す様
に子コードは「911」となる。次に、最終項目ワーク
メモリ内の現在レベルのレベル行データ「A01」を構
成レコードの親コードとしてセットする(ステップA2
9)。次に、親コードに含まれている集計レベルはAか
否かをチェックするが(ステップA30)、この場合、
親コードには集計レベルAが含まれているので、これを
条件に構成レコードの終了印に“1”をセットする(ス
テップA31)。次に親コードの名称「利益」を最終項
目ワークメモリから読み出して構成レコードの名称とし
てセットする(ステップA32)。図8の(A)はA表
1行目の構成レコードを示し、子コードが「911」、
親コードが「A01」、終了印が「1」、「名称」が
「利益」となるもので、この構成レコードは構成ファイ
ル6に書き出される(ステップA33)。ここで、子コ
ード「911」と親コード「A01」との組み合せによ
ってA表内において、集計対象の項目コードとそれに対
応する集計レコードとの対応関係が示される。次に現在
行に他の項目コードが入力されているか否かをチェック
し(ステップA34)、有ればステップA27に戻り、
次の項目コードを指定し、以下、上述の動作を1項目ず
つ繰り返す。いま、A表の1行目には1つの項目コード
しか入力されていないので、A表の1行目に対応する構
成レコードは1つしか生成されないが、1行に複数の項
目コードが入力されていれば、その項目数に応じた構成
レコードが生成されて構成ファイル6に書き出される。
Next, it is checked whether or not the management unit area corresponding to the current line is circled (step A).
11). Now, as shown in Figure 3 (A),
A circle is added to the line, so step A2 in FIG.
7, the item code entered in the current line is designated from the beginning, and this designated code is set as a child code of the constituent record (step A28). In this case, since the item code is “911”, the child code is “911” as shown in FIG. Next, the level line data "A01" of the current level in the last item work memory is set as the parent code of the configuration record (step A2).
9). Next, it is checked whether the total level included in the parent code is A (step A30). In this case,
Since the parent code includes the aggregation level A, "1" is set to the end mark of the configuration record under this condition (step A31). Next, the name "profit" of the parent code is read from the final item work memory and set as the name of the constituent record (step A32). FIG. 8A shows the constituent record in the first row of the A table, and the child code is “911”,
The parent code is "A01", the end mark is "1", and the "name" is "profit", and this configuration record is written to the configuration file 6 (step A33). Here, the combination of the child code “911” and the parent code “A01” indicates the correspondence between the item code to be totalized and the totalized record corresponding thereto in the A table. Next, it is checked whether another item code is entered in the current line (step A34), and if there is, the process returns to step A27,
The next item code is specified, and the above operation is repeated item by item. Since only one item code is entered in the first line of table A, only one configuration record corresponding to the first line of table A is generated, but multiple item codes are entered in one line. If so, a configuration record corresponding to the number of items is generated and written in the configuration file 6.

【0019】このようにして1行目の構成レコードを生
成した後、ステップA34で他の項目コード無しが検出
されると、図5のステップA12に進み、A表の次行
(下集計フラグが“1”のときには前行)に着目してそ
の行にレコード名が設定されているか否かをチェックす
る。いま、次の2行目にはレコード名「売上」が設定さ
れているので、現在行を更新して次行(下集計フラグが
“1”のときには前行)の指定を行う(ステップA1
3)。これによって、A表の2行目が指定されると、ス
テップA6に戻るが、この場合、2行目の集計レベルは
B、したがって、ステップA10に進み、指定行のレベ
ルが現在行レベル以上か否かのエラーチェックを行い、
現在レベル以上であれば、最終項目メモリ内で指定行の
レベル以下の内容を全てクリアしておく(ステップA1
5)。
When the absence of another item code is detected in step A34 after the first row of constituent records is generated in this way, the process proceeds to step A12 in FIG. When it is "1", paying attention to the previous line), it is checked whether or not a record name is set in that line. Since the record name "sales" is set in the next second line, the current line is updated and the next line (the previous line when the lower count flag is "1") is designated (step A1).
3). As a result, when the second row of the A table is designated, the process returns to step A6. In this case, the summarization level of the second row is B. Therefore, the procedure proceeds to step A10, and whether the level of the designated row is the current row level or higher. Check the error of whether or not,
If it is the current level or higher, all the contents below the level of the specified line are cleared in the last item memory (step A1).
5).

【0020】いま、2行目の集計レベルBは現在レベル
A未満であるので、ステップA16に進み、この指定行
のレベルを現在レベルとし、現在レベルの更新を行う。
次に、現在レベルと現在行の行Noとからレベル行データ
を生成し(ステップA17)、このレベル行データを現
在行の名称と共に最終項目ワークメモリ内の現在レベル
に対応する位置にセットする(ステップA18)。この
場合、レベル行データ「B02」および名称「売上」が
最終項目ワークメモリの現在レベルBに対応する位置に
セットされる。これによって、最終項目ワークメモリの
内容は図9の(B)に示す状態から図9の(C)に示す
状態となる。次に、このレベル行データ「B02」を図
9の(A)に示す様に構成レコードの子コードとしてセ
ットする(ステップA9)。そして、図6のステップA
20に進み、最終項目ワークメモリの中から(現在レベ
ル+1)のレベル位置、つまり、1つ前の上位レベル位
置に格納されているレベル行データを読み出し、これを
構成レコードの親コードとしてセットする。この場合、
現在レベルはB、したがって最終項目ワークメモリのレ
ベルAの位置に格納されているレベル行データ「A0
1」が親コードとなる(図9の(A)参照)。ここで、
親コードに含まれているレベルがAであれば(図1
7)、構成レコードの終了印に“1”をセットする(ス
テップA22)。次に、子コードの行Noに対応するA表
内のレコード名にマイナス符号が付いているか否かをチ
ェックし(ステップA23)、マイナス符号が付いてい
れば、構成レコードの「サイン」に「−」をセットする
(ステップA24)。次に、親コードの名称「利益」を
最終項目ワークメモリから読み出して構成レコードの名
称としてセットする(ステップA25)。
Since the total level B of the second line is lower than the current level A, the process proceeds to step A16, and the level of this designated line is set as the current level, and the current level is updated.
Next, level line data is generated from the current level and the line number of the current line (step A17), and this level line data is set in the position corresponding to the current level in the final item work memory together with the name of the current line ( Step A18). In this case, the level line data "B02" and the name "sales" are set at the position corresponding to the current level B in the final item work memory. As a result, the content of the final item work memory changes from the state shown in FIG. 9B to the state shown in FIG. 9C. Next, this level line data "B02" is set as a child code of the configuration record as shown in FIG. 9A (step A9). Then, step A in FIG.
Proceeding to 20, the level line data stored in the level position (current level + 1) in the last item work memory, that is, in the immediately preceding higher level position is read, and this is set as the parent code of the configuration record. . in this case,
The current level is B, and thus the level row data “A0 stored in the position of the level A of the last item work memory.
1 ”is the parent code (see FIG. 9A). here,
If the level included in the parent code is A (Fig. 1
7), "1" is set to the end mark of the configuration record (step A22). Next, it is checked whether or not the record name in the table A corresponding to the row number of the child code has a minus sign (step A23). -"Is set (step A24). Next, the parent code name "profit" is read from the final item work memory and set as the name of the configuration record (step A25).

【0021】このようにして1レコード分のデータとし
て子コード「B02」、親コード「A01」、終了フラ
グ「1」、名称「利益」が揃うと、この構成レコードは
構成ファイル6に書き出される。ここで、子コード「B
02」と親コード「A01」との組み合せによってA表
内の行No「02」、レコード名「売上」の集計レコード
とその上位レベルにある行No「01」、レコード名「利
益」の集計レコードとの親子関係(上下関係)が示され
る。次に、図5のステップA11に戻るが、この場合、
現在行の管理単位エリアには丸印が付されていないの
で、つまり、現在行には項目コードが入力されていない
ので、項目コードに関する構成レコードの生成処理(ス
テップA27〜A34)は行わず、そのまま次行の指定
に移る(ステップA13)。
When the child code “B02”, the parent code “A01”, the end flag “1”, and the name “profit” are prepared as data for one record in this way, this configuration record is written to the configuration file 6. Here, the child code "B
"02" and parent code "A01" combined row No. "02" in table A, record name "Sales" and record No. "01" at higher level, record name "Profit" The parent-child relationship (vertical relationship) with is shown. Next, returning to step A11 in FIG. 5, in this case,
Since the management unit area of the current line is not marked with a circle, that is, since the item code is not input to the current line, the configuration record generation process (steps A27 to A34) related to the item code is not performed. Then, the process moves to the designation of the next line (step A13).

【0022】これによって3行目が指定されるが、3行
目の集計レベルはCであり、現在レベルB未満であるの
で、ステップA16に進み、現在レベルをCに変更した
のち、構成レコード生成処理(ステップA17〜A2
6)に移る。即ち、いま、最終項目ワークメモリの内容
が図10の(B)に示す状態において、現在レベルCと
現在行の行Noとから生成したレベル行データ「C03」
と現在行の名称「製品売上」とを最終項目ワークメモリ
の現在レベルC位置にセットする(図10の(C)参
照)。次に、このレベル行データ「C03」を構成レコ
ードの子コードとしてセットすると共に、最終項目ワー
クメモリ内の(現在レベル+1)のレベル行データ「C
02」を構成レコードの親コードとしてセットする(図
10の(A)参照)。なお、この場合には、親コードに
含まれているレベルはB、したがって終了印のセットは
行われない。次に、親コードとなる位置に格納されてい
る最終項目ワークメモリ内の名称「売上」を読み出して
構成レコードの名称としてセットする。これによって図
10の(A)に示す様にA表3行目に対応する構成レコ
ードとして先ず、子コードが「C03」、親コードが
「B02」、名称が「売上」と成る構成レコードが生成
されて構成ファイル6に書き出される。
Although the third line is designated by this, since the totaling level of the third line is C, which is less than the current level B, the process proceeds to step A16, the current level is changed to C, and then the configuration record is generated. Processing (steps A17 to A2
Go to 6). That is, now, in the state where the contents of the final item work memory are as shown in FIG. 10B, the level line data “C03” generated from the current level C and the line number of the current line.
And the name "Product Sales" of the current row are set at the current level C position of the final item work memory (see (C) of FIG. 10). Next, this level line data “C03” is set as a child code of the configuration record, and the (current level + 1) level line data “C” in the last item work memory is set.
02 "is set as the parent code of the constituent record (see FIG. 10A). In this case, the level included in the parent code is B, and thus the end mark is not set. Next, the name “sales” in the final item work memory stored in the position that is the parent code is read and set as the name of the configuration record. As a result, as shown in FIG. 10A, as a configuration record corresponding to the third row of table A, a configuration record having a child code “C03”, a parent code “B02”, and a name “sales” is first generated. And is written in the configuration file 6.

【0023】一方、A表の3行目には項目コード「11
1」が入力され、当該行には丸印が付されているので、
ステップA11でそのことが検出され、以下、この項目
コードに関する構成レコードの生成処理が行われる(ス
テップA27〜A34)。即ち、この項目コード「11
1」を構成レコードの子コードとしてセットすると共
に、最終項目ワークメモリ内の現在レベルCのレベル行
データ「C03」を構成レコードの親コードとしてセッ
トする。なお、この場合にも親コードのレベルはAでは
ないので、終了印のセットは行われない。次に、親コー
ドの名称「製品売上」を構成レコードの名称としてセッ
トする。これによって、図10に示す様に、子コードが
「111」、親コードが「C03」、名称が「製品売
上」と成る構成レコードが生成されて構成ファイル6に
書き出される。なお、A表3行目には次の項目コードは
入力されていないので、この時点でステップA12に戻
る。
On the other hand, in the third row of table A, the item code "11
"1" has been entered and the line is marked with a circle,
This is detected in step A11, and the configuration record generation processing relating to this item code is performed thereafter (steps A27 to A34). That is, this item code "11
1 "is set as the child code of the configuration record, and the level line data" C03 "of the current level C in the last item work memory is set as the parent code of the configuration record. In this case as well, since the level of the parent code is not A, the end mark is not set. Next, the name “product sales” of the parent code is set as the name of the constituent record. As a result, as shown in FIG. 10, a configuration record having a child code “111”, a parent code “C03”, and a name “product sales” is generated and written in the configuration file 6. Since the next item code is not entered in the third row of Table A, the process returns to step A12 at this point.

【0024】次に、A表の4行目が指定される(ステッ
プA13)。この場合、集計レベルと現在レベルは共に
C、したがってステップA14でそのことが検出されて
ステップA15に進み、最終項目ワークメモリ内におい
て、指定行のレベル以下の内容、この場合にはレベルC
の内容が全てクリアされる(図11の(B)参照)。こ
の状態において、レベル行データとして「C04」が生
成され、図11の(C)に示す様に、最終項目ワークメ
モリのレベルCの位置には、このレベル行データと共
に、現在行の名称「部品売上」がセットされる。そし
て、このレベル行データ「C04」が構成レコードの子
コードとしてセットされ、また、最終項目ワークメモリ
内の(現在レベル+1)のレベル行データ「B03」が
構成レコードの親コードとしてセットされ、更に、親コ
ードの名称「売上」が構成レコードの名称としてセット
される。これによって、図11の(A)に示す様な構成
レコードが生成されて構成ファイル6に書き出される。
一方、A表4行目にも管理単位に丸印が付いているの
で、以下、構成レコードの生成が行われ、4行目の項目
コード「121」が子コード、最終項目ワークメモリ内
の現在レベルのレベル行データ「C04」が親コードと
なり、更に親コードの名称「部品売上」が構成レコード
の名称となる(図11の(D)参照)。
Next, the fourth row of table A is designated (step A13). In this case, the totaling level and the current level are both C, so that it is detected in step A14 and the process proceeds to step A15, and the contents below the level of the designated line in the last item work memory, in this case level C
Is cleared (see FIG. 11B). In this state, "C04" is generated as the level row data, and as shown in FIG. 11C, at the position of level C in the last item work memory, the level row data and the name "part "Sales" is set. Then, the level line data “C04” is set as a child code of the configuration record, and the level line data “B03” of (current level + 1) in the last item work memory is set as a parent code of the configuration record. The parent code name “sales” is set as the name of the component record. As a result, a configuration record as shown in FIG. 11A is generated and written in the configuration file 6.
On the other hand, since the management unit is also circled in the 4th line of Table A, the configuration record is generated below, and the item code "121" in the 4th line is the child code, and the last item is currently in the work memory. The level line data “C04” of the level becomes the parent code, and the name “part sales” of the parent code becomes the name of the constituent record (see (D) of FIG. 11).

【0025】次に、A表の5行目が指定されるが、この
場合、5行目の集計レベルはBで現在レベルはC、した
がって、図12の(B)に示す様に最終項目ワークメモ
リにおいて、指定行のレベルB以下の内容が全てクリア
される(ステップA15)。この状態において、レベル
行データとして「B05」が生成され、図12の(C)
に示す様に、最終項目ワークメモリのレベルBの位置に
は、このレベル行データと共に現在行の名称「経費−」
のうち、マイナス符号を除いた「経費」がセットされ
る。そして、このレベル行データ「B05」が子コー
ド、最終項目ワークメモリ内の(現在レベル+1)のレ
ベル行データ「A01」が親コード、この親コードの名
称「利益」が構成レコードの名称となるレコード(図1
2の(A)参照)が生成されて構成ファイル6に書き出
される。なお、A表5行目の管理単位には丸印が付され
ていないので、この項目コードに関する構成レコードの
生成は行われない。
Next, the fifth row of the table A is designated. In this case, the total level of the fifth row is B and the current level is C. Therefore, as shown in FIG. In the memory, all the contents of level B and below of the designated line are cleared (step A15). In this state, “B05” is generated as the level line data, and the level line data shown in FIG.
As shown in, at the position of level B of the last item work memory, the name of the current line "expense-" is displayed together with this level line data.
Of these, the "expense" excluding the minus sign is set. The level row data "B05" is the child code, the level row data "A01" of the (current level + 1) in the last item work memory is the parent code, and the name "profit" of this parent code is the name of the constituent record. Record (Fig. 1
2 (see (A)) is generated and written in the configuration file 6. Since the management unit on the 5th line of Table A is not marked with a circle, the configuration record relating to this item code is not generated.

【0026】続いて、A表の6行目が指定されるが、こ
の場合、6行目の集計レベルはCで現在レベルはB、し
たがって、最終項目ワークメモリの内容をクリアする処
理(ステップA15)は行われず、最終項目ワークメモ
リの内容は図13の(B)に示す状態にある。この状態
において、レベル行データとして「C06」が生成さ
れ、図13の(C)に示す様に最終項目ワークメモリの
レベルCの位置にはこのレベル行データと共に現在行の
名称「一般経費」がセットされる。そして、このレベル
行データ「C06」が子コード、最終項目ワークメモリ
内の(現在レベル+1)のレベル行データ「B05」が
親コード、この親コードの名称「経費」が構成レコード
の名称となるレコード(図13の(A)参照)が生成さ
れて構成ファイル6に書き出される。ここで、A表の6
行目には丸印が付されているので、項目コードに関する
構成レコードが生成される。この場合、図13の(D)
に示す様に6行目の項目コード「411」が子コード、
最終項目ワークメモリ内の現在レベルのレベル行データ
「C06」が親コードとなり、更に、親コードの名称
「一般経費」が構成レコードの名称となる。
Subsequently, the 6th row of the A table is designated. In this case, the totaling level of the 6th row is C and the current level is B. Therefore, processing for clearing the contents of the last item work memory (step A15) ) Is not performed, and the contents of the final item work memory are in the state shown in FIG. In this state, "C06" is generated as the level line data, and as shown in FIG. 13C, at the position of the level C of the last item work memory, the level line data and the name "general expense" of the current line are stored. Set. The level line data “C06” is the child code, the level line data “B05” of the (current level + 1) in the last item work memory is the parent code, and the name “expense” of this parent code is the name of the constituent record. A record (see FIG. 13A) is generated and written in the configuration file 6. Where 6 in Table A
Since the circle is added to the line, a configuration record related to the item code is generated. In this case, (D) of FIG.
As shown in, the item code "411" on the 6th line is a child code,
The level line data "C06" of the current level in the last item work memory is the parent code, and the name "general expense" of the parent code is the name of the constituent record.

【0027】次に、A表の7行目が指定されると、ステ
ップA14でデータ無しが検出されるので、構成ファイ
ル作成処理はこの時点で終了する。このように図3
(A)のA表を解析することによって作成された構成フ
ァイル6は図14(A)に示す如くとなる。即ち、この
構成ファイル6は9つの構成レコードから成り、1レコ
ード目はA表の1行目、2レコード目はA表の2行目、
3および4レコード目はA表の3行目、5および6レコ
ード目はA表の4行目、7レコード目はA表の5行目、
8および9レコード目はA表の6行目に対応して生成さ
れたものである。
Next, when the 7th row of the A table is designated, the absence of data is detected in step A14, so that the configuration file creating process ends at this point. Thus, FIG.
The configuration file 6 created by analyzing the table A in FIG. 14A is as shown in FIG. That is, the configuration file 6 consists of nine configuration records, the first record is the first row of the A table, the second record is the second row of the A table,
The 3rd and 4th records are the 3rd row of the A table, the 5th and 6th records are the 4th row of the A table, the 7th record is the 5th row of the A table,
The 8th and 9th records are generated corresponding to the 6th row of the A table.

【0028】他方、図14(B)は図3(A)に示す下
集計のA表を解析することによって作成された構成ファ
イル6を示している。ここで、上集計のA表に基づいて
構成ファイル6を作成する場合には、上述した如くA表
をその先頭行から順次解析することによって作成してゆ
くが、下集計のA表に基づいて構成ファイル6を作成す
る場合にはA表をその最下行から順次解析することによ
って作成してゆく。これによって作成された下集計の構
成ファイルも上集計の構成ファイルと同様にA表の定義
内容にしたがって集計対象項目とそれに対応する集計レ
コードとの対応関係や集計レベルの階層構造における上
下関係を表わすが、下集計の場合の上下関係は下方向を
上位としたものとなる。このようにして構成ファイル6
を作成すると、表構造解析部5は展開ファイル作成部8
に起動命令を与える。
On the other hand, FIG. 14 (B) shows the configuration file 6 created by analyzing the lower tabulation A table shown in FIG. 3 (A). Here, when the configuration file 6 is created based on the table A of the upper tabulation, it is created by sequentially analyzing the table A from the first row as described above. When the configuration file 6 is created, it is created by sequentially analyzing the table A from the bottom row. Similarly to the configuration file for upper aggregation, the lower aggregation configuration file thus created represents the correspondence between the items to be aggregated and the corresponding aggregation records according to the definition contents of table A, and the vertical relation in the hierarchical structure of the aggregation level. However, in the case of the lower tabulation, the upper and lower relations are in the downward direction. In this way the configuration file 6
When the table structure analysis unit 5 creates
Give a start command to.

【0029】すると、展開ファイル作成部8はデータフ
ァイル9を構成する各種のソースファイルA……Nの中
から集計対象ファイルを指定したり、この集計対象ファ
イルから抽出したレコードを1レコードずつ展開レコー
ドとして展開ファイル10に書き出す処理を行う。ここ
で、展開ファイル10を構成する各レコードは分類コー
ド、データ値とから成っている。展開ファイル10を作
成すると展開ファイル作成部8は展開集計処理部11に
起動命令を与える。
Then, the expansion file creation unit 8 specifies a file to be totalized from the various source files A ... N forming the data file 9 and expands the records extracted from the files to be totalized one by one. As a result, the process of writing the file in the expanded file 10 is performed. Here, each record constituting the expansion file 10 is composed of a classification code and a data value. When the expansion file 10 is created, the expansion file creating unit 8 gives a start command to the expansion aggregation processing unit 11.

【0030】展開集計処理部11は構成ファイル6を参
照しながら展開ファイル10の内容に基づいて1レコー
ドずつ集計レコードを順次作成し、集計ファイル12に
書き出す。この場合、展開集計処理部11は展開ファイ
ル10の内容と構成ファイル6の内容とに基づいて集計
ファイル12を部品展開手法にしたがって生成する。図
15は展開集計処理部11の動作を示したフローチャー
トである。なお、図16〜図25は展開集計処理部11
の動作内容を具体的に説明する為の図である。いま、図
14(A)に示す上集計の構成ファイル6の内容と図1
6の(A)に示す展開ファイル10の内容とに基づいて
集計レコードを生成するものとする。
The expansion totalization processing unit 11 sequentially creates an aggregate record for each record based on the contents of the expansion file 10 while referring to the configuration file 6, and writes it in the totalization file 12. In this case, the expansion totalization processing unit 11 generates the totalization file 12 based on the contents of the expansion file 10 and the contents of the configuration file 6 according to the component expansion method. FIG. 15 is a flowchart showing the operation of the expansion totalization processing unit 11. 16 to 25, the expansion totalization processing unit 11 is shown.
FIG. 7 is a diagram for specifically explaining the operation content of FIG. Now, with reference to FIG.
It is assumed that the aggregate record is generated based on the contents of the expansion file 10 shown in 6A.

【0031】先ず、展開集計処理部11は展開ファイル
10の先頭から1レコード分のデータを読み込む(ステ
ップB1)。そして、次のステップB2ではデータ終了
か、つまり、展開ファイル10の先頭から全てのレコー
ドを読み出したか否かをチェックする。最初は展開ファ
イル10の先頭から1レコード分のデータを読み込んだ
場合であるから、次のステップB3に進み、構成ファイ
ル6の内容をサーチし、展開レコードの分類コードと一
致する子コードを構成ファイル6から検索する。ここ
で、図16は展開ファイル10から1レコード目のデー
タを読み込んだ場合の動作内容を示している。いま、図
16(A)に示す内容の展開ファイル10において、そ
の1レコード目の展開レコードは分類コードが「11
1」で、データ値が「1,000」であり、この分類コ
ードと一致する子コードを持つ構成レコードは図14
(A)に示す構成ファイル6内の4レコード目に存在す
る為、ステップB3で一致検出が行われてステップB4
に進み、集計ファイル12のレコードを生成する。即
ち、図16の具体例において、(C)は1レコード目の
展開レコード、(D)は一致検出された構成レコードを
示し、先ず、展開集計処理部11はこの構成レコード内
の子コードに対応する親コード「C03」を読み出し、
この親コードをA表の行Noと集計レベルとに分解し、こ
の行No「03」を集計ファイル12の1レコード目の先
頭項目に配置し、集計レベル「C」をそれに続けて配置
する。そして、この構成レコード内の名称を集計レコー
ドの次の項目に配置する。続いて、展開レコードのデー
タ値「1,000」を集計レコードの次の項目に配置す
る。図16(E)はこのようにして生成された集計レコ
ードを示している。つまり、この集計レコードはA表の
行No「03」に定義されているレコード名「製品売
上」、集計レベルCの集計レコードであり、このレコー
ド名に対応してA表に定義されている集計対象コード
「111」に該当するデータ「1,000」を集計した
ものである。
First, the expansion totalization processing unit 11 reads data for one record from the beginning of the expansion file 10 (step B1). Then, in the next step B2, it is checked whether the data has ended, that is, whether or not all the records have been read from the beginning of the expanded file 10. At first, since one record of data is read from the beginning of the expansion file 10, the process proceeds to the next step B3, the contents of the configuration file 6 are searched, and the child code matching the classification code of the expansion record is set to the configuration file. Search from 6. Here, FIG. 16 shows the operation contents when the data of the first record is read from the expansion file 10. Now, in the expansion file 10 having the content shown in FIG. 16A, the classification code of the first expansion record is “11”.
1 ", the data value is" 1,000 ", and the configuration record having the child code matching this classification code is shown in FIG.
Since it exists in the fourth record in the configuration file 6 shown in (A), a match is detected in step B3 and step B4
Then, the record of the totalization file 12 is generated. That is, in the specific example of FIG. 16, (C) shows the expansion record of the first record, and (D) shows the configuration record in which the match is detected. First, the expansion aggregation processing unit 11 corresponds to the child code in this configuration record. Read the parent code "C03"
This parent code is decomposed into the row No. of the table A and the totaling level, the row No. “03” is arranged in the first item of the first record of the totaling file 12, and the totaling level “C” is arranged following it. Then, the name in this constituent record is arranged in the next item of the total record. Then, the data value “1,000” of the expansion record is arranged in the next item of the totalization record. FIG. 16E shows the aggregated record thus generated. In other words, this aggregate record is an aggregate record of the record name "Product Sales" and aggregation level C defined in row No. "03" of table A, and the aggregate record defined in table A corresponding to this record name. The data "1,000" corresponding to the target code "111" is aggregated.

【0032】次に、ステップB5に進み、今回生成した
集計レコードと同一キーを持つレコードが集計ファイル
12内に既に格納されているかをチェックし、同一キー
を持つ集計レコードが無ければ生成した集計レコードを
単に集計ファイル12に書き込む追加集計を行うが(ス
テップB6)、既に同一キーを持つレコードが集計ファ
イル12内に格納されていれば、ステップB7に進み、
構成レコード内の「サイン」を参照し、マイナス符号が
セットされているかをチェックする。この結果、マイナ
ス符号が無ければ、同一キーを持つ既存の集計レコード
と今回生成した集計レコードとをプラス集計して1つの
レコードにまとめ集計ファイル12に書き込み(ステッ
プB8)、また、マイナス符号が有れば、同一キーを持
つ既存の集計レコードと今回生成した集計レコードとを
マイナス集計して1つのレコードにまとめ集計ファイル
12に書き込む(ステップB9)、いま、図16(B)
に示す様に集計ファイル12内には集計レコードが何も
格納されていない状態にある為、ステップB5で同一キ
ーを持つ既存の集計レコードは存在しないことが検出さ
れ、集計ファイル12への追加集計が行われる。
Next, the process proceeds to step B5, it is checked whether a record having the same key as the generated aggregate record is already stored in the aggregate file 12, and if there is no aggregate record having the same key, the aggregate record generated. Is simply written to the totalization file 12 (step B6), but if a record having the same key is already stored in the totalization file 12, the process proceeds to step B7.
Check if the minus sign is set by referring to "Sign" in the configuration record. As a result, if there is no minus sign, the existing aggregation record having the same key and the aggregation record generated this time are positively aggregated and put together into one record and written in the aggregation file 12 (step B8). If so, the existing tabulation record having the same key and the tabulation record generated this time are negatively tabulated and written into the tabulation file 12 in a single record (step B9), now FIG. 16 (B).
As shown in, since no totalization record is stored in the totalization file 12, it is detected in step B5 that no existing totalization record having the same key exists, and additional totalization to the totalization file 12 is performed. Is done.

【0033】次に、構成レコード内に終了印“1”がセ
ットされているかをチェックする(ステップB10)。
ここで、上述した如く構成レコード内の終了印は親コー
ドに含まれている集計レベルがAのときに“1”となる
もので、終了印が“1”のときにはそのままステップB
3に戻るが、終了印が“1”でなければ、新たに展開レ
コードを生成して展開ファイル10への書き出しを行う
(ステップB11)。つまり、今回生成した集計レコー
ドよりも上位レベルにあるレコード名がA表に定義され
ていれば、今回生成した集計レコードの集計結果を上位
レベルにあるレコード名の集計レコードへ集計させる為
に、新たな展開レコードを生成して展開ファイル10へ
の書き出しを行う。
Next, it is checked whether the end mark "1" is set in the configuration record (step B10).
Here, as described above, the end mark in the configuration record is "1" when the aggregation level included in the parent code is A, and when the end mark is "1", the step B is directly used.
Returning to step 3, if the end mark is not "1", a new expanded record is newly generated and written in the expanded file 10 (step B11). In other words, if a record name at a higher level than the aggregate record generated this time is defined in table A, a new result will be added in order to aggregate the aggregated result of the aggregate record generated this time to the aggregate record having the record name at an upper level. A new expansion record is generated and written to the expansion file 10.

【0034】いま、構成レコード内に終了印“1”はセ
ットされていないので、図16(F)に示す様なレコー
ドを新たに生成して展開ファイル10への書き出しを行
う。即ち、構成レコード内の親コード「C03」をその
まま分類として先頭項目に配置し、これに続けて展開レ
コード内のデータ値「1,000」を配置した新たな展
開レコードを生成して展開ファイル10へ書き出す。そ
の後、ステップB3に戻り、以下、構成ファイル6の内
容を全てサーチし、展開レコード内の分類コード「11
1」と一致する子コードを持った構成レコードが検出さ
れなくなるまで、上述の動作を繰り返す。この結果、ス
テップB3で該当レコード無しが検出されて不一致終了
となると、ステップB1に戻り、展開ファイル10から
次のレコードを読み出す。
Since the end mark "1" is not set in the constituent record, a record as shown in FIG. 16 (F) is newly generated and written in the expanded file 10. That is, the parent code “C03” in the configuration record is placed as it is in the first item as a classification, and subsequently, a new development record in which the data value “1,000” in the development record is placed is generated to generate the development file 10 Write to. After that, the process returns to step B3, and thereafter, all the contents of the configuration file 6 are searched, and the classification code "11" in the expansion record is searched.
The above operation is repeated until a configuration record having a child code matching "1" is not detected. As a result, when it is determined in step B3 that there is no corresponding record and the disagreement ends, the process returns to step B1 to read the next record from the expanded file 10.

【0035】図17は展開ファイル10から次のレコー
ドを読み込んだ場合の動作内容を示している。ここで、
(A)はこの時点の展開ファイル10の内容を示し、図
中太線の下に配置したレコードは図16の場合において
新たに生成された展開レコードを示している。また、
(B)はこの時点における集計ファイル12の内容を示
し、図16の場合において生成された集計レコードがそ
の先頭に書き込まれた状態を示している。更に、(C)
は展開ファイル10から今回読み出されたレコードを示
し、(D)はこの展開レコードの分類キーと一致する子
コードを持った構成レコードを示している。ここで、展
開集計処理部11はこの展開レコードと構成レコードと
から(E)に示す様な集計レコードを生成する。この集
計レコードはA表の行No「04」に定義されているレコ
ード名「部品売上」、集計レベルCの集計レコードであ
り、このレコード名に対応してA表に定義されている集
計対象コード「121」に該当するデータ「2,00
0」を集計したものである。なお、この場合においても
同一キーを持つレコードは集計ファイル12内に存在し
ない為、集計ファイル12への追加集計が行われる(ス
テップB6)。また、上述と同様にこの構成レコード内
には終了印がセットされていないので、新たな展開レコ
ード(図17(F)参照)を生成して展開ファイル10
に書き出す(ステップB11)。その後、ステップB3
で不一致終了が検出されると、展開ファイル10から次
のレコードを読み込む(ステップB1)。
FIG. 17 shows the operation contents when the next record is read from the expansion file 10. here,
(A) shows the contents of the expansion file 10 at this time, and the records arranged below the bold line in the figure show the expansion records newly generated in the case of FIG. Also,
(B) shows the contents of the totalization file 12 at this time, and shows the state in which the totalization record generated in the case of FIG. 16 is written at the beginning. Furthermore, (C)
Indicates a record read this time from the expanded file 10, and (D) indicates a constituent record having a child code that matches the classification key of this expanded record. Here, the expansion totalization processing unit 11 generates the totalization record as shown in (E) from the expansion record and the constituent record. This total record is a total record of record name "part sales" defined in row No. "04" of table A and total level C, and total target code defined in table A corresponding to this record name. Data corresponding to "121""2,000
This is a total of "0". Even in this case, since the record having the same key does not exist in the totalization file 12, additional totalization to the totalization file 12 is performed (step B6). Further, as in the above case, since the end mark is not set in this configuration record, a new expansion record (see FIG. 17F) is generated and the expansion file 10 is generated.
(Step B11). Then, step B3
When the non-matching end is detected at, the next record is read from the expanded file 10 (step B1).

【0036】同様に図18は展開ファイル10から次の
レコードを読み込んだ場合の動作内容を示している。こ
の場合、展開ファイル10から読み出したレコード
(C)とこれに該当する構成レコード(D)とから
(E)に示す様な集計レコードが生成される。この集計
レコードはA表の行No「06」に定義されているレコー
ド名「一般」、集計レベルCの集計レコードであり、こ
のレコード名に対応してA表に定義されている集計対象
コード「411」に該当するデータ「800」を集計し
たもので、集計ファイル12へ追加集計される。また、
この場合においても、今回生成した集計レコードの集計
結果をそれよりも上位レベルにあるレコード名の集計レ
コードへ集計させる為に(F)に示す様な新たな展開レ
コードが生成される。
Similarly, FIG. 18 shows the operation contents when the next record is read from the expanded file 10. In this case, an aggregate record as shown in (E) is generated from the record (C) read from the expansion file 10 and the corresponding constituent record (D). This summary record is a summary record of record name "general" and summary level C defined in row No. "06" of table A, and the summary target code "table" defined in table A corresponding to this record name. The data "800" corresponding to "411" is added up and added to the counting file 12. Also,
Also in this case, a new expansion record as shown in (F) is generated in order to total the totalized result of the totalized record generated this time into the totalized record of the record name at a higher level than that.

【0037】更に、図19は展開ファイル10から次の
レコードを読み込んだ場合の動作内容を示している。こ
の場合においても、展開ファイル10から読み出したレ
コード(C)とこれに該当する構成レコード(D)とか
ら(E)に示す様な集計レコードが生成される。この集
計レコードはA表の行No「01」に定義されているレコ
ード名「利益」、集計レベルAの集計レコードであり、
このレコード名に対応してA表に定義されている集計対
象コード「911」に該当するデータ「500」を集計
したもので、集計ファイル12へ追加集計される。この
ように、A表内に集計レベルAのレコード名「利益」に
対応して集計対象コード「911」を定義しておけば、
その集計対象コードに基づいた集計レコードも生成され
る。ここで、この対象項目コード「911」を営業外利
益の項目とすると、生成レコードはこの営業外利益の集
計レコードとなる。なお、この場合、集計レベルはA、
したがって、構成レコード内には終了印“1”がセット
されている為、新たな展開レコードの生成は行われな
い。
Further, FIG. 19 shows the operation contents when the next record is read from the expansion file 10. Also in this case, the aggregate record as shown in (E) is generated from the record (C) read from the expansion file 10 and the corresponding constituent record (D). This aggregate record is an aggregate record of record level "profit" and aggregation level A defined in row No. "01" of table A.
The data "500" corresponding to the aggregation target code "911" defined in the table A corresponding to this record name is aggregated, and is additionally aggregated in the aggregation file 12. In this way, if the aggregation target code “911” is defined corresponding to the record name “profit” of the aggregation level A in the table A,
A total record based on the total target code is also generated. Here, assuming that the target item code “911” is an item of non-operating profit, the generated record becomes a record of this non-operating profit. In this case, the aggregation level is A,
Therefore, since the end mark "1" is set in the configuration record, no new expansion record is generated.

【0038】このようにして図16の(A)に示す展開
ファイル10の内容を1レコードずつ順次読み出して集
計レコードを生成してゆくと、集計ファイル12には図
20の(B)に示す様な集計レコードが書き込まれる。
この集計ファイル12内の各レコードはA表に定義され
ている集計対象の項目コード「111」、「121」、
「411」、「911」に該当するデータを集計した集
計レコードである。これによって、各集計対象項目に対
応する集計レコードが全て揃うことになる。
In this way, when the contents of the expansion file 10 shown in FIG. 16A are sequentially read out record by record to generate a total record, the total file 12 is displayed as shown in FIG. A total record is written.
Each record in the tabulation file 12 is a tabulation target item code “111”, “121”,
It is an aggregate record in which data corresponding to “411” and “911” are aggregated. As a result, all the aggregate records corresponding to each item to be aggregated are prepared.

【0039】次に、この各集計レコードの集計結果を上
位レベルにある集計レコードへ集計させる為の処理に移
る。先ず、集計レベルBの集計レコードを生成したのち
集計レベルAの集計レコードを生成する処理が行われ
る。ここで、図20〜図22は集計レベルBの集計レコ
ードを生成する場合、図23〜図25は集計レベルAの
集計レコードを生成する場合である。
Next, the process for totaling the totalized results of each totalized record to the totalized record at the higher level will be described. First, a process of generating a totalization record of the totalization level B after the totalization record of the totalization level B is generated. Here, FIGS. 20 to 22 show the case of generating the totalization record of the totalization level B, and FIGS. 23 to 25 show the case of generating the totalization record of the totalization level A.

【0040】図20は図16の場合に新たに生成された
展開レコードを読み込んだ場合の動作内容を示してい
る。この場合、(C)に示す様に展開レコードの分類コ
ードは「C03」で、これと一致する子コードを持った
構成レコードの親コードは(D)に示す様に「B02」
である。したがって、この展開レコードと構成レコード
とから(E)に示す様な集計レコードが生成される。こ
の集計レコードは、A表の行No「03」の集計レコード
よりも上位レベルBにある行No「02」、レコード名
「売上」の集計レコードであり、(C)に示す展開レコ
ードのデータ値、つまり、行No「02」の集計結果
「1,000」を集計したものである。この場合、集計
ファイル12内にはまだ同一キ−を持った集計レコード
は存在しない為、この集計レコードは集計ファイル12
へ追加集計される。また、この場合においても更に上位
レベルにあるレコード名の集計レコードへ集計させる為
に(F)に示す様な展開レコードが新たに生成されて展
開ファイル10に書き出される。
FIG. 20 shows the operation contents when the newly generated expansion record is read in the case of FIG. In this case, as shown in (C), the classification code of the expansion record is "C03", and the parent code of the component record having a child code matching this is "B02" as shown in (D).
Is. Therefore, a totalization record as shown in (E) is generated from the expansion record and the configuration record. This tabulation record is a tabulation record of row number "02" and record name "sales" in higher level B than the tabulation record of row number "03" in table A, and the data value of the expansion record shown in (C). That is, this is the total of the total result "1,000" of the row No. "02". In this case, since there is no total record having the same key in the total file 12, this total record is the total file 12
Is added to. Also in this case, a development record as shown in (F) is newly generated and written in the development file 10 in order to add up to the totalization record of the record name in the higher level.

【0041】図21は図17の場合に新たに生成された
展開レコードを読み込んだ場合の動作内容を示してい
る。この場合においても(C)に示す様に展開レコード
の分類コード「C04」と一致する子コードを持った構
成レコードの親コードは「B02」である。したがっ
て、この展開レコードと構成レコードとから(E)に示
す様な集計レコードが生成される。この集計レコードは
A表の行No「04」の集計レコードよりも上位レベルB
にある行No「02」、レコード名「売上」の集計レコー
ドであり、(C)に示す展開レコードのデータ値(行No
「04」の集計結果「2,000」)を集計したもので
ある。ここで、集計ファイル12内では図20の場合に
生成された同一キーを持った集計レコードが既に存在す
る為、今回生成した集計レコードと集計ファイル12内
の同一キーを持った集計レコードとを1つのレコードに
まとめて集計ファイル12に書き込まれる。即ち、今回
生成した集計レコードと既に生成された集計レコードと
のデータ値を集計するが、この場合、(D)に示す様に
構成レコード内の「サイン」にはマイナス符号がセット
されていないので、プラス集計が行われ、「1,000
+2,000=3,000」の値をデータ値とする新た
な集計レコード(キー、名称は同じ)を集計ファイル1
2内の5レコード目、つまり、同一キーを持った集計レ
コードが格納されていた位置に書き込まれ、その内容を
新たな集計レコードに置き換える。これによって、集計
ファイル12に新たに書き込まれた集計レコードはそれ
よりも下位レベルにあるA表の行No「03」、「04」
に対応する集計レコードの内容(図21の(B)におい
て1レコード目および2レコード目のレコード内容)を
加算集計したものとなる。なお、この場合においても
(F)に示す様な展開レコードが新たに生成される。こ
の展開レコードは図20の場合に生成された展開レコー
ドの分類コード「B02」と同一であるが、データ値は
相違している。
FIG. 21 shows the operation contents when the newly generated expansion record is read in the case of FIG. Also in this case, as shown in (C), the parent code of the component record having the child code that matches the classification code “C04” of the expansion record is “B02”. Therefore, a totalization record as shown in (E) is generated from the expansion record and the configuration record. This summary record is higher level B than the summary record of row No. "04" in table A.
In the row No. "02" and the record name "Sales", and the data value of the expansion record shown in (C) (Line No.
This is a result of totaling the totaling result of "04""2,000"). Here, since the totalized record with the same key generated in the case of FIG. 20 already exists in the totalization file 12, the totalization record generated this time and the totalization record with the same key in the totalization file 12 are 1 The records are collectively written in the record file 12. That is, the data values of the total record generated this time and the total record already generated are totaled. In this case, however, the minus sign is not set in the “sign” in the constituent record as shown in (D). , Plus totals are added and "1,000
+2,000 = 3,000 "as a data value for a new totalization record (key and name are the same) Totaling file 1
It is written in the fifth record of 2, that is, the position where the totalized record having the same key was stored, and the content is replaced with a new totalized record. As a result, the total record newly written in the total file 12 has the row numbers “03” and “04” of the table A at the lower level than that.
21 (the contents of the first record and the second record in FIG. 21B) are added up and aggregated. Even in this case, a development record as shown in (F) is newly generated. This expansion record is the same as the classification code “B02” of the expansion record generated in the case of FIG. 20, but the data value is different.

【0042】図22は図18の場合に新たに生成された
展開レコードを読み込んだ場合の動作内容を示し、
(C)に示す展開レコードと(D)に示す構成レコード
から(E)に示す様な集計レコードが生成されるが、こ
の集計レコードはA表の行No「06」の集計レコードよ
りも上位レベルBにある行No「05」、レコード名「経
費」の集計レコードであり、(C)に示す展開レコード
のデータ値、つまり、行No「06」の集計結果「80
0」を集計したものである。ここで、集計ファイル12
内には同一キーを持った集計レコードは存在しない為、
集計ファイル12への追加集計が行われる。また、
(F)に示す様な展開レコードも新たに生成される。
FIG. 22 shows the operation contents when the newly created expansion record is read in the case of FIG.
A development record shown in (C) and a configuration record shown in (D) generate a totalization record as shown in (E). This totalization record is at a higher level than the totalization record of row No. “06” of table A. The data value of the expansion record shown in (C), which is the aggregate record of the line No. “05” and the record name “expense” in B, that is, the aggregate result of the line No. “06” “80”
This is a total of "0". Here, tally file 12
Since there is no summary record with the same key in,
Additional tabulation to the tabulation file 12 is performed. Also,
A development record as shown in (F) is also newly generated.

【0043】このようにして展開ファイル10から図1
6〜図18の場合に新たに生成された展開レコードを順
次読み出してそれに応じて集計レベルBの集計レコード
を生成すると、更に図20〜図22で新たに生成された
展開レコードを展開ファイル10から順次読み出して集
計レコード生成を行う(図23〜図25)。この場合、
最上位レベルAの集計レコードを生成する処理である為
上位レベルへの集計は不要であり、新たな展開レコード
の生成は行われない。
In this way, from the expansion file 10 to FIG.
6 to FIG. 18, the newly generated expansion records are sequentially read and the aggregation record of the aggregation level B is generated accordingly, and the newly generated expansion records in FIGS. 20 to 22 are further extracted from the expansion file 10. Sequential reading is performed to generate a total record (FIGS. 23 to 25). in this case,
Since this is a process of generating the aggregated record of the highest level A, aggregation to the upper level is unnecessary, and no new expanded record is generated.

【0044】図23は図20で新たに生成された展開レ
コードを読み込んだ場合で、この時、生成される集計レ
コードはA表の行No「01」、集計レベルA、レコード
名「利益」の集計レコードで、そのデータ値は「1,0
00」となるが、この場合、この集計レコードと同一キ
ーを持つ集計レコードは集計ファイル12内の4レコー
ド目に存在し、かつ構成レコード内にはマイナス符号が
セットされていないので、今回生成された集計レコード
と集計ファイル12内の4レコード目の集計レコードと
のデータ値が加算集計され、その値「500+1,00
0=1,500」が集計ファイル12内の4レコード目
の内容と書き換えられる。
FIG. 23 shows a case in which the expanded record newly generated in FIG. 20 is read. At this time, the totalized record generated is the row No. “01” of table A, the totalization level A, and the record name “profit”. In the summary record, the data value is "1,0
However, in this case, since the totalized record having the same key as this totalized record exists in the fourth record in the totalization file 12 and the minus sign is not set in the constituent record, it is generated this time. Data values of the aggregated record and the aggregated record of the fourth record in the aggregated file 12 are added up and aggregated, and the value “500 + 1,00
“0 = 1,500” is rewritten with the contents of the fourth record in the totalization file 12.

【0045】更に、図24は図21で新たに生成された
展開レコードを読み込んだ場合で、この時、生成される
集計レコードも図23の場合と同様に集計レベルAの集
計レコードであるが、この場合、データ値は「2,00
0」となる。そして、この場合においても同一キーを持
つ集計ファイル12内の4レコード目の集計レコードと
加算集計されて1つの集計レコードにまとめられる。
Further, FIG. 24 shows the case where the expanded record newly generated in FIG. 21 is read, and the totalized record generated at this time is the totaling record of the totaling level A as in the case of FIG. 23. In this case, the data value is "2.00
It becomes "0". Even in this case, the summation is added to the summation record of the fourth record in the summation file 12 having the same key to be summed up into one summation record.

【0046】最後に図25は図22で新たに生成された
展開レコードを読み込んだ場合で、この時、生成される
集計レコードも図23の場合と同様に集計レベルAの集
計レコードであり、そのデータ値は「800」となる。
この場合、構成レコード内にはマイナス符号がセットさ
れているので、今回生成された集計レコードと集計ファ
イル12内の4レコード目にある同一キーを持った集計
レコードとは減算集計され、その値「3,500−80
0=2,700」が集計ファイル12内の4レコード目
の内容と置き換えられる。
Finally, FIG. 25 shows a case where the expanded record newly generated in FIG. 22 is read, and the totalized record generated at this time is the totaling record of the totaling level A as in the case of FIG. 23. The data value becomes “800”.
In this case, since the minus sign is set in the constituent record, the aggregate record generated this time and the aggregate record having the same key in the fourth record in the aggregate file 12 are subtracted and aggregated, and the value " 3,500-80
0 = 2,700 "is replaced with the contents of the fourth record in the totalization file 12.

【0047】このようにして得られた集計レベルAの集
計レコードの値「2,700」はそれに対応する項目コ
ード「911」の集計レコードの値「500」にそれよ
りも下位レベルにある「製品売上」のレコード値「1,
000」および「部品売上」のレコード値「2,00
0」をそれぞれ加算集計し、この集計結果に「一般経
費」のレコード値「800」を減算集計したものとな
る。したがって、この集計レベルAのレコード値は営業
外利益も計上したものとなる。
The value "2,700" of the totalization record of the totalization level A thus obtained is the value "500" of the totalization record of the item code "911" corresponding to the value "product" which is at a lower level than that. "Sales" record value "1,
000 ”and“ part sales ”record value“ 2,000 ”
"0" is added and totaled, and the record value "800" of "general expense" is subtracted and totalized from the totalized result. Therefore, the record value of the aggregation level A also records the non-operating profit.

【0048】このようにして展開ファイル10内の全レ
コードが読み出されると、図15のステップB2でデー
タ終了が検出されてステップB12に進み、集計ファイ
ル12を構成する各レコードをそのキー内容(行No)に
したがって昇順にソートする。図26はこの場合の集計
ファイル12の内容を示し、(A)はソート前、(B)
はソート後における集計ファイル12の内容を示してい
る。このようにしてソートされた集計ファイル12内の
各レコードは帳票出力時の印刷順に並べ替えられる。
When all the records in the expanded file 10 are read in this way, the end of the data is detected in step B2 of FIG. 15 and the process proceeds to step B12, in which each record constituting the totalization file 12 has its key content (line). Sort in ascending order according to No.). FIG. 26 shows the contents of the aggregation file 12 in this case, (A) before sorting, (B)
Indicates the contents of the totalization file 12 after sorting. The records in the tabulation file 12 sorted in this way are rearranged in the printing order when the form is output.

【0049】他方、図26の(C)は下集計の場合に作
成された集計ファイルをソートした後における集計ファ
イルの内容を示したもので、この場合においても集計フ
ァイル12内の各レコードは帳票出力時の印刷順に並べ
替えられる。その後、展開集計処理部11は印刷処理部
13を起動させる。
On the other hand, FIG. 26C shows the contents of the totalization file after sorting the totalization file created in the case of the bottom totalization. In this case as well, each record in the totalization file 12 is a form. Sorted in print order when output. Then, the expansion totalization processing unit 11 activates the print processing unit 13.

【0050】すると、印刷処理部13は図27のフロー
チャートにしたがって動作する。ここで印刷処理部13
は印刷書式メモリ7の内容を取り込んでその印刷書式に
したがって集計ファイル12の内容をその先頭から1レ
コードずつ読み出すと共に、この集計レコードに含まれ
ている集計レベルを判別し、それに対応する括り用の罫
線フォーマットを印刷書式メモリ7内のフォーマットテ
ーブルを参照しながら生成し、この罫線フォーマットと
共に、集計レコード内の名称およびデータ値を1レコー
ドずつ印字出力させることにより、帳票作成を行うが、
この場合、上集計が行われたか、下集計が行われたかに
よって帳票の印刷形態は相違する。
Then, the print processing unit 13 operates according to the flowchart of FIG. Here, the print processing unit 13
Takes in the contents of the print format memory 7, reads the contents of the totalization file 12 one record at a time according to the print format, determines the totalization level contained in this totalization record, and determines the corresponding totalization level. A ruled line format is generated with reference to the format table in the print format memory 7, and the name and data value in the totalized record are printed out one by one together with this ruled line format to create a form.
In this case, the printing form of the form differs depending on whether the upper tabulation or the lower tabulation is performed.

【0051】即ち、印刷処理部13は集計ファイル12
の先頭から集計レコードを読み出し(ステップC1)、
この先頭レコード内の集計レベルがAかをチェックする
(ステップC2)。いま、レベルAであれば、上集計が
行われた場合であるからそれに応じた印刷処理を行う
(ステップC3〜C6)。先ず、印刷書式メモリ7内の
フォーマットテーブルを参照して上集計用のレベルAに
対応する罫線フォーマットを生成し、この罫線フォーマ
ットと共に集計レコードの名称、データ値をフォーマッ
ト内に割り当てながら印刷書式にしたがって印字出力さ
せる(ステップC3)。そして、集計ファイル12から
次のレコードを読み出し(ステップC4)、その集計レ
コード内に含まれているレベルを判別し、そのレベルに
対応する上集計用の罫線フォーマットを生成し、この罫
線フォーマットと共に、その集計レコードの名称、デー
タ値をフォーマット内に割り当てながら印刷書式にした
がって印字出力させる(ステップC5)。次に、ステッ
プC6に進み、集計ファイル12内に次のレコードが有
するかを調べ、有ればステップC4に戻り、集計ファイ
ル12内の全レコードを印刷し終るまで上述の動作を繰
り返す。この結果、図2(A)に示す様な上集計の帳票
が作成されるが、この帳票は図3(A)で示したA表の
定義内容通りとなり、上集計された集計結果がA表に定
義されたレコード名の並び順に対応して上位レベルより
階層構造で印刷出力されたものとなる。
That is, the print processing unit 13 uses the tally file 12
Read the aggregated record from the beginning of (step C1),
It is checked whether the total level in this top record is A (step C2). Now, if it is level A, it means that the upward totalization has been performed, and accordingly, the printing process is performed (steps C3 to C6). First, referring to the format table in the print format memory 7, a ruled line format corresponding to the level A for upper totalization is generated, and according to the print format, the ruled line format and the name and data value of the totalized record are allocated in the format. It is printed out (step C3). Then, the next record is read from the totalization file 12 (step C4), the level included in the totalization record is discriminated, and the ruled line format for upper totalization corresponding to the level is generated. While assigning the name and data value of the totalized record in the format, it is printed out according to the print format (step C5). Next, the process proceeds to step C6, and it is checked whether or not the next record exists in the totalization file 12, and if there is, the process returns to step C4 and the above-described operation is repeated until all the records in the totalization file 12 are printed. As a result, a top-up tabulation form as shown in FIG. 2 (A) is created, but this form is as defined in the table A shown in FIG. 3 (A), and the tabulated tabulation result is the table A. It is printed out in a hierarchical structure from the upper level corresponding to the order of the record names defined in.

【0052】他方、ステップC2で先頭の集計レコ−ド
がレベルAでなければ、下集計に応じた印刷処理を行う
(ステップC7〜C9)。先ず、先頭レコ−ドのレベル
を判別し、そのレベルに対応する下集計用の罫線フォ−
マットを生成し、この罫線フォ−マットと共に、その集
計レコ−ドの名称、デ−タ値をフォ−マット内に割り当
てながら印刷書式にしたがって印字出力させる(ステッ
プC7)。次に、他の集計レコ−ドが有るかを調べ(ス
テップC8)、有れば、次の集計レコ−ドを読み出し
(ステップC9)、以下、ステップC7に戻り、上述の
動作を集計ファイル12内の全レコ−ドを印刷し終るま
で繰り返す。この結果、図2(B)に示す様な下集計の
帳票が作成される。この帳票は図3(B)で示したA表
の定義内容通りとなり、下集計された集計結果がA表に
定義されたレコ−ド名の並び順に対応して下位レベルよ
り階層構造で印刷出力されたものとなる。
On the other hand, if the top totalization record is not level A in step C2, printing processing is performed according to the lower totalization (steps C7 to C9). First, the level of the top record is discriminated, and the ruled line pattern for bottom totalization corresponding to the level is determined.
A mat is generated and, along with this ruled line format, the name and data value of the totalized record are assigned to the format and printed out according to the print format (step C7). Next, it is checked whether or not there is another totaling record (step C8), and if there is another totaling record, the next totaling record is read out (step C9), and then the process returns to step C7 to perform the above-mentioned operation in the totaling file 12 Repeat printing until all the records inside are printed. As a result, a form of bottom tabulation as shown in FIG. 2B is created. This form is as defined in the table A shown in FIG. 3 (B), and the tabulated results of the tabulation are printed out in a hierarchical structure from the lower level corresponding to the order of the record names defined in the table A. It has been done.

【0053】以上の様に、本実施例においては、業務担
当者等が所望する帳票を得る為に集計定義表であるA表
内に集計レベルに対応して集計レコードのレコード名を
定義し、かつこのレコード名に対応して集計対象コード
を定義しておくと、このA表を参照し、集計対象コード
に該当するデータが所定ファイルから読み出され、この
読み出されたデータはA表の対応するレコード名の集計
レコードに集計される他、この集計レコードよりも上位
レベルにあるレコード名がA表に定義されておれば、こ
の集計レコードの集計結果が上位レベルにあるレコード
名の集計レコードに集計される。一方、上位レベルにあ
る集計レコードへのマイナス集計を定義する為に、レコ
ード名に「−」符号が付加されていれば、そのレコード
名における集計レコードの集計結果は上位レベルにある
集計レコードにマイナス集計される。特に、本実施例に
おいてはA表に集計レベルに応じた親子関係にしたがっ
て集計レコードのレコード名を定義する際、最上位レベ
ルに対応するレコード名をA表の先頭行に配置したり、
最下行に配置したり、自由に定義することができるが、
このようにA表を定義しても、集計レコードの集計結果
を上位レベルのレコードに集計する際に上位レベルのレ
コード名が上方向に配置されているか下方向に配置され
ているかを判断して上集計あるいは下集計を行うように
したので、A表を上集計あるいは下集計の形式で定義す
ることができる。なお、上位レベルにある集計レコード
へのマイナス集計を定義する為に、レコード名に「−」
符号が付加されていれば、そのレコード名における集計
レコードの集計結果は上位レベルにある集計レコードに
マイナス集計される。また、A表に行No「01」のレコ
ード名「利益」に対応して集計対象の項目コードとして
営業外利益、つまり、株式の利益金、特許料等の項目を
定義しておけば、この「利益」の集計レコードには営業
外利益も計上されたものとなる。
As described above, in the present embodiment, the record name of the totalized record is defined corresponding to the totalization level in the totalization definition table A in order to obtain the form desired by the person in charge of business. Moreover, if the aggregation target code is defined corresponding to this record name, the table A is referred to, the data corresponding to the aggregation target code is read from the predetermined file, and the read data is stored in the table A. In addition to being summarized to the summary record of the corresponding record name, if the record name at a higher level than this summary record is defined in table A, the summary result of this summary record is the summary record of the record name at a higher level. Is counted in. On the other hand, if a minus sign is added to the record name in order to define a negative summary for the summary record at the higher level, the summary result of the summary record with that record name will be negative for the summary record at the higher level. It is totaled. In particular, in this embodiment, when defining the record name of the aggregated record in the table A according to the parent-child relationship according to the aggregation level, the record name corresponding to the highest level is arranged in the first row of the table A,
You can place it at the bottom line or define it freely,
Even if table A is defined in this way, when totaling the totaled results of the totalized records into upper level records, it is determined whether the upper level record names are arranged in the upward direction or the downward direction. Since the upper tabulation or the lower tabulation is performed, the table A can be defined in the form of the upper tabulation or the lower tabulation. In addition, in order to define the negative aggregation to the aggregation record at the higher level, "-" is added to the record name.
If the code is added, the totalized result of the totalized records in the record name is negatively totalized in the totalized record at the higher level. In addition, if non-operating income, that is, items such as profit on stocks and patent fees are defined as item codes to be aggregated corresponding to the record name "profit" in row No. "01" in table A, Non-operating profit is also recorded in the record of “profit”.

【0054】また、展開集計処理部11は集計ファイル
12を作成したのち、各レコードをその行Noにしたがっ
てソートするようにしたから、集計ファイル12内にお
いて各レコードの並び順はA表に定義したレコード名の
並び順に対応したものとなり、また印刷処理部13はこ
の集計ファイル12の内容をその先頭から1レコードず
つ読み出し、集計レコードに含まれている集計レベルを
チェックし、それに対応して予め決められている罫線フ
ォーマットと共に集計レコードの名称、データ値を印刷
出力するもので、作成された帳票の印刷結果はA表の定
義内容に対応したものとなり、集計レベルに応じた階層
構造の帳票を得ることが可能となる。特に、A表を上集
計あるいは下集計の形式で定義してもその定義内容にし
たがって上集計、下集計の並び順で帳票印刷されるの
で、イメージ通りの帳票を得ることができる。
Further, since the expansion totalization processing unit 11 creates the totalization file 12 and then sorts each record according to its row number, the arrangement order of each record in the totalization file 12 is defined in the table A. The print processing unit 13 reads the contents of the totalization file 12 one record at a time from the beginning, checks the totalization level included in the totalization record, and decides in advance in accordance with it. The name and data value of the totalized record are printed out together with the ruled line format that is used. The print result of the created form corresponds to the definition contents of table A, and the form of the hierarchical structure according to the totalization level is obtained. It becomes possible. In particular, even if the table A is defined in the form of top totaling or bottom totaling, the forms are printed in the order of the top totaling and the bottom totaling according to the definition contents, so that the form can be obtained as an image.

【0055】[0055]

【第二実施例】以下、図28〜図32を参照して第二実
施例を説明する。図28は本実施例のA表を示し、図3
(A)に示すA表と同様に、A表を上集計の形式で定義
した場合であるが、図3(A)に示すA表の行No「0
2」から集計レベルBのレコード名「売上」を取り除
き、それ以下の定義内容を1行ずつ繰り上げたものであ
る。このようなA表を定義すると、A表の行No「01」
には集計レベルAのレコード名「利益」、行No「02」
には集計レベルCのレコード名「製品売上」が配置さ
れ、集計レベルが階層的に連続しなくなるが、本実施例
においては、帳票印刷時に、集計レベルのつながり具合
を判断し、そのつながり具合に応じたフォーマットで印
刷するようにしている。なお、本実施例は上記第一実施
例の様に上集計、下集計の何れの形式でA表を定義して
もよいが、予め上集計のみ、下集計のみに限定した帳票
出力装置に適用することもできる。以下、上集計の形式
でA表を定義した場合を例に挙げて本実施例の動作を説
明するものとする。
[Second Embodiment] A second embodiment will be described below with reference to FIGS. FIG. 28 shows Table A of this example, and FIG.
Similar to the A table shown in (A), the case where the A table is defined in the form of the above tabulation, the row No. “0” of the A table shown in FIG.
2 ”, the record name“ sales ”of the aggregation level B is removed, and the definition contents below that are moved up line by line. If such table A is defined, row number “01” of table A
Is the record name "Profit" of the aggregation level A, line No. "02"
The record name “Product Sales” of the aggregation level C is arranged in the table, and the aggregation levels are not hierarchically continuous. However, in the present embodiment, when the form is printed, the connection level of the aggregation levels is determined and the connection level is determined. I am trying to print in a format that suits me. It should be noted that this embodiment may define the table A in any of the upper tabulation and lower tabulation formats as in the first embodiment, but is applied to a form output device that is limited to only the upper tabulation and the lower tabulation in advance. You can also do it. Hereinafter, the operation of this embodiment will be described by taking the case where the table A is defined in the form of the above tabulation as an example.

【0056】図29は帳票印刷時の動作を示したフロー
チャートである。いま、本実施例における印刷書式メモ
リ7には図30に示す様なフォーマットメモリが設定さ
れているものとする。このフォーマットメモリの内容は
上記第一実施例と同様であり、このフォーマットメモリ
の内容にしたがってレベル毎に罫線フォーマットが生成
される。ここで、図30は上集計用の罫線フォーマット
を示し、本実施例においてはレベルCに対応する罫線フ
ォーマットを生成する際に、その上位にレベルBが有る
か否かによって2種類の罫線フォーマットを生成するよ
うにしている。即ち、上位にレベルBがある場合には上
記第一実施例と同様の罫線フォーマット(レベルC−
1)を生成するか、上位レベルにBがない場合には本実
施特有の罫線フォーマット(レベルC−2)を生成す
る。このレベルC−2の罫線フォーマットはレベルC−
1の罫線フォーマットからレベルBの始点桁に対応する
縦罫線を削除した形状となっている。なお、その他のレ
ベルA、Bの罫線フォーマットは上記第1実施例と同様
である。また、図31は集計ファイル12の内容を示
し、この集計ファイルは上集計されたソート後の集計フ
ァイルである。
FIG. 29 is a flow chart showing the operation when printing a form. Now, it is assumed that a format memory as shown in FIG. 30 is set in the print format memory 7 in this embodiment. The contents of this format memory are the same as those in the first embodiment, and the ruled line format is generated for each level according to the contents of this format memory. Here, FIG. 30 shows a ruled line format for upper counting. In this embodiment, when a ruled line format corresponding to level C is generated, two types of ruled line formats are selected depending on whether or not there is a level B above it. I am trying to generate. That is, when there is a level B at the upper level, a ruled line format (level C-
1), or if there is no B in the upper level, a ruled line format (level C-2) peculiar to this embodiment is generated. The ruled line format of Level C-2 is Level C-
The vertical ruled line corresponding to the starting point digit of level B is deleted from the ruled line format of 1. The other ruled line formats of levels A and B are the same as those in the first embodiment. Further, FIG. 31 shows the contents of the totalization file 12, and this totalization file is the totalized file after the above totalization.

【0057】先ず、印刷処理部13は、集計ファイル1
2の先頭から集計レコードを読み出し(ステップD1)
その集計レベルを判断する(ステップD2)。いま、先
頭の集計レコードはレベルA、従ってステップD3に進
み、レベルAの罫線フォーマットを生成し、集計レコー
ドの名称、データ値をフォーマット内に割り当てながら
印刷書式にしたがって印字出力させる。そして、他の集
計レコードレコードが有るかをチェックし(ステップD
4)有れば、ステップD1に戻り、その集計レコードレ
コードを読み出してレベルの判断を行う(ステップD
2)。ここで、2レコード目は集計レベルCであるの
で、ステップD6に進み、集計ファイル12の上方向に
その上位レベルであるレベルBの集計レコードが有るか
をチェックするか、この場合、レベルBの集計レコード
は存在しないため、ステップD8に進み、レベルC−2
の罫線フォーマットを生成し、集計レコードレコードの
名称、データ値をフォーマット内に割り当てながら印刷
書式にしたがって印字出力させる。
First, the print processing unit 13 uses the totalization file 1
Read the aggregation record from the beginning of 2 (step D1)
The total level is judged (step D2). Now, the leading totalized record proceeds to level A, and therefore to step D3, a level A ruled line format is generated, and the name and data value of the totalized record are allocated in the format and printed out according to the print format. Then, check whether there is another total record record (step D
4) If there is, return to step D1, read the totalization record, and judge the level (step D
2). Here, since the second record is the totalization level C, the process proceeds to step D6 to check whether there is a totalization record of level B which is the higher level of the totalization file 12 in the upward direction. Since there is no totalization record, the process proceeds to step D8 and level C-2.
The ruled line format of is generated and the printout is performed according to the print format while assigning the record name and data value of the total record in the format.

【0058】次に、集計ファイル12から3レコード目
が読み出されるか、この場合においてもその上位レベル
であるレベルBの集計レコードは集計ファイル12の上
方向には存在しないため、レベルC−2の罫線フォーマ
ットが生成されてその集計レコードの内容がこのフォー
マットと共に印字出力させる。次に、集計ファイル12
から4レコード目が読み出されるか、この集計レコード
はレベルB、したがってステップD5に進み、レベルB
の罫線フォーマットが生成され、その集計レコードの内
容がこのフォーマットと共に印字出力される。続いて、
集計ファイル12から5レコード目が読み出される。こ
の集計レコードはレベルC、したがってステップD6に
進むか、この場合、その上位レベルであるレベルBの集
計レコードは集計ファイル12内の上方向に存在するた
め、ステップD7に進み、レベルC−1の罫線フォーマ
ットが生成され、その集計レコードの内容がこのフォー
マットと共に印字出力される。
Next, the third record is read from the totalization file 12 or, even in this case, the totalization record of the level B, which is the upper level, does not exist in the upward direction of the totalization file 12, and therefore the level C-2 A ruled line format is generated and the contents of the totalized record are printed out together with this format. Next, tally file 12
Or the fourth record is read, or this aggregated record is level B, and therefore the process proceeds to step D5, and level B
The ruled line format of is generated, and the content of the totalized record is printed out together with this format. continue,
The fifth record is read from the totalization file 12. This aggregated record proceeds to level C, and therefore step D6, or in this case, the aggregated record of its higher level, level B, exists in the aggregate file 12 in the upward direction, so the process proceeds to step D7 and the level C-1 A ruled line format is generated, and the contents of the totalized record are printed out together with this format.

【0059】これによって集計ファイル12内の前レコ
ードを印字し終ると、図32に示すような帳票が得られ
る。この帳簿は図28に示すA表の定義内容通りに、上
集計された集計結果が階層構造で印刷出力されたものと
なると共に集計レベルのつながり具合がレベルAからレ
ベルCに飛んでいてもそのつながり具合に応じたフォー
マットで印刷出力されたものとなる。このように構成さ
れた本実施例においても上記第一実施例と同様の効果を
有する他、特に、本実施例においては、A表に定義され
たレベルのつながり具合に応じたフォーマットで帳票印
刷が行われるので、A表を定義する際に、集計レベルが
連続するように定義する必要はなく、中間性なレベルを
省略した形式でA表を定義することができ、ユーザにと
ってA表を定義する際の自由度が増し、所望する帳票を
A表に定義したイメージ通りに得ことができる。なお、
上述の例では上集計の場合を示したが、下集計の場合に
おいても中間性なレベルを省略した形式でA表を定義し
ても、それに応じたフォーマットの帳票を得ることがで
きる。なお、上記各実施例においては集計レベルとして
3段階のレベルA、B、Cを示したが、4段階以上の集
計レベルを持った階層構造で帳票出力するようにしても
よい。また、上記第一実施例は最上位レベルのレコード
名をA表の先頭行に配置したか、最下行に配置したかに
よって上集計、下集計を行うようにしたが、その配置位
置によって右集計、左集計を行うようにしてもよい。更
に、罫線フォーマットは集計レベルを識別可能であれ
ば、その形状は限定されず、任意である。また、上記実
施例では集計レベル毎に任意のレコード名をA表に入力
部1から直接入力するようにしたが、使用するレコード
名が予め定まっている場合には、これら使用予定のレコ
ード名をテーブルに記憶しておき、レコード名入力時に
このテーブル内容をウィンドゥ画面に一覧表示させ、そ
の中から任意のレコード名を選択することによってレコ
ード名を入力するようにしてもよい。また、レコード名
は名称に限らず、コードであってもよい。また、上記実
施例はA表に集計対象の項目コードを入力するようにし
たが、コード以外に名称を入力してもよく、また、A表
のマトリックス上の交点位置を指定することによって集
計対象を指示するようにしてもよい。
As a result, when the previous record in the totalization file 12 has been printed, a form as shown in FIG. 32 is obtained. According to the definition contents of the table A shown in FIG. 28, this book has a result that the tabulated totaling result is printed out in a hierarchical structure and the connection level of the totaling level fluctuates from level A to level C. It will be printed out in a format according to the connection. The present embodiment configured in this way has the same effect as the first embodiment, and in particular, in the present embodiment, form printing is performed in a format according to the level of connection defined in Table A. Since it is performed, when defining the A table, it is not necessary to define the aggregation levels so as to be continuous, and the A table can be defined in a format in which the intermediate level is omitted, and the A table is defined for the user. The degree of freedom is increased, and the desired form can be obtained according to the image defined in Table A. In addition,
In the above example, the case of the upper total is shown, but also in the case of the lower total, even if the table A is defined in a format in which the intermediate level is omitted, a form of a format corresponding to that can be obtained. Although the three levels A, B, and C are shown as the totaling level in each of the above embodiments, the form may be output in a hierarchical structure having four or more totaling levels. In the first embodiment, the top total and bottom total are calculated depending on whether the highest-level record name is placed in the first row or the bottom row of table A. The left total may be calculated. Further, the ruled line format is not limited in shape as long as it can identify the aggregation level, and is arbitrary. Further, in the above embodiment, any record name is directly input to the table A from the input unit 1 for each aggregation level. However, when the record name to be used is predetermined, these record names to be used are It may be stored in a table, and when the record name is input, the table contents may be displayed in a list on the window screen, and the record name may be input by selecting an arbitrary record name from the list. Further, the record name is not limited to the name and may be a code. Further, in the above-mentioned embodiment, the item code to be totaled is input to the table A, but a name may be input in addition to the code, and the totaling target is specified by designating the intersection position on the matrix of the table A. May be instructed.

【0060】[0060]

【発明の効果】この発明によれば、集計レベルに対応し
て集計レコードのレコード名等を任意に指定しておくだ
けで、指定された集計レベルの親子関係に応じて上位レ
ベルへの集計を行い、その集計結果をレコード名の並び
順にしたがって指定内容通りの階層構造で出力すること
ができるので、従来のようにシステムエンジニア等の専
門家にコード体系の作成を依頼する必要はなく、一般ユ
ーザである業務担当者が所望する帳票イメージにしたが
って検査した内容通りの帳票を容易に得ることが可能と
なり極めて実用性に富んだものとなる。
According to the present invention, by simply specifying a record name or the like of a totalization record corresponding to a totaling level, totaling to higher levels can be performed according to the parent-child relationship of the specified totaling level. Since the totaled result can be output in a hierarchical structure according to the specified contents according to the order of the record names, it is not necessary to request an expert such as a system engineer to create a code system as in the past, and a general user It is possible to easily obtain a form as inspected according to the form image desired by a business person, which is extremely practical.

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

【図1】実施例に係るデータ処理装置のブロック構成
図。
FIG. 1 is a block configuration diagram of a data processing device according to an embodiment.

【図2】帳票印刷例を示し、(A)は帳票印刷例、
(B)は下集計の帳票印刷例を示した図。
FIG. 2 shows a form printing example, (A) is a form printing example,
FIG. 6B is a diagram showing an example of printing a form for bottom tabulation.

【図3】集計定義表であるA表に定義された内容の具体
例で、(A)は上集計のA表、(B)は下集計のA表を
示した図。
FIG. 3 is a diagram showing a specific example of the contents defined in table A, which is a tabulation definition table, in which (A) is an upper tabulation table A and (B) is a lower tabulation table A.

【図4】印刷書式メモリ7内に設定されたフォーマット
テーブルと、このテーブル内容にしたがって集計レベル
毎に生成される上集計、下集計用の罫線フォーマットを
示した図。
FIG. 4 is a diagram showing a format table set in a print format memory 7 and ruled line formats for upper totalization and lower totalization generated for each totaling level according to the contents of the table.

【図5】表構造解析部5が構成ファイル6を作成する処
理の一部を示したフローチャート。
FIG. 5 is a flowchart showing a part of a process in which the table structure analysis unit 5 creates a configuration file 6.

【図6】図5に続く構成ファイル作成処理の一部を示し
たフローチャート。
FIG. 6 is a flowchart showing a part of a configuration file creation process following FIG.

【図7】更に図5に続く構成ファイル作成処理の一部を
示したフローチャート。
FIG. 7 is a flowchart showing a part of a configuration file creation process following FIG.

【図8】A表の1行目に対応して生成される構成レコー
ドの生成過程を示した図。
FIG. 8 is a diagram showing a generation process of a configuration record generated corresponding to the first row of table A.

【図9】A表の2行目に対応して生成される構成レコー
ドの生成過程を示した図。
FIG. 9 is a diagram showing a process of generating a configuration record generated corresponding to the second row of table A.

【図10】A表の3行目に対応して生成される構成レコ
ードの生成過程を示した図。
FIG. 10 is a diagram showing a process of generating a configuration record generated corresponding to the third row of table A.

【図11】A表の4行目に対応して生成される構成レコ
ードの生成過程を示した図。
FIG. 11 is a diagram showing a process of generating a configuration record generated corresponding to the fourth row of table A.

【図12】A表の5行目に対応して生成される構成レコ
ードの生成過程を示した図。
FIG. 12 is a diagram showing a process of generating a configuration record generated corresponding to the fifth row of table A.

【図13】A表の6行目に対応して生成される構成レコ
ードの生成過程を示した図。
FIG. 13 is a diagram showing a process of generating a configuration record generated corresponding to the sixth row of table A.

【図14】構成ファイル6の具体例を示し、(A)は図
3(A)に示すA表にしたがって作成された上集計用の
構成ファイル6、(B)は図3(B)に示すA表にした
がって作成された下集計用の構成ファイル6を示した
図。
14A and 14B show a specific example of the configuration file 6, where FIG. 14A shows the configuration file 6 for upper totaling created according to the table A shown in FIG. 3A, and FIG. 14B shows it in FIG. 3B. FIG. 6 is a diagram showing a configuration file 6 for lower totalization created according to a table A.

【図15】展開集計処理部11が構成ファイル6、展開
ファイル10の内容から集計ファイル12を作成する場
合の動作を示したフローチャート。
FIG. 15 is a flowchart showing an operation in the case where the development totalization processing unit 11 creates the totalization file 12 from the contents of the configuration file 6 and the expansion file 10.

【図16】展開集計処理部11が展開ファイル10から
最初のレコードを読み出した場合の動作内容を示した
図。
FIG. 16 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the first record from the expansion file 10.

【図17】展開集計処理部11が展開ファイル10から
2番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 17 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the second record from the expansion file 10.

【図18】展開集計処理部11が展開ファイル10から
3番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 18 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the third record from the expansion file 10.

【図19】展開集計処理部11が展開ファイル10から
4番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 19 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads out the fourth record from the expansion file 10.

【図20】展開集計処理部11が展開ファイル10から
5番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 20 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the fifth record from the expansion file 10.

【図21】展開集計処理部11が展開ファイル10から
6番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 21 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the sixth record from the expansion file 10.

【図22】展開集計処理部11が展開ファイル10から
7番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 22 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the seventh record from the expansion file 10.

【図23】展開集計処理部11が展開ファイル10から
8番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 23 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the eighth record from the expansion file 10.

【図24】展開集計処理部11が展開ファイル10から
9番目のレコードを読み出した場合の動作内容を示した
図。
FIG. 24 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the ninth record from the expansion file 10.

【図25】展開集計処理部11が展開ファイル10から
最後のレコードを読み出した場合の動作内容を示した
図。
FIG. 25 is a diagram showing the operation contents when the expansion aggregation processing unit 11 reads the last record from the expansion file 10.

【図26】(A)は上集計された集計ファイル12の内
容をソートする前、(B)はソートした後の集計ファイ
ルの内容を示し、(C)は上集計された集計ファイルを
ソートした後の集計ファイルの内容を示した図。
26A shows the contents of the totalized file before sorting, FIG. 26B shows the contents of the totalized file after sorting, and FIG. 26C shows the sorted totalized file. The figure which shows the contents of the summary file after.

【図27】印刷処理を示したフローチャート。FIG. 27 is a flowchart showing print processing.

【図28】第二実施例におけるA表の定義内容を示した
図。
FIG. 28 is a diagram showing definition contents of table A in the second embodiment.

【図29】第二実施例における印刷処理部13の動作を
示したフローチャート。
FIG. 29 is a flowchart showing the operation of the print processing unit 13 in the second embodiment.

【図30】第二実施例における印刷書式メモリに設定さ
れたフォーマットテーブルと、このテーブル内容にした
がって集計レベル毎に生成される上集計用の罫線フォー
マットを示した図。
FIG. 30 is a diagram showing a format table set in the print format memory according to the second embodiment and a ruled line format for upper totalization generated for each totaling level according to the contents of the table.

【図31】第二実施例における集計ファイル12のソー
ト後の内容を示した図。
FIG. 31 is a diagram showing the contents of the summary file 12 after sorting in the second embodiment.

【図32】第二実施例における帳票印刷例を示した図。FIG. 32 is a diagram showing an example of printing forms according to the second embodiment.

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

1 入力部 2 パラメータ設定部 3 表示部 4 パラメータファイル 5 表構造解析部 6 構成ファイル 7 印刷書式ファイル 8 展開ファイル作成部 9 データファイル 10 展開ファイル 11 展開集計処理部 12 集計ファイル 13 印刷処理部 14 プリンタ 1 Input Part 2 Parameter Setting Part 3 Display Part 4 Parameter File 5 Table Structure Analysis Part 6 Configuration File 7 Printing Format File 8 Expanded File Creation Part 9 Data File 10 Expanded File 11 Expanded Aggregation Processing Part 12 Aggregation File 13 Print Processing Part 14 Printer

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】集計レベルに対応して集計レコードのレコ
ード名を任意の位置に配置して指定すると共に、このレ
コード名に対応して集計対象を指定する指定手段と、 この指定手段によって指定された集計対象に該当するデ
ータを所定のファイルから読み出してこの集計対象に対
応するレコード名のレコードに集計する第一の集計手段
と、 この第一の集計手段によって集計されたレコードの集計
結果をそれよりも上位レベルのレコードに集計する際
に、この上位レベルのレコード名の配置位置に基づいて
順方向に集計するか逆方向に集計するかを決定する集計
方向決定手段と、 前記第一の集計手段で集計されたレコードの集計結果を
前記集計方向決定手段によって決定された集計方向に配
置されている上位レベルにあるレコード名のレコードに
集計する第二の集計手段と、 この第二の集計手段で集計された各レコードを前記指定
手段で指定されたレコード名の配置順にしたがって出力
する出力手段と、 を具備したことを特徴とする帳票出力装置。
1. A designation means for arranging and designating a record name of a summary record at an arbitrary position corresponding to a compilation level, and designating a collection target corresponding to this record name, and designation by this designating means. The first aggregation means for reading out the data corresponding to the aggregation target from a predetermined file and totaling the records having the record name corresponding to the aggregation target, and the aggregation result of the records aggregated by the first aggregation means When totaling to a record of a higher level than the above, based on the arrangement position of the record name of this higher level, a totaling direction determining means for determining whether to total in the forward direction or the reverse direction, and the first totaling The record of the record name at the higher level arranged in the totaling direction determined by the totaling direction determining unit based on the totaling result of the records totaled by the totaling unit A form comprising: a second totaling means for totaling, and an output means for outputting each record totalized by the second totaling means in accordance with the arrangement order of the record names designated by the designating means. Output device.
【請求項2】前記出力手段は前記第二の集計手段で集計
された各レコードを前記指定手段で指定されたレコード
名の配置順にしたがって出力すると共に、前記集計方向
決定手段によって決定された集計方向に対応するフォー
マットで出力するようにしたことを特徴とする請求項
(1)記載の帳票出力装置。
2. The output means outputs the records totaled by the second totaling means according to the arrangement order of the record names designated by the designating means, and the totaling direction determined by the totaling direction determining means. The form output device according to claim 1, wherein the form output device outputs the form.
【請求項3】集計レベルに対応して集計レコードのレコ
ード名を任意に指定すると共に、このレコード名に対応
して集計対象を指定する指定手段と、 この指定手段によって指定された集計対象に該当するデ
ータを所定のファイルから読み出してこの集計対象に対
応するレコード名のレコードに集計する第一の集計手段
と、 この第一の集計手段によって集計されたレコードの集計
結果をそれよりも上位レベルにあるレコード名のレコー
ドに集計する第二の集計手段と、 この第二の集計手段で集計された各レコードを前記指定
手段で指定されたレコード名の並び順にしたがって出力
すると共に、各レコードの集計レベルのつながり具合に
応じたフォーマットで出力する出力手段と、 を具備したことを特徴とする帳票出力装置。
3. A specifying means for arbitrarily specifying a record name of a totalized record corresponding to a totaling level and specifying a totaling target corresponding to this record name, and corresponding to a totaling target specified by this specifying means. Data from a specified file and aggregate it into records with the record name corresponding to this aggregation target, and the aggregation results of the records aggregated by this first aggregation means to a higher level than that. A second totaling means for totaling records of a certain record name, and each record totaled by this second totaling means is output according to the order of arrangement of the record names specified by the specifying means, and the totaling level of each record is output. A form output device, comprising: an output unit that outputs in a format according to the connection state of.
JP16982193A 1993-06-17 1993-06-17 Form output device Expired - Lifetime JP3533469B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16982193A JP3533469B2 (en) 1993-06-17 1993-06-17 Form output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16982193A JP3533469B2 (en) 1993-06-17 1993-06-17 Form output device

Publications (2)

Publication Number Publication Date
JPH0778212A true JPH0778212A (en) 1995-03-20
JP3533469B2 JP3533469B2 (en) 2004-05-31

Family

ID=15893529

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16982193A Expired - Lifetime JP3533469B2 (en) 1993-06-17 1993-06-17 Form output device

Country Status (1)

Country Link
JP (1) JP3533469B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0224773A (en) * 1988-07-14 1990-01-26 Casio Comput Co Ltd Aggregate data processing device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0224773A (en) * 1988-07-14 1990-01-26 Casio Comput Co Ltd Aggregate data processing device

Also Published As

Publication number Publication date
JP3533469B2 (en) 2004-05-31

Similar Documents

Publication Publication Date Title
US7370271B2 (en) Methods and apparatus for generating a spreadsheet report template
JPH05113879A (en) Program creation and data processing method
JPH08180123A (en) Data processing device
US5870712A (en) Data processing method and its apparatus
KR940002481B1 (en) Method and apparatus for data processing
CN1150670A (en) data processing equipment
JP3109324B2 (en) Data aggregation device
US5805881A (en) Method and apparatus for generating arbitrary output records in response to output designation of records
US5642521A (en) Data processing apparatus for extracting and processing arbitrary records from a file
JP4501459B2 (en) Program, method and apparatus for creating cross table
JPH0778212A (en) Form output device
JP3109331B2 (en) Form output device
JP3554768B2 (en) Data aggregation device
JP3551445B2 (en) Form processing device
JP3482651B2 (en) Data processing device
JPH0793426A (en) Data processing device
JP3109330B2 (en) Form output device
JPH06309345A (en) Data output method
JPH06309344A (en) Data totalizing method
JP3064706B2 (en) Data processing device
JP3309164B2 (en) Print processing device
JPS6284337A (en) Specification information analysis method
JPH04181372A (en) Table sheet totalization system for data
JP2010153588A (en) Program, apparatus and method for analyzing data
JPH07282162A (en) Data processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040120

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040223

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090319

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100319

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110319

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110319

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120319

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 9