JPH06301701A - Data processor - Google Patents

Data processor

Info

Publication number
JPH06301701A
JPH06301701A JP5112352A JP11235293A JPH06301701A JP H06301701 A JPH06301701 A JP H06301701A JP 5112352 A JP5112352 A JP 5112352A JP 11235293 A JP11235293 A JP 11235293A JP H06301701 A JPH06301701 A JP H06301701A
Authority
JP
Japan
Prior art keywords
item
name
file
record
slip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5112352A
Other languages
Japanese (ja)
Other versions
JP3482651B2 (en
Inventor
Hiroyoshi Kiuchi
啓義 木内
Toshio Higashihara
利雄 東原
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 JP11235293A priority Critical patent/JP3482651B2/en
Publication of JPH06301701A publication Critical patent/JPH06301701A/en
Application granted granted Critical
Publication of JP3482651B2 publication Critical patent/JP3482651B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To output a business form, etc., by reading out data from a prescribed file in accordance with the designated contents, even if a person in charge of business, etc., designate directly the item contents to be extracted as an output record in accordance with an output image of the business form, etc., by a slip name and the slip item contents. CONSTITUTION:At the time of designating parameters (a record name and item contents of a sum-up record, an item name and a sum-up object item of the sum-up record, etc.) of a table A and a table B from an input part 1, when the item contents and the sum-up object item are designated by a slip name and a slip item name, a parameter converting part 5 converts them to a file name and a file item name corresponding thereto and sets them to a conversion parameter file 8. As a result, data corresponding to the defined contents of these tables A and B are read out of a prescribed file and summed up, and its sum-up record is allowed to correspond to the record name and outputted for printing.

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 device for processing record data from an accounting file, a personnel file, etc. in an office computer, a personal computer or the like.

【0002】[0002]

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

【0003】[0003]

【発明が解決しようとする課題】しかしながら、コード
変換テーブルを用いる方法では専門家であるシステムエ
ンジニアが分類集計用のコード体系(変換テーブル)を
作成しなければならなかった。即ち、種々の業務上の要
望に応じて分類コード体系を作成することは極めて専門
的で高度な知識を必要とする為、一般ユーザの業務担当
者にあってはその作成は極めて困難であり、システムエ
ンジニアにその作成を依頼しなければならないのが現状
であった。また、一般ユーザの業務担当者にあっては、
日常使っている伝票名やその伝票項目名は分るが、オフ
ィスコンピュータ等にどの様なファイルが記憶管理さ
れ、そのレコード構造がどのように構成されているか、
どのファイルにどの項目が存在しているか等を知る為に
は、システム設計書を参照しなければ分らず、この意味
からも業務担当者が所望する帳票を得ることは極めて困
難であった。この発明の課題は、帳票等の出力イメージ
にしたがって出力レコードとして抽出すべき項目内容を
業務担当者等が伝票名と伝票項目内容とで直接指定した
としても、その指定内容にしたがって所定ファイルから
データを読み出して帳票等を出力できるようにすること
である。
However, in the method using the code conversion table, a system engineer who is an expert has to create a code system (conversion table) for classification and aggregation. That is, creating a classification code system according to various business needs requires extremely specialized and sophisticated knowledge, so it is extremely difficult for a general user's business person to create it. The current situation was that we had to ask the system engineer to create it. In addition, for business users of general users,
You can see the names of the slips and the slip item names that you use every day, but what kind of files are stored and managed in your office computer, etc., and how are their record structures organized?
In order to know which item exists in which file, etc., it is necessary to refer to the system design document, and in this sense, it is extremely difficult for the person in charge of business to obtain the desired form. The problem to be solved by the present invention is that even if a person in charge of business directly designates the contents of an item to be extracted as an output record according to the output image of a form or the like by the slip name and the contents of the slip item, the data from the predetermined file is specified according to the specified contents. Is to be able to read out and output forms and the like.

【0004】[0004]

【課題を解決するための手段】第1の発明の手段は次の
通りである。 (1A)、指定手段は出力レコード(例えば集計レコー
ド)のレコード名を指定すると共に、出力レコードとし
て抽出すべき項目内容を伝票名と伝票項目名とで指定す
るキー入力装置等である。 (2A)、対応テーブル記憶手段はファイル名で定義さ
れるファイルの各項目名と伝票名で定義される伝票の各
項目名とを対応付けて記憶する。 (3A)、読み出し手段はこの対応テーブル記憶手段を
検索し、前記指定手段で指定された伝票名に対応するフ
ァイル名および指定された伝票項目名に対応する前記フ
ァイルの項目名を前記対応テーブル記憶手段から読み出
す。 (4A)、抽出手段はこの読み出し手段によって読み出
されたファイル名およびこのファイルの項目名に基づい
て当該ファイルよりレコードを抽出する。 (5A)、加工手段はこの抽出手段によって抽出された
レコードに基づいてこの抽出レコードを前記指定手段で
指定されたレコード名の出力レコード毎に加工するもの
で、例えば、レコード集計を行う。 (6A)、出力手段はこの加工手段によって加工された
出力レコードを前記指定手段で指定されたレコード名に
対応付けて出力するもので、例えば集計レコードをレコ
ード名に対応付けて印刷出力することにより帳票作成を
行う。 第2の発明の手段は次の通りである。 (1B)、指定手段は出力レコードのデータ項目として
出力すべき項目名を指定すると共に、各項目名に対応し
てデータ項目として抽出すべき出力対象項目を伝票名と
この伝票の項目名とで指定し、更にこの出力対象項目の
抽出条件を指定するキー入力装置等である。 (2B)、対応テーブル記憶手段、(3B)、読み出し
手段は上記(1A)の対応テーブル記憶手段、(2A)
の読み出し手段と同様であるので、その説明は省略す
る。 (4B)、抽出手段はこの読み出し手段によって読み出
されたファイル名およびこのファイルの項目名にしたが
って、かつ前記指定手段で指定された抽出条件にしたが
ってレコードを抽出する。 (5B)、加工手段はこの抽出手段によって抽出された
レコードの各項目のデータを前記指定手段で指定された
各項目名毎に加工する。 (6B)、出力手段はこの加工手段で加工された出力レ
コードを前記指定手段で指定された項目名にしたがって
出力する。
Means for Solving the Problems The means of the first invention is as follows. (1A), the designation means is a key input device or the like that designates a record name of an output record (for example, a totalization record) and designates the contents of items to be extracted as an output record by a slip name and a slip item name. (2A), the correspondence table storage means stores each item name of the file defined by the file name and each item name of the slip defined by the slip name in association with each other. (3A), the reading means searches the correspondence table storage means, and stores the file name corresponding to the slip name designated by the designation means and the item name of the file corresponding to the designated slip item name in the correspondence table storage. Read from the means. (4A), the extracting means extracts a record from the file based on the file name read by the reading means and the item name of the file. (5A), the processing means processes this extracted record for each output record having the record name designated by the designating means on the basis of the record extracted by the extracting means. For example, record aggregation is performed. (6A), the output means outputs the output record processed by the processing means in association with the record name designated by the designating means. For example, by printing the aggregate record in association with the record name. Create a form. The means of the second invention is as follows. (1B), the designating means designates an item name to be output as a data item of an output record, and the output target item to be extracted as a data item corresponding to each item name is a slip name and an item name of this slip. It is a key input device or the like for specifying and further specifying the extraction condition of the output target item. (2B), correspondence table storage means, (3B), read means is the correspondence table storage means of (1A), (2A)
Since the reading means is the same as the reading means, the description thereof is omitted. (4B), the extracting means extracts the record according to the file name read by the reading means and the item name of the file, and according to the extraction condition designated by the designating means. (5B), the processing unit processes the data of each item of the record extracted by the extraction unit for each item name designated by the designation unit. (6B), the output means outputs the output record processed by the processing means in accordance with the item name designated by the designating means.

【0005】[0005]

【作用】第1の発明の手段の作用は次の通りである。い
ま、所望する帳票等を得る為にその出力イメージにした
がってキーボード等から出力レコードのレコード名を指
定すると共に、出力レコードとして抽出すべき項目内容
を伝票名と伝票項目名とで指定すると、その指定内容に
したがって対応テーブルからそれに対応するファイル名
およびこのファイルの項目名が読み出される。すると、
このファイル名およびこのファイルの項目名にしたがっ
て当該ファイルから抽出された抽出レコードは指定され
たレコード名の出力レコード毎に加工される。これによ
って加工された出力レコードは指定されたレコード名に
対応付けて出力される。第2の発明の手段の作用は次の
通りである。いま、所望する帳票等を得る為に、その出
力イメージにしたがってキーボード等から出力レコード
のデータ項目として出力すべき項目名を指定すると共
に、各項目名に対応してデータ項目として抽出すべき出
力対象項目を伝票名およびこの伝票の項目名で指定し、
更にこの出力対象項目の抽出条件を指定すると、その指
定内容にしたがって対応テーブルからそれに対応するフ
ァイル名およびこのファイルの項目名が読み出される。
すると、このファイル名およびこのファイルの項目名に
したがって、かつ指定された抽出条件にしたがって当該
ファイルから抽出された抽出レコードの各項目のデータ
は、指定された各項目名毎に加工される。これによって
加工された出力レコードは指定された項目名にしたがっ
て出力される。したがって、帳票等の出力イメージにし
たがって出力レコードとして抽出すべき項目内容を業務
担当者等が伝票名と伝票項目内容とで直接指定したとし
ても、その指定内容にしたがって所定ファイルからデー
タを読み出して帳票等を出力することができる。
The operation of the means of the first invention is as follows. Now, in order to obtain the desired form etc., specify the record name of the output record from the keyboard etc. according to the output image, and specify the item contents to be extracted as the output record with the slip name and the slip item name. According to the contents, the corresponding file name and the item name of this file are read from the correspondence table. Then,
The extracted record extracted from the file according to this file name and the item name of this file is processed for each output record of the specified record name. The output record thus processed is output in association with the designated record name. The operation of the means of the second invention is as follows. Now, in order to obtain the desired form etc., specify the item name to be output as a data item of the output record from the keyboard etc. according to the output image, and the output target to be extracted as a data item corresponding to each item name Specify the item with the slip name and the item name of this slip,
Further, when the extraction condition of the output target item is designated, the file name and the item name of this file corresponding to the file are read from the correspondence table according to the designated contents.
Then, the data of each item of the extracted record extracted from the file according to the file name, the item name of the file, and the specified extraction condition is processed for each specified item name. The output record thus processed is output according to the designated item name. Therefore, even if the person in charge of business directly specifies the item content to be extracted as an output record according to the output image of the form etc. by the slip name and the slip item content, the data is read from the predetermined file according to the specified content and the form is read. Etc. can be output.

【0006】[0006]

【実施例】以下、図1〜図27を参照して一実施例を説
明する。図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. corresponding to the aggregation level using the aggregation definition table. Read the records corresponding to the definition contents of the aggregation definition table from the specified file and aggregate the records in the hierarchical structure according to the aggregation level.
The tabulation result is printed out as form data. The input unit 1 is a key input device for inputting various data and commands, and the data input from the input unit 1 is 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に示す帳票は集計レコードのレコード名を行
項目に配置し、また集計レコードのデータ項目名を列項
目に配置したものである。入力パラメータファイル4に
設定された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 in accordance with the data input from the input unit 1, is displayed and output from the display unit 3, and is stored in the input parameter file 4. Set. Since the tables A and B will be described in detail later, they will be briefly described 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 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. The table A set in the input parameter file 4 is configured as shown in FIG. 3 and the table B is configured as shown in FIG. 4, and the table A corresponds to the aggregation level and the record name of the aggregation record and the items to be extracted as the aggregation record. It is a definition table that defines contents and the like. Further, the table B defines the item names to be extracted as the data items of the aggregate record and the items to be aggregated to be extracted as data items corresponding to the item names, the format at the time of printing the form, the extraction conditions of the items to be aggregated, and the like. It is a definition table.

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

【0009】この入力パラメータファイル4に設定され
たA表パラメータは、集計レコードとして抽出すべき項
目内容をファイル名およびそのファイルの項目名とで定
義せず、伝票名とその伝票項目名とで定義したものであ
る。同様に、B表パラメータは、データ項目として抽出
すべき集計対象項目をファイル名およびそのファイルの
項目名とで定義せず、伝票名とその伝票項目名とで定義
し、かつ集計対象項目の抽出条件も伝票項目名で定義し
たものである。このように入力パラメータファイル4内
に設定されたA表およびB表のパラメータは、伝票名を
ベースにしたパラメータである為、パラメータ変換部5
はこの入力パラメータファイル4の内容をファイル名を
ベースにしたパラメータに変換する。即ち、パラメータ
変換部5は入力パラメータファイル4内のA表パラメー
タおよびB表パラメータをファイル名/伝票名対応テー
ブル6およびファイル項目名/伝票項目名対応テーブル
7を参照することによってファイル名をベースにしたパ
ラメータにそれぞれ変換するもので、その変換結果は変
換パラメータファイル8に設定される。
The table A parameter set in the input parameter file 4 does not define the content of the item to be extracted as the totalized record by the file name and the item name of the file, but by the slip name and the slip item name. It was done. Similarly, in the B table parameter, the totaling target item to be extracted as a data item is not defined by the file name and the item name of the file, but by the slip name and the slip item name, and the totaling target item is extracted. The condition is also defined by the slip item name. Since the parameters of the tables A and B set in the input parameter file 4 in this way are parameters based on the slip name, the parameter conversion unit 5
Converts the contents of the input parameter file 4 into parameters based on the file name. That is, the parameter conversion unit 5 refers to the table A parameter and the table B parameter in the input parameter file 4 by referring to the file name / slip name correspondence table 6 and the file item name / slip item name correspondence table 7 and based on the file name. The converted result is set in the conversion parameter file 8.

【0010】ここで、図5はファイル名/伝票名対応テ
ーブル6の内容を示し、このファイル名/伝票名対応テ
ーブル6は「計画ファイル」、「会計ファイル」等の各
種ファイル名に対応して「予算計画書」、「購買伝票」
等の伝票名を記憶するもので、入力部1から入力された
データに基づいてパラメータ設定部2はファイル名/伝
票名対応テーブル6にファイル名、伝票名を設定する。
また、パラメータ設定部2はファイル名/伝票名対応テ
ーブル6の内容に基づいてファイル項目名/伝票項目名
対応テーブル7を作成する。図6はこのファイル項目名
/伝票項目名対応テーブル7の一部を示したもので、フ
ァイル項目名/伝票項目名対応テーブル7はファイル毎
に、ファイル名で定義されるファイルの各項目名と、伝
票名で定義される各項目名とを対応付けた各種テーブル
を有する構成となっている。ここで、図(A)はファイ
ル名「計画ファイル」で定義されるファイルの各項目名
と伝票種別に伝票名「予算計画書」、「修正予算申請
書」……で定義される伝票の各項目名とをそれぞれ対応
付けたテーブルである。同様に、図(B)はファイル名
「会計ファイル」で定義されるファイルの各項目名と伝
票種別に伝票名「購買伝票」……で定義される伝票の各
項目名とを対応付けたテーブルである。この場合、購買
伝票は図示の如く、更に「借方」と「貸方」に分かれて
いる為、「借方」の伝票項目名と「貸方」の伝票項目名
とがそれぞれファイル項目名に対応付けられている。な
お、ファイルの項目名に対応して設定されている「種
別」は対応するファイル項目名で示される項目内容がコ
ードであることを示す為の識別情報であり、また、「テ
ーブル名」は対応するファイル項目名で示される項目内
容がコードである場合に参照されるコード/キャラクタ
変換用の参照テーブルである。ここで、図(A)に示す
様に、ファイル項目名「予算項目」に対応してその種別
には「コード」、そのテーブル名には「予算テーブル」
が設定され、また、ファイル項目名「計画種別」に対応
してその種別には「コード」、そのテーブル名には「計
画テーブル」が設定されている。また、図中、〈 〉内
の値は固定値であることを示し、〈4251〉は罫線コ
ードの固定値を示している。
FIG. 5 shows the contents of the file name / slip name correspondence table 6, which corresponds to various file names such as "plan file" and "accounting file". "Budget plan", "Purchase slip"
The parameter setting unit 2 sets the file name and the slip name in the file name / slip name correspondence table 6 based on the data input from the input unit 1.
The parameter setting unit 2 also creates a file item name / slip item name correspondence table 7 based on the contents of the file name / slip name correspondence table 6. FIG. 6 shows a part of the file item name / slip item name correspondence table 7, and the file item name / slip item name correspondence table 7 shows, for each file, each item name of the file defined by the file name. , And various table names associated with each item name defined by the slip name. Here, Fig. (A) shows each item name of the file defined by the file name "plan file" and each of the slips defined by the slip name "budget plan document", "corrected budget application form" for the slip type. It is a table in which item names are associated with each other. Similarly, FIG. 6B is a table in which each item name of the file defined by the file name "accounting file" is associated with each item name of the slip defined by the slip name "purchase slip". Is. In this case, since the purchase slip is further divided into “debit” and “credit” as shown in the figure, the slip item name “debit” and the slip item name “credit” are associated with the file item name, respectively. There is. The "type" set corresponding to the item name of the file is identification information indicating that the item content indicated by the corresponding file item name is a code, and the "table name" corresponds Is a reference table for code / character conversion that is referred to when the item content indicated by the file item name to be executed is a code. Here, as shown in FIG. 7A, the type is “code” and the table name is “budget table” corresponding to the file item name “budget item”.
Is set, and corresponding to the file item name "plan type", "type" is set for the type and "plan table" is set for the table name. In the figure, the value in <> indicates a fixed value, and <4251> indicates a fixed value of the ruled line code.

【0011】一方、図7、図8は上述のようなファイル
名/伝票名対応テーブル6、およびファイル項目名/伝
票項目名対応テーブル7を参照することによってパラメ
ータ変換部5が入力パラメータファイル4内のA表パラ
メータ、B表パラメータを変換した場合の変換パラメー
タを示したものである。図7は図3で示した入力パラメ
ータを変換したA表の変換パラメータで、この場合、集
計レコードとして抽出すべき項目内容はファイル名とそ
のファイル項目名とで定義されたものとなる。また、図
8は図4で示した入力パラメータを変換したB表の変換
パラメータで、この場合、データ項目として抽出すべき
集計対象項目はファイル名およびそのファイル項目名と
で定義され、抽出条件もファイル項目名で定義されたも
のとなる。
On the other hand, referring to the file name / slip name correspondence table 6 and the file item name / slip item name correspondence table 7 shown in FIGS. 3 shows conversion parameters when the A table parameters and B table parameters are converted. FIG. 7 shows conversion parameters of the table A obtained by converting the input parameters shown in FIG. 3, and in this case, the item contents to be extracted as the totalized record are defined by the file name and the file item name. Further, FIG. 8 shows conversion parameters of the table B obtained by converting the input parameters shown in FIG. 4, and in this case, the totaling target items to be extracted as data items are defined by the file name and the file item name, and the extraction condition is also set. It is defined by the file item name.

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

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

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

【0015】次に、本実施例の動作を説明する。先ず、
所望する帳票を得る為に入力部1からA表、B表の作成
を指示すると、パラメータ設定部2はこれに応答して動
作する。先ず、A表作成時にパラメータ設定部2は入力
パラメータファイル4から読み出したA表の基本フォー
マットにしたがって表枠等を表示出力させる。図10は
A表の基本フォーマットの表示状態を示している。ここ
で、A表の基本フォーマットはその行方向の見出し部と
して6段階の集計レベルを表わすアルファベット文字
A、B、C、D、E、Fと、各集計レベルを区分する括
り用の罫線フォーマットが表示され、この括り用の罫線
は集計レベル毎に列方向に“ずれて”表示され、この
“ずれ”によって集計レベルの階層構造を表現してい
る。この場合の階層構造はA>B>C>D>E>Fの関
係にある。なお、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, at the time of 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 input parameter file 4. FIG. 10 shows the display state of the basic format of Table A. Here, the basic format of table A is alphabetical characters A, B, C, D, E, and F that represent six levels of aggregation as the heading portion in the row direction, and a ruled line format for grouping that divides each aggregation level. The displayed ruled lines are "shifted" in the column direction for each counting level, and the "shift" expresses the hierarchical structure of the counting level. The hierarchical structure in this case has a relationship of A>B>C>D>E> F. 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.

【0016】いま、A表の基本フォーマットが表示出力
されている状態において、業務担当者は入力部1からA
表のパラメータデータを入力する。図3は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 operation inputs from the input section 1 to A.
Enter the parameter data in the table. FIG. 3 is a display example when the parameter data is input to the table A. In the heading portion in the row direction 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. In “03”, the record name “personnel cost” ... Is entered corresponding to the aggregation level C. In the above example, an arbitrary record name is directly input from the input unit 1 for each aggregation level. However, when the record name to be used is predetermined,
The record names of these records to be used are stored in the table, and when the record name is input, the table contents are displayed in a list on the window screen, and the record name can be input by selecting an arbitrary record name from the list. Good. Further, the record name is not limited to the name and may be a code.

【0017】また、A表の列方向の見出し部には、任意
の伝票名およびその伝票項目名が入力されており、これ
によって集計レコードとして抽出すべき項目内容が定義
される。例えば、図3に示すA表においては2種類の伝
票名「予算計画書」、「購買伝票」が入力されており、
また、伝票名「予算計画書」に対応してその伝票項目名
「種別コード」が入力され、また、伝票名「購買伝票」
に対応してその伝票項目名「貸方・科目コード」が入力
されており、これによって集計レコードとして抽出すべ
き対象項目が定義されている。なお、購買伝票の様に
「借方」と「貸方」を有する場合にはその項目名指定の
記述で、項目名の前に「貸方」あるいは「借方」を付け
るようにする。更に、A表の行方向および列方向の見出
し部によって構成されるマトリックス状の各入力エリア
には、集計対象項目の具体的な項目内容(項目コード)
が入力されている。例えば、行No「03」、即ち、集計
レベルCに対応するレコード名「人件費」については、
「予算計画書」の「種別コード」に対応して項目コード
「101」、「102」が入力され、また、「購買伝
票」の「貸方・科目コード」に対応して項目コード「2
111」、「2112」、「2134」が入力されてい
る。また、A表には各行Noに対応して管理単位エリアが
設けられており、任意の行を指定してそれに対応する位
置に丸印を入力することにより当該行は項目コードが入
力されるエリアであることを示す。これはA表の定義内
容を行単位毎に解析する際に、当該丸印が付されている
行が解析対象となり、その他の行を対象から外すことに
よって処理スピードの向上を図る為である。なお、図3
で示したA表においては、伝票名として2種類入力した
例を示したが、3種類以上入力してもよく、また1つの
伝票名に対応してそれぞれ1つずつの伝票項目名を入力
したが、1つの伝票名に対応させて2以上の伝票項目名
を入力するようにしてもよい。このようにしてA表を作
成すると、パラメータ設定部2はそのパラメータデータ
を入力パラメータファイル4に設定する。
Further, an arbitrary slip name and its slip item name are entered in the column heading portion of table A, which defines the item contents to be extracted as the totalized record. For example, in the table A shown in FIG. 3, two types of slip names “budget plan” and “purchase slip” are entered,
Also, the slip item name "type code" is entered in correspondence with the slip name "budget plan", and the slip name "purchase slip"
The slip item name “credit / subject code” is entered in correspondence with, and this defines the target item to be extracted as an aggregate record. When the purchase slip has “debit” and “credit”, the item name is specified by adding “credit” or “debit” before the item name. Further, in each of the matrix-shaped input areas formed by the heading portions in the row direction and the column direction of table A, the specific item contents (item code) of the item to be totaled
Has been entered. For example, for the line No. “03”, that is, the record name “personnel cost” corresponding to the aggregation level C,
The item codes “101” and “102” are entered corresponding to the “type code” of the “budget plan”, and the item code “2” corresponding to the “credit / subject code” of the “purchase slip”.
"111", "2112", and "2134" have been input. In addition, table A has a management unit area corresponding to each row No. By specifying an arbitrary row and entering a circle in the corresponding position, that row is the area where the item code is entered. Is shown. 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. Note that FIG.
In the table A shown in, an example of inputting two types of slip names is shown, but three or more types may be input, and one slip item name is input corresponding to one slip name. However, two or more slip item names may be input in correspondence with one slip name. When the table A is created in this way, the parameter setting unit 2 sets the parameter data in the input parameter file 4.

【0018】次に、パラメータ設定部2は入力パラメー
タファイル4からB表の基本フォーマットを読み出して
表示出力させる。図11はこのB表の基本フォーマット
を示し、この行方向の見出し部にはその行項目のラベル
として「書式」、「対象伝票」、「集計項目」、「計算
式」、「条件項目」、「条件値」が予め固定的に設定さ
れており、また、B表の列方向における見出し部の各列
項目はその項目位置を示す名称として「A」、「B」、
「C」、……「G」に対応付けられている。なお、B表
においてもA表と同様に、その基本フォーマットの一部
を適宜修正変更可能であり、表枠全体を伸長したり、縮
少することもできるようにしてある。
Next, the parameter setting unit 2 reads the basic format of the table B from the input parameter file 4 and outputs it for display. FIG. 11 shows the basic format of this B table. In the heading portion in the row direction, as the label of the line item, “format”, “target slip”, “total item”, “calculation formula”, “condition item”, The “condition value” is fixedly set in advance, and each column item in the heading section in the column direction of table B has “A”, “B” as names indicating the item position,
It is associated with "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.

【0019】いま、B表の基本フォーマットが表示出力
されている状態において、業務担当者は入力部1からB
表のパラメータデータを入力する。図4は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 works from the input section 1 to the B
Enter the parameter data in the table. FIG. 4 is a display example in the case of inputting parameter data to the B table. In the heading portion in the column direction of the B table, the item name 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 as a subordinate item, "department expense" in item position "D",
Item position "E" is "replacement expense", and item position "F"
"Factor total" is entered in the field, and "Plan difference" is entered in the item position "G".

【0020】また、B表の行項目において、「書式」に
は項目データの印刷書式として列項目毎に欄幅、文字
種、文字サイズ等が入力されている。また、次の「対象
伝票」および「集計項目」は集計レコードのデータ項目
として印刷出力されるデータ項目名に対応してデータ項
目として抽出すべき出力対象項目を伝票名とこの伝票の
項目名とで定義するもので、先ず、「対象伝票」には列
項目位置「B」に対応して伝票名「予算計画書」が入力
されており、また、列項目位置「C」に対応して伝票名
「修正予算申請書」が入力され、更に列項目位置
「D」、「E」に対応して伝票名「購買伝票」がそれぞ
れ入力されている。更に、次の「集計項目」には、列項
目位置「B」に対応して伝票項目名「金額+」が入力さ
れ、また列項目位置「C」に対応して「修正金額+」が
入力され、更に列項目位置「D」、「E」に対応して
「借方・検収金額+」および「貸方・検収金額−」がそ
れぞれ入力されている。ここで、プラス/マイナス符号
はレコード集計時における加算集計あるいは減算集計を
定義するものである。次の「計算式」は集計結果を出力
する際の出力単位や集計演算の計算式を入力するもの
で、図示の例「B/1000」はデータ項目Bの内容を
“1000”で割って千円単位で出力すべきことを示し
ている。
Further, in the row item of the 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". The next "target slip" and "summary item" are the output target item to be extracted as a data item corresponding to the data item name that is printed out as the data item of the total record, the slip name and the item name of this slip. First, the slip name "budget plan" is entered corresponding to the column item position "B" in the "target slip", and the slip corresponding to the column item position "C" is entered. The name "corrected budget application form" is input, and further, the slip name "purchase slip" is input corresponding to the column item positions "D" and "E". Further, in the next "total item", the slip item name "amount +" is entered corresponding to the column item position "B", and the "correction amount +" is entered corresponding to the column item position "C". Further, “debit / acceptance amount +” and “credit / acceptance amount −” are entered corresponding to the column item positions “D” and “E”, respectively. Here, the plus / minus sign defines the addition total or the subtraction total when totaling the records. The next "calculation formula" is for inputting the output unit and the calculation formula of the aggregation operation when outputting the aggregation result. In the illustrated example "B / 1000", the content of data item B is divided by "1000" It indicates that output should be made in units of yen.

【0021】一方、条件項目および条件値はA表の定義
内容によって抽出された抽出レコードのうちある項目デ
ータが所定の値に該当するレコードのみを集計対象とし
て集計すべきことを定義するもので、この「条件項目」
は伝票項目名で入力する。ここで「条件項目」として列
項目位置「B」、「C」にはそれぞれ「計画No」が入力
され、またその「条件値」として列項目位置「B」には
「1」、列項目位置「C」には「2」、「3」、「4」
が入力され、同様に、「条件項目」として列項目位置
「D」、「E」にはそれぞれ「借方・科目コード」が入
力され、また「条件値」として列項目位置「D」には
「≠0011(0011を除く他の全てのコードを抽出
すべきことを示している)」、列項目位置「E」には
「0011」が入力されている。また、上記と同様に、
購買伝票の様に、「借方」と「貸方」を有する場合に
は、その項目名指定の記述で、項目名の前に「貸方」あ
るいは「借方」を付けるようにする。なお、B表の表枠
外には帳票名として「経費実績表」が入力されている。
このようにしてB表を作成すると、パラメータ設定部2
はそのパラメータデータを入力パラメータファイル4に
設定する。
On the other hand, the condition item and the condition value define that only records whose item data correspond to a predetermined value among the extracted records extracted according to the definition contents of the table A should be totaled. This "condition item"
Enter the slip item name. Here, “plan No” is input to each of the column item positions “B” and “C” as the “condition item”, and “1” is input to the column item position “B” and the column item position as the “condition value”. "C" is "2", "3", "4"
Similarly, the column item positions "D" and "E" are entered as "condition items" and "debit / item code", respectively, and the column item position "D" is displayed as "condition value". ≠ 0011 (indicating that all codes other than 0011 should be extracted) ", and" 0011 "is entered in the column item position" E ". Also, like the above,
When a purchase slip has “debit” and “credit” like a purchase slip, “debit” or “debit” is added in front of the item name in the description for specifying the item name. Note that "expense record list" is entered as the form name outside the frame of table B.
When the table B is created in this way, the parameter setting unit 2
Sets the parameter data in the input parameter file 4.

【0022】ここで、入力パラメータファイル4内に設
定されたA表パラメータおよびB表パラメータは伝票名
をベースとしたものである為、パラメータ変換部5はフ
ァイル名/伝票名対応テーブル6、ファイル項目名/伝
票項目名対応テーブル7を参照し、入力パラメータファ
イル4の内容をファイル名をベースにしたパラメータに
変換する。即ち、パラメータ変換部5はまず、入力パラ
メータファイル4内のA表パラメータを読み出し、この
伝票名に対応するファイル名をファイル名/伝票名対応
テーブル6から検索してこの伝票名を対応するファイル
名に変換する。次にこのファイル名に基づいてファイル
項目名/伝票項目名対応テーブル7を検索し、その対応
テーブルをアクセスする。そして、この対応テーブルを
検索し、A表内の伝票項目名を対応するファイルの項目
名に変換する。いま、図3に示すA表には伝票名として
「予算計画書」が入力されているので、この伝票名は対
応するファイル名「計画ファイル」に変換され、また、
その伝票の項目名として「種別コード」が入力されてい
るので、この伝票の項目名は対応するファイルの項目名
「予算項目」に変換される。同様に、A表内の次の伝票
名「購買伝票」は対応するファイル名「会計ファイル」
に変換され、また、その伝票の項目名「貸方・科目コー
ド」は対応するファイルの項目名「勘定項目」に変換さ
れる。これによって図3に示したA表の入力パラメータ
は図7で示す様にファイル名をベースとするA表パラメ
ータに変換されて変換パラメータファイル8に設定され
る。
Here, since the table A parameters and table B parameters set in the input parameter file 4 are based on the slip name, the parameter conversion unit 5 uses the file name / slip name correspondence table 6 and the file items. By referring to the name / slip item name correspondence table 7, the contents of the input parameter file 4 are converted into parameters based on the file name. That is, the parameter conversion unit 5 first reads the table A parameter in the input parameter file 4, searches the file name / slip name correspondence table 6 for the file name corresponding to this slip name, and searches this file name for the corresponding file name. Convert to. Next, the file item name / slip item name correspondence table 7 is searched based on this file name, and the correspondence table is accessed. Then, this correspondence table is searched and the slip item name in the A table is converted into the item name of the corresponding file. Since "budget plan" is entered as the slip name in the table A shown in FIG. 3, this slip name is converted into the corresponding file name "plan file".
Since the "type code" is input as the item name of the slip, the item name of this slip is converted into the item name "budget item" of the corresponding file. Similarly, the next slip name "purchasing slip" in table A corresponds to the corresponding file name "accounting file".
Further, the item name "credit / subject code" of the slip is converted into the item name "account item" of the corresponding file. As a result, the input parameters of the table A shown in FIG. 3 are converted into the table A parameters based on the file name as shown in FIG. 7 and set in the conversion parameter file 8.

【0023】次に、パラメータ変換部5は入力パラメー
タファイル4から図4で示したB表のパラメータを読み
出し、B表の列項目位置に対応して「対象伝票」に定義
されている伝票名「予算計画書」、「修正予算申請書」
を対応するファイル名「計画ファイル」にそれぞれ変換
し、また伝票名「購買伝票」を対応するファイル名「会
計ファイル」に変換する。更に、B表の各列項目位置に
対応して「集計項目」に定義されている伝票の項目名
「金額+」を対応するファイルの項目名「予算額+」
に、「修正金額+」を「予算額+」に、更に、「借方・
検収金額+」、「貸方・検収金額−」を「借方金額
+」、「貸方金額−」にそれぞれ変換する。次に、B表
の各列項目位置に対応して「条件項目」に定義されてい
る伝票の項目名「計画No」、「借方・科目コード」を対
応するファイルの項目名「計画種別」、「相手勘定」に
変換する。これによって図4に示したA表の入力パラメ
ータは図8で示す様にファイル名をベースとするB表パ
ラメータに変換されて変換パラメータファイル8に設定
される。
Next, the parameter conversion unit 5 reads the parameters of the B table shown in FIG. 4 from the input parameter file 4, and corresponds to the column item position of the B table, and the form name "target form" defined in the "target form". Budget Plan ”,“ Modified Budget Request Form ”
To the corresponding file name “plan file” and the slip name “purchase slip” to the corresponding file name “accounting file”. Further, the item name "amount +" of the slip defined in "Aggregation item" corresponding to each column item position in table B corresponds to the item name "budget amount +" of the corresponding file.
, "Correction amount +" to "budget amount +", and further, "debit /
The “inspection amount +” and “credit / inspection amount −” are converted into “debit amount +” and “credit amount −”, respectively. Next, the item name "plan No" of the slip defined in the "condition item" corresponding to each column item position in the table B, the item name "plan type" of the corresponding file of the "debit / subject code", Convert to "counterpart". As a result, the input parameters of the A table shown in FIG. 4 are converted into B table parameters based on the file name as shown in FIG. 8 and set in the conversion parameter file 8.

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

【0025】図13はA表結合テーブルの作成フローを
示したもので、表構造解析部9はA表の列方向の見出し
部を解析して図9(A)に示す様なA表結合テーブルを
作成する。ここで、A表結合テーブルはA表に定義され
ているファイル名と項目名とを対応付ける対応テーブル
で、「ファイル名」、「シークェンシャル番号SE
Q」、「項目名」、「ファイル記号」とから成る。ここ
で、シークェンシャル番号SEQは同一ファイル内に定
義されている項目名を「01」から連続番号で特定する
為のコードであり、また、「ファイル記号」はA表に定
義されているファイルを「1」から連続番号で特定する
為のコードである。先ず、表構造解析部9は変換パラメ
ータファイル8から指定帳票のA表パラメータデータを
読み出すと共に(ステップB1)、ファイル記号として
初期値「1」を指定しておく(ステップB2)。そし
て、A表の列方向の見出し部をその先頭から順次解析し
てゆく。即ち、表構造解析部9は先ず、A表に定義され
ている先頭ファイル名を指定したのち(ステップB
3)、シークェンシャル番号SEQの初期値「1」を指
定し(ステップB4)、更にこの先頭ファイル名に対応
する最初の項目名を指定する(ステップB5)。これに
よって指定されたファイル名、シークェンシャル番号S
EQ、項目名、ファイル記号をA表結合テーブルに書き
込む(ステップB6)。この場合、図7に示すA表であ
れば、A表結合テーブルの1行目には図9(A)に示す
様なデータが書き込まれる。次に、同一ファイル名に対
応して他の項目名が定義されていれば(ステップB
7)、シークェンシャル番号SEQに「1」を加算して
その値を更新すると共に(ステップB8)、次の項目名
を指定し(ステップB5)、A表結合テーブルへの書き
込みを行う(ステップB6)。以下、同一ファイル名に
対応する全ての項目名を指定し終るまで上述の動作を繰
り返す。この結果、全ての項目名を指定し終ると、次の
ステップB9に進み、A表に他のファイル名が有れば、
それを条件にファイル記号「1」を加算し、その値の更
新を行う(ステップB10)。以下、ステップB3に戻
り、A表から当該他のファイル名を指定すると共に、そ
のファイル名に対応する全ての項目名を順次指定しなが
らA表結合テーブルへの書き込みを行う。
FIG. 13 shows a flow of creating the A table join table. The table structure analysis unit 9 analyzes the column heading portion of the A table to analyze the A table join table as shown in FIG. 9 (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 9 reads the table A parameter data of the specified form from the conversion parameter file 8 (step B1), and specifies the initial value "1" as the file symbol (step B2). Then, the column heading portion of table A is analyzed sequentially from the beginning. That is, the table structure analysis unit 9 first specifies the first file name defined in the table A (step B).
3) The initial value "1" of the sequential number SEQ is designated (step B4), and the first item name corresponding to this leading file name is designated (step B5). File name and sequential number S specified by this
The EQ, item name, and file symbol are written in the A table connection table (step B6). In this case, in the case of the A table shown in FIG. 7, the data as shown in FIG. 9A is written in the first row of the A table combination table. Next, if another item name is defined corresponding to the same file name (step B
7) Add "1" to the sequential number SEQ to update the value (step B8), specify the next item name (step B5), and write to the table A join table (step B8). 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 process proceeds to the next step B9, and if there is another file name in the table A,
Under that condition, the file symbol "1" is added 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.

【0026】次に、図12で示した構成ファイル11の
作成処理(ステップA2)を図14〜図18を参照して
詳述する。図14〜図16は構成ファイル11を作成す
る際の動作を示したフローチャートであり、また、図1
7はこの場合における表構造解析部9の動作内容を図式
的に示した図、また図18は作成された構成ファイル1
1の内容を示した図である。なお、図18の(A)は構
成ファイル11のレコード構造を示したもので、この構
成レコードは「子フード」、「親コード」、「終了フラ
グ」、「名称」とから成り、「子フード」および「親コ
ード」はA表内の集計対象項目とそれに対応する集計レ
コードとの対応関係を表わしたり、集計レベルの階層構
造における親子関係(上下関係)を表わすコードであ
る。また、「終了フラグ」は親コードに集計レベルAが
含まれている場合に“1”となるフラグであり、終了印
に“1”がセットされている場合にはそれよりも上位レ
ベルへのレコード集計を行わないことを示している。
「名称」はA表に定義されている集計レコードのレコー
ド名である。
Next, the process of creating the configuration file 11 shown in FIG. 12 (step A2) will be described in detail with reference to FIGS. 14 to 16 are flowcharts showing the operation when the configuration file 11 is created.
7 is a diagram schematically showing the operation contents of the table structure analysis unit 9 in this case, and FIG. 18 is the created configuration file 1
It is the figure which showed the content of 1. Note that FIG. 18A shows the record structure of the configuration file 11, and this configuration record is composed of "child hood", "parent code", "end flag", and "name", and "child hood". And "parent code" are codes that represent the correspondence between the items to be totalized in table A and the corresponding totalized records, or the parent-child relationship (upper / lower relationship) in the hierarchical structure at the totaling level. The “end flag” is a flag that becomes “1” when the parent code includes the aggregation level A, and when the end mark is set to “1”, the higher level than that is set. It indicates that record aggregation is not performed.
“Name” is the record name of the totalized record defined in table A.

【0027】先ず、表構造解析部9はA表パラメータの
先頭行を指定し(ステップC1)、指定行の集計レベル
は最上位のレベルAか否かをチェックする(ステップC
2)。ここで、集計レベルがAであれば、初期設定の為
に、表構造解析部9内の最終項目ワークメモリ(図17
の(B)参照)の内容を全てクリアしておくと共に(ス
テップC3)、現在着目中のレベル(現在レベル)とし
て集計レベルAを指定しておく(ステップC4)。この
状態において、現在レベルと現在着目している行(現在
行)の行Noとからレベル行データを生成する(ステップ
C5)。例えば、図7に示すA表を例に挙げると、A表
の先頭行は集計レベルAであり、かつその行Noは「0
1」であるので、この現在レベルと行Noとを組み合せた
レベル行データ「A01」を生成する。次に、このレベ
ル行データ「A01」と現在行の名称(集計レコードの
レコード名「計」)とを最終項目ワークメモリの現在レ
ベルAに対応する位置にセットする(ステップC6)。
なお、最終項目ワークメモリは図17の(B)に示す様
に集計レベルA、B、C、D……に対応してレベル行デ
ータおよび名称を記憶する構成となっており、構成レコ
ード作成時のワークメモリである。
First, the table structure analysis unit 9 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 C).
2). Here, if the aggregation level is A, the final item work memory in the table structure analysis unit 9 (see FIG. 17) is set for initialization.
(See (B)) is cleared (step C3), and the totaling level A is designated as the currently focused level (current level) (step C4). In this state, level line data is generated from the current level and the line number of the line currently focused (current line) (step C5). For example, taking the table A shown in FIG. 7 as an example, the first row of the table A is the aggregation level A, and the row number is "0".
Since it is "1", level line data "A01" that combines the current level and the line number 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).
The final item work memory is configured to store level line data and names corresponding to the aggregation levels A, B, C, D ... As shown in FIG. Is the work memory of.

【0028】次に、現在行の管理単位エリアに丸印が付
されているか否かをチェックする(ステップC7)。い
ま、図7に示す様に先頭行には丸印が付されていないの
で、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 row is circled (step C7). Now, as shown in FIG. 7, since the first row is not marked with a circle, attention is paid to the next row of table A and it is checked 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
At 0, an error check is performed as to whether or not the level of the designated line is higher than or equal to the current level. If the level is higher than or equal to the current level, all contents below the level of the designated line are cleared in the last item memory (step C11). ).

【0029】いま、指定行レベルBは現在レベルのA未
満であるので、ステップC12に進み、指定行レベルを
現在レベルとして現在レベルの更新を行う。次に、現在
レベルと現在行の行Noとからレベル行データを生成し
(ステップC13)、このレベル行データと現在行の名
称とを最終項目ワークメモリの現在レベルに対応する位
置にセットする(ステップC14)。この場合、レベル
行データ「B02」、名称「固定費」が現在レベルBに
対応する位置にセットされる(図17の(B)参照)。
次に、このレベル行データの先頭に記号(・)を結合し
(ステップC15)、この結合データを図17の(A)
に示す様に構成レコードの子コードとしてセットする
(ステップC16)。ここで、記号(・)はA表のうち
項目コードが入力されていない行を着目行とした場合に
セットされるもので、これによってソースファイルと対
応関係が無いことを示している。そして、図15のステ
ップC17に進み、最終項目ワークメモリの中から(現
在レベル+1)のレベル位置に格納されているレベル行
データを読み出し、このレベル行データの先頭に記号
(・)を結合し、この結合コードを構成レコードの親コ
ードとしてセットする(ステップC18)。いま、現在
レベルはB、したがって最終項目ワークメモリのレベル
Aの位置に格納されているレベル行データ「A01」に
記号(・)を結合した結合コードが親コードとなる(図
17の(A)参照)。ここで、親コードのレベルがAで
あれば(ステップC19)、構成レコードの終了フラグ
に“1”をセットする(ステップC20)。次に、親コ
ードの名称を最終項目ワークメモリから読み出して構成
レコードの名称としてセットする(ステップC21)。
このようにして1レコード分のデータとして子コード
「・B02」、親コード「・A01」、終了フラグ
「1」、名称「計」が揃うと、この構成レコ−ドは構成
ファイル11に書き出される(ステップC22)。
Since the designated row level B is 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. 17B).
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. 15, 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 in the position of the final item work memory at level A becomes the parent code ((A) in FIG. 17). 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 11. (Step C22).

【0030】次に図14のステップC7に戻るが、この
場合、現在行の管理単位エリアには丸印が付されていな
いので、次の行の3行目が指定される(ステップC
9)。その後、上述のステップC12〜C14が実行さ
れる結果、最終項目ワ−クメモリのレベルCの位置には
レベル行デ−タ「C03」と現在行の名称「人件費」が
セットされる(図17の(B)参照)。そしてこのレベ
ル行デ−タに記号(・)を付けた結合コ−ドが構成レコ
ードの子コ−ドとしてセットされる(ステップC15、
C16)。次に、最終項目ワ−クメモリ内のレベルBの
位置(1段上位のレベル位置)から読み出したレベル行
デ−タ「B02」に記号(・)を付けた結合コ−ドが構
成レコ−ドの親コ−ドとしてセットされる(図15のス
テップC17、C18)。この場合、親コ−ドに対応す
る最終項目ワ−クメモリ内の名称「固定費」が構成レコ
−ドの名称となる(ステップC21)。このようにして
1レコ−ド分のデ−タとして子コ−ド「・C03」、親
コ−ド「・B02」、名称「固定費」が揃うと、この構
成レコ−ドは構成ファイル11に書き出される(ステッ
プC22)。
Next, returning to step C7 of FIG. 14, 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 C).
9). Then, as a result of the above steps C12 to C14 being executed, the level line data "C03" and the name "personnel expenses" of the current line are set at the position of level C in the last item work memory (Fig. 17). (B)). Then, a join code in which a symbol (•) is added to the level row data is set as a child code of the configuration record (step C15,
C16). Next, a combination code in which the symbol (•) is added to the level row data "B02" read from the position of the level B in the last item work memory (one level higher position) is a configuration record. It is set as the parent code of (steps C17 and C18 in FIG. 15). 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, when the child code ".C03", the parent code ".B02", and the name "fixed cost" are gathered as the data for one record, this composition record becomes the composition file 11 (Step C22).

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

【0032】その後、ステップC31で項目コ−ド無し
が検出されるので、ステップC32に進み、他のファイ
ル名がA表内に定義されているかをチェックするが、い
ま、A表内には次のファイル名として「会計FILE」
が定義されているので、ステップC33に進み、ファイ
ル記号に「1」を加算してその値を更新したのち、ステ
ップC24に戻る。この場合、ファイル記号は「2」、
項目コ−ドとして最初の「2111」が指定される為、
構成レコ−ドの子コ−ドは「22111」となり、親コ
−ドは「・C03」、名称は「人件費」となる。いま、
ステップC32で他のファイル無しが指定されると、図
14のステップC8に戻り、以下、ステップC8で設定
無しが検出されるまで構成レコ−ドを作成して構成ファ
イル11に書き出す処理を1レコ−ドずつ繰り返す。こ
れによって図18に示す様な構成ファイル11が作成さ
れる。この構成ファイル11の内容は図3のA表を参照
することによって生成されたもので、この構成ファイル
11の8レコード目〜12レコード目はA表の行No「0
3」に対応し、また、13レコード目〜15レコード目
はA表の行No「04」に対応している。
After that, since no item code is detected in step C31, the process proceeds 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. 14, and thereafter, the process of creating a configuration record and writing the configuration record 11 in the configuration file 11 is performed until one setting is detected in step C8. -Repeat each one. As a result, the configuration file 11 as shown in FIG. 18 is created. The contents of the configuration file 11 are generated by referring to the table A of FIG. 3, and the eighth record to the twelfth record of the configuration file 11 are the row number “0” of the table A.
3 ", and the 13th to 15th records correspond to the row No." 04 "of the A table.

【0033】このようにして構成ファイル11を作成し
終ると、表構造解析部9はB表の結合テーブル、条件テ
−ブル、集計項目テ−ブルの他、計算式テ−ブルを作成
する。このうち、B表結合テ−ブル、条件テ−ブル、集
計項目テ−ブルは図19および図20に示すフローチャ
ートにしたがって作成される。ここで、B表結合テ−ブ
ル(図9(B)を参照)は「ファイル名」、「シークェ
ンシャル番号SEQ」、条件項目の「項目名」、「ファ
イル記号」とから成る。また、条件テ−ブル(図9
(C)参照)は「ファイル名」、「B表の項目位置」、
「条件値」、「否定フラグ」とから成る。ここで、「否
定フラグ」とは条件値として「≠(等しくない)」が設
定されていることを示すフラグである。また、集計項目
テ−ブル(図9(D)参照)は「ファイル名」、「B表
の項目位置」、集計項目の「項目名」、「マイナスサイ
ン」とから成る。ここで、「マイナスサイン」は例えば
「貸方金額−」という様に集計項目に項目名にマイナス
符号が付いていることを示す。
When the construction file 11 is created in this way, the table structure analysis unit 9 creates a calculation table in addition to the connection table of the B table, the condition table, the total item table. Among these, the B table connection table, the condition table, and the total item table are created according to the flowcharts shown in FIGS. Here, the B table connection table (see FIG. 9B) is composed of "file name", "sequential number SEQ", "item name" of condition item, and "file symbol". In addition, the condition table (Fig. 9)
(Refer to (C)) is "file name", "item position of table B",
It consists of "condition value" and "negative flag". Here, the "negative flag" is a flag indicating that "≠ (not equal)" is set as the condition value. Further, the total item table (see FIG. 9D) is composed of "file name", "item position of table B", "item name" of total item, and "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-".

【0034】先ず、表構造解析部9は変換パラメータフ
ァイル8から指定帳票の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 9 reads the B table parameter data of the specified form from the conversion parameter file 8 (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).

【0035】次に、指定列の条件値に着目してその条件
値を指定すると共に(ステップD13)、この条件値に
“≠”が付加されていれば(ステップD14)、否定フ
ラグをセットする(ステップD15)。このようにして
得られたファイル名、指定列の項目位置を示す列名称、
条件値、否定フラグとから条件レコードを生成し(ステ
ップD16)、B表の条件テーブルにセットする(ステ
ップD17)。ここで、指定列に複数の条件値が定義さ
れていれば、各条件値毎に条件レコードを生成する為、
ステップD18では他の条件値が有るか否かをチェック
し、有ればステップD13に戻り、次の条件値を指定し
てそれに対応する条件レコードを生成して条件テーブル
にセットする。そして、次のステップD19では指定列
に他の条件項目が有るか否かをチェックし、有ればステ
ップD20に進み、シークェンシャル番号SEQに
「1」を加算してその値を更新したのち、ステップD9
に戻り、次の条件項目を指定し、以下、それに対応する
結合レコードを生成したり、条件レコードを生成して対
応テーブルにセットする。
Next, paying attention to the condition value of the designated column and designating the condition value (step D13), 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.

【0036】ステップD19で他の条件項目無しが検出
されると、ステップD21に進み、指定列の条件項目を
指定し、その条件項目にマイナス符号が付加されていれ
ば(ステップD22)、マイナスサインフラグのセット
を行う(ステップD23)。このようにして得られたフ
ァイル名、指定列の列項目位置を列名称、集計項目、マ
イナスサインフラグとから集計項目レコードを生成し
(ステップD24)、集計項目テーブルにセットする
(ステップD25)。
When no other condition item is detected in step D19, the process proceeds to step D21, the condition item in the designated column is specified, and if the condition item is added with a minus sign (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).

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

【0038】その他、表構造解析部9はB表パラメータ
データを解析して計算式テーブルを作成するが、この計
算式テーブルは各計算式を列項目位置に対応付けたもの
である。また、表構造解析部9はB表パラメータデータ
から書式データを列項目位置に対応付けて読み出し、印
刷書式メモリ12にセットする。
In addition, the table structure analysis unit 9 analyzes the B-table parameter data to create a calculation formula table. In this calculation formula table, each calculation formula is associated with a column item position. Further, the table structure analysis unit 9 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 12.

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

【0040】先ず、展開ファイル作成部13はパラメー
タ解析テーブル10を参照し、A表結合テーブルよりフ
ァイル名(最初は1レコード目のファイル名)を取り出
すと共に(ステップE1)、そのファイル記号を指定し
ておく(ステップE2)。次に、このファイル名に対応
するソースファイルを指定し(ステップE3)、このソ
ースファイル内の先頭レコードを指定する(ステップE
4)。これによって集計対象ファイルとしてA表に最初
に定義されている「計画ファイル」の先頭レコードが指
定される。次に、A表結合テーブルから項目名(最初は
1レコード目の項目名)を取り出し(ステップE5)、
この項目名に対応する項目値を指定ファイル内の指定レ
コード(最初は先頭レコード)から取り出す(ステップ
E6)。そして、この項目値と指定ファイル記号とを結
合し(ステップE7)、この結合データを展開レコード
の分類キーとしてセットする(ステップE8)。いま、
図23に示す様に計画ファイルの先頭レコードから予算
項目の項目値「101」が取り出され、この項目値「1
01」と指定ファイル記号「1」とが結合され、この結
合データ「1101」が展開レコードの1レコード目に
おける分類キーとなる。
First, the expansion file creating unit 13 refers to the parameter analysis table 10, extracts the file name (first file name of the first record) from the table A connection table (step E1), and specifies 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. 23, 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.

【0041】次に、この計画ファイルの先頭レコードに
おいてその出力対象項目はB表に定義されている抽出条
件に合致するレコードか否かを調べる。即ち、先ず、展
開ファイル作成部13はB表結合テーブルを参照し、こ
のテーブル内に指定ファイル記号が有るかをチェックす
る(ステップE9)。ここで、上述した様に条件項目が
B表内に定義されている時に、ファイル名、条件項目
名、ファイル記号等がB表結合テーブルにセットされる
為、ファイル記号がセットされていないということは条
件項目がB表に定義されていないこと(つまり、出力対
象項目の抽出条件がセットされていない無条件)を意味
する。いま、B表結合テーブルには指定ファイル記号
「1」がセットされているので、ステップE10に進
み、B表結合テーブルの項目名に対応する項目値を指定
レコードから取り出す。この場合、先頭レコードから計
画種別の項目値「1」が取り出される。そして、この項
目値に対応する条件値をB表条件テーブル内から検索し
(ステップE11)、一致する条件値が有るかをチェッ
クする(ステップE12)。いま、先頭レコードに含ま
れている計画種別の項目値「1」はB表条件テーブル内
の1レコード目に存在する為、次のステップE13に進
み、それに対応するB表条件テーブル内に否定フラグが
セットされているか否かをチェックするが、この場合、
否定フラグはセットされていないので、ステップE19
に進み、一致した条件値に対応する位置の値(この場
合、B)をB表条件テーブルから取り出し、これと一致
する項目位置の値を集計項目テーブル内で検索し(ステ
ップE20)、これに対応する項目名を指定する(ステ
ップE21)。ここで、集計項目テーブルにはその1レ
コード目に項目位置Bがセットされているのでそれに対
応する項目名「予算額」が取り出され、この項目名に対
応する項目値「800,000」を指定レコードから取
り出すと共に(ステップE22)、この項目位置Bに対
応して集計項目テーブル内にマイナスサインフラグがセ
ットされているかをチェックする(ステップE23)。
次に、ステップB24に進み、指定レコードから取り出
した項目値「800,000」を展開レコードの対応位
置「B」に集計するが、この場合、マイナスサインフラ
グがセットされるものについてはマイナス集計が行わ
れ、マイナスサインフラグがセットされていないものは
プラス集計される。これによって図23に示す様な1レ
コード目の展開レコードが作成される。
Next, it is checked 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. That is, first, the expansion file creation unit 13 refers to the B table connection table and checks whether or not there is a designated file symbol in this table (step E9). Here, as described above, when the condition item is defined in the B table, the file name, condition item name, file symbol, etc. are set in the B table connection table, so 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 joining table, the process proceeds to step E10, and the item value corresponding to the item name of the B table joining table is taken out from the designated record. In this case, the item value “1” of the plan type is extracted from the first record. Then, the condition value corresponding to this item value 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, but in this case,
Since the negative flag is not set, step E19
Then, the value of the position (B in this case) corresponding to the matched condition value is fetched from the B table condition table, and the value of the item position matching this is searched in the tabulation item table (step E20). The corresponding item name is designated (step E21). 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 E22), it is checked whether or not the minus sign flag is set in the tabulation item table corresponding to this item position B (step E23).
Next, proceeding to step B24, the item value “800,000” fetched from the designated record is totaled in the corresponding position “B” of the expansion record, but in this case, for those for which the negative sign flag is set, negative totalization is performed. If the minus sign flag is not set, it is counted as plus. As a result, a first expanded record as shown in FIG. 23 is created.

【0042】次に、集計項目テーブル内で同一の項目位
置(この場合、B)が他にもセットされているかをチェ
ッするが(ステップE25)、図9(D)に示す様に、
会計ファイルについては項目名「借方金額」、「貸方金
額」に対応して集計項目テーブル内にそれぞれ2ケ所ず
つ同一項目位置D、Eがセットされているが、項目位置
Bについては複数セットされていないので、ステップE
14に進み、B表条件テーブル内で項目値と一致する条
件値が他に有るかをチェックする。いま、B表条件テー
ブル内において条件値「1」はその1行目しか存在しな
い為、ステップE15に進み、指定された計画ファイル
内に次のレコードがあることを条件に、次のレコードを
指定する(ステップE18)。
Next, it is checked whether another same item position (B in this case) is set in the total item table (step E25), but as shown in FIG. 9 (D),
In the accounting file, the same item positions D and E are set in two places in the total item table in correspondence with the item names "debit amount" and "credit amount", respectively, but a plurality of item positions B are set. No, so step E
In step 14, it is checked whether there is another condition value that matches the item value in the B table condition table. Since the condition value “1” exists only in the first row in the condition table B, 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).

【0043】これによって計画ファイルの2レコード目
が指定され、ステップE5に戻り、以下、上述の動作が
繰り返される。この場合、ファイル記号「1」と2レコ
ード目の予算項目値「102」とによって2レコード目
における展開レコードの分類キー「1102」が生成さ
れる(ステップE5〜E8)。また、上記1レコード目
と同様に2レコード目の計画種別に対応する項目値も
「1」で、この項目値「1」に一致する条件値はB表条
件テーブル内に存在し、かつそれに対応して否定フラグ
もセットされていないので、ステップE19に進み、B
表条件テーブルから項目位置「B」を取り出し、この項
目位置「B」に対応する項目名「予算額」の値を計画フ
ァイルの2レコード目から取り出す(ステップE20〜
E22)。この場合、図23に示す様に、計画ファイル
の2レコード目の予算額の項目から「200,000」
が取り出され、展開レコード(2レコード目)の対応位
置「B」にプラス集計される(ステップE24)。
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). The item value corresponding to the plan type of the second record is “1” as in the case of the first record, and the condition value matching the item value “1” exists in the B table condition table and corresponds to it. Since the negative flag has not been set, the process proceeds to step E19, where B
The item position "B" is fetched from the table condition table, and the value of the item name "budget amount" corresponding to this item position "B" is fetched from the second record of the plan file (step E20-).
E22). In this case, as shown in FIG. 23, the budget amount item in the second record of the plan file is “200,000”.
Is taken out and added to the corresponding position “B” of the expanded record (second record) (step E24).

【0044】次に、計画ファイルの3レコード目が指定
されると(ステップE18)、展開レコード(3レコー
ド目)の分類キー「1103」が生成される。この場
合、計画ファイルから読み出された3レコード目の計画
種別の項目値は「2」で、この項目値と一致する条件値
はB表条件テーブル内にセットされているが、この条件
値に一致する項目値は「C」である。したがって、計画
ファイルの3レコード目から取り出された「予算額」の
項目値「400,000」が展開レコード(3レコード
目)における対応位置「C」にプラス集計される。
Next, when the third record of the plan file is designated (step E18), 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", and the condition value that matches this item value is set in the B table condition table. The matching item value is “C”. Therefore, the item value “400,000” of “budget amount” extracted from the third record of the plan file is added up to the corresponding position “C” in the expansion record (third record).

【0045】更に、計画ファイルの4レコード目が指定
されると、その3レコード目と同様に展開レコード(4
レコード目)の項目位置「C」には計画ファイルの4レ
コード目から取り出された予算額の項目値「50,00
0」がプラス集計される。なお、この展開レコードの分
類キーは「1104」となる。以下、同様に、計画ファ
イルを1レコードずつ順次指定しながら、パラメータ解
析テーブル10内の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 10, the plan file expansion record is set to 1 Create records one by one.

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

【0047】このような動作を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 the absence of the next record is detected in 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).

【0048】この状態において、指定レコードの「勘定
科目」の項目値「2111」とファイル記号「2」とを
結合し、1レコード目における展開レコードの分類キー
「22111」を生成する(ステップE5〜E8)。そ
して、ステップE9に進むが、この場合、B表結合テー
ブルにはファイル記号「2」が記憶されているので、B
表結合テーブルの項目名「相手勘定」に対応する項目値
を会計ファイルの1レコード目から取り出す(ステップ
E10)。いま、会計ファイルの1レコード目からは
「相手勘定」の項目値として「0011」が取り出され
るので、この項目値と一致する条件値をB表条件テ−ブ
ルから検表する(ステップE11)。この場合、該当す
る条件値はテ−ブル内の5行目と6行目にそれぞれセッ
トされているので、ステップE12で一致が検出されて
ステップE13に進み、先ず、最初の5行目に着目し、
それに対応する位置に否定フラグがセットされているか
をチェックする。いま、B表条件テ−ブルの5行目には
否定フラグがセットされている為、ステップE14に進
み、B表条件テ−ブル内でこの項目値「0011」と一
致する条件値が他に有るかをチェックするが、いま、B
表条件テ−ブル内の6行目に条件値「0011」が有る
為、ステップE13に戻る。いま、この条件値に対応す
る位置に否定フラグはセットされていないので、ステッ
プE19に進み、B表条件テ−ブルからこれに対応する
項目位置「E」を取り出し、この項目位置「E」に一致
する集計項目テ−ブル内の項目名を指定するが(ステッ
プE20、E21)、この場合、集計項目テ−ブルの5
行目、6行目にそれぞれセットされている項目位置
「E」のうち最初の項目位置、つまり、5行目に対応す
る項目名「借方金額」を指定する。そして、会計ファイ
ルの1レコ−ド目から指定項目名に対応する項目値「5
0,000」を会計ファイルに対する1レコ−ド目にお
ける展開レコ−ドの対応する位置「E」にプラス集計す
る(ステップE22〜E24)。
In this state, the item value "2111" of the "account item" 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 checked from the B table condition table (step E11). In this case, since the corresponding condition values are set in the fifth and sixth lines in the table, a match is detected in step E12, the process proceeds to step E13, and the first five lines are focused. Then
Check whether the negative flag is set in the corresponding position. Now, since the negative flag is set in the fifth row 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 sixth 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, where the item position "E" corresponding to this is taken out from the table B condition table, and this item position "E" is set. The item name in the matching total item table is designated (steps E20 and E21), but in this case, 5 of the total item table is specified.
The first item position among the item positions "E" set in the lines 6 and 6, that is, the item name "debit amount" corresponding to the line 5 is designated. Then, from the first record of the accounting file, the item value "5" corresponding to the designated item name
10,000 "is added to the corresponding position" E "of the expansion record in the first record for the accounting file (steps E22 to E24).

【0049】そして、ステップE25に進むが、この場
合、集計項目テ−ブル内にはその5行目の他に6行目に
も同一の項目位置「E」が存在する為、ステップE21
に戻り、集計項目テ−ブル内の当該項目位置に対応する
項目名「貸方金額」を指定し、この指定項目名に対応す
る項目値を会計ファイルの1レコ−ド目から取り出す
(ステップE22)。この場合、会計ファイルの1レコ
−ド目からは貸方金額の項目値として「D」が取り出さ
れ、展開レコ−ドの1レコ−ド目の対応位置「E」に集
計されるが、この際、集計項目テ−ブルの6行目にはマ
イナスサインフラグがセットされているので、マイナス
集計、つまり、(前回の借方金額「50,000」−今
回の貸方金額「0」)の集計演算が行われる(ステップ
E24)。その後、ステップE25、E14、E15か
らステップE18に進み、会計ファイルの2レコ−ド目
が指定される。これによって会計ファイルの2レコ−ド
目に対応してその展開レコ−ドが生成されるが、この場
合、勘定科目の項目値も「2111」で、1レコ−ド目
と同様に分類キ−は「22111」となる。また、2レ
コ−ド目の相手勘定も「0011」で、項目条件値と一
致する為、その借方金額「0」が展開レコ−ドの項目位
置Eにプラス集計され、またその貸方金額「40,00
0」がその項目位置Eにマイナス集計される。この為、
2レコ−ド目の展開レコ−ドの項目位置には「−40,
000」が書き込まれる。
Then, the process proceeds to step E25. In this case, since the same item position "E" exists on the sixth line in addition to the fifth line in the total item table, step E21 is performed.
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 E22). . In this case, "D" is taken out as the item value of the credit amount from the first record of the accounting file, and it is totaled 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 E24). Then, the process proceeds from step E25, E14, E15 to step E18, and the second record of the accounting file is designated. 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 the classification key is the same as the first record. Becomes “22111”. In addition, since the counter account of the second record is also "0011", which coincides with the item condition value, the debit amount "0" is added up to the item position E of the development record and the credit amount "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.

【0050】次に、会計ファイルの3レコ−ド目が指定
されるが、この相手勘定の項目値は「0011」で、B
表条件テ−ブル内にはこれと一致する条件値はセットさ
れていないので、ステップE12からステップE26に
進み、B表結合テ−ブル内で指定ファイルに対応して否
定フラグがセットされてるかをチェックする。いま、B
表条件テ−ブル内にはその5行目に会計ファイルに対応
して否定フラグがセットされているので、ステップE2
7に進み、否定フラグがセットされている位置の値
「D」をB表条件テ−ブルから取り出し、この値に一致
する位置を集計項目テ−ブル内から検索し(ステップE
20)、その項目名「借方金額」に対応する項目値「8
0,000」を3レコ−ド目から取り出し、展開レコ−
ドの対応位置Dにプラス集計する。その後、ステップE
25からステップE21に戻り、上述と同様に次の項目
名「貸方金額」の項目値「0」が展開レコ−ドの位置
「D」にマイナス集計される。以下、次レコ−ドが指定
され、ステップE12で不一致が検出される毎に上述と
同様の動作が1レコ−ドずつ繰り返される。これによっ
て条件項目「相手勘定」の条件値「≠0011」にした
がった展開レコ−ドが順次生成される。
Next, the third record of the accounting file is specified. The item value of this counter account is "0011", 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 E26, and whether the negative flag is set corresponding to the designated file in the B table connection table. Check. B now
In the table condition table, a negative flag is set in the fifth line corresponding to the accounting file, so step E2
7, the value "D" at the position where the negative flag is set is fetched from the B table condition table, and the position matching this value is retrieved from the totalized item table (step E).
20), the item value “8” corresponding to the item name “debit amount”
50,000 "is taken out from the 3rd record and expanded.
Add to the corresponding position D of D. Then step E
From step 25, the process returns to step E21, and similarly to the above, the item value "0" of the next item name "credit amount" is negatively added to the expansion record position "D". 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 expansion records according to the condition value "≠ 0011" of the condition item "counter account" are sequentially generated.

【0051】その後、会計ファイルの全レコ−ドを指定
し終り、ステップE15で次レコ−ド無しが検出される
と、ステップE16に進み、A表結合テ−ブル内に他の
ファイルが有るかをチェックするが、この場合、ファイ
ル無しが検出されるので、ステップE17に進み、展開
レコ−ドの編集処理が行われる。即ち、分類キ−が同一
の展開レコ−ドをそれぞれ抽出し、これを1つのレコ−
ドにまとめると共に、分類キ−にしたがって各展開レコ
−ドを昇順にソ−トする。例えば、図24に示す様に、
1レコ−ド目と2レコ−ド目の展開レコ−ドはその分類
キ−が同一である為、1つの展開レコ−ドにまとめら
れ、その項目位置「E」の値は「10,000」とな
る。図25は上述の様にして作成された展開ファイル1
1の内容を示している。即ち、計画ファイル、会計ファ
イルの内容にしたがって作成された展開ファイル11
で、そのレコード構造はA、B、C、D、E、Fの項目
を有し、その先頭項目Aは分類キーとなっている。
After that, 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 A table join 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. 25 shows the expanded 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.

【0052】このようにして展開ファイル作成部13は
展開ファイル15を作成したのち、展開集計処理部16
を起動させる。すると、展開集計処理部16は図26の
フローチャートにしたがって集計ファイル17を作成す
る。なお、図27は展開集計処理部16の動作内容を具
体的に説明する為の図である。展開集計処理部16は展
開ファイル15の内容と構成ファイル11の内容とに基
づいて集計ファイル17を部品展開手法にしたがって生
成する。先ず、展開集計処理部16は展開ファイル15
の先頭から1レコード分のデータを読み込む(ステップ
F1)。そして、次のステップF2ではデータ終了か、
つまり、展開ファイル15の先頭から全てのレコードを
読み出したか否かをチェックする。最初は展開ファイル
15の先頭から1レコード分のデータを読み込んだ場合
であるから、次のステップF3に進み、構成ファイル1
1の内容をサーチし、その分類キーと一致する子コード
を持った構成レコードを構成ファイル11から検索す
る。いま、図27に示す様に展開ファイル15の先頭レ
コード内の分類キーは「1101」であり、構成ファイ
ル11には図18に示す様にこれと一致する子コードを
持った構成レコードが存在する為、ステップF3でその
ことが検出されてステップF4に進み、集計ファイル1
7のレコード(集計レコード)を生成する。即ち、図2
7の具体例において、先ず、展開集計処理部16はこの
子コード「1101」に対応する親コードを構成ファイ
ル11から読み出し、この親コード「・C03」をB表
の行No「03」とそれ以外「・C」とに分解し、この行
No「03」を集計ファイル13の1レコード目の先頭項
目に配置し、またそれ以外の「・C」をそれに続けて配
置する。そしてこの子コードに対応する名称を構成ファ
イル11から読み出し、集計レコードの次の項目に配置
する。これに続けて展開ファイル15のデータ項目「8
00,000」を集計レコードの次項目以降に順次配置
する。この集計レコードはA表の行No「03」に定義さ
れているレコード名「人件費」、集計レベル「C」の集
計レコードであり、このレコード名に対応してA表に定
義されている集計対象コードに該当するデータを集計し
たものである。これによって集計ファイル17の1レコ
ード分のデータが生成されると、この生成レコードを集
計ファイル17に書き出すが、その際、集計ファイル1
7内に既に同一分類キーを持つレコードが存在していれ
ば、それを1レコードに集計して集計ファイル17内に
書き込み、また同一分類キーのレコードが存在していな
ければ、今回生成したレコードを新たに集計ファイル1
7に追加する(ステップF5)。
In this way, the expansion file creation unit 13 creates the expansion file 15 and then the expansion aggregation processing unit 16
To start. Then, the development totalization processing unit 16 creates the totalization file 17 according to the flowchart of FIG. 27. FIG. 27 is a diagram for specifically explaining the operation content of the expansion totalization processing unit 16. The development totalization processing unit 16 generates the totalization file 17 based on the contents of the expansion file 15 and the contents of the configuration file 11 according to the component expansion method. First, the expansion totalization processing unit 16 uses the expansion file 15
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 15. At first, since the data for one record is read from the beginning of the expansion file 15, the process proceeds to the next step F3, and the configuration file 1
The contents of 1 are searched, and the configuration file 11 is searched for a configuration record having a child code that matches the classification key. Now, as shown in FIG. 27, the classification key in the first record of the expansion file 15 is "1101", and the configuration file 11 has a configuration record having a child code matching this as shown in FIG. Therefore, it is detected in step F3, and the process proceeds to step F4, and the totalization file 1
Record 7 (aggregate record) is generated. That is, FIG.
In the specific example of No. 7, first, the expansion totalization processing unit 16 reads the parent code corresponding to the child code “1101” from the configuration file 11, and the parent code “· C03” is stored in the row No. “03” of the B table and Other than ".C"
No. "03" is placed in the first item of the first record of the aggregation file 13, and ".C" other than that is placed following it. Then, the name corresponding to this child code is read from the configuration file 11 and placed in the next item of the aggregation record. Following this, the data item “8
"0000" 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 for one record of the totalization file 17 is generated by this, this generated record is written to the totalization file 17. At this time, the totalization file 1
If a record having the same classification key already exists in 7, the record is totalized into one record and written in the totalization file 17, and if no record having the same classification key exists, the record generated this time is set. New aggregate file 1
7 (step F5).

【0053】次に、構成ファイル11内の該当レコード
位置に終了フラグがセットされているか否かをチェック
する(ステップF6)。ここで、構成ファイル11内の
終了フラグは親コードの集計レベルが「A」のときに
“1”となるもので、終了フラグが“1”のときにはそ
のままステップF3に戻るが、終了フラグが“1”でな
ければ新たな展開レコードを生成して展開ファイル15
への書き出しを行う(ステップF7)。この場合、図2
7の(B)に示す様なレコードを生成して展開ファイル
15へ戻す。即ち、今回生成した集計レコードよりも上
位レベルにあるレコード名がA表に定義されていれば、
今回生成した集計レコードの集計結果を上位レベルにあ
るレコード名の集計レコードへ集計させる為に新たな展
開レコードを生成して展開ファイル15への書き出しを
行う。ここで、構成ファイル11内の該当する親コード
「・C03」を先頭項目に配置し、これに続いて展開フ
ァイル15から読み出したデータを順次配置して成るレ
コードを展開ファイル15へ書き出す。なお、図25で
示した展開ファイル15において、図中破線の下に配置
したレコードはこの戻されたレコードを示している。
Next, it is checked whether the end flag is set at the corresponding record position in the configuration file 11 (step F6). Here, the end flag in the configuration file 11 is "1" when the aggregation level of the parent code is "A". When the end flag is "1", the process directly returns to step F3, but the end flag is " If it is not 1 ”, a new expansion record is generated and the expansion file 15
Is written to (step F7). In this case,
A record as shown in (B) of 7 is generated and returned to the expansion file 15. That is, if a record name at a higher level than the totalized record generated this time is defined in table A,
A new expansion record is generated and written in the expansion file 15 in order to total the totalization result of the totalization record generated this time into the totalization record of the record name in the upper level. Here, the corresponding parent code “· C03” in the configuration file 11 is placed in the first item, and subsequently, a record in which the data read from the development file 15 is sequentially placed is written to the development file 15. In the expanded file 15 shown in FIG. 25, the record placed below the broken line in the drawing shows the returned record.

【0054】その後、ステップF3に戻り、以下、構成
ファイル11の内容を全てサーチし、該当レコードが検
出されなくなるまで上述の動作を繰り返す。この結果、
ステップF3で該当レコード無しが検出されて不一致終
了となると、ステップF1に戻り、展開ファイル15か
ら次のレコードを読み出す。このような動作は展開ファ
イル15の全レコードに対して行われる。これによって
集計対象コードに該当するデータがA表の対応するレコ
ード名の集計レコードに集計される他、この集計レコー
ドよりも上位レベルにあるレコード名がA表に定義され
ていれば、この集計レコードの集計結果が上位レベルに
あるレコード名の集計レコードに集計される。一方、上
位レベルにある集計レコードへのマイナス集計が定義さ
れていれば、上位レベルの集計レコードへマイナス集計
される。すると、ステップF1でデータ終了が検出され
てステップF8に進み、集計ファイル17を構成する各
レコードをその先頭項目(行No)の内容にしたがって昇
順にソートする。このようにしてソートされた集計ファ
イル17内の各レコードは帳票出力時の印刷順に並べ替
えられる。
Thereafter, the process returns to step F3, and thereafter, the entire contents of the configuration file 11 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 disagreement ends, the process returns to step F1 to read the next record from the expansion file 15. Such an operation is performed for all records in the expanded file 15. As a result, the data corresponding to the aggregation target code is aggregated in the aggregate record of the corresponding record name in table A, and if a record name at a higher level than this aggregate record is defined in table A, this aggregate record The aggregation result of is aggregated to the aggregation record of the record name at the higher level. On the other hand, if the negative aggregation to the aggregation record at the higher level is defined, it is negatively aggregated to the aggregation record at the higher level. Then, the end of data is detected in step F1 and the process proceeds to step F8, and the records forming the totaling file 17 are sorted in ascending order according to the contents of the first item (row No.) thereof. The records in the totalization file 17 sorted in this way are rearranged in the print order when the form is output.

【0055】このようにして集計ファイル17が作成さ
れると、展開集計処理部16は印刷処理部18を起動さ
せる。すると、印刷処理部18は印刷書式メモリ12の
内容を取り込んでその印刷書式にしたがって集計ファイ
ル17の内容を帳票フォーマットと共にプリンタ19か
ら印刷出力させる。この場合、集計ファイル17の集計
レコードに記憶されている各レコード名を順次取り出し
て縦方向に配置すると共に、印刷書式メモリ12に記憶
されている各項目名を順次取り出して帳票フォーマット
の対応位置に印刷出力させる。図2はこの場合の帳票印
刷例で、その行方向には集計レベルに応じた階層構造の
フォーマットと共に集計レコードのレコード名が印刷さ
れると共に、列方向には集計レコードの項目名が印刷さ
れ、更に集計ファイル13の内容が1レコード毎に印刷
出力される。
When the totalization file 17 is created in this way, the expansion totalization processing unit 16 activates the print processing unit 18. Then, the print processing unit 18 takes in the contents of the print format memory 12 and causes the printer 19 to print out the contents of the summary file 17 together with the form format in accordance with the print format. In this case, each record name stored in the totalized record of the totalization file 17 is sequentially taken out and arranged in the vertical direction, and each item name stored in the print format memory 12 is sequentially taken out to the corresponding position of the form format. Print out. FIG. 2 shows an example of printing a form in this case. In the row direction, the record name of the total record is printed together with the hierarchical structure format according to the total level, and the item name of the total record is printed in the column direction. Further, the contents of the totalization file 13 are printed out for each record.

【0056】以上の様に、本実施例においては専門的知
識を有しない業務担当者が所望する帳票を得る為にその
出力イメージにしたがって集計定義表であるA表、B表
を任意に定義しておくと、その定義内容にしたがって任
意のレコード項目の内容が所定ファイルから読み出され
て集計レベルに応じた階層構造でレコードを集計し、そ
の集計結果が階層構造で印刷されるので、業務担当者で
あっても所望する帳票を容易に得ることができる。特
に、A表、B表を定義する際に、業務担当者が熟知して
いる伝票名と伝票項目名とで定義したとしても、この伝
票名、伝票項目名は対応するファイル名、ファイル項目
名に自動的に変換される為、業務担当者はシステム設計
書を参照してファイル名、ファイル項目名でA表、B表
を定義する必要はなく、A表、B表を誰でも容易に定義
することが可能である。
As described above, in the present embodiment, in order to obtain a form desired by a person in charge of business who does not have specialized knowledge, the table A and the table B, which are aggregate definition tables, are arbitrarily defined according to the output image. Then, the contents of any record item are read from the specified file according to the definition contents, records are aggregated in a hierarchical structure according to the aggregation level, and the aggregation results are printed in a hierarchical structure. Even a person can easily obtain a desired form. In particular, when the table A and the table B are defined, even if they are defined by the slip name and the slip item name that the business person is familiar with, the slip name and the slip item name correspond to the corresponding file name and file item name. Since it is automatically converted to, it is not necessary for the person in charge of business to define tables A and B with file names and file item names by referring to the system design document, and anyone can easily define tables A and B. It is possible to

【0057】なお、上記実施例はレコード集計を行う場
合について説明したが、A表の集計レベルをAだけにす
ることによりレコード集計に限らず、単にレコード抽
出、配列、項目内計算等を行うようにしてもよい。ま
た、上記実施例は帳票を印刷出力する場合を示したが、
CRT画面表示やその他の媒体に出力するようにしても
よい。一方、上記実施例はA表、B表を別個独立に定義
するようにしたが、A表、B表を同一画面上において同
時に定義するようにしてもよく、また、A表、B表の構
成は上記実施例に限定されるものでもない。また、上記
実施例においては、A表の見出し部によって構成される
マトリックス上の任意の交点位置に項目コードを入力す
るようにしたが、項目名を入力するようにしてもよく、
またその行方向に入力される集計レコードのレコード名
を集計レベルに応じて階層構造で入力するようにした
が、階層構造に限定されないことは勿論である。パラメ
ータファイルからA表、B表のイメージそのものを印刷
する事により、帳票などの仕様書として業務担当者がわ
かる形で保管できる様にしてもよい。
In the above embodiment, the case where the records are totaled has been described, but by setting the totaling level of the table A to only A, not only the totalization of the records but also the record extraction, the array, the intra-item calculation, etc. are performed. You may Further, although the above-mentioned embodiment shows the case where the form is printed out,
You may make it output to CRT screen display or other media. On the other hand, in the above embodiment, the tables A and B are defined separately and independently, but the tables A and B may be defined simultaneously on the same screen, and the configurations of the tables A and B are also possible. Is not limited to the above embodiment. Further, in the above embodiment, the item code is input at an arbitrary intersection position on the matrix formed by the heading section of the table A, but the item name may be input.
Further, the record name of the totalized record input in the row direction is input in the hierarchical structure according to the totaling level, but it is needless to say that the record name is not limited to the hierarchical structure. By printing the images of the tables A and B themselves from the parameter file, it may be possible to store the specifications such as a form in a form that the person in charge of business can understand.

【0058】[0058]

【発明の効果】この発明によれば、帳票等の出力イメー
ジにしたがって出力レコードとして抽出すべき項目内容
を業務担当者等が伝票名と伝票項目内容とで直接指定し
たとしても、その指定内容にしたがって所定ファイルか
らデータを読み出して帳票等を出力することができるの
で、従来の様にシステムエンジニア等の専門家にコード
体系の作成を依頼する必要はなく、しかも、出力レコー
ドとして抽出すべき項目内容を指定する際にシステム設
計書を参照してファイル名、ファイル項目名を調べてお
く必要もなく、一般ユーザである業務担当者でも容易に
所望する帳票等を得ることが可能となり、極めて実用性
に富んだものとなる。
According to the present invention, even if the person in charge of business directly specifies the item content to be extracted as an output record according to the output image of the form or the like by the slip name and the slip item content, the specified content is Therefore, it is possible to read data from a specified file and output forms, etc., so there is no need to request an expert such as a system engineer to create a code system as in the past, and the contents of items to be extracted as output records It is not necessary to check the file name and file item name by referring to the system design document when designating, and it is possible for a business person who is a general user to easily obtain the desired form, which is extremely practical. It will be rich in.

【図面の簡単な説明】[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】入力パラメータファイル4に定義された伝票名
をベースとするA表の定義内容を具体的に示した図。
FIG. 3 is a diagram concretely showing the definition contents of table A based on the slip name defined in the input parameter file 4.

【図4】入力パラメータファイル4に定義された伝票名
をベースとするB表の定義内容を具体的に示した図。
FIG. 4 is a diagram specifically showing the definition contents of table B based on the slip name defined in input parameter file 4.

【図5】ファイル名/伝票名対応テーブル6の内容を示
した図。
FIG. 5 is a diagram showing the contents of a file name / slip name correspondence table 6.

【図6】ファイル項目名/伝票項目名対応テーブル7の
内容を示した図。
FIG. 6 is a diagram showing the contents of a file item name / slip item name correspondence table 7.

【図7】パラメータ変換部5によって変換され、変換パ
ラメータファイル8に設定されたファイル名をベースと
するA表の定義内容を具体的に示した図。
FIG. 7 is a diagram concretely showing the definition contents of a table A based on the file name converted by the parameter conversion unit 5 and set in the conversion parameter file 8.

【図8】パラメータ変換部5によって変換され、変換パ
ラメータファイル8に設定されたファイル名をベースと
するB表の定義内容を具体的に示した図。
FIG. 8 is a diagram concretely showing the definition contents of a table B based on the file name converted by the parameter conversion unit 5 and set in the conversion parameter file 8.

【図9】図7、図8に示すA表、B表を解析することに
よって得られたA表結合テーブル、B表結合テーブル、
B表条件テーブル、B表集計項目テーブルの内容を具体
的に示したもので、(A)はA表結合テーブル、(B)
はB表結合テーブル、(C)はB表条件テーブル、
(D)はB表集計項目テーブルを示した図。
9 is a table A join table, a table B join table obtained by analyzing the tables A and B shown in FIG. 7 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.

【図10】A表を定義する際の基本フォーマットを示し
た図。
FIG. 10 is a diagram showing a basic format when defining table A.

【図11】B表を定義する際の基本フォーマットを示し
た図。
FIG. 11 is a diagram showing a basic format when defining a B table.

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

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

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

【図15】図14に続く構成ファイル作成処理の一部を
示したフローチャート。
FIG. 15 is a flowchart showing a part of configuration file creation processing continued from FIG. 14;

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

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

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

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

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

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

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

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

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

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

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

【図27】展開集計処理の動作内容を具体的に示した図
で、(A)は展開ファイル、構成ファイルから集計レコ
ードが生成される様子を示した図、(B)は新たに生成
される展開レコードを示した図。
27A and 27B are diagrams specifically showing the operation contents of the expansion and aggregation processing, in which FIG. 27A is a drawing showing the generation of a totalization record from the expansion file and the configuration file, and FIG. 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 展開ファイル 16 展開集計処理部 17 集計ファイル 18 印刷処理部 19 プリンタ 1 input section 2 parameter setting section 3 display section 4 input parameter file 5 parameter conversion section 6 file name / slip name correspondence table 7 file item name / slip item name correspondence table 8 conversion parameter file 9 table structure analysis section 10 parameter analysis table 11 Configuration file 12 Print format memory 13 Expanded file creation unit 14 Data file 15 Expanded file 16 Expanded aggregation processing unit 17 Aggregation file 18 Print processing unit 19 Printer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】出力レコードのレコード名を指定すると共
に、出力レコードとして抽出すべき項目内容を伝票名と
伝票項目名とで指定する指定手段と、 ファイル名で定義されるファイルの各項目名と伝票名で
定義される伝票の各項目名とを対応付けて記憶する対応
テーブル記憶手段と、 この対応テーブル記憶手段を検索し、前記指定手段で指
定された伝票名に対応するファイル名および指定された
伝票項目名に対応する前記ファイルの項目名を前記対応
テーブル記憶手段から読み出す読み出し手段と、 この読み出し手段によって読み出されたファイル名およ
びこのファイルの項目名に基づいて当該ファイルよりレ
コードを抽出する抽出手段と、 この抽出手段によって抽出されたレコードに基づいてこ
の抽出レコードを前記指定手段で指定されたレコード名
の出力レコード毎に加工する加工手段と、 この加工手段によって加工された出力レコードを前記指
定手段で指定されたレコード名に対応付けて出力する出
力手段と、 を具備したことを特徴とするデータ処理装置。
1. A designation means for designating a record name of an output record and designating the contents of items to be extracted as an output record by a slip name and a slip item name, and each item name of a file defined by the file name. Correspondence table storage means for storing each item name of the slip defined by the slip name in association with each other, and searching the correspondence table storage means, and the file name and the designated file name corresponding to the slip name designated by the designation means. Reading means for reading the item name of the file corresponding to the slip item name from the correspondence table storage means, and a record is extracted from the file based on the file name read by the reading means and the item name of the file. Based on the extraction means and the record extracted by this extraction means, this extraction record is designated by the designation means. And an output unit that outputs the output record processed by the processing unit in association with the record name designated by the designating unit. Data processing device.
【請求項2】出力レコードのデータ項目として出力すべ
き項目名を指定すると共に、各項目名に対応してデータ
項目として抽出すべき出力対象項目を伝票名とこの伝票
の項目名とで指定し、更にこの出力対象項目の抽出条件
を指定する指定手段と、 ファイル名で定義されるファイルの各項目名と伝票名で
定義される各項目名とを対応付けて記憶する対応テーブ
ル記憶手段と、 この対応テーブル記憶手段を検索し、前記指定手段で指
定された伝票名に対応するファイル名および指定された
伝票項目名に対応する前記ファイルの項目名を前記対応
テーブル記憶手段から読み出す読み出し手段と、 この読み出し手段によって読み出されたファイル名およ
びこのファイルの項目名にしたがって、かつ前記指定手
段で指定された抽出条件にしたがってレコードを抽出す
る抽出手段と、 この抽出手段によって抽出されたレコードの各項目のデ
ータを前記指定手段で指定された各項目名毎に加工する
加工手段と、 この加工手段で加工された出力レコードを前記指定手段
で指定された項目名にしたがって出力する出力手段と、 を具備したことを特徴とするデータ処理装置。
2. An item name to be output as a data item of an output record is specified, and an output target item to be extracted as a data item corresponding to each item name is specified by a slip name and an item name of this slip. Further, a specifying means for specifying the extraction condition of the output target item, and a correspondence table storing means for storing the item name of the file defined by the file name and the item name defined by the slip name in association with each other. Reading means for searching the correspondence table storage means and reading out the file name corresponding to the slip name designated by the designation means and the item name of the file corresponding to the designated slip item name from the correspondence table storage means; According to the file name read by the reading means and the item name of this file, and according to the extraction condition designated by the designating means. An extracting means for extracting a code, a processing means for processing the data of each item of the record extracted by the extracting means for each item name designated by the designating means, and an output record processed by the processing means A data processing device comprising: an output unit that outputs according to the item name designated by the designation unit.
JP11235293A 1993-04-16 1993-04-16 Data processing device Expired - Fee Related JP3482651B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11235293A JP3482651B2 (en) 1993-04-16 1993-04-16 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11235293A JP3482651B2 (en) 1993-04-16 1993-04-16 Data processing device

Publications (2)

Publication Number Publication Date
JPH06301701A true JPH06301701A (en) 1994-10-28
JP3482651B2 JP3482651B2 (en) 2003-12-22

Family

ID=14584550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11235293A Expired - Fee Related JP3482651B2 (en) 1993-04-16 1993-04-16 Data processing device

Country Status (1)

Country Link
JP (1) JP3482651B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0224767A (en) * 1988-07-14 1990-01-26 Casio Comput Co Ltd Data processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0224767A (en) * 1988-07-14 1990-01-26 Casio Comput Co Ltd Data processor

Also Published As

Publication number Publication date
JP3482651B2 (en) 2003-12-22

Similar Documents

Publication Publication Date Title
US7886219B2 (en) Automatic form generation
JP3108984B2 (en) Data processing device
US7840890B2 (en) Generation of randomly structured forms
US5870712A (en) Data processing method and its apparatus
JP2000285128A (en) Job analytic system
KR940002481B1 (en) Method and apparatus for data processing
JP2004070406A (en) Financial data management system and method, and computer
US6108677A (en) Data processing apparatus
JP3482651B2 (en) Data processing device
JP3109324B2 (en) Data aggregation device
CN115238662A (en) Bidding file rapid editing method and system
JP3551445B2 (en) Form processing device
WO2022029874A1 (en) Data processing device, data processing method, and data processing program
JP2017151627A (en) Slip data creating system, slip data creating device, slip data creating method and control program of slip data creating device
JP3548866B2 (en) Data processing device
JP3309164B2 (en) Print processing device
JP2002169802A (en) Electronic delivery data generation support system and recording medium in public works support integrated information system
JP2000148884A (en) Device and method for processing slip data
JP2001005886A (en) Data processor and storage medium
JP3109331B2 (en) Form output device
WO2023047570A1 (en) Information processing device, information processing method, and information processing program
JPH0785176A (en) Data processing unit
JP3554768B2 (en) Data aggregation device
JPH04181372A (en) Table sheet totalization system for data
JP3109330B2 (en) Form output device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071017

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081017

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081017

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091017

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091017

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101017

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101017

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111017

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111017

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121017

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees