JPH0785176A - Data processing unit - Google Patents

Data processing unit

Info

Publication number
JPH0785176A
JPH0785176A JP5182175A JP18217593A JPH0785176A JP H0785176 A JPH0785176 A JP H0785176A JP 5182175 A JP5182175 A JP 5182175A JP 18217593 A JP18217593 A JP 18217593A JP H0785176 A JPH0785176 A JP H0785176A
Authority
JP
Japan
Prior art keywords
item
record
file
condition
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.)
Abandoned
Application number
JP5182175A
Other languages
Japanese (ja)
Inventor
Junji Mori
潤二 森
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 JP5182175A priority Critical patent/JPH0785176A/en
Publication of JPH0785176A publication Critical patent/JPH0785176A/en
Abandoned legal-status Critical Current

Links

Abstract

PURPOSE:To output a slip as an intended image based on a designated content by only designating record extract condition and a tabulation object item or the like in order to allow a person in charge of a job being a general user to obtain a desired slip without revision of a slip processing program. CONSTITUTION:A table structure analysis section 5 analyzes a tabulation definition table to generate various tables and configuration files and sets a print form to a print form memory 8. An expansion file generating section 9 references the content of the table to extract a predetermined record from a source file and to generate an expansion file. An expansion tabulation processing section 12 references the configuration file to generate a tabulation file from the expansion file. A print processing section 14 references the print form memory 8 to print out the content of the tabulation file.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、オフィスコンピュー
タやパーソナルコンピュータ等において、会計ファイ
ル、人事ファイル等からレコードデータを読み出して集
計するデータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing apparatus for reading record data from an accounting file, a personnel file, etc. and totaling the data in an office computer, a personal computer or the like.

【0002】[0002]

【従来の技術】従来、オフィスコンピュータや汎用コン
ピュータ等の事務処理装置においては、会計ファイル、
人事ファイル、売上伝票ファイル、在庫ファイル等、各
種多様のファイルを記憶管理しているが、各ファイルを
構成するレコード構造は、ファイル毎に異なっており、
同一レコード形態(レコードを構成する各項目が一致す
るレコード)毎にまとめて別ファイルとして記憶管理し
ている。ところで、所定のファイルからレコードを抽出
し、この抽出レコードの中から任意の項目データを読み
出してレコード集計を行い、この集計結果を帳票フォー
ムと共に出力させる帳票作成処理は、予めシステムエン
ジニア等の専門家が個々の帳票に1:1に対応させて設
計しておいた帳票処理プログラムにしたがって行われ
る。
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. By the way, a record is extracted from a predetermined file, arbitrary item data is read out from the extracted record, the record is totaled, and the form creation process for outputting the totalized result together with the form form is performed in advance by an expert such as a system engineer. Is performed according to a form processing program designed to correspond to each form 1: 1.

【0003】[0003]

【発明が解決しようとする課題】このように従来におい
ては、個々の帳票に1:1に対応させた個別の帳票処理
プログラムを予め設定しておく必要があるが、実際の業
務は時の経過につれて変化してゆく為、帳票処理プログ
ラムが現実に適合しなくなり、そのままでは業務内容に
マッチした帳票を得ることができなくなることがある。
このような場合、従来においては、予め作成しておいた
帳票処理プログラムの一部を変更して対処するようにし
ているが、多少の変更を加える場合でも、プログラミン
グ等の専門的で高度の知識を必要とする為、一般ユーザ
の業務担当者にあってはその変更は極めて困難であり、
システムエンジニアにプログラムの変更を依頼しなけれ
ばならないのが現状であった。この発明の課題は、帳票
処理プログラムを変更することなしに、一般ユーザであ
る業務担当者が所望する帳票を得る為に、レコード抽出
条件や集計対象項目等を単に指定しておくだけで、その
指定内容に基づいて意図したイメージ通りの帳票を出力
できるようにすることである。
As described above, in the conventional art, it is necessary to previously set an individual form processing program corresponding to each form in a one-to-one manner. As it changes with time, the form processing program may not fit in reality, and it may not be possible to obtain a form that matches the business content as it is.
In such a case, in the past, a part of the form processing program created in advance was changed to deal with it, but even if some changes are made, specialized and advanced knowledge such as programming is required. It is extremely difficult for general user business personnel to change the
In the current situation, it was necessary to ask the system engineer to change the program. An object of the present invention is to simply specify record extraction conditions, items to be totaled, etc. in order to obtain a form desired by a business person who is a general user without changing the form processing program. It is to be able to output the form according to the intended image based on the specified contents.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。 (1)、指定手段は集計レコードのデータ項目として出
力される項目名を指定し、かつこの各項目名に対応付け
て集計対象項目を指定すると共に複数の項目をレコード
抽出の条件項目として指定し、更に、各条件項目毎にそ
の抽出条件をそれぞれ指定するキー入力装置等である。 (2)、抽出手段はこの指定手段によって各項目名に対
応して指定された複数の抽出条件の全てに合致するレコ
ードを所定のファイルから抽出する。 (3)、読出手段はこの抽出手段によって抽出されたレ
コードの中から前記指定手段によって指定された集計対
象項目に該当する項目データを読み出す。 (4)、集計手段はこの読出手段によって読み出された
各項目データを前記指定手段で指定された項目名毎に集
計する。 (5)、出力手段はこの集計手段によって集計されたレ
コードを前記指定手段で指定された各項目名の並び順に
したがって出力するプリンタ装置等である。
The means of the present invention are as follows. (1) The designating means designates an item name output as a data item of a summary record, designates a summary item to be associated with each item name, and designates a plurality of items as condition items for record extraction. Further, it is a key input device or the like that specifies the extraction condition for each condition item. (2) The extraction unit extracts from the predetermined file a record that matches all of the plurality of extraction conditions designated by the designation unit in correspondence with each item name. (3) The reading means reads the item data corresponding to the totaling target item designated by the designating means from the records extracted by the extracting means. (4) The totaling means totals the item data read by the reading means for each item name designated by the designating means. (5) The output unit is a printer device or the like that outputs the records totaled by the totaling unit according to the arrangement order of the item names designated by the designating unit.

【0005】[0005]

【作用】この発明の手段の作用は次の通りである。い
ま、実際の業務を理解している業務担当者が所望する帳
票を得る為に、集計レコードのデータ項目として出力さ
れる項目名を指定したり、この各項目名に対応付けて集
計対象項目を指定すると共に複数の項目をレコード抽出
の条件項目として指定し、更には、この各条件項目毎に
抽出条件をそれぞれ指定しておく。すると、各項目名に
対応して指定された複数の抽出条件の全てに合致するレ
コードが所定のファイルから抽出されると共に、この抽
出レコードの中から集計対象項目に該当する項目データ
が読み出されてレコード集計され、この集計レコードが
指定された各項目名の並び順にしたがって出力される。
したがって、帳票処理プログラムを変更することなし
に、一般ユーザである業務担当者が所望する帳票を得る
為に、レコード抽出条件や集計対象項目等を単に指定し
ておくだけで、その指定内容に基づいて意図したイメー
ジ通りの帳票を出力することができる。
The operation of the means of the present invention is as follows. Now, in order to obtain the form desired by the person in charge of business who understands the actual business, the item names that are output as the data items of the total record are specified, and the items to be totaled are associated with each item name. Along with the designation, a plurality of items are designated as condition items for record extraction, and further, extraction conditions are designated for each condition item. Then, a record that matches all of the plurality of extraction conditions specified corresponding to each item name is extracted from the predetermined file, and the item data corresponding to the item to be totalized is read from this extracted record. Records are aggregated according to the order in which the designated item names are arranged.
Therefore, without changing the form processing program, in order to obtain the form desired by the business person who is a general user, simply specify the record extraction conditions, the items to be totaled, etc. You can output the form exactly as you intended.

【0006】[0006]

【実施例】以下、図1〜図21を参照して一実施例を説
明する。図1は本実施例に係るデータ処理装置のブロッ
ク構成図である。このデータ処理装置はオフィスコンピ
ュータを構成するもので、専門的知識を有しない業務担
当者等が集計定義表を用いて集計レベル毎に集計対象等
を任意に指定しておくだけで、この集計定義表の定義内
容に該当するレコードを所定ファイルから読み出して集
計レベルに応じた階層構造でレコードを分類集計し、こ
の集計結果を帳票データとして印刷出力するものであ
る。入力部1は各種のデータやコマンド等を入力するキ
ー入力装置で、入力部1から入力されたデータはパラメ
ータ設定部2に取り込まれて処理されると共に表示部3
に表示出力される。なお、入力部1は所定のキー操作に
応答してパラメータ設定部2に対して起動命令を与え
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An 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. for each aggregation level using the aggregation definition table. The records corresponding to the definition contents of the table are read from a predetermined file, the records are classified and aggregated in a hierarchical structure according to the aggregation level, and the aggregation 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 taken into a parameter setting unit 2 and processed, and a display unit 3 is provided.
Is displayed and output. The input unit 1 gives a start command to the parameter setting unit 2 in response to a predetermined key operation.

【0007】パラメータ設定部2は入力部1からの起動
命令に応答して動作し、業務担当者等が所望する任意の
レコード集計を指示する為に集計レコードのレコード名
や集計対象あるいは集計条件等を定義する定義表(本実
施例にあっては2種類のA表、B表)を入力部1から入
力されたデータにしたがって生成し、表示部3から表示
出力させると共に、パラメータファイル4に設定する。
なお、A表、B表については後で詳細に説明するので、
ここでは簡単に説明しておくものとする。例えば、所望
する帳票として図2に示す様な「経費実績表」を印刷出
力させる為に、この帳票の出力イメージにしたがった集
計定義表としてA表およびB表を生成しておく。ここ
で、図2に示す帳票は集計レコードのレコード名を行項
目に配置し、また集計レコードのデータ項目名を列項目
に配置したものであり、この帳票を得る為に定義された
A表は図3、B表は図4に示す様に構成されており、A
表は集計レベル毎に集計レコードのレコード名および集
計レコードとして抽出される項目内容等を定義する定義
表である。また、B表は集計レコードのデータ項目とし
て出力される項目名およびその項目名に対応してデータ
項目として抽出される出力対象項目あるいは帳票印刷時
の書式や集計条件等を定義する定義表である。
The parameter setting unit 2 operates in response to a start command from the input unit 1, and in order to instruct any record aggregation desired by a person in charge of business operation, the record name of the aggregation record, the aggregation target, the aggregation condition, etc. A definition table (in this embodiment, two types of A table and B table) that defines 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. To do.
Note that Tables A and B will be described in detail later, so
A brief explanation will be given here. For example, in order to print out the “expense record table” as shown in FIG. 2 as a desired form, tables A and B are generated in advance as a summary definition table according to the output image of this form. Here, in the form shown in FIG. 2, the record name of the totalized record is arranged in the line item, and the data item name of the totalized record is arranged in the column item, and the table A defined for obtaining this form is 3 and B are structured as shown in FIG.
The table is a definition table that defines, for each aggregation level, the record name of the aggregation record and the content of items extracted as the aggregation record. Further, the table B is a definition table that defines the item names output as the data items of the totalized record and the output target items extracted as the data items corresponding to the item names, the format at the time of printing the form, the totaling conditions, and the like. .

【0008】パラメータファイル4にはA表、B表に対
応してその基本フォーマット(罫線データ等)が予めメ
ーカサイドによって固定的に格納されている他に、入力
部1から任意に入力された各種帳票のA表パラメータデ
ータ、B表パラメータデータおよび、入力部1から任意
に入力された各種の帳票名とA表パラメータデータ、B
表パラメータデータとを対応付ける対応テーブルが記憶
されている。
In the parameter file 4, the basic formats (ruled line data, etc.) corresponding to the tables A and B are fixedly stored in advance by the maker side, and various types are arbitrarily input from the input section 1. Table A parameter data and B table parameter data of the form, and various form names and A table parameter data arbitrarily input from the input unit 1 and B
A correspondence table that correlates with the table parameter data is stored.

【0009】表構造解析部5は帳票印刷時に入力部1か
ら入力された起動命令にしたがって動作し、出力対象と
して任意に指定された帳票名に対応するA表パラメータ
データ、B表パラメータデータを解析し、その解析結果
にしたがって各種のパラメータ解析テーブル6を作成す
る。この場合、本実施例においてはパラメータ解析テー
ブル6として図5(A)に示す様なA表結合テーブル、
図5(B)に示す様なB表結合テーブル、図5(C)に
示す様なB表条件テーブル、図5(D)に示す様なB表
集計項目テーブルの他、図示しないがB表計算式テーブ
ルを作成する。また、表構造解析部5はA表に定義され
ている集計レベルに応じた階層構造等を解析し、その解
析結果に基づいて構成ファイル7を作成する。なお、構
成ファイル7は後で詳述するが、A表内の集計対象項目
とそれに対応する集計レコードとの対応関係や集計レベ
ルの階層構造における上下関係(親子関係)等を表わす
各種の構成レコードから成るものである。更に、表構造
解析部5はB表のヘッダー位置に定義されている各欄の
項目名、例えば“経費項目”、“期初計画”……等の名
称を読み出して印刷書式メモリ8に設定する他、B表の
書式の位置に定義されている各欄の印刷書式を読み出し
て印刷書式メモリ8に設定する。その後、表構造解析部
5は展開ファイル作成部9に起動命令を与える。印刷書
式メモリ8はB表に定義されている項目名、印刷書式の
他に、集計レベルに応じて帳票フォーマットを生成する
為のデータを記憶する。
The table structure analysis unit 5 operates according to a start command input from the input unit 1 when printing a form, and analyzes the A table parameter data and the B table parameter data corresponding to the form name arbitrarily designated as an output target. Then, various parameter analysis tables 6 are created according to the analysis results. In this case, in the present embodiment, as the parameter analysis table 6, the A table join table as shown in FIG.
In addition to the B table join table as shown in FIG. 5B, the B table condition table as shown in FIG. 5C, the B table total item table as shown in FIG. Create a formula table. Further, the table structure analysis unit 5 analyzes the hierarchical structure or the like according to the aggregation level defined in the table A, and creates the configuration file 7 based on the analysis result. The configuration file 7 will be described in detail later, but various configuration records representing the correspondence between the items to be aggregated in the table A and the corresponding aggregate records, the vertical relation (parent-child relation) in the hierarchical structure of the aggregation level, and the like. It consists of Further, the table structure analysis unit 5 reads out the item names of the respective fields defined in the header position of the table B, for example, "expense item", "initial plan" ..., and sets them in the print format memory 8. , B, the print format of each column defined in the format position of the table is read and set in the print format memory 8. After that, the table structure analysis unit 5 gives a start command to the expansion file creation unit 9. The print format memory 8 stores, in addition to the item names and print formats defined in the table B, data for generating a form format according to the aggregation level.

【0010】展開ファイル作成部9はパラメータ解析テ
ーブル6内の各種テーブル内容を参照し、データファイ
ル10を構成する各種のソースファイルの中から集計対
象ファイルを指定したり、この集計対象ファイルから抽
出したレコードに基づいて1レコードずつ展開レコード
を順次生成し、展開ファイル11に書き出す。これによ
って展開ファイル11を作成すると、展開ファイル作成
部9は展開集計処理部12に起動命令を与える。
The expansion file creating unit 9 refers to various table contents in the parameter analysis table 6 to specify a file to be totalized from various source files constituting the data file 10 or extract from the file to be totalized. The expansion record is sequentially generated one by one based on the record and is written in the expansion file 11. When the expansion file 11 is created in this way, the expansion file creation unit 9 gives a start command to the expansion aggregation processing unit 12.

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

【0012】次に、本実施例の動作を説明する。先ず、
所望する帳票を得る為に入力部1からA表、B表の作成
を指示すると、パラメータ設定部2はこれに応答して動
作する。先ず、A表作成時にパラメータ設定部2はパラ
メータファイル4から読み出したA表の基本フォーマッ
トにしたがって表枠等を表示出力させる。ここで、図3
に示す如く、A表の基本フォーマットはその行方向の見
出し部として6段階の集計レベルを表わすアルファベッ
ト文字A、B、C、D、E、Fと、各集計レベルを区分
する括り用の罫線フォーマットが表示され、この括り用
の罫線は集計レベル毎に列方向に“ずれて”表示され、
この“ずれ”によって集計レベルの階層構造を表現して
いる。この場合の階層構造はA>B>C>D>E>Fの
関係にある。ここで、A表の行項目には集計レコードの
レコード名が集計レベルに対応させて入力され、また、
その列方向には集計対象のファイル名およびそのファイ
ルから集計レコードとして抽出されるべき項目名が入力
される。なお、A表の基本フォーマットはその一部を適
宜修正変更可能であり、表枠全体を伸長したり、縮少す
ることもできるようにしてある。
Next, the operation of this embodiment will be described. First,
When the input unit 1 gives an instruction to create the tables A and B in order to obtain a 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. Here, FIG.
As shown in, the basic format of table A is alphabetical characters A, B, C, D, E, F, which represent the 6 levels of aggregation as the heading portion in the row direction, and a ruled line format for grouping that separates each aggregation level. Is displayed, and the ruled lines for bundling are displayed "shifted" in the column direction for each aggregation level,
This "deviation" expresses the hierarchical structure of the aggregation level. The hierarchical structure in this case has a relationship of A>B>C>D>E> F. Here, the record name of the summary record is entered in the row item of table A in association with the summary level, and
In the column direction, the file name to be totaled and the item name to be extracted as a totalized record from the file are input. A part of the basic format of the table A can be modified and changed as appropriate, and the entire table frame can be expanded or contracted.

【0013】いま、A表の基本フォーマットが表示出力
されている状態において、業務担当者は入力部1からA
表のパラメータデータを入力する。ここで、A表の行方
向の見出し部には、各集計レベルに対応して任意の名称
が集計レコードのレコード名として入力されている。例
えば、行No「01」には集計レベルAに対応してレコー
ド名「計」が入力され、また、行No「02」には集計レ
ベルBに対応してレコード名「固定費」、行No「03」
には集計レベルCに対応してレコード名「人件費」……
が入力されている。なお、上述の例では集計レベル毎に
任意のレコード名を入力部1から直接入力するようにし
たが、使用するレコード名が予め定まっている場合に
は、これら使用予定のレコード名をテーブルに記憶して
おき、レコード名入力時にこのテーブル内容をウィンド
ゥ画面に一覧表示させ、その中から任意のレコード名を
選択することによってレコード名を入力するようにして
もよい。また、レコード名は名称に限らず、コードであ
ってもよい。
Now, in the state in which the basic format of the table A is displayed and output, the person in charge of business inputs from the input section 1 to A
Enter the parameter data in the table. Here, in the row heading portion of the table A, an arbitrary name is input as the record name of the totalized record corresponding to each totaling level. For example, in row No. “01”, the record name “total” is input corresponding to the aggregation level A, and in row No. “02”, the record name “fixed cost” and row No. corresponding to the aggregation level B. "03"
The record name "personnel cost" corresponds to the aggregation level C ...
Has been entered. In the above example, an arbitrary record name is directly input from the input unit 1 for each aggregation level. However, if the record name to be used is predetermined, these record names to be used are stored in the table. Alternatively, 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.

【0014】また、A表の見出し部には、任意のファイ
ル名および項目名が入力されている。例えば、図3に示
すA表においては2種類のファイル名「計画FIL
E」、「会計FILE」が入力されており、これによっ
て集計レコードをどのファイルから抽出すべきかの対象
ファイル名が定義されている。また、ファイル名「計画
FILE」に対応してその項目名「予算項目」が入力さ
れ、また、ファイル名「会計FILE」に対応してその
項目名「勘定科目」が入力されており、これによって集
計レコードとして抽出すべき対象項目名が定義されてい
る。更に、A表の行方向および列方向の見出し部によっ
て構成されるマトリックス状の各入力エリアには、集計
対象項目の具体的な項目内容(項目コード)が入力され
ている。例えば、行No「03」、即ち、集計レベルCに
対応するレコード名「人件費」については、「計画FI
LE」の「予算項目」に対応して項目コード「10
1」、「102」が入力され、また、「会計FILE」
の「勘定科目」に対応して項目コード「2111」、
「2112」、「2134」が入力されており、これに
よって計画ファイルを構成する予算項目のうち、項目コ
ード「101」、「102」に該当するレコードを抽出
すべきことが定義され、また、会計ファイルを構成する
勘定項目のうち、項目コード「2111」、「211
2」、「2134」に該当するレコードを抽出すべきこ
とが定義されている。
Further, an arbitrary file name and item name are entered in the heading section of table A. For example, in the table A shown in FIG. 3, two types of file names “plan FIL
"E" and "accounting file" are entered, and the target file name from which the total record should be extracted is defined by this. Further, the item name "budget item" is entered corresponding to the file name "plan FILE", and the item name "account item" is entered corresponding to the file name "accounting file". Target item names to be extracted as summary records are defined. Further, specific item contents (item codes) of the items to be totaled are entered in each matrix-shaped input area formed by the heading portions in the row direction and the column direction of the table A. For example, for line No. “03”, that is, for the record name “personnel expenses” corresponding to the aggregation level C, “Plan FI
Item code "10" corresponding to "budget item" of "LE"
"1" and "102" are entered, and "Accounting FILE"
Item code “2111” corresponding to “Account”
"2112" and "2134" have been entered, which defines that records corresponding to the item codes "101" and "102" should be extracted from the budget items constituting the plan file. Of the account items that make up the file, item codes "2111" and "211"
It is defined that records corresponding to "2" and "2134" should be extracted.

【0015】また、A表には各行Noに対応して管理単位
エリアが設けられており、任意の行を指定してそれに対
応する位置に丸印を入力することにより当該行は項目コ
ードが入力されるエリアであることを示す。これはA表
の定義内容を行単位毎に解析する際に、当該丸印が付さ
れている行が解析対象となり、その他の行を対象から外
すことによって処理スピードの向上を図る為である。同
時に、業務担当者が抽出集計すべきデータがソースファ
イル(会計FILEなど)にある事を確認する意味もあ
る。なお、図3で示したA表においては、ファイル名と
して2種類入力した例を示したが、3種類以上入力して
もよく、また1つのファイル名に対応してそれぞれ1つ
ずつの項目名を入力したが、1つのファイル名に対応さ
せて2以上の項目名を入力するようにしてもよい。この
ようにしてA表を作成すると、パラメータ設定部2はそ
のパラメータデータをパラメータファイル4に設定す
る。
Further, the table A has a management unit area corresponding to each row No. By designating an arbitrary row and inputting a circle mark at a position corresponding to the row, an item code is inputted to the row. Indicates that this is an area to be covered. This is because, when the definition contents of the 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 makes sense that the person in charge of business confirms that the data to be extracted and aggregated is in the source file (accounting file, etc.). In addition, in the table A shown in FIG. 3, an example in which two types are input as the file name is shown, but three or more types may be input, and one item name corresponds to one file name. However, it is also possible to input two or more item names in association with one file name. When the table A is created in this way, the parameter setting unit 2 sets the parameter data in the parameter file 4.

【0016】次に、パラメータ設定部2はパラメータフ
ァイル4からB表の基本フォーマットを読み出して表示
出力させる。ここで、図4に示す如く、この行方向の見
出し部にはその行項目のラベルとして「書式」、「対象
FILE」、「集計項目」、「計算式」、「条件項
目」、「条件値」、「条件項目」、「条件値」が予め固
定的に設定されており、また、B表の列方向における見
出し部の各列項目はその項目位置を示す名称として
「A」、「B」、「C」、……「G」に対応付けられて
いる。なお、B表においてもA表と同様に、その基本フ
ォーマットの一部を適宜修正変更可能であり、表枠全体
を伸長したり、縮少することもできるようにしてある。
Next, the parameter setting unit 2 reads the basic format of the table B from the parameter file 4 and outputs it for display. Here, as shown in FIG. 4, in the heading portion in the row direction, as the label of the row item, “format”, “target FILE”, “total item”, “calculation formula”, “condition item”, “condition value” , “Condition item”, and “condition value” are fixedly set in advance, and each column item in the heading section in the column direction of table B has “A” and “B” as names indicating the item position. , “C”, ..., “G”. Similar to the table A, in the table B, a part of the basic format can be appropriately modified and changed, and the entire table frame can be expanded or contracted.

【0017】いま、B表の基本フォーマットが表示出力
されている状態において、業務担当者は入力部1からB
表のパラメータデータを入力する。ここで、B表の列方
向における見出し部には集計レコードのデータ項目とし
て印刷出力される項目名が入力されている。例えば、項
目位置「A」には「経費項目」、項目位置「B」には
「期初計画」、項目位置「C」には「修正計画」、項目
位置「D」、「E」にはその共有項目として「実積」お
よびその下位項目として項目位置「D」には「部門経
費」、項目位置「E」には「付替経費」、更に項目位置
「F」には「実積計」、項目位置「G」には「計画差」
が入力されている。
Now, in the state in which the basic format of the table B is displayed and output, the person in charge of business operations inputs from the input section 1 to the B
Enter the parameter data in the table. Here, in the heading portion in the column direction of table B, the item name to be printed out as the data item of the total record is input. For example, the item position "A" is "expense item", the item position "B" is "initial plan", the item position "C" is "corrected plan", the item positions "D", "E" are As a shared item, “actual product” and its subordinate items are “department expense” at item position “D”, “replacement expense” at item position “E”, and “actual volume total” at item position “F”. , "Plan difference" in item position "G"
Has been entered.

【0018】また、B表の行項目において、「書式」に
は項目データの印刷書式として列項目毎に欄幅、文字
種、文字サイズ等が入力されている。また、次の「対象
FILE」には列項目位置「B」、「C」に対応して
「計画FILE」が入力され、列項目位置「D」、
「E」に対応して「会計FILE」が入力されている。
更に、次の「集計項目」は集計対象として抽出されたレ
コードの中からどの項目データを集計すべきかを定義す
るもので、列項目位置「B」、「C」に対応して「予算
額+」が入力され、また、列項目位置「D」、「E」に
対応して「借方金額+」および「貸方金額−」が入力さ
れている。ここで、プラス/マイナスの符号はレコード
集計時の加算集計あるいは減算集計を定義するものであ
る。
In the row item of table B, the column width, the character type, the character size, etc. are input for each column item as the print format of the item data in "Format". Further, in the next "target FILE", "planned FILE" is input corresponding to the column item positions "B" and "C", and the column item position "D",
"Accounting FILE" is entered corresponding to "E".
Further, the next “total item” defines which item data should be totaled from the records extracted as the total target, and corresponds to the column item positions “B” and “C”, “budget amount + Is entered, and "debit amount +" and "credit amount-" are entered corresponding to the column item positions "D" and "E". Here, the plus / minus sign defines the addition total or the subtraction total when the records are totaled.

【0019】次に、B表の列項目位置B、C、D……に
対応する「計算式」の各欄には、出力される集計レコー
ドを加工する為の計算式が入力されている。ここで、あ
る項目データをそのまま出力すべきことを定義する場合
には、その項目位置に対応する欄内に計算式を記述する
必要はないが、ある項目データを加工すべきことを定義
する場合には、その項目位置に対応する欄内にその加工
内容を示す計算式を記述しておく。計算式は任意の欄位
置を変数とするもので、この欄位置と、定数と、簡単な
演算子を用いて記述するようにしている。欄位置はB表
の列項目位置によって表わされるが、他の計算式の結果
を参照すべき場合には、その計算式が入力されている行
Noが列項目位置に付加される。なお、計算式の記述とし
て図4に示す計算式「D+E」は列項目位置D、Eに対
応する集計レコード内の項目データを加算すべきことを
定義する。また、計算式「B/1000」は列項目位置
Bに対応する項目データを“1000”で割ってその値
を“千”の単位で出力すべきことを定義する。更に、計
算式「C−F」は列項目位置Cに対応する項目データか
ら欄位置F1に入力されている計算式「D+E」の結果
を減算すべきことを定義する。
Next, in each column of the "calculation formula" corresponding to the column item positions B, C, D ... In the table B, a calculation formula for processing the output aggregate record is input. Here, when defining that certain item data should be output as it is, it is not necessary to describe the calculation formula in the column corresponding to that item position, but when defining that certain item data should be processed. In, a calculation formula indicating the processing content is described in the column corresponding to the item position. The calculation formula uses an arbitrary column position as a variable, and is described by using this column position, a constant, and a simple operator. The column position is represented by the column item position in Table B. If the result of another formula should be referred to, the line in which that formula is entered.
No is added to the column item position. As the description of the calculation formula, the calculation formula “D + E” shown in FIG. 4 defines that the item data in the aggregation record corresponding to the column item positions D and E should be added. Further, the calculation formula "B / 1000" defines that the item data corresponding to the column item position B should be divided by "1000" and the value should be output in the unit of "thousands". Further, the calculation formula "C-F" defines that the result of the calculation formula "D + E" input to the column position F1 should be subtracted from the item data corresponding to the column item position C.

【0020】一方、B表の列項目位置B、C、D……に
対応する複数の「条件項目」は、A表の定義内容によっ
て抽出されたレコードを更に絞り込む為の抽出条件項目
を定義するもので、本実施例においては各列項目毎に2
種類の「条件項目」に対応してその項目名および条件値
をそれぞれ定義できるようになっている。例えば、図示
のB表において、列項目位置「B」、「C」には第1の
条件項目名としてそれぞれ「計画種別」、第2の条件項
目名として「年度」が入力されており、この「計画種
別」の条件値として列項目位置「B」には「1」、列項
目位置「C」には「2」、「3」、「4」が入力され、
また「年度」の条件値として列項目位置「B」には「1
992」が入力され、また、列項目位置「C」には「1
993」が入力されている。同様に、列項目位置
「D」、「E」には第1の条件項目名として「相手勘
定」、第2の条件項目名として「年度」が入力されてお
り、この「相手勘定」の条件値として列項目位置Dには
「≠0011(0011を除く他の全てのコードを有す
るレコードを抽出すべきことを示している)」が入力さ
れ、列項目位置「E」には「=0011(0011に該
当するコードを有するレコードを抽出すべきことを示し
ている)」が入力され、また「年度」の条件値として列
項目位置「D」には「1992」が入力され、また列項
目位置「E」には「1993」が入力されている。な
お、図4に示す様に、第1の条件項目に対応する条件値
の入力エリアはそれぞれ3行に区分されており、各行に
1:1に対応させて条件値をそれぞれ入力できるように
なっている。このように1つの条件項目に複数の条件値
が入力されている場合、その項目のレコード抽出の条件
は論理和(or条件)を意味するが、第1の条件項目の
条件値と第2の条件項目の条件値との間では論理積(a
nd条件)を意味する。このようにB表の列項目毎に設
けられている複数の「条件項目」に対応してその項目名
および条件値をそれぞれ定義しておくと、レコード集計
を開始する前処理としてこの定義内容に基づいて集計対
象レコードの絞り込みが行われる。つまり、B表の列項
目毎に複数の条件値に合致するレコード(各条件値の論
理積に合致するレコード)が集計対象として抽出され
る。このようにしてB表を作成すると、パラメータ設定
部2はそのパラメータデータをパラメータファイル4に
設定する。
On the other hand, a plurality of "condition items" corresponding to the column item positions B, C, D ... of Table B define extraction condition items for further narrowing down the records extracted according to the definition contents of Table A. In this embodiment, 2 for each row item.
The item name and condition value can be defined for each type of "condition item". For example, in the illustrated table B, the column item positions “B” and “C” have “plan type” entered as the first condition item name and “fiscal year” entered as the second condition item name. As the condition value of “plan type”, “1” is input to the column item position “B”, “2”, “3”, and “4” are input to the column item position “C”,
In addition, the column item position “B” is set to “1” as the condition value of “year”
"992" is input, and "1" is entered in the column item position "C".
"993" has been entered. Similarly, in the column item positions "D" and "E", "counterpart account" is entered as the first condition item name and "fiscal year" is entered as the second condition item name. As a value, “≠ 0011 (indicating that records having all other codes except 0011 should be extracted)” is input to the column item position D, and “= 0011 (is indicated to the column item position“ E ”. "Indicating that a record having a code corresponding to 0011 should be extracted)" is input, and "1992" is input to the column item position "D" as the condition value of "year". “1993” is input to “E”. As shown in FIG. 4, the condition value input area corresponding to the first condition item is divided into three lines, and the condition values can be input in a one-to-one correspondence with each line. ing. In this way, when a plurality of condition values are input to one condition item, the record extraction condition of that item means a logical sum (or condition), but the condition value of the first condition item and the second condition value The logical product (a
nd condition). In this way, if the item name and the condition value are respectively defined corresponding to a plurality of “condition items” provided for each column item in the table B, the definition contents will be set as the preprocessing for starting the record aggregation. The records to be totaled are narrowed down based on this. In other words, records that match a plurality of condition values (records that match a logical product of condition values) for each column item of table B are extracted as the aggregation target. When the table B is created in this way, the parameter setting unit 2 sets the parameter data in the parameter file 4.

【0021】このようにして、A表、B表を作成した
後、入力部1から任意の帳票名を指定してその印刷指令
を与えると、表構造解析部5は図6に示すフローチャー
トにしたがって動作する。なお、図6は表構造解析部5
の全体動作の概要を示したゼネラルフローで、先ず、表
構造解析部5はパラメータファイル4から指定帳票のA
表パラメータデータを読み出してA表結合テーブルを作
成すると共に(ステップA1)、構成ファイルを作成す
る(ステップA2)。次に、表構造解析部5はパラメー
タファイル4から指定帳票のB表パラメータデータを読
み出してB表の結合テーブルを作成すると共に(ステッ
プA3)、条件テーブル(ステップA4)、集計項目テ
ーブル(ステップA5)、計算式テーブル(ステップA
6)をそれぞれ作成する。その後、B表のパラメータデ
ータから書式に関するデータを取り出して印刷書式メモ
リ8に書き込む(ステップA7)。
After the tables A and B are created in this way, when an arbitrary form name is designated from the input section 1 and a print command is given, the table structure analysis section 5 follows the flowchart shown in FIG. Operate. Note that FIG. 6 shows the table structure analysis unit 5
In the general flow showing the outline of the overall operation of the table structure analysis unit 5, first, the table structure analysis unit 5 reads the designated form A from the parameter file 4.
The table parameter data is read to create a table A connection table (step A1) and a configuration file is created (step A2). Next, the table structure analysis unit 5 reads the B table parameter data of the specified form from the parameter file 4 to create a combined table of the B table (step A3), a condition table (step A4), and a total item table (step A5). ), Formula table (step A
Create 6) respectively. Then, the format data is extracted from the parameter data in Table B and written in the print format memory 8 (step A7).

【0022】図7はA表結合テーブルの作成フローを示
したもので、表構造解析部5はA表の列方向の見出し部
を解析して図5(A)に示す様なA表結合テーブルを作
成する。ここで、A表結合テーブルはA表に定義されて
いるファイル名と項目名とを対応付ける対応テーブル
で、「ファイル名」、「シークェンシャル番号SE
Q」、「項目名」、「ファイル記号」とから成る。ここ
で、シークェンシャル番号SEQは同一ファイル内に定
義されている項目名を「01」から連続番号で特定する
為のコードであり、また、「ファイル記号」はA表に定
義されているファイルを「1」から連続番号で特定する
為のコードである。先ず、表構造解析部5はパラメータ
ファイル4から指定帳票のA表パラメータデータを読み
出すと共に(ステップB1)、ファイル記号として初期
値「1」を指定しておく(ステップB2)。そして、A
表の列方向の見出し部をその先頭から順次解析してゆ
く。即ち、表構造解析部5は先ず、A表に定義されてい
る先頭ファイル名を指定したのち(ステップB3)、シ
ークェンシャル番号SEQの初期値「1」を指定し(ス
テップB4)、更にこの先頭ファイル名に対応する最初
の項目名を指定する(ステップB5)。これによって指
定されたファイル名、シークェンシャル番号SEQ、項
目名、ファイル記号をA表結合テーブルに書き込む(ス
テップB6)。この場合、図3に示すA表であれば、A
表結合テーブルの1行目には図5(A)に示す様なデー
タが書き込まれる。次に、同一ファイル名に対応して他
の項目名が定義されていれば(ステップB7)、シーク
ェンシャル番号SEQに「1」を加算してその値を更新
すると共に(ステップB8)、次の項目名を指定し(ス
テップB5)、A表結合テーブルへの書き込みを行う
(ステップB6)。以下、同一ファイル名に対応する全
ての項目名を指定し終るまで上述の動作を繰り返す。こ
の結果、全ての項目名を指定し終ると、次のステップB
9に進み、A表に他のファイル名が有れば、それを条件
にファイル記号「1」を加算し、その値の更新を行う
(ステップB10)。以下、ステップB3に戻り、A表
から当該他のファイル名を指定すると共に、そのファイ
ル名に対応する全ての項目名を順次指定しながらA表結
合テーブルへの書き込みを行う。
FIG. 7 shows a flow of creating the A table join table. The table structure analysis unit 5 analyzes the column direction heading portion of the A table to analyze the A table join table as shown in FIG. 5 (A). To create. Here, the A table connection table is a correspondence table that associates the file names defined in the A table with the item names. The "file name" and "sequential number SE
It consists of "Q", "item name", and "file symbol". Here, the sequential number SEQ is a code for specifying the item names defined in the same file by consecutive numbers from "01", and the "file symbol" is the file defined in the table A. It is a code for specifying "1" by a serial number. First, the table structure analysis unit 5 reads the table A parameter data of the specified form from the parameter file 4 (step B1), and specifies the initial value "1" as the file symbol (step B2). And A
The heading portion in the column direction of the table is sequentially analyzed from the beginning. That is, the table structure analysis unit 5 first specifies the first file name defined in the table A (step B3), then specifies the initial value "1" of the sequential number SEQ (step B4), and further The first item name corresponding to the first file name is designated (step B5). The file name, the sequential number SEQ, the item name, and the file symbol designated by this are written in the A table connection table (step B6). In this case, if the table A shown in FIG.
Data as shown in FIG. 5A is written in the first row of the table combination table. Next, if another item name is defined corresponding to the same file name (step B7), "1" is added to the sequential number SEQ to update the value (step B8), and next. Item name is designated (step B5), and writing to the table A connection table is performed (step B6). Hereinafter, the above operation is repeated until all the item names corresponding to the same file name are designated. As a result, when all the item names have been specified, the next step B
If there is another file name in the table A, the file symbol "1" is added under that condition and the value is updated (step B10). After that, returning to step B3, while writing the other file name from the table A and sequentially designating all the item names corresponding to the file name, writing to the table A connection table is performed.

【0023】次に、図6で示した構成ファイル7の作成
処理(ステップA2)を図8〜図12を参照して詳述す
る。図8〜図10は構成ファイル7を作成する際の動作
を示したフローチャートであり、また、図11はこの場
合における表構造解析部5の動作内容を図式的に示した
図、また図12は作成された構成ファイル7を示した図
である。なお、図11の(A)は構成ファイル7のレコ
ード構造を示したもので、この構成レコードは「子フー
ド」、「親コード」、「終了フラグ」、「名称」とから
成り、「子フード」および「親コード」はA表内の集計
対象項目とそれに対応する集計レコードとの対応関係を
表わしたり、集計レベルの階層構造における上下関係
(親子関係)を表わすレコードである。また、「終了フ
ラグ」は親コードに集計レベルAが含まれている場合に
“1”となるフラグであり、終了フラグが“1”にセッ
トされている場合にはそれよりも上位レベルへのレコー
ド集計を行わないことを示している。「名称」はA表に
定義されている集計レコードのレコード名である。先
ず、表構造解析部5はA表パラメータの先頭行を指定し
(ステップC1)、指定行の集計レベルは最上位のレベ
ルAか否かをチェックする(ステップC2)。ここで、
集計レベルがAであれば、初期設定の為に、表構造解析
部5内の最終項目ワークメモリ(図11の(B)参照)
の内容を全てクリアしておくと共に(ステップC3)、
現在着目中のレベル(現在レベル)として集計レベルA
を指定しておく(ステップC4)。この状態において、
現在レベルと現在着目している行(現在行)の行Noとか
らレベル行データを生成する(ステップC5)。例え
ば、図3に示すA表を例に挙げると、A表の先頭行は集
計レベルAであり、かつその行Noは「01」であるの
で、この現在レベルと行Noとを組み合せたレベル行デー
タ「A01」を生成する。次に、このレベル行データ
「A01」と現在行の名称(集計レコードのレコード名
「計」)とを最終項目ワークメモリの現在レベルAに対
応する位置にセットする(ステップC6)。なお、最終
項目ワークメモリは図11の(B)に示す様に集計レベ
ルA、B、C、D……に対応してレベル行データおよび
名称を記憶する構成となっており、構成レコード作成時
のワークメモリである。
Next, the process of creating the configuration file 7 shown in FIG. 6 (step A2) will be described in detail with reference to FIGS. 8 to 10 are flowcharts showing the operation when creating the configuration file 7, FIG. 11 is a diagram schematically showing the operation content of the table structure analysis unit 5 in this case, and FIG. 12 is It is a figure showing composition file 7 created. Note that FIG. 11A shows the record structure of the configuration file 7, and this configuration record consists of "child hood", "parent code", "end flag", and "name". And “parent code” are records showing the correspondence between the items to be totalized in the table A and the corresponding totalized records, and the vertical relationship (parent-child relationship) in the hierarchical structure of the totaling level. Further, the "end flag" is a flag that becomes "1" when the parent code includes the aggregation level A, and when the end flag is set to "1", it is set to a higher level than that. It indicates that record aggregation is not performed. “Name” is the record name of the totalized record defined in table A. First, the table structure analysis unit 5 specifies the first row of the A table parameter (step C1), and checks whether the totaling level of the specified row is the highest level A (step C2). here,
If the aggregation level is A, the final item work memory in the table structure analysis unit 5 for initial setting (see (B) of FIG. 11)
While clearing all the contents of (Step C3),
Aggregation level A as the level currently being focused on (current level)
Is designated (step C4). In this state,
Level line data is generated from the current level and the line number of the line of interest (current line) (step C5). For example, taking the table A shown in FIG. 3 as an example, the first row of the table A is the aggregation level A, and the row number is "01". Therefore, the level row combining the current level and the row number is shown. Data “A01” is generated. Next, the level line data “A01” and the name of the current line (record name “total” of the totalized record) are set at the position corresponding to the current level A of the final item work memory (step C6). As shown in FIG. 11B, the final item work memory is configured to store level line data and names corresponding to the aggregation levels A, B, C, D ... Is the work memory of.

【0024】次に、現在行の管理単位エリアに丸印が付
されているか否かをチェックする(ステップC7)。い
ま、図3に示す様に先頭行には丸印が付されていないの
で、A表の次行に着目してその行にレコード名が設定さ
れているか否かをチェックする(ステップC8)。ここ
で、設定有りが検出されると、現在行を更新して次行の
指定を行う(ステップC9)。これによってA表の2行
目が指定されると次に、ステップC2に戻るが、この場
合、2行目の集計レベルはB、したがってステップC1
0に進み、指定行のレベルが現在レベルを越えたか否か
のエラーチェックを行い、越えていれば、最終項目メモ
リ内で指定行のレベル以下の内容を全てクリアしておく
(ステップC11)。
Next, it is checked whether or not the management unit area of the current line is circled (step C7). Now, as shown in FIG. 3, since the first row is not marked with a circle, attention is paid to the next row of table A to check whether or not a record name is set in that row (step C8). When the setting is detected, the current line is updated and the next line is designated (step C9). When the second row of the A table is designated by this, the process then returns to step C2. In this case, the totaling level of the second row is B, and therefore step C1.
The process proceeds to 0, and an error check is performed to see if the level of the specified line exceeds the current level. If the level is exceeded, all contents below the level of the specified line are cleared in the last item memory (step C11).

【0025】いま、指定行レベルBは現在レベルのA未
満であるので、ステップC12に進み、指定行レベルを
現在レベルとして現在レベルの更新を行う。次に、現在
レベルと現在行の行Noとからレベル行データを生成し
(ステップC13)、このレベル行データと現在行の名
称とを最終項目ワークメモリの現在レベルに対応する位
置にセットする(ステップC14)。この場合、レベル
行データ「B02」、名称「固定費」が現在レベルBに
対応する位置にセットされる(図11の(B)参照)。
次に、このレベル行データの先頭に記号(・)を結合し
(ステップC15)、この結合データを図11の(A)
に示す様に構成レコードの子コードとしてセットする
(ステップC16)。ここで、記号(・)はA表のうち
項目コードが入力されていない行を着目行とした場合に
セットされるもので、これによってソースファイルと対
応関係が無いことを示している。そして、図9のステッ
プC17に進み、最終項目ワークメモリの中から(現在
レベル+1)のレベル位置に格納されているレベル行デ
ータを読み出し、このレベル行データの先頭に記号
(・)を結合し、この結合コードを構成レコードの親コ
ードとしてセットする(ステップC18)。いま、現在
レベルはB、したがって最終項目ワークメモリのレベル
Aの位置に格納されているレベル行データ「A01」に
記号(・)を結合した結合コードが親コードとなる(図
11の(A)参照)。ここで、親コードのレベルがAで
あれば(ステップC19)、構成レコードの終了フラグ
に“1”をセットする(ステップC20)。次に、親コ
ードの名称を最終項目ワークメモリから読み出して構成
レコードの名称としてセットする(ステップC21)。
このようにして1レコード分のデータとして子コード
「・B02」、親コード「・A01」、終了フラグ
「1」、名称「計」が揃うと、この構成レコ−ドは構成
ファイル7に書き出される(ステップC22)。
Since the designated row level B is now lower than the current level A, the flow advances to step C12 to update the current level with the designated row level as the current level. Next, level line data is generated from the current level and the line number of the current line (step C13), and the level line data and the name of the current line are set at the position corresponding to the current level of the final item work memory ( Step C14). In this case, the level row data “B02” and the name “fixed cost” are set at the position corresponding to the current level B (see FIG. 11B).
Next, a symbol (•) is combined at the beginning of this level row data (step C15), and this combined data is shown in FIG.
It is set as a child code of the configuration record as shown in (step C16). Here, the symbol (•) is set when the line of the table A in which the item code is not input is the line of interest, which indicates that there is no correspondence with the source file. Then, proceeding to step C17 in FIG. 9, the level line data stored at the level position (current level + 1) is read out from the last item work memory, and the symbol (•) is combined at the beginning of this level line data. , This combined code is set as the parent code of the configuration record (step C18). Now, the current level is B, and thus the combined code in which the symbol (•) is combined with the level row data “A01” stored at the position of the final item work memory at level A becomes the parent code ((A) in FIG. 11). reference). Here, if the level of the parent code is A (step C19), "1" is set to the end flag of the configuration record (step C20). Next, the name of the parent code is read from the last item work memory and set as the name of the configuration record (step C21).
In this way, when the child code ".B02", the parent code ".A01", the end flag "1", and the name "total" are prepared as the data for one record, this configuration record is written to the configuration file 7. (Step C22).

【0026】次に図8のステップC7に戻るが、この場
合、現在行の管理単位エリアには丸印が付されていない
ので、次の行の3行目が指定される(ステップC9)。
その後、上述のステップC12〜C14が実行される結
果、最終項目ワ−クメモリのレベルCにはレベル行デ−
タ「C03」と現在行の名称「人件費」がセットされる
(図11の(B)参照)。そしてこのレベル行デ−タに
記号(・)を付けた結合コ−ドが構成レコードの子コ−
ドとしてセットされる(ステップC15、C16)。次
に、最終項目ワ−クメモリ内のレベルBの位置(1段上
位のレベル位置)から読み出したレベル行デ−タ「B0
2」に記号(・)を付けた結合コ−ドが構成レコ−ドの
親コ−ドとしてセットされる(図11のステップC1
7、C18)。この場合、親コ−ドに対応する最終項目
ワ−クメモリ内の名称「固定費」が構成レコ−ドの名称
となる(ステップC21)。このようにして1レコ−ド
分のデ−タとして子コ−ド「・C03」、親コ−ド「・
B02」、名称「固定費」が揃うと、この構成レコ−ド
は構成ファイル7に書き出される(ステップC22)。
Next, returning to step C7 of FIG. 8, in this case, since the management unit area of the current row is not marked with a circle, the third row of the next row is designated (step C9).
After that, as a result of the above steps C12 to C14 being executed, the level line data is stored in the level C of the last item work memory.
The data “C03” and the name “personnel cost” of the current line are set (see (B) of FIG. 11). Then, the join code in which a symbol (•) is added to this level line data is the child code of the configuration record.
Is set as a mode (steps C15 and C16). Next, the level row data "B0" read from the level B position (the level position one step higher) in the last item work memory.
The combination code with the symbol (.) Attached to "2" is set as the parent code of the configuration record (step C1 in FIG. 11).
7, C18). In this case, the name "fixed cost" in the last item work memory corresponding to the parent code becomes the name of the constituent record (step C21). In this way, child code ".C03" and parent code ".
When "B02" and the name "fixed cost" are available, this configuration record is written to the configuration file 7 (step C22).

【0027】続いて、図8のステップC7で3行目の管
理単位エリアに丸印が付いていることが検出されると、
図10のステップC23に進み、ファイル記号の初期値
として「1」をセットしておく。次に、現在行に入力さ
れている項目コ−ドをその先頭から指定し(ステップC
24)、ファイル記号と項目コ−ドとを結合してこの結
合コ−ドを構成レコ−ドの子コ−ドとしてセットする
(ステップC25、C26)。この場合、ファイル記号
「1」と項目コ−ド「101」とが結合される為、子コ
−ドは「1101」となる。次に、最終項目ワ−クメモ
リ内の現在レベルのレベル行デ−タの先頭に記号(・)
を結合し(ステップC27)、この結合デ−タを構成レ
コ−ドの親コ−ドとしてセットする(ステップC2
8)。そして、この親コ−ドの名称「人件費」を最終項
目ワ−クメモリから読み出して構成レコ−ドの名称とし
てセットする(ステップC29)。図11の(C)はこ
の場合の構成レコ−ドを示し、子コ−ドが「110
1」、親コ−ドが「・C03」、名称が「人件費」から
成る構成レコ−ドが、構成ファイル7に書き出される
(ステップC30)。次に、現在行に他の項目コ−ドが
入力されているかをチェックし(ステップC31)、有
れば、ステップC24に戻り、次の項目コ−ドを指定し
て以下、上述の動作を繰り返す。この結果、3行目の項
目コ−ド「102」が指定された場合の構成レコ−ド
は、子コ−ドが「1102」、親コ−ドが「・C0
3」、名称が「人件費」となる。
Subsequently, when it is detected in step C7 in FIG. 8 that the management unit area on the third line is circled,
In step C23 of FIG. 10, "1" is set as the initial value of the file symbol. Next, specify the item code entered in the current line from the beginning (step C
24), the file symbol and the item code are combined and this combined code is set as a child code of the constituent record (steps C25 and C26). In this case, since the file symbol "1" and the item code "101" are combined, the child code becomes "1101". Next, a symbol (•) is added to the beginning of the level line data of the current level in the last item work memory.
Are combined (step C27), and this combined data is set as the parent code of the constituent record (step C2).
8). Then, the name "personnel cost" of the parent code is read from the last item work memory and set as the name of the constituent record (step C29). FIG. 11C shows a configuration record in this case, in which the child code is "110".
1 ", the parent code is" .C03 ", and the name is" personnel expenses "is written to the configuration file 7 (step C30). Next, it is checked whether another item code is entered in the current line (step C31), and if there is, the process returns to step C24, the next item code is designated, and the above operation is performed. repeat. As a result, when the item code "102" in the third line is specified, the constituent code is "1102" for the child code and ".C0" for the parent code.
3 ”and the name is“ Personnel expenses ”.

【0028】その後、ステップC31で項目コ−ド無し
が検出されるので、ステップC32に進み、他のファイ
ル名がA表内に定義されているかをチェックするが、い
ま、A表内には次のファイル名として「会計FILE」
が定義されているので、ステップC33に進み、ファイ
ル記号に「1」を加算してその値を更新したのち、ステ
ップC24に戻る。この場合、ファイル記号は「2」、
項目コ−ドとして最初の「2111」が指定される為、
構成レコ−ドの子コ−ドは「22111」となり、親コ
−ドは「・C03」、名称は「人件費」となる。いま、
ステップC32で他のファイル無しが指定されると、図
8のステップC8に戻り、以下、ステップC8で設定無
しが検出されるまで構成レコ−ドを作成して構成ファイ
ル7に書き出す処理を1レコ−ドずつ繰り返す。これに
よって図12に示す様な構成ファイル7が作成される。
この構成ファイル7の内容は図3のA表を参照すること
によって生成されたものである。
After that, since no item code is detected in step C31, the flow advances to step C32 to check whether another file name is defined in the A table. File name of "accounting FILE"
Is defined, the process proceeds to step C33, "1" is added to the file symbol to update the value, and then the process returns to step C24. In this case, the file symbol is "2",
Since the first "2111" is specified as the item code,
The child code of the configuration record is "22111", the parent code is ".C03", and the name is "personnel expenses". Now
If no other file is specified in step C32, the process returns to step C8 in FIG. 8 and the process of creating a configuration record and writing it to the configuration file 7 is repeated until one setting is detected in step C8. -Repeat each one. As a result, the configuration file 7 as shown in FIG. 12 is created.
The contents of the configuration file 7 are generated by referring to the table A in FIG.

【0029】このようにして構成ファイル7を作成し終
ると、表構造解析部5はB表の結合テーブル、B表条件
テ−ブル、集計項目テ−ブルの他、計算式テ−ブルを作
成する。このうち、B表結合テ−ブル、条件テ−ブル、
集計項目テ−ブルは図13および図14に示すフローチ
ャートにしたがって作成される。ここで、B表結合テ−
ブル(図5(B)を参照)は「ファイル名」、「シーク
ェンシャル番号SEQ」、条件項目の「項目名」、「フ
ァイル記号」とから成る。また、B表条件テ−ブル(図
5(C)参照)は「ファイル名」、「B表の列項目位
置」、「条件値」、「否定フラグ」とから成る。ここ
で、「否定フラグ」とは条件値として「≠(等しくな
い)」が設定されていることを示すフラグである。ま
た、集計項目テ−ブル(図5(D)参照)は「ファイル
名」、「B表の列項目位置」、集計項目の「項目名」、
「マイナスサイン」とから成る。ここで、「マイナスサ
イン」は例えば「貸方金額−」という様に集計項目に項
目名にマイナス符号が付いていることを示す。
When the construction file 7 has been created in this way, the table structure analysis unit 5 creates the formula table in addition to the join table of the B table, the B table condition table, the total item table. To do. Of these, B table connection table, condition table,
The total item table is created according to the flowcharts shown in FIGS. Here, B table connection table
The bull (see FIG. 5B) is composed of a “file name”, a “sequential number SEQ”, a condition item “item name”, and a “file symbol”. The table B condition table (see FIG. 5 (C)) includes a "file name", "column position of table B", "condition value", and "negative flag". Here, the "negative flag" is a flag indicating that "≠ (not equal)" is set as the condition value. In addition, the total item table (see FIG. 5D) includes “file name”, “column item position of table B”, “item name” of total item,
It consists of "minus sign". Here, the "minus sign" indicates that the item name is attached with a minus sign in the total item, such as "credit amount-".

【0030】先ず、表構造解析部5はパラメータファイ
ル4から指定帳票のB表パラメータデータを読み出し
(ステップD1)、その第2列(項目位置B)を指定し
ておく(ステップD2)。次に、指定列の対象ファイル
名を呼び出すと共に(ステップD3)、このファイル名
に対応するファイル記号をA表結合テーブルより呼び出
す(ステップD4)。そして、次のステップD5でシー
クェンシャル番号SEQの初期値「1」をセットしたの
ち、指定列の条件項目に着目して項目名が設定されてい
るかをチェックし(ステップD6)、設定されていれば
その条件項目名を指定する(ステップD9)。これによ
って得られたファイル名、シークェンシャル番号SE
Q、条件項目名、ファイル記号から結合レコードを生成
したのち(ステップD10)、この結合レコードをB表
結合テーブルにセットするが、その際、同一レコードの
重複設定を避ける為に、B表結合テーブル内に同一レコ
ードが設定されていないことを条件に(ステップD1
1)、生成した結合レコードをB表結合テーブルにセッ
トする(ステップD12)。
First, the table structure analysis unit 5 reads the B table parameter data of the specified form from the parameter file 4 (step D1) and specifies the second column (item position B) thereof (step D2). Next, the target file name in the designated column is called (step D3), and the file symbol corresponding to this file name is called from the table A connection table (step D4). Then, in the next step D5, the initial value "1" of the sequential number SEQ is set, and then it is checked whether or not the item name is set by paying attention to the condition item in the designated column (step D6), and it is set. If so, the condition item name is designated (step D9). File name and sequential number SE obtained by this
After generating a join record from Q, the condition item name, and the file symbol (step D10), this join record is set in the B table join table. At that time, in order to avoid duplicate setting of the same record, the B table join table On condition that the same record is not set (step D1
1) The generated join record is set in the B table join table (step D12).

【0031】次に、指定列の条件値に着目してその条件
値を指定すると共に(ステップD13)、この条件値に
“≠”が付加されていれば(ステップD14)、否定フ
ラグをセットする(ステップD15)。このようにして
得られたファイル名、指定列の項目位置を示す列名称、
条件値、否定フラグとから条件レコードを生成し(ステ
ップD16)、B表の条件テーブルにセットする(ステ
ップD17)。ここで、指定列に複数の条件値が定義さ
れていれば、各条件値毎に条件レコードを生成する為、
ステップD18では他の条件値が有るか否かをチェック
し、有ればステップD13に戻り、次の条件値を指定し
てそれに対応する条件レコードを生成して条件テーブル
にセットする。そして、次のステップD19では指定列
に他の条件項目が有るか否かをチェックし、有ればステ
ップD20に進み、シークェンシャル番号SEQに
「1」を加算してその値を更新したのち、ステップD9
に戻り、次の条件項目を指定し、以下、それに対応する
結合レコードを生成したり、条件レコードを生成して対
応テーブルにセットする。
Next, paying attention to the condition value of the designated column, the condition value is specified (step D13), and if "≠" is added to this condition value (step D14), a negative flag is set. (Step D15). The file name obtained in this way, the column name indicating the item position of the specified column,
A condition record is generated from the condition value and the negative flag (step D16) and set in the condition table of table B (step D17). Here, if multiple condition values are defined in the specified column, a condition record is generated for each condition value.
In step D18, it is checked whether or not there is another condition value, and if there is another condition value, the process returns to step D13, the next condition value is designated, a corresponding condition record is generated and set in the condition table. Then, in the next step D19, it is checked whether or not there is another condition item in the designated column, and if there is another condition item, the process proceeds to step D20, where "1" is added to the sequential number SEQ to update the value. , Step D9
Then, the next condition item is designated, and thereafter, the corresponding join record is generated, or the condition record is generated and set in the correspondence table.

【0032】ステップD19で他の条件項目無しが検出
されると、ステップD21に進み、指定列の条件項目を
指定し、その条件項目にマイナス符号が付加されていれ
ば(ステップD22)、マイナスサインフラグのセット
を行う(ステップD23)。このようにして得られたフ
ァイル名、指定列の列項目位置を列名称、集計項目、マ
イナスサインフラグとから集計項目レコードを生成し
(ステップD24)、集計項目テーブルにセットする
(ステップD25)。
If no other condition item is detected in step D19, the flow advances to step D21 to specify a condition item in the designated column, and if a minus sign is added to the condition item (step D22), a minus sign. The flag is set (step D23). The file name and the column item position of the designated column thus obtained are generated from the column name, the tabulation item and the minus sign flag (step D24) and set in the tabulation item table (step D25).

【0033】このようにB表の1列分の定義内容を解析
して1列分のB表結合テーブル、B表条件テーブル、集
計項目テーブルを作成したら、ステップD7に進み、B
表の次列にデータが指定されているかをチェックし、有
ればその行を指定し(ステップD8)、以下、ステップ
D3に戻り、B表の定義内容を1行ずつ解析しながらテ
ーブル作成動作を繰り返す。
After the definition contents for one column of the B table are analyzed and the B table connection table, the B table condition table and the total item table for one column are created in this way, the process proceeds to step D7
It is checked whether data is specified in the next column of the table, and if there is, the line is specified (step D8), and then the process returns to step D3 to create the table while analyzing the definition contents of table B line by line. repeat.

【0034】この場合、図5の(B)に示すB表結合テ
ーブルにおいて、その1レコード目および2レコード目
は、B表の列項目位置Bの定義内容を解析することによ
って得られた結合レコード、つまり、この列項目位置B
には2種類の条件項目名が定義されているので、それに
対応して生成された結合レコードである。この場合、シ
ークェンシャル番号SEQは1レコード目が「01」、
2レコード目が「02」となり、また、条件項目名は1
レコード目が「計画種別」、2レコード目が「年度」と
なる。なお、B表の列項目位置Cにも2種類の条件項目
名が定義されているが、これを解析することによって得
られた結合レコードは1レコード目、2レコード目と同
様となり、その重複設定を避ける為にB表結合テーブル
へのセットは行われない。同様に、B表結合テーブルの
3レコード目、4レコード目はB表の列項目位置Dを解
析することによって得られた結合レコードである。一
方、図5の(C)に示すB表条件テーブルにおいて、そ
の1レコード目、2レコード目はB表の列項目位置Bの
定義内容を解析することによって得られた条件レコー
ド、また、3レコード目〜6レコード目はB表の列項目
位置Cの定義内容を解析することによって得られた条件
レコード、更に、7レコード目、8レコード目は列項目
位置D、9レコード目、10レコード目は列項目位置E
の定義内容を解析することによって得られた条件レコー
ドである。この場合、列項目位置Dの条件項目名「相手
勘定」の条件値には“≠”が付加されているので、その
レコード内の否定フラグには“1”がセットされる。
In this case, in the B table join table shown in FIG. 5B, the first record and the second record thereof are join records obtained by analyzing the definition contents of the column item position B of the B table. , That is, this column item position B
Since two types of condition item names are defined in, the combined record is generated correspondingly. In this case, the first record of the sequential number SEQ is "01",
The second record is "02", and the condition item name is 1
The record number is "plan type" and the second record is "fiscal year". Although two types of condition item names are defined in the column item position C in the B table, the combined record obtained by analyzing this is the same as the first record and the second record, and the duplicate setting In order to avoid the above, the table B join table is not set. Similarly, the third record and the fourth record of the B table combination table are the combined records obtained by analyzing the column item position D of the B table. On the other hand, in the B table condition table shown in FIG. 5C, the first record and the second record are condition records obtained by analyzing the definition contents of the column item position B of the B table, and 3 records. The sixth to sixth records are condition records obtained by analyzing the definition content of the column item position C in the B table. Further, the seventh record and the eighth record are column item positions D, the ninth record and the tenth record are Column item position E
It is a condition record obtained by analyzing the definition content of. In this case, since "≠" is added to the condition value of the condition item name "counter account" at the column item position D, "1" is set to the negative flag in that record.

【0035】次に、表構造解析部5は上述のようにして
B表結合テーブル、B表条件テーブル、集計項目テーブ
ルを作成し終ると、B表パラメータデータを解析して計
算式テーブルを作成するが、この計算式テーブルは各計
算式を列項目位置に対応付けたものである。また、表構
造解析部5はB表パラメータデータから書式データを列
項目位置に対応付けて読み出し、印刷書式メモリ8にセ
ットする。
Next, when the table structure analysis unit 5 finishes creating the B table join table, the B table condition table, and the total item table as described above, it analyzes the B table parameter data and creates a calculation formula table. However, in this calculation formula table, each calculation formula is associated with the column item position. Further, the table structure analysis unit 5 reads out the format data from the B table parameter data in association with the column item position and sets it in the print format memory 8.

【0036】このようなテーブル作成処理が終ると、表
構造解析部5は展開ファイル作成部9を起動させる。す
ると、展開ファイル作成部9は図15および図16に示
すフローチャートにしたがって展開ファイル作成処理を
行う。なお、展開ファイル11は帳票の出力データであ
る集計ファイル13を作成するまでに中間的に生成され
るファイルである。ここで、図17はソースファイルが
計画ファイルの場合にその1レコード目〜4レコード目
の内容にしたがって作成された展開レコードを示し、ま
た、図18はソースファイルが会計ファイルの場合にそ
の1レコード目〜3レコード目の内容にしたがって作成
された展開レコードを示している。更に、図19はこれ
によって作成された展開ファイル11の内容を示してい
る。いま、パラメータ解析テーブル6には図5(A)〜
(D)に示す様な内容の各種テーブルがセットされてい
るものとする。
Upon completion of such table creation processing, the table structure analysis unit 5 activates the expanded file creation unit 9. Then, the expansion file creating unit 9 performs the expansion file creating process according to the flowcharts shown in FIGS. The expansion file 11 is a file that is intermediately generated until the total file 13 that is the output data of the form is created. Here, FIG. 17 shows the expansion record created according to the contents of the first record to the fourth record when the source file is the plan file, and FIG. 18 shows the one record when the source file is the accounting file. The expanded record created according to the contents of the third to third records is shown. Further, FIG. 19 shows the contents of the expanded file 11 created by this. Now, in the parameter analysis table 6, FIG.
It is assumed that various tables having the contents shown in (D) are set.

【0037】先ず、展開ファイル作成部9はパラメータ
解析テーブル6を参照し、A表結合テーブルよりファイ
ル名(最初は1レコード目のファイル名)を取り出すと
共に(ステップE1)、そのファイル記号を指定してお
く(ステップE2)。次に、このファイル名に対応する
ソースファイルを指定し(ステップE3)、このソース
ファイル内の先頭レコードを指定する(ステップE
4)。これによって集計対象ファイルとしてA表に最初
に定義されている「計画ファイル」の先頭レコードが指
定される。次に、A表結合テーブルから項目名(最初は
1レコード目の項目名)を取り出し(ステップE5)、
この項目名に対応する項目値を指定ファイル内の指定レ
コード(最初は先頭レコード)から取り出す(ステップ
E6)。そして、この項目値と指定ファイル記号とを結
合し(ステップE7)、この結合データを展開レコード
の分類キーとしてセットする(ステップE8)。いま、
図17に示す様に計画ファイルの先頭レコードから予算
項目の項目値「101」が取り出され、この項目値「1
01」と指定ファイル記号「1」とが結合され、この結
合データ「1101」が展開レコードの1レコード目に
おける分類キーとなる。
First, the expansion file creating section 9 refers to the parameter analysis table 6 to extract the file name (first file name of the first record) from the A table connection table (step E1) and designates the file symbol. (Step E2). Next, the source file corresponding to this file name is designated (step E3), and the first record in this source file is designated (step E).
4). As a result, the top record of the "plan file" first defined in the table A is designated as the file to be totaled. Next, the item name (initially, the item name of the first record) is fetched from the table A connection table (step E5),
The item value corresponding to this item name is fetched from the designated record (first record) in the designated file (step E6). Then, this item value and the designated file symbol are combined (step E7), and this combined data is set as the classification key of the expanded record (step E8). Now
As shown in FIG. 17, the item value "101" of the budget item is extracted from the first record of the plan file, and the item value "1"
01 "and the designated file symbol" 1 "are combined, and this combined data" 1101 "becomes the classification key in the first record of the expanded record.

【0038】次に、この計画ファイルの先頭レコードに
おいてその出力対象項目はB表に定義されている抽出条
件に合致するレコードか否かを調べる為に、先ず、展開
ファイル作成部9はB表結合テーブルを参照し、このテ
ーブル内に指定ファイル記号が有るかをチェックする
(ステップE9)。ここで、上述した様に条件項目名が
B表内に定義されていれば、B表結合テーブルには、フ
ァイル名、条件項目名、ファイル記号等がセットされて
いる。この為、ファイル記号がセットされていないとい
うことは条件項目がB表に定義されていないこと(つま
り、出力対象項目の抽出条件がセットされていない無条
件)を意味する。いま、B表結合テーブルには指定ファ
イル記号「1」がセットされているので、ステップE1
0に進み、この指定ファイル記号がセットされている結
合レコードから第1の条件項目名(シークェンシャル番
号SEQが「01」の条件項目名)およびファイル名を
それぞれ読み出し、この条件項目名に対応する項目値
(項目データ)を指定レコードから取り出す。この場
合、先頭レコードから第1の条件項目名である「計画種
別」の項目値「1」が取り出される。そして、同一ファ
イル名でこの項目値に一致する条件値をB表条件テーブ
ル内から検索し(ステップE11)、一致する条件値が
有るかをチェックする(ステップE12)。いま、先頭
レコードに含まれている計画種別の項目値「1」はB表
条件テーブル内の1レコード目に存在する為、次のステ
ップE13に進み、それに対応するB表条件テーブル内
に否定フラグがセットされているか否かをチェックす
る。
Next, in order to check whether or not the output target item in the first record of this plan file is a record that meets the extraction conditions defined in the B table, first, the expansion file creating section 9 joins the B table. The table is referred to, and it is checked whether or not the designated file symbol is present in this table (step E9). Here, if the condition item name is defined in the B table as described above, the file name, condition item name, file symbol, etc. are set in the B table connection table. Therefore, the fact that the file symbol is not set means that the condition item is not defined in the table B (that is, the extraction condition of the output target item is not set). Since the designated file symbol "1" is set in the B table connection table, step E1
Go to 0 and read the first condition item name (condition item name with sequential number SEQ "01") and file name from the combined record in which this specified file symbol is set, and correspond to this condition item name. Retrieve the item value (item data) to be specified from the specified record. In this case, the item value “1” of the “plan type”, which is the first condition item name, is extracted from the first record. Then, the condition value that matches the item value with the same file name is searched from the table B condition table (step E11), and it is checked whether there is a matching condition value (step E12). Since the item value "1" of the plan type included in the first record exists in the first record in the B table condition table, the process proceeds to the next step E13 and the negative flag in the corresponding B table condition table. Check if is set.

【0039】この場合、否定フラグはセットされていな
いので、ステップE19に進み、B表結合テーブルから
指定ファイル記号に対応する第2の条件項目名(シーク
ェンシャル番号SEQが「2」の条件項目名)およびフ
ァイル名を読み出し、この条件項目名に対応する項目値
を指定レコードから取り出す。この場合、先頭レコード
から第2の条件項目名である年度の項目値「1992」
が取り出される。そして、同一ファイル名で、この項目
値と一致する条件値をB表条件テーブル内で検索し(ス
テップE20)、一致する条件値が有るかをチェックす
る(ステップE21)。いま、先頭レコードに含まれて
いる年度の項目値「1992」はB表条件テーブル内の
2レコード目に存在する為、ステップE22に進み、一
致した条件値に対応する位置の値(この場合、B)をB
表条件テーブルから取り出し、これと一致する項目位置
の値を集計項目テーブル内で検索し(ステップE2
3)、これに対応する項目名を指定する(ステップE2
4)。ここで、集計項目テーブルにはその1レコード目
に項目位置Bがセットされているのでそれに対応する項
目名「予算額」が取り出され、この項目名に対応する項
目値「800,000」を指定レコードから取り出すと
共に(ステップE25)、この項目位置Bに対応して集
計項目テーブル内にマイナスサインフラグがセットされ
ているかをチェックする(ステップE26)。次に、ス
テップB27に進み、指定レコードから取り出した項目
値「800,000」を展開レコードの対応位置「B」
に集計するが、この場合、マイナスサインフラグがセッ
トされるものについてはマイナス集計が行われ、マイナ
スサインフラグがセットされていないものはプラス集計
される。これによって図17に示す様な1レコード目の
展開レコードが作成される。この様に、第1および第2
の条件項目名の条件値にそれぞれ一致するレコードであ
れば、そのレコードから集計対象項目のデータが読み出
されて展開レコードの対応位置に集計される。
In this case, since the negative flag is not set, the routine proceeds to step E19, where the second condition item name corresponding to the designated file symbol from the table B connection table (condition item having the sequential number SEQ "2") Name) and the file name, and the item value corresponding to this conditional item name is retrieved from the specified record. In this case, the item value “1992” of the second condition item name in the year from the first record
Is taken out. Then, with the same file name, a condition value that matches this item value is searched in the table B condition table (step E20), and it is checked whether there is a matching condition value (step E21). Since the year item value “1992” contained in the first record exists in the second record in the table B condition table, the process proceeds to step E22, and the value at the position corresponding to the matched condition value (in this case, B) to B
The value is fetched from the table condition table, and the value at the item position matching this is searched in the tabulation item table (step E2
3) Specify the item name corresponding to this (step E2)
4). Here, since the item position B is set in the first record in the total item table, the item name "budget amount" corresponding to it is taken out and the item value "800,000" corresponding to this item name is specified. At the same time as taking out from the record (step E25), it is checked whether or not the minus sign flag is set in the total item table corresponding to this item position B (step E26). Next, in step B27, the item value “800,000” extracted from the designated record is set to the corresponding position “B” in the expansion record.
In this case, in the case where the minus sign flag is set, the minus aggregation is performed, and in the case where the minus sign flag is not set, the plus aggregation is performed. As a result, the first expanded record as shown in FIG. 17 is created. Thus, the first and second
If the record matches the condition value of the condition item name, the data of the item to be totaled is read from that record and totaled at the corresponding position of the expanded record.

【0040】次に、集計項目テーブル内で同一の項目位
置(この場合、B)が他にもセットされているかをチェ
ッするが(ステップE28)、図5(D)に示す様に、
会計ファイルについては項目名「借方金額」、「貸方金
額」に対応して集計項目テーブル内にそれぞれ2ケ所ず
つ同一項目位置D、Eがセットされているが、計画ファ
イルについては同一項目位置が複数セットされていない
ので、ステップE14に進み、B表条件テーブル内で第
1あるいは第2の条件項目名に対応するレコード項目値
と一致する同一ファイル名の条件値が他に有るかをチェ
ックする。いま、B表条件テーブル内には他に存在しな
い為、ステップE15に進み、指定された計画ファイル
内に次のレコードがあることを条件に、次のレコードを
指定する(ステップE18)。
Next, it is checked whether another same item position (B in this case) is set in the total item table (step E28), but as shown in FIG.
For the accounting file, the same item positions D and E are set in two places in the tabulation item table in correspondence with the item names "debit amount" and "credit amount", respectively, but the plan file has a plurality of the same item positions. Since it has not been set, the routine proceeds to step E14, where it is checked whether or not there is another condition value of the same file name that matches the record item value corresponding to the first or second condition item name in the table B condition table. Since there is no other record in the table B condition table, the process proceeds to step E15, and the next record is specified on condition that the next record exists in the specified plan file (step E18).

【0041】これによって計画ファイルの2レコード目
が指定され、ステップE5に戻り、以下、上述の動作が
繰り返される。この場合、ファイル記号「1」と2レコ
ード目の予算項目値「102」とによって2レコード目
における展開レコードの分類キー「1102」が生成さ
れる(ステップE5〜E8)。また、上記1レコード目
と同様に2レコード目においても第1の条件項目名の計
画種別に対応する項目値も「1」で、この項目値「1」
に一致する条件値はB表条件テーブル内に存在し、かつ
それに対応して否定フラグもセットされていないので、
ステップE19に進む。この場合、第2の条件項目名の
年度に対応する項目値は「1992」で、この項目値に
一致する条件値もB表条件テーブル内に存在する為、B
表条件テーブルからこれらに対応する項目位置「B」を
取り出し、この項目位置「B」に対応する項目名「予算
額」の値を計画ファイルの2レコード目から取り出す
(ステップE22〜E25)。この場合、図17に示す
様に、計画ファイルの2レコード目の予算額の項目から
「200,000」が取り出され、展開レコード(2レ
コード目)の対応位置「B」にプラス集計される(ステ
ップE27)。
As a result, the second record of the plan file is designated, the process returns to step E5, and the above operation is repeated. In this case, the file code "1" and the budget item value "102" of the second record generate the classification key "1102" of the expanded record in the second record (steps E5 to E8). Further, as in the case of the first record, the item value corresponding to the plan type of the first condition item name is also “1” in the second record, and this item value “1”
Since the condition value that matches with exists in the table B condition table, and the negative flag is not set correspondingly,
Go to step E19. In this case, the item value corresponding to the year of the second condition item name is "1992", and the condition value matching this item value also exists in the B table condition table.
The item position "B" corresponding to these is taken out from the table condition table, and the value of the item name "budget amount" corresponding to this item position "B" is taken out from the second record of the plan file (steps E22 to E25). In this case, as shown in FIG. 17, “200,000” is extracted from the budget amount item of the second record of the plan file, and added to the corresponding position “B” of the expanded record (second record). Step E27).

【0042】次に、計画ファイルの3レコード目が指定
される(ステップE18)。これによって、展開レコー
ド(3レコード目)の分類キー「1103」が生成され
る。この場合、計画ファイルから読み出された3レコー
ド目の計画種別の項目値は「2」であり、また年度の項
目値は「1993」で、この各項目値と一致する条件値
はB表条件テーブル内にそれぞれセットされているが、
この条件値に一致する項目値は「C」である。したがっ
て、計画ファイルの3レコード目から取り出された「予
算額」の項目値「400,000」が展開レコード(3
レコード目)における対応位置「C」にプラス集計され
る。
Next, the third record of the plan file is designated (step E18). As a result, the classification key “1103” of the expansion record (third record) is generated. In this case, the item value of the plan type of the third record read from the plan file is "2", the item value of the fiscal year is "1993", and the condition value that matches each item value is the B table condition. Each is set in the table,
The item value that matches this condition value is “C”. Therefore, the item value “400,000” of “budget amount” extracted from the third record of the plan file is the expanded record (3
It is added up to the corresponding position "C" in the (record).

【0043】更に、計画ファイルの4レコード目が指定
されると、その3レコード目と同様に展開レコード(4
レコード目)の項目位置「C」には計画ファイルの4レ
コード目から取り出された予算額の項目値「50,00
0」がプラス集計される。なお、この展開レコードの分
類キーは「1104」となる。以下、同様に、計画ファ
イルを1レコードずつ順次指定しながら、パラメータ解
析テーブル6内のA表結合テーブル、B表の結合テーブ
ル、条件テーブル、集計項目テーブルを参照し、計画フ
ァイルの展開レコードを1レコードずつ順次作成してゆ
く。
Further, when the fourth record of the plan file is designated, the expanded record (4
In the item position “C” of (record record), the item value “50,00” of the budget amount extracted from the fourth record of the plan file
"0" is added up. The classification key of this expansion record is "1104". Similarly, while sequentially designating the plan file one record at a time, referring to the A table join table, the B table join table, the condition table, and the total item table in the parameter analysis table 6, the expansion record of the plan file is set to 1 Create records one by one.

【0044】なお、ステップE9でB表結合テーブル内
に指定ファイル記号がセットされていないことが検出さ
れた場合には、条件項目が定義されていない無条件項目
である為、ステップE34に進み、B表条件テーブルの
定義内容を参照せず、直接的に、集計項目テーブル内で
指定ファイルと同一のファイル名を検索し、以降、ステ
ップE24に戻る。
If it is detected in step E9 that the designated file symbol is not set in the B table join table, the condition item is an unconditional item that is not defined, so the process proceeds to step E34. Without referring to the definition contents of the B table condition table, the same file name as the designated file is directly searched in the tabulation item table, and thereafter, the process returns to step E24.

【0045】このような動作を1レコードずつ行った結
果、指定ファイル内の全レコードを指定し終り、ステッ
プE15で次レコード無しが検出されると、ステップE
16に進み、A表結合テーブル内に他のファイルが定義
されているかをチェックする。いま、A表結合テーブル
内には、他のファイルとして会計ファイルが定義されて
いるので、最初のステップE1に戻り、上述と同様に会
計ファイルに対応してその展開レコードを順次生成する
処理を行う。即ち、A表結合テーブルよりファイル名と
して「会計FILE」を取り出し(ステップE1)、そ
のファイル記号として「2」を指定しておく(ステップ
E2)。そして、このファイル名に対応するソースファ
イルとして会計ファイルを指定すると共に(ステップE
3)、その先頭レコードを指定しておく(ステップE
4)。
As a result of performing such an operation one record at a time, when all the records in the designated file have been designated, and no next record is detected at step E15, step E
Proceed to step 16 and check whether another file is defined in the table A join table. Now, since the accounting file is defined as another file in the table A combination table, the process returns to the first step E1 and the processing for sequentially generating the expanded records corresponding to the accounting file is performed as described above. . That is, "accounting file" is taken out as a file name from the table A combination table (step E1), and "2" is designated as the file symbol (step E2). Then, the accounting file is specified as the source file corresponding to this file name (step E
3) Specify the top record (step E)
4).

【0046】この状態において、指定レコードの「勘定
科目」の項目値「2111」とファイル記号「2」とを
結合し、1レコード目における展開レコードの分類キー
「22111」を生成する(ステップE5〜E8)。そ
して、ステップE9に進むが、この場合、B表結合テー
ブルにはファイル記号「2」が記憶されているので、B
表結合テーブルの項目名「相手勘定」に対応する項目値
を会計ファイルの1レコード目から取り出す(ステップ
E10)。いま、会計ファイルの1レコード目からは
「相手勘定」の項目値として「0011」が取り出され
るので、この項目値と一致する条件値をB表条件テ−ブ
ルから検索する(ステップE11)。この場合、該当す
る条件値はテ−ブル内の7行目と9行目にそれぞれセッ
トされているので、ステップE12で一致が検出されて
ステップE13に進み、先ず、最初の7行目に着目し、
それに対応する位置に否定フラグがセットされているか
をチェックする。いま、B表条件テ−ブルの7行目には
否定フラグがセットされている為、ステップE14に進
み、B表条件テ−ブル内でこの項目値「0011」と一
致する条件値が他に有るかをチェックするが、いま、B
表条件テ−ブル内の9行目に条件値「0011」が有る
為、ステップE13に戻る。いま、この条件値に対応す
る位置に否定フラグはセットされていないので、ステッ
プE19に進む。この場合、第2の条件項目名の年度に
対応する項目値は「1993」で、この項目値と一致す
る条件値もB表条件テ−ブル内に存在する為、B表条件
テ−ブルからこれらに対応する項目位置「E」を取り出
し、この項目位置「E」に一致する集計項目テ−ブル内
の項目名を指定するが(ステップE22、E24)、こ
の場合、集計項目テ−ブルの5行目、6行目にそれぞれ
セットされている項目位置「E」のうち最初の項目位
置、つまり、5行目に対応する項目名「借方金額」を指
定する。そして、会計ファイルの1レコ−ド目から指定
項目名に対応する項目値「50,000」を会計ファイ
ルに対する1レコ−ド目における展開レコ−ドの対応す
る位置「E」にプラス集計する(ステップE25〜E2
7)。
In this state, the item value "2111" of the "account title" of the designated record and the file symbol "2" are combined to generate the classification key "22111" of the expanded record in the first record (steps E5 to E5). E8). Then, the process proceeds to step E9. In this case, since the file symbol "2" is stored in the B table connection table, B
The item value corresponding to the item name "counterpart" of the table combination table is taken out from the first record of the accounting file (step E10). Since "0011" is taken out as the item value of "counter account" from the first record of the accounting file, the condition value matching this item value is retrieved from the B table condition table (step E11). In this case, since the corresponding condition values are set on the 7th and 9th lines in the table, a match is detected at step E12 and the process proceeds to step E13. Attention is paid to the first 7th line. Then
Check whether the negative flag is set in the corresponding position. Now, since the negative flag is set in the 7th line of the B table condition table, the process proceeds to step E14, and there is another condition value in the B table condition table that matches this item value "0011". I will check if there is, but now, B
Since the condition value "0011" is present on the ninth line in the table condition table, the process returns to step E13. Now, since the negative flag is not set at the position corresponding to this condition value, the routine proceeds to step E19. In this case, the item value corresponding to the year of the second condition item name is "1993", and the condition value matching this item value also exists in the B table condition table. The item position "E" corresponding to these is taken out, and the item name in the total item table which matches this item position "E" is designated (steps E22, E24). In this case, the total item table Of the item positions "E" set on the fifth and sixth lines, the first item position, that is, the item name "debit amount" corresponding to the fifth line is designated. Then, the item value "50,000" corresponding to the designated item name from the first record of the accounting file is added up to the corresponding position "E" of the expansion record in the first record of the accounting file ( Steps E25 to E2
7).

【0047】そして、ステップE28に進むが、この場
合、集計項目テ−ブル内にはその5行目の他に6行目に
も同一の項目位置「E」が存在する為、ステップE24
に戻り、集計項目テ−ブル内の当該項目位置に対応する
項目名「貸方金額」を指定し、この指定項目名に対応す
る項目値を会計ファイルの1レコ−ド目から取り出す
(ステップE25)。この場合、会計ファイルの1レコ
−ド目からは貸方金額の項目値として「0」が取り出さ
れ、展開レコ−ドの1レコ−ド目の対応位置「E」に集
計されるが、この際、集計項目テ−ブルの6行目にはマ
イナスサインフラグがセットされているので、マイナス
集計、つまり、(前回の借方金額「50,000」−今
回の貸方金額「0」)の集計演算が行われる(ステップ
E27)。その後、ステップE28、E14、E15か
らステップE18に進み、会計ファイルの2レコ−ド目
が指定される。
Then, the process proceeds to step E28. In this case, since the same item position "E" exists on the sixth line as well as the fifth line in the totalized item table, step E24.
Then, the item name "credit amount" corresponding to the item position in the total item table is designated, and the item value corresponding to the designated item name is taken out from the first record of the accounting file (step E25). . In this case, "0" is taken out as the item value of the credit amount from the first record of the accounting file, and is aggregated in the corresponding position "E" of the first record of the expansion record. Since the minus sign flag is set in the sixth line of the total item table, negative total, that is, (previous debit amount "50,000" -current credit amount "0") is calculated. It is performed (step E27). Then, the process proceeds from step E28, E14, E15 to step E18, and the second record of the accounting file is designated.

【0048】これによって会計ファイルの2レコ−ド目
に対応してその展開レコ−ドが生成されるが、この場
合、勘定科目の項目値も「2111」で、1レコ−ド目
と同様に分類キ−は「22111」となる。また、2レ
コ−ド目の相手勘定も「0011」であり、また年度の
項目値も「1993」で、各項目条件値とそれぞれ一致
する為、その借方金額「0」が展開レコ−ドの項目位置
Eにプラス集計され、またその貸方金額「40,00
0」がその項目位置Eにマイナス集計される。この為、
2レコ−ド目の展開レコ−ドの項目位置には「−40,
000」が書き込まれる。
As a result, the expansion record is generated corresponding to the second record of the accounting file. In this case, the item value of the account item is also "2111" and is the same as the first record. The classification key is “22111”. Also, the counter account for the second record is "0011", and the item value for the year is "1993", which matches the item condition values, so the debit amount "0" is the expansion record. Item position E is added up and the credit amount is "40,00".
"0" is negatively added up to the item position E. Therefore,
The item position of the expansion record of the second record is "-40,
000 ”is written.

【0049】次に、会計ファイルの3レコ−ド目が指定
されるが、この相手勘定の項目値は「0010」で、B
表条件テ−ブル内にはこれと一致する条件値はセットさ
れていないので、ステップE12からステップE2に進
み、B表結合テ−ブル内で指定ファイル対応して否定フ
ラグがセットされてるかをチェックする。いま、B表条
件テ−ブル内にはその7行目に会計ファイルに対応して
否定フラグがセットされているので、ステップE30に
進み、B表結合テーブルから指定ファイル記号に対応す
る第2の条件項目名およびファイル名を読み出し、この
条件項目名に対応する項目値を指定レコードから取り出
す。この場合、先頭レコードから年度の項目値「199
2」が取り出される。そして、同一ファイル名で、この
項目値と一致する条件値をB表条件テーブル内で検索し
(ステップE31)、一致する条件値が有るかをチェッ
クする(ステップE32)。いま、一致が検出される
為、ステップE33に進み、否定フラグがセットされて
いる位置の値「D」をB表条件テ−ブルから取り出し、
この値に一致する位置を集計項目テ−ブル内から検索し
(ステップE23)、その項目名「借方金額」に対応す
る項目値「800,000」を3レコ−ド目から取り出
し、展開レコ−ドの対応位置Dにプラス集計する。その
後、ステップE28からステップE24に戻り、上述と
同様に次の項目名「貸方金額」の項目値「0」が展開レ
コ−ドの位置「D」にマイナス集計される。以下、次レ
コ−ドが指定され、ステップE12で不一致が検出され
る毎に上述と同様の動作が1レコ−ドずつ繰り返され
る。これによって条件項目「相手勘定」の条件値「≠0
011」にしたがった展開レコ−ドが順次生成される。
Next, the third record of the accounting file is specified. The item value of this counter account is "0010", and B
Since the condition value corresponding to this is not set in the table condition table, the process proceeds from step E12 to step E2 to check whether the negative flag is set corresponding to the specified file in the B table connection table. To check. Now, since the negative flag is set in the B table condition table corresponding to the accounting file on the 7th line, the process proceeds to step E30, where the second table corresponding to the designated file symbol from the B table connection table is set. The condition item name and the file name are read, and the item value corresponding to this condition item name is extracted from the specified record. In this case, the item value of the year from the first record is "199
2 "is taken out. Then, with the same file name, a condition value that matches this item value is searched in the table B condition table (step E31), and it is checked whether there is a matching condition value (step E32). Now, since a match is detected, the routine proceeds to step E33, where the value "D" at the position where the negative flag is set is fetched from the B table condition table,
The position corresponding to this value is searched from the tabulation item table (step E23), the item value "800,000" corresponding to the item name "debit amount" is retrieved from the third record, and the expansion record is obtained. Add to the corresponding position D of D. After that, the process returns from the step E28 to the step E24, and the item value "0" of the next item name "credit amount" is negatively added to the expansion record position "D" as in the above. After that, the next record is designated, and the same operation as described above is repeated one record each time a mismatch is detected in step E12. As a result, the condition value “≠ 0” of the condition item “counterpart”
The expansion records according to "011" are sequentially generated.

【0050】その後、会計ファイルの全レコ−ドを指定
し終り、ステップE15で次レコ−ド無しが検出される
と、ステップE16に進み、A表結合テ−ブル内に他の
ファイルが有るかをチェックするが、この場合、ファイ
ル無しが検出されるので、ステップE17に進み、展開
レコ−ドの編集処理が行われる。即ち、分類キ−が同一
の展開レコ−ドをそれぞれ抽出し、これを1つのレコ−
ドにまとめると共に、分類キ−にしたがって各展開レコ
−ドを昇順にソ−トする。例えば、図18に示す様に、
1レコ−ド目と2レコ−ド目の展開レコ−ドはその分類
キ−が同一である為、1つの展開レコ−ドにまとめら
れ、その項目位置「E」の値は「10,000」とな
る。図19は上述の様にして作成された展開ファイル1
1の内容を示している。即ち、計画ファイル、会計ファ
イルの内容にしたがって作成された展開ファイル11
で、そのレコード構造はA、B、C、D、E、Fの項目
を有し、その先頭項目Aは分類キーとなっている。
Then, when all records of the accounting file have been designated and no next record is detected in step E15, the process proceeds to step E16, and there is another file in the table A connection table. In this case, since the absence of a file is detected, the process proceeds to step E17, and the expansion record editing process is performed. That is, the development records having the same classification key are extracted, and these are extracted as one record.
Each development record is sorted in ascending order according to the classification key. For example, as shown in FIG.
The development records of the first record and the second record have the same classification key, so they are combined into one development record, and the value of the item position "E" is "10,000". It will be. FIG. 19 shows the expansion file 1 created as described above.
The contents of 1 are shown. That is, the expansion file 11 created according to the contents of the plan file and the accounting file
The record structure has items A, B, C, D, E, and F, and the first item A is a classification key.

【0051】このようにして展開ファイル作成部9は展
開ファイル11を作成したのち、展開集計処理部12を
起動させる。すると、展開集計処理部12は図20のフ
ローチャートにしたがって集計ファイル13を作成す
る。なお、図21は展開集計処理部12の動作内容を具
体的に説明する為の図である。展開ファイル作成部9は
展開ファイル11の内容と構成ファイル7の内容とに基
づいて集計ファイル13を部品展開手法にしたがって生
成する。先ず、展開集計処理部12は展開ファイル11
の先頭から1レコード分のデータを読み込む(ステップ
F1)。そして、次のステップF2ではデータ終了か、
つまり、展開ファイル11の先頭から全てのレコードを
読み出したか否かをチェックする。最初は展開ファイル
11の先頭から1レコード分のデータを読み込んだ場合
であるから、次のステップF3に進み、構成ファイル7
の内容をサーチし、その分類キーと一致する子コードを
持った構成レコードを構成ファイル7から検索する。い
ま、図21に示す様に展開ファイル11の先頭レコード
内の分類キーは「1101」であり、構成ファイル7に
は図12に示す様にこれと一致する子コードが存在する
為、ステップF3でそのことが検出されてステップF4
に進み、集計ファイル13のレコード(集計レコード)
を生成する。即ち、図21の具体例において、先ず、展
開集計処理部12はこの子コード「1101」に対応す
る親コードを構成ファイル7から読み出し、この親コー
ド「・C03」をB表の行No「03」とそれ以外「・
C」とに分解し、この行No「03」を集計ファイル13
の1レコード目の先頭項目に配置し、またそれ以外の
「・C」をそれに続けて配置する。そしてこの子コード
に対応する名称を構成ファイル7から読み出し、集計レ
コードの次の項目に配置する。これに続けて展開ファイ
ル11のデータ項目「800,000」を集計レコード
の次項目以降に順次配置する。この集計レコードはA表
の行No「03」に定義されているレコード名「人件
費」、集計レベル「C」の集計レコードであり、このレ
コード名に対応してA表に定義されている集計対象コー
ドに該当するデータを集計したものである。これによっ
て集計ファイル13の1レコード目のデータが生成され
ると、この生成レコードを集計ファイル13に書き出す
が、その際、集計ファイル13内に既に同一分類キーを
持つレコードが存在していれば、それを1レコードに集
計して集計ファイル13内に書き込み、また同一分類キ
ーのレコードが存在していなければ、今回生成したレコ
ードを新たに集計ファイル13に追加する(ステップF
5)。
In this way, the expansion file creating section 9 creates the expansion file 11 and then activates the expansion aggregation processing section 12. Then, the development totalization processing unit 12 creates the totalization file 13 according to the flowchart of FIG. 21. FIG. 21 is a diagram for specifically explaining the operation content of the expansion totalization processing unit 12. The expansion file creation unit 9 generates the totalization file 13 according to the parts expansion method based on the contents of the expansion file 11 and the contents of the configuration file 7. First, the expansion totalization processing unit 12 uses the expansion file 11
The data for one record is read from the beginning of (step F1). Then, in the next step F2, is the data end,
That is, it is checked whether or not all the records have been read from the beginning of the expanded file 11. First, since the data for one record is read from the beginning of the expansion file 11, the process proceeds to the next step F3, and the configuration file 7
Is searched, and a configuration record having a child code matching the classification key is retrieved from the configuration file 7. Now, as shown in FIG. 21, the classification key in the first record of the expanded file 11 is “1101”, and the configuration file 7 has a child code matching this as shown in FIG. 12, so in step F3 When that is detected, step F4
Proceed to and the record of the total file 13 (total record)
To generate. That is, in the specific example of FIG. 21, first, the expansion totalization processing unit 12 reads the parent code corresponding to the child code “1101” from the configuration file 7, and reads this parent code “· C03” from the row No. “03” of the B table. And other
C ”and decompose this line No.“ 03 ”into tabulation file 13
Is placed in the first item of the first record of, and the other ".C" is placed following it. Then, the name corresponding to this child code is read from the configuration file 7 and placed in the next item of the tabulation record. Following this, the data item “800,000” of the expansion file 11 is sequentially arranged after the next item of the totalized record. This aggregate record is an aggregate record of record name "personnel expenses" and aggregate level "C" defined in row No. "03" of table A, and aggregates defined in table A corresponding to this record name. This is a summary of the data corresponding to the target code. When the data of the first record of the totalization file 13 is generated by this, the generated record is written to the totalization file 13, but at this time, if a record having the same classification key already exists in the totalization file 13, It is totalized into one record and written in the totalization file 13, and if there is no record with the same classification key, the record generated this time is newly added to the totalization file 13 (step F
5).

【0052】次に、構成ファイル7内の該当レコード位
置に終了フラグがセットされているか否かをチェックす
る(ステップF6)。ここで、構成ファイル7内の終了
フラグは親コードの集計レベルが「A」のときに“1”
となるもので、終了フラグが“1”のときにはそのまま
ステップF3に戻るが、終了フラグが“1”でなければ
新たな展開レコードを生成して展開ファイル11への書
き出しを行う(ステップF7)。この場合、図21の
(B)に示す様なレコードを生成して展開ファイル11
へ戻す。即ち、今回生成した集計レコードよりも上位レ
ベルにあるレコード名がA表に定義されていれば、今回
生成した集計レコードの集計結果を上位レベルにあるレ
コード名の集計レコードへ集計させる為に、新たな展開
レコードを生成して展開ファイル11への書き出しを行
う。ここで、構成ファイル7内の該当する親コード「・
C03」を先頭項目に配置し、これに続いて展開ファイ
ル11から読み出したデータを順次配置して成るレコー
ドを展開ファイル11へ書き出す。なお、図19で示し
た展開ファイル11において、図中破線の下に配置した
レコードはこの戻されたレコードを示している。その
後、ステップF3に戻り、以下、構成ファイル7の内容
を全てサーチし、該当レコードが検出されなくなるまで
上述の動作を繰り返す。この結果、ステップF3で該当
レコード無しが検出されて不一致終了となると、ステッ
プF1に戻り、展開ファイル11から次のレコードを読
み出す。このような動作は展開ファイル11の全レコー
ドに対して行われる。すると、ステップF1でデータ終
了が検出されてステップF8に進み、集計ファイル13
を構成する各レコードをその先頭項目の内容にしたがっ
て昇順にソートする。このようにしてソートされた集計
ファイル内の各レコードは帳票出力時の印刷順に並べ替
えられる。
Next, it is checked whether or not the end flag is set at the corresponding record position in the configuration file 7 (step F6). Here, the end flag in the configuration file 7 is "1" when the aggregation level of the parent code is "A".
If the end flag is "1", the process directly returns to step F3. If the end flag is not "1", a new expansion record is generated and written in the expansion file 11 (step F7). In this case, a record as shown in FIG.
Return to. That is, if a record name at a higher level than the total record generated this time is defined in the table A, in order to aggregate the totalized result of the total record generated this time to the total record having the record name at the higher level, A new expansion record is generated and written to the expansion file 11. Here, the corresponding parent code “・ in the configuration file 7
C03 ”is arranged in the first item, and subsequently, a record formed by sequentially arranging the data read from the expansion file 11 is written to the expansion file 11. In the expanded file 11 shown in FIG. 19, the record arranged below the broken line in the drawing shows the returned record. After that, the process returns to step F3, and thereafter, all the contents of the configuration file 7 are searched, and the above operation is repeated until the corresponding record is not detected. As a result, when no corresponding record is detected in step F3 and the mismatch ends, the process returns to step F1 to read the next record from the expanded file 11. Such an operation is performed for all the records of the expanded file 11. Then, the end of data is detected in step F1 and the process proceeds to step F8, where the totalization file 13
The records that make up are sorted in ascending order according to the contents of the first item. The records in the totalized file sorted in this way are rearranged in the print order when the form is output.

【0053】このようにして集計ファイル13が作成さ
れると、展開集計処理部12は印刷処理部14を起動さ
せる。すると、印刷処理部14は印刷書式メモリ8の内
容を取り込んでその印刷書式にしたがって集計ファイル
13の内容を帳票フォーマットと共にプリンタ15から
印刷出力させることにより帳票作成を行う。この場合、
印刷処理部14は集計ファイル13の先頭から1レコー
ドずつ集計レコードを読み出し、この集計レコード内に
含まれている集計レベルを判別し、それに対応する括り
用の罫線フォーマットと共に集計レコード内の名称およ
びデータを1レコードずつ印字出力させると共に、印刷
書式メモリ8に記憶されている各項目名を順次取り出し
て帳票フォーマットの対応位置に印刷出力させる。図2
はこの場合の帳票印刷例で、その行方向には集計レベル
に応じた階層構造のフォーマットと共に集計レコードの
レコード名が印刷されると共に、列方向には集計レコー
ドの項目名が印刷され、更に集計ファイル13の内容が
1レコード毎に印刷出力される。
When the totalization file 13 is created in this way, the expansion totalization processing unit 12 activates the print processing unit 14. Then, the print processing unit 14 takes in the content of the print format memory 8 and prints out the content of the totalization file 13 together with the form format from the printer 15 according to the print format to create the form. in this case,
The print processing unit 14 reads the totalized records one by one from the beginning of the totalization file 13, determines the totalization level included in the totalization record, and determines the name and data in the totalization record together with the corresponding ruled line format for bundling. Is printed out one record at a time, and each item name stored in the print format memory 8 is sequentially taken out and printed out at a position corresponding to the form format. Figure 2
Is a form printing example in this case. In the row direction, the record name of the totalized record is printed together with the hierarchical structure format according to the totaling level, and the item name of the totalized record is printed in the column direction. The contents of the file 13 are printed out for each record.

【0054】以上の様に、本実施例においては業務担当
者が所望する帳票を得る為にその出力イメージにしたが
って集計定義表であるA表、B表を任意に定義しておく
と、その定義内容にしたがって任意のレコード項目の内
容が指定ファイルから読み出されて分類集計されると共
に、その集計結果が定義内容通りの並び順で、かつ集計
レベルに応じた階層構造で印刷されるので、業務担当者
であっても所望する帳票を容易に得ることができる。
As described above, in the present embodiment, in order to obtain the form desired by the person in charge of business, the table A and the table B, which are the total definition tables, are arbitrarily defined according to the output image, and the definition is defined. The contents of any record item are read from the specified file according to the contents and classified and aggregated, and the aggregated results are printed in the order of the definition and in the hierarchical structure according to the aggregation level. Even the person in charge can easily obtain the desired form.

【0055】特に、B表の条件項目には第1の条件項
目、第2の条件項目をB表の列項目毎にそれぞれ定義で
き、また第1の条件項目には複数の条件値を論理和で定
義し、第1および第2の条件項目の条件値を論理積で定
義できる為、レコード抽出の条件をきめ細かに定義する
ことが可能となる。このようにレコード抽出条件をきめ
細かに定義しておけば、レコード集計を行う前処理とし
て集計対象レコードを絞り込む際に、その絞り込みを効
果的に行うことが可能となる。
In particular, the first condition item and the second condition item can be defined for each column item of the B table in the condition item of the B table, and a plurality of condition values are logically ORed in the first condition item. Since the condition values of the first and second condition items can be defined by the logical product, it is possible to finely define the record extraction condition. By defining the record extraction conditions in this way, it is possible to effectively narrow down the records to be totaled as a preprocessing for totaling the records.

【0056】なお、上記実施例は第2の条件項目に1つ
の条件値を定義するようにしたが、第1の条件項目と同
様に複数定義するようにしてもよい。また、上記実施例
は条件値を定義するようにしたが、論理演算子を用いた
条件式を定義するようにしてもよい。また、上記実施例
は条件項目として2種類定義できるようにしたが、3種
類以上定義できるようにしてもよい。一方、上記実施例
はA表、B表を別個独立に定義するようにしたが、A
表、B表を同一画面上において同時に定義するようにし
てもよい。また、上記実施例においては、A表の見出し
部によって構成されるマトリックス上の任意の交点位置
に項目コードを入力するようにしたが、項目名を入力す
るようにしてもよい。
In the above embodiment, one condition value is defined in the second condition item, but a plurality of condition values may be defined in the same manner as in the first condition item. Further, although the conditional value is defined in the above embodiment, a conditional expression using a logical operator may be defined. Further, in the above embodiment, two types of condition items can be defined, but three or more types may be defined. On the other hand, in the above embodiment, the table A and the table B were defined separately and independently.
The table and the table B may be simultaneously defined on the same screen. Further, in the above embodiment, the item code is input at an arbitrary intersection position on the matrix constituted by the heading section of the table A, but the item name may be input.

【0057】[0057]

【発明の効果】この発明によれば、帳票処理プログラム
を変更することなしに、一般ユーザである業務担当者が
所望する帳票を得る為に、レコード抽出条件や集計対象
項目等を単に指定しておくだけで、その指定内容に基づ
いて意図したイメージ通りの帳票を出力することができ
るので、従来の様にシステムエンジニア等の専門家にプ
ログラムの作成を依頼する必要はなく、所望する帳票を
誰でも簡単に得ることが可能となり、極めて実用性が高
いものとなる。
According to the present invention, in order to obtain a form desired by a business person who is a general user without changing the form processing program, the record extraction conditions, the items to be totaled, etc. are simply designated. By simply setting it, you can output the form as intended based on the specified contents, so you do not need to ask a specialist such as a system engineer to create a program as in the past. However, it can be easily obtained and 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】帳票の印刷出力例を示した図。FIG. 2 is a diagram showing a printout example of a form.

【図3】A表に定義された内容を具体的に示した図。FIG. 3 is a diagram specifically showing the contents defined in table A.

【図4】B表に定義された内容を具体的に示した図。FIG. 4 is a diagram specifically showing the contents defined in table B.

【図5】図3、図4に示すA表、B表を解析することに
よって得られたA表結合テーブル、B表結合テーブル、
B表条件テーブル、B表集計項目テーブルの内容を具体
的に示したもので、(A)はA表結合テーブル、(B)
はB表結合テーブル、(C)はB表条件テーブル、
(D)はB表集計項目テーブルを示した図。
5 is a table A join table, a table B join table obtained by analyzing the tables A and B shown in FIG. 3 and FIG.
The contents of the B table condition table and the B table total item table are concretely shown. (A) is the A table join table, (B)
Is a B table join table, (C) is a B table condition table,
FIG. 6D is a diagram showing a B-table tabulation item table.

【図6】表構造解析部5の全体動作の概要を示したゼネ
ラルフローチャート。
FIG. 6 is a general flowchart showing an outline of the overall operation of the table structure analysis unit 5.

【図7】図6で示したA表結合テーブル作成処理を詳細
に示したフローチャート。
FIG. 7 is a flowchart showing in detail the table A join table creation process shown in FIG.

【図8】図6で示した構成ファイル作成処理の一部を詳
細に示したフローチャート。
FIG. 8 is a flowchart showing in detail a part of the configuration file creation processing shown in FIG.

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

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

【図11】構成ファイル作成処理の動作内容を具体的に
示した図で、(A)、(C)は構成レコード、(B)は
最終項目ワークメモリの内容を示した図。
FIG. 11 is a diagram specifically showing the operation contents of a configuration file creation process, in which (A) and (C) are configuration records and (B) is a diagram showing the contents of the final item work memory.

【図12】構成ファイルの具体的な内容を示した図。FIG. 12 is a diagram showing specific contents of a configuration file.

【図13】図6で示したB表に関するテーブル作成処理
の一部を示したフローチャート。
FIG. 13 is a flowchart showing a part of table creation processing relating to table B shown in FIG. 6.

【図14】図13に続くテーブル作成処理の一部を示し
たフローチャート。
FIG. 14 is a flowchart showing a part of the table creation processing continued from FIG.

【図15】展開ファイル作成処理の一部を示したフロー
チャート。
FIG. 15 is a flowchart showing a part of a development file creation process.

【図16】図15に続く展開ファイル作成処理の一部を
示したフローチャート。
16 is a flowchart showing a part of expanded file creation processing subsequent to FIG.

【図17】計画ファイルのレコード内容に基づいて作成
された展開レコードを示した図。
FIG. 17 is a diagram showing a development record created based on the record contents of a plan file.

【図18】会計ファイルのレコード内容に基づいて作成
された展開レコードを示した図。
FIG. 18 is a diagram showing a developed record created based on the record contents of an accounting file.

【図19】展開ファイル11の内容を具体的に示した
図。
FIG. 19 is a diagram concretely showing the contents of a development file 11.

【図20】展開集計処理部12による展開集計処理を示
した図。
FIG. 20 is a diagram showing a deployment tabulation process by a deployment tabulation processing unit 12.

【図21】展開集計処理の動作内容を具体的に示した図
で、(A)は展開ファイル、構成ファイルから集計レコ
ードが生成される様子を示した図、(B)は新たに生成
される展開レコードを示した図。
21A and 21B are diagrams specifically showing the operation contents of the expansion and aggregation processing, in which FIG. 21A shows the expansion file, and how the aggregation record is generated from the configuration file, and FIG. 21B is newly generated. The figure which showed the expansion record.

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

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

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】集計レコードのデータ項目として出力され
る項目名を指定し、かつこの各項目名に対応付けて集計
対象項目を指定すると共に複数の項目をレコード抽出の
条件項目として指定し、更に、各条件項目毎にその抽出
条件をそれぞれ指定する指定手段と、 この指定手段によって各項目名に対応して指定された複
数の抽出条件の全てに合致するレコードを所定のファイ
ルから抽出する抽出手段と、 この抽出手段によって抽出されたレコードの中から前記
指定手段によって指定された集計対象項目に該当する項
目データを読み出す読出手段と、 この読出手段によって読み出された各項目データを前記
指定手段で指定された項目名毎に集計する集計手段と、 この集計手段によって集計されたレコードを前記指定手
段で指定された各項目名の並び順にしたがって出力する
出力手段と、 を具備したことを特徴とするデータ処理装置。
1. A name of an item to be output as a data item of a total record is specified, an item to be totaled is specified in association with each item name, and a plurality of items are specified as condition items for record extraction. Specifying means for specifying the extraction condition for each condition item, and extracting means for extracting from the predetermined file a record that matches all of the plurality of extraction conditions specified corresponding to each item name by the specifying means Read means for reading out item data corresponding to the item to be totalized specified by the specifying means from the records extracted by the extracting means; and each item data read by the reading means by the specifying means. A totaling means for totaling for each designated item name, and a record totalized by this totaling means for each item name designated by the designating means. A data processing device comprising: an output unit that outputs according to the order of arrangement.
JP5182175A 1993-06-29 1993-06-29 Data processing unit Abandoned JPH0785176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5182175A JPH0785176A (en) 1993-06-29 1993-06-29 Data processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5182175A JPH0785176A (en) 1993-06-29 1993-06-29 Data processing unit

Publications (1)

Publication Number Publication Date
JPH0785176A true JPH0785176A (en) 1995-03-31

Family

ID=16113659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5182175A Abandoned JPH0785176A (en) 1993-06-29 1993-06-29 Data processing unit

Country Status (1)

Country Link
JP (1) JPH0785176A (en)

Similar Documents

Publication Publication Date Title
JP3108984B2 (en) Data processing device
RU2006113579A (en) METHOD FOR VISUAL PROGRAMMING A SET OF TEAMS FOR A PROCESS
JP5385349B2 (en) Receipt definition data creation device and program thereof
JP6283190B2 (en) Tabular data processing program, method, and apparatus
US5870712A (en) Data processing method and its apparatus
WO2014208205A1 (en) Program, method, and device for processing tabular data
US5526518A (en) Data processing apparatus
CN115238662A (en) Bidding file rapid editing method and system
JP6668580B2 (en) File editing method, file editing device and file editing program
JPH0785176A (en) Data processing unit
JP3109324B2 (en) Data aggregation device
JP3548866B2 (en) Data processing device
JP3551445B2 (en) Form processing device
JP3482651B2 (en) Data processing device
JP2017151627A (en) Slip data creating system, slip data creating device, slip data creating method and control program of slip data creating device
JPH0785175A (en) Slit output deviec
JPH07141445A (en) Data processor
JPH04181372A (en) Table sheet totalization system for data
JP3309164B2 (en) Print processing device
WO2023047570A1 (en) Information processing device, information processing method, and information processing program
JP3064706B2 (en) Data processing device
JPH07282162A (en) Data processor
JPH10254979A (en) Data processing system and data base design system
JPH07262165A (en) Aggregating method for two-dimensional data
JP2734535B2 (en) Form output device

Legal Events

Date Code Title Description
A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20040127