JP3309164B2 - Print processing device - Google Patents

Print processing device

Info

Publication number
JP3309164B2
JP3309164B2 JP06134493A JP6134493A JP3309164B2 JP 3309164 B2 JP3309164 B2 JP 3309164B2 JP 06134493 A JP06134493 A JP 06134493A JP 6134493 A JP6134493 A JP 6134493A JP 3309164 B2 JP3309164 B2 JP 3309164B2
Authority
JP
Japan
Prior art keywords
file
record
item
data
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP06134493A
Other languages
Japanese (ja)
Other versions
JPH06250805A (en
Inventor
啓義 木内
正明 福村
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 JP06134493A priority Critical patent/JP3309164B2/en
Publication of JPH06250805A publication Critical patent/JPH06250805A/en
Application granted granted Critical
Publication of JP3309164B2 publication Critical patent/JP3309164B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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 system, which is independent of a computer, a terminal device and the like and independently performs a form printing and 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, and inventory files are stored and managed, but the record structure that constitutes each file is different for each file.
Each file is stored and managed as a separate file for each record of the same form (records in which each item of the record matches). Here, when an arbitrary item is specified and a record including the item is read out from the file and classified and totaled, even if a data in the item is first classified and classified so that it is easy to classify and total, the time elapses. As a result, the classification does not match the reality, and the classification and totaling cannot be performed as it is at present. Therefore, conventionally, as a countermeasure, a code conversion table for classifying and totaling is provided, and a method of classifying and totaling by converting the code system into an optimal code system for classifying and totaling using the code conversion table has been 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. In other words, creating a classification code system in response to various business needs requires extremely specialized and advanced knowledge, and it is extremely difficult for a general user's business staff to create it. At present, it was necessary to ask a system engineer to create it. Further, since the printing apparatus simply receives the result processed by each processing terminal device in the print format and prints it, each processing terminal device must have a processing program for each processing terminal device. It was necessary to take countermeasures in accordance with differences in the programming languages of the devices. An object of the present invention is to simply specify output contents of a form or the like from an external device such as a processing terminal apparatus to a print processing apparatus without creating a code system in advance to obtain a desired form or the like. The purpose is to select a print processing apparatus that can independently collect and process data necessary for form printing and the like according to the specified contents.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。外部装置からの印刷要求に応じて帳票の印刷
を行う印刷装置であって、帳票を構成するレコードおよ
び項目の指定と、帳票作成の元となるデータの指定と、
データの加工方法の指定とを含むパラメータが外部装置
から送信されてきた際にこのパラメータを受信する受信
手段と、前記パラメータで指定された帳票作成の元とな
るデータを外部装置から読み込む読込手段と、前記外部
装置から読み込まれたデータを前記パラメータで指定さ
れたデータの加工方法に基づいて加工する加工手段と、
前記加工されたデータを前記パラメータで指定されたレ
コードおよび項目からなる帳票として印刷する印刷手段
と、を備えたことを特徴としている。
The means of the present invention is as follows.
It is. A printing device that prints a form in response to a print request from an external device, and specifies records and items constituting the form, and specifies data that is a source of form creation;
A receiving unit for receiving a parameter including a designation of a data processing method from an external device when the parameter is transmitted from the external device, and a reading unit for reading from the external device data that is a source of a form specified by the parameter. Processing means for processing data read from the external device based on a data processing method specified by the parameter;
And a printing means for printing the processed data as a form including records and items designated by the parameters.

【0005】[0005]

【0006】[0006]

【実施例】以下、図1〜図25を参照して一実施例を説
明する。図1はデータ処理システムを示したシステム構
成図である。このデータ処理システムは企業内・私有地
内情報通信網(ローカルエリアネットワーク)システム
で、本実施例特有の帳票印刷処理装置100の他、ホス
トコンピュータ200を有し、このホストコンピュータ
200には構内専用回線を介して帳票印刷処理装置10
0、入力端末装置300、ファイルサーバ400、プリ
ンタ500が接続されている。また、このシステムにお
いては会計ファイル、人事ファイル、在庫ファイル、売
上伝票ファイル等、多種多様のソースファイルがホスト
コンピュータ200やファイルサーバ400等に記憶管
理されており、専門的知識を有しない業務担当者等がホ
ストコンピュータ200や入力端末装置300等から集
計定義表を用いて集計レベル毎に集計対象を任意に指定
し、この定義内容をパラメータデータとして帳票印刷処
理装置100に転送しておくだけで、帳票印刷処理装置
100はこのパラメータデータを解析し、該当するファ
イルをホストコンピュータ200やファイルサーバ40
0等から読み出して集計レベルに応じた階層構造でレコ
ード集計し、この集計結果を帳票データとして印刷出力
するようにしている。つまり、帳票印刷処理装置100
は帳票データを作成して印刷出力させる処理を別個独立
に行うもので、ホストコンピュータ200や入力端末装
置300は所望する帳票を得る為の集計定義表を入力
し、この定義内容をパラメータデータとして単に帳票印
刷処理装置100へ転送すればよい。
An embodiment will be described below with reference to FIGS. FIG. 1 is a system configuration diagram showing a data processing system. This data processing system is an in-company / private land information communication network (local area network) system and has a host computer 200 in addition to a form print processing device 100 unique to the present embodiment. Form print processing device 10 via
0, an input terminal device 300, a file server 400, and a printer 500 are connected. Further, in this system, various source files such as an accounting file, a personnel file, an inventory file, a sales slip file, etc. are stored and managed in the host computer 200, the file server 400, and the like. The user can arbitrarily specify an aggregation target for each aggregation level using the aggregation definition table from the host computer 200, the input terminal device 300, or the like, and transfer this definition content to the form print processing apparatus 100 as parameter data. The form print processing apparatus 100 analyzes the parameter data and stores the corresponding file in the host computer 200 or the file server 40.
The records are read out from 0 and the like, and the records are tabulated in a hierarchical structure corresponding to the tabulation level, and this tabulation result is printed out as form data. That is, the form print processing apparatus 100
Is a process for independently creating and printing out form data, and the host computer 200 or the input terminal device 300 inputs a summary definition table for obtaining a desired form, and simply uses this definition content as parameter data. What is necessary is just to transfer to the form print processing apparatus 100.

【0007】図2は帳票印刷処理装置100のブロック
構成図である。この帳票印刷処理装置100には、ホス
トコンピュータ200や入力端末装置300等から送信
されて来るデータやコマンドを受信する受信部1を有
し、パラメータ設定部2はホストコンピュータ200や
入力端末装置300から受信部1を介して送信されて来
る起動命令に応答して動作する。ここで、業務担当者等
がホストコンピュータ200や入力端末装置300から
所望する任意のレコード集計を指示する為に、集計レコ
ードのレコード名や集計対象あるいは集計条件等を定義
する定義表(本実施例にあっては2種類のA表、B表)
を入力すると、入力されたデータはA表、B表のパラメ
ータとして帳票印刷処理装置100に送信される。この
際、パラメータ設定部2はこのパラメータにしたがって
A表、B表を生成し、パラメータファイル4に設定す
る。なお、A表、B表については後で詳細に説明するの
で、ここでは簡単に説明しておくものとする。例えば、
所望する帳票として図3に示す様な「経費実績表」を印
刷出力させる為に、この帳票の出力イメージにしたがっ
た集計定義表としてA表およびB表を生成しておく。こ
こで、図3に示す帳票は集計レコードのレコード名を行
項目に配置し、また集計レコードのデータ項目名を列項
目に配置したものである。A表は図4、B表は図5に示
す様に構成されており、A表は集計レベル毎に集計レコ
ードのレコード名および集計レコードとして抽出される
項目内容等を定義する定義表である。また、B表は集計
レコードのデータ項目として出力される項目名およびそ
の項目名に対応してデータ項目として抽出される出力対
象項目あるいは帳票印刷時の書式や集計条件等を定義す
る定義表である。
FIG. 2 is a block diagram of the form print processing apparatus 100. The form print processing apparatus 100 has a receiving unit 1 for receiving data and commands transmitted from the host computer 200, the input terminal device 300, and the like. It operates in response to a start command transmitted via the receiving unit 1. Here, in order for a business person or the like to instruct desired record totaling from the host computer 200 or the input terminal device 300, a definition table defining a record name of a totaling record, a totaling target, a totaling condition, and the like (this embodiment) There are two types of tables A and B)
Is input, the input data is transmitted to the form print processing apparatus 100 as parameters of Table A and Table B. At this time, the parameter setting unit 2 generates the tables A and B according to the parameters, and sets them in the parameter file 4. The tables A and B will be described in detail later, and will be described briefly here. For example,
In order to print out the “expense record table” as shown in FIG. 3 as a desired form, tables A and B are generated as a summary definition table according to the output image of the form. Here, the form shown in FIG. 3 is such that the record name of the tally record is arranged in a row item, and the data item name of the tally record is arranged in a column item. Table A is configured as shown in FIG. 4, and Table B is configured as shown in FIG. 5. Table A is a definition table that defines the record name of the total record and the item contents extracted as the total record for each total level. Table B is a definition table that defines the item names output as data items of the tally record, the output target items extracted as data items corresponding to the item names, the format when printing the form, the tally conditions, and the like. .

【0008】パラメータファイル4はA表、B表に対応
してその基本フォーマット(罫線データ等)が予めメー
カサイドによって固定的に格納されている他に、受信部
1から任意に入力された各種帳票のA表パラメータデー
タ、B表パラメータデータおよび、受信部1から任意に
入力された各種の帳票名とA表パラメータデータ、B表
パラメータデータとを対応付ける対応テーブルが記憶さ
れている。なお、ホストコンピュータ200や入力端末
装置300から帳票印刷処理装置100にパラメータ設
定を指示する為の要求が有ると、パラメータ設定部2は
パラメータファイル4からA表、B表の基本フォーマッ
トを読み出すと共に送信部3を介して要求元のホストコ
ンピュータ200や入力端末装置300に転送する。ま
たパラメータファイル4には帳票印刷用のメニュ項目と
して「パラメータ設定」、「帳票印刷の実行」、「帳票
印刷の終了」を持った初期メニュが格納されており、こ
の初期メニュはホストコンピュータ200や入力端末装
置300からの要求にしたがって要求元に送信される。
The parameter file 4 has a basic format (ruled line data, etc.) fixedly stored in advance by the maker side corresponding to the tables A and B, and various forms input arbitrarily from the receiving unit 1. A table parameter data and B table parameter data, and a correspondence table that associates various form names arbitrarily input from the receiving unit 1 with A table parameter data and B table parameter data are stored. When there is a request from the host computer 200 or the input terminal device 300 to instruct the form print processing apparatus 100 to set the parameters, the parameter setting unit 2 reads out the basic formats of the tables A and B from the parameter file 4 and transmits them. The data is transferred to the requesting host computer 200 or the input terminal device 300 via the unit 3. Also, the parameter file 4 stores an initial menu having “parameter setting”, “execution of form printing”, and “end of form printing” as menu items for form printing. It is transmitted to the request source according to the request from the input terminal device 300.

【0009】表構造解析部5は帳票印刷時に受信部1か
ら入力された起動命令(帳票出力命令)にしたがって動
作し、出力対象として受信部1から任意に指定された帳
票名に対応するA表パラメータデータ、B表パラメータ
データを解析し、その解析結果にしたがって各種のパラ
メータ解析テーブル6を作成する。この場合、本実施例
においてはパラメータ解析テーブル6として図6(A)
に示す様なA表結合テーブル、図6(B)に示す様なB
表結合テーブル、図6(C)に示す様なB表条件テーブ
ル、図6(D)に示す様なB表集計項目テーブルの他、
図示しないがB表計算式テーブルを作成する。また、表
構造解析部5はA表に定義されている集計レベルに応じ
た階層構造等を解析し、その解析結果に基づいて構成フ
ァイル7を作成する。更に、表構造解析部5はB表のヘ
ッダ・位置に定義されている各欄の項目名、例えば、
“経費項目”、“期初計画”……等の名称を読み出して
印刷書式メモリ8に設定する他、B表の書式の位置に定
義されている各欄の印刷書式を読み出して印刷書式メモ
リ8に設定する。その後、表構造解析部5は展開ファイ
ル作成部9に起動命令を与える。
The table structure analysis unit 5 operates according to a start command (form output command) input from the reception unit 1 at the time of printing a form, and outputs an A table corresponding to a form name arbitrarily specified from the reception unit 1 as an output target. The parameter data and table B parameter data are analyzed, and various parameter analysis tables 6 are created according to the analysis results. In this case, in the present embodiment, the parameter analysis table 6 shown in FIG.
Table A as shown in FIG. 6B, and B as shown in FIG.
In addition to a table join table, a table B condition table as shown in FIG. 6C, a table B total item table as shown in FIG.
Although not shown, a table B calculation formula table is created. Further, the table structure analysis unit 5 analyzes a hierarchical structure or the like corresponding to the aggregation level defined in the table A, and creates a configuration file 7 based on the analysis result. Further, the table structure analysis unit 5 determines the item name of each column defined in the header / position of the table B, for example,
In addition to reading out the names such as "expense item" and "initial plan" and setting the same in the print format memory 8, the print format of each column defined in the format position of the table B is read out and stored in the print format memory 8. Set. After that, the table structure analysis unit 5 gives a start command to the expanded file creation unit 9.

【0010】展開ファイル作成部9はパラメータ解析テ
ーブル6内の各種テーブル内容を参照して集計対象ファ
イルを指定すると共に、データファイル10を参照して
この集計対象ファイルがどの外部装置に記憶管理されて
いるかを検索する。データファイル10はホストコンピ
ュータ200やファイルサーバ400等に分散管理され
ている各種ソースファイルのファイル名と、ソースファ
イルが記憶管理されている外部装置の物理的なアドレス
を示すマシンナンバとを対応付けたもので、展開ファイ
ル作成部9は集計対象ファイルに対応するマシンナンバ
をデータファイル10から読み出してこのマシンナンバ
を送信部3から送信し、必要なファイルを受信部1を介
して受信する。また、展開ファイル作成部9はパラメー
タ解析テーブル6を参照することによって集計対象ファ
イルから抽出したレコードに基づいて1レコードずつ展
開レコードを順次生成し、展開ファイル11に書き出
す。これによって展開ファイル11を作成すると、展開
ファイル作成部9は展開集計処理部12に起動命令を与
える。
The development file creation unit 9 designates a file to be summed up by referring to the contents of various tables in the parameter analysis table 6, and refers to the data file 10 to store and manage the file to be summed up in any external device. Search. The data file 10 associates file names of various source files that are distributed and managed by the host computer 200, the file server 400, and the like, with machine numbers that indicate physical addresses of external devices in which the source files are stored and managed. The development file creation unit 9 reads the machine number corresponding to the tallying target file from the data file 10, transmits the machine number from the transmission unit 3, and receives the necessary file via the reception unit 1. In addition, the expanded file creation unit 9 sequentially generates expanded records one record at a time based on the records extracted from the aggregation target file by referring to the parameter analysis table 6 and writes the generated records to the expanded file 11. When the development file 11 is created in this way, the development file creation unit 9 gives a start instruction to the development totalization processing unit 12.

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

【0012】次に、本実施例の動作を説明する。図7は
ホストコンピュータ200や入力端末装置300におけ
る本実施例特有の動作を示したフローチャートで、帳票
印刷処理装置100を指定する為に所定の操作を行う
と、図7にしたがった動作が実行開始される。先ず、自
己の動作モードを端末モードに設定すると共に(ステッ
プS1)、帳票印刷処理装置100の起動を指定する
(ステップS2)。この場合、帳票印刷処理装置100
において、パラメータ設定部2は先ずパラメータファイ
ル4から初期メニュを読み出して送信する為、ホストコ
ンピュータ200や入力端末装置300ではこれを受信
して初期メニュを表示出力させる(ステップS3)。こ
の初期メニュは上述の如く、「パラメータ設定」、「帳
票印刷の実行」、「帳票印刷の終了」の各項目を有し、
このメニュ項目の中から所望する項目を選択指定すると
(ステップS4)、この指定項目の判別が行われる(ス
テップS5)。
Next, the operation of this embodiment will be described. FIG. 7 is a flowchart showing an operation specific to the present embodiment in the host computer 200 and the input terminal device 300. When a predetermined operation is performed to specify the form print processing apparatus 100, the operation according to FIG. Is done. First, the user sets his / her own operation mode to the terminal mode (step S1) and designates activation of the form print processing apparatus 100 (step S2). In this case, the form print processing device 100
In step (1), the parameter setting unit 2 first reads and transmits the initial menu from the parameter file 4, and the host computer 200 and the input terminal device 300 receive the initial menu and display and output the initial menu (step S3). As described above, this initial menu has items of “parameter setting”, “execution of form printing”, and “end of form printing”.
When a desired item is selected and designated from the menu items (step S4), the designated item is determined (step S5).

【0013】ここで、先ず、最初に「パラメータ設定」
の項目が指定された場合には、次のステップS6に進
み、パラメータ設定処理が行われる。先ず、帳票印刷処
理装置100において、パラメータ設定部2はパラメー
タファイル4に格納されているA表の基本フォーマット
を読み出して送信する。このA表のフォーマットを受信
したホストコンピュータ200や入力端末装置300は
これをCRT画面に表示出力させる。
[0013] Here, first, "parameter setting"
If the item is designated, the process proceeds to the next step S6, where parameter setting processing is performed. First, in the form print processing apparatus 100, the parameter setting unit 2 reads and transmits the basic format of the table A stored in the parameter file 4. The host computer 200 or the input terminal device 300 which has received the format of the table A displays the format on the CRT screen.

【0014】図8はA表の基本フォーマットの表示状態
を示している。ここで、A表の基本フォーマットはその
行方向の見出し部として6段階の集計レベルを表わすア
ルファベット文字A、B、C、D、E、Fと、各集計レ
ベルを区分する括り用の罫線フォーマットが表示され、
この括り用の罫線は集計レベル毎に列方向に“ずれて”
表示され、この“ずれ”によって集計レベルの階層構造
を表現している。この場合の階層構造はA>B>C>D
>E>Fの関係にある。ここで、A表の行項目には集計
レコードのレコード名が集計レベルに対応させて入力さ
れ、また、その列方向には集計対象のファイル名および
そのファイルから集計レコードとして抽出されるべき項
目名が入力される。なお、A表の基本フォーマットはそ
の一部を適宜修正変更可能であり、表枠全体を伸長した
り、縮少することもできるようにしてある。
FIG. 8 shows the display state of the basic format of Table A. Here, the basic format of the table A is an alphabetic character A, B, C, D, E, or F indicating a totaling level of six levels as a heading part in the row direction, and a ruled line format for dividing each totaling level. Is displayed,
The ruled lines for this consolidation are "shifted" in the column direction for each aggregation level.
The “shift” expresses the hierarchical structure of the aggregation level. The hierarchical structure in this case is A>B>C> D
>E> F. Here, the record name of the aggregation record is input in the row item of the table A in correspondence with the aggregation level, and in the column direction, the name of the file to be aggregated and the item name to be extracted from the file as the aggregation record Is entered. A part of the basic format of the table A can be appropriately modified and changed, and the entire table frame can be expanded or reduced.

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

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

【0017】また、A表には各行Noに対応して管理単位
エリアが設けられており、任意の行を指定してそれに対
応する位置に丸印を入力することにより当該行は項目コ
ードが入力されるエリアであることを示す。これはA表
の定義内容を行単位毎に解析する際に、当該丸印が付さ
れている行が解析対象となり、その他の行を対象から外
すことによって処理スピードの向上を図る為である。同
時に、業務担当者が抽出集計すべきデータがソースファ
イル(会計FILEなど)にある事を確認する意味もあ
る。なお、図4で示したA表においては、ファイル名と
して2種類入力した例を示したが、3種類以上入力して
もよく、また1つのファイル名に対応してそれぞれ1つ
ずつの項目名を入力したが、1つのファイル名に対応さ
せて2以上の項目名を入力するようにしてもよい。
In the table A, a management unit area is provided corresponding to each row No. By specifying an arbitrary row and inputting a circle at a position corresponding to the row, an item code is input to the row. Indicates that the area is to be used. This is to improve the processing speed by analyzing the definition content of the table A for each row, by analyzing the rows marked with the circles and excluding other rows from the analysis. At the same time, it also means that the business person in charge confirms that the data to be extracted and totaled is in the source file (account file, etc.). In Table A shown in FIG. 4, an example in which two types of file names are input is shown. However, three or more types of file names may be input, and one item name corresponds to one file name. Is input, but two or more item names may be input in correspondence with one file name.

【0018】次に、パラメータ設定部2はパラメータフ
ァイル4からB表の基本フォーマットを読み出してホス
トコンピュータ200や入力端末装置300に送信す
る。図9はこのB表の基本フォーマットを示し、この行
方向の見出し部にはその行項目のラベルとして「書
式」、「対象FILE」、「集計項目」、「計算式」、
「条件項目」、「条件値」が予め固定的に設定されてお
り、また、B表の列方向における見出し部の各列項目は
その項目位置を示す名称として「A」、「B」、
「C」、……「G」に対応付けられている。なお、B表
においてもA表と同様に、その基本フォーマットの一部
を適宜修正変更可能であり、表枠全体を伸長したり、縮
少することもできるようにしてある。
Next, the parameter setting section 2 reads out the basic format of Table B from the parameter file 4 and sends it to the host computer 200 or the input terminal device 300. FIG. 9 shows a basic format of the table B. In the heading portion in the row direction, "format", "target FILE", "total item", "calculation formula",
“Condition items” and “condition values” are fixedly set in advance, and each column item of the heading portion in the column direction of Table B has “A”, “B”,
.., “G”. In the table B, similarly to the table A, a part of the basic format can be appropriately modified and changed, and the entire table frame can be expanded or reduced.

【0019】いま、B表の基本フォーマットが表示出力
されている状態において、業務担当者は入力部からB表
のパラメータデータを入力する。図5はB表にパラメー
タデータを入力した場合の表示例である。ここで、B表
の列方向における見出し部には集計レコードのデータ項
目として印刷出力される項目名が入力されている。例え
ば、項目位置「A」には「経費項目」、項目位置「B」
には「期初計画」、項目位置「C」には「修正計画」、
項目位置「D」、「E」にはその共有項目として「実
積」およびその下位項目として項目位置「D」には「部
門経費」、項目位置「E」には「付替経費」、更に項目
位置「F」には「実積計」、項目位置「G」には「計画
差」が入力されている。
Now, in a state where the basic format of the table B is displayed and output, the business operator inputs the parameter data of the table B from the input unit. FIG. 5 is a display example when parameter data is input to the table B. Here, an item name to be printed out as a data item of the total record is input in the heading portion in the column direction of the table B. For example, item position “A” has “expense item” and item position “B”
Indicates the “initial plan”, item position “C” indicates the “correction plan”,
The item positions “D” and “E” have “real results” as a shared item, and the item positions “D” have “department expenses” as subordinate items, and the item position “E” has “distribution expenses”. The item position “F” is input with “actual meter”, and the item position “G” is input with “planned difference”.

【0020】また、B表の行項目において、「書式」に
は項目データの印刷書式として列項目毎に欄幅、文字
種、文字サイズ等が入力されている。また、次の「対象
FILE」には列項目位置「B」、「C」に対応して
「計画FILE」が入力され、列項目位置「D」、
「E」に対応して「会計FILE」が入力されている。
更に、次の「集計項目」は集計対象として抽出されたレ
コードの中からどの項目データを集計すべきかを定義す
るもので、列項目位置「B」、「C」に対応して「予算
額+」が入力され、また、列項目位置「D」、「E」に
対応して「借方金額+」および「貸方金額−」が入力さ
れている。ここで、プラス/マイナスの符号は加減算集
計を定義するものである。次の「計算式」は集計結果を
出力する際の出力単位や集計演算の計算式を入力するも
ので、図示の例「B/1000」はデータ項目Bの内容
を“1000”で割って千円単位で出力すべきことを示
している。一方、「条件項目」および「条件値」はA表
の定義内容によって抽出された抽出レコードのうちある
項目データが所定の値に該当するレコードのみを集計対
象として集計すべきことを定義するもので、「条件項
目」として列項目位置「B」、「C」にはそれぞれ「計
画種別」が入力され、またその「条件値」として列項目
位置「B」には「1」、列項目位置「C」には「2」、
「3」、「4」が入力され、同様に、「条件項目」とし
て列項目位置「D」、「E」にはそれぞれ「相手勘定」
が入力され、また「条件値」として列項目位置「D」に
は「≠0011(0011を除く他の全てのコードを抽
出すべきことを示している)」、列項目位置「E」には
「0011」が入力されている。なお、B表の表枠外に
は帳票名として「経費実績表」が入力されている。
In the row items of the table B, the column format, the character type, the character size, etc. are input for each column item as the print format of the item data in the "format". In the next "target FILE", "plan FILE" is input corresponding to column item positions "B" and "C", and column item position "D",
"Accounting FILE" is input corresponding to "E".
Further, the next “totaling item” defines which item data should be totaled out of the records extracted as the totaling target, and corresponds to “budget amount +” corresponding to the column item positions “B” and “C”. ", And" debit amount + "and" credit amount-"are input corresponding to the column item positions" D "and" E ". Here, the plus / minus signs define addition / subtraction tallying. The following “calculation formula” is used to input the output unit and the calculation formula of the tallying operation when outputting the tallying result. In the illustrated example “B / 1000”, the content of the data item B is divided by “1000” to Indicates that the output should be made in yen units. On the other hand, "condition item" and "condition value" define that only records whose item data corresponds to a predetermined value among the extracted records extracted according to the definition contents of Table A should be totaled. The column item positions "B" and "C" are each input with "plan type" as the "condition item", and the column item position "B" is "1" and the column item position ""C" is "2",
"3" and "4" are input, and similarly, "Contra account" is placed in column item positions "D" and "E" as "condition items", respectively.
Is input in the column item position "D" as "condition value", and "$ 0011 (indicating that all codes except for 0011 should be extracted)". In the column item position "E", “0011” has been entered. In addition, "Expense record table" is input as a form name outside the table frame of Table B.

【0021】このようにしてホストコンピュータ200
や入力端末装置300からA表、B表のパラメータを入
力すると、このパラメータは帳票印刷処理装置100に
送信される。すると、帳票印刷処理装置100におい
て、パラメータ設定部2はこのA表パラメータ、B表パ
ラメータをパラメータファイル4に帳票名に対応付けて
設定する。次に、ホストコンピュータ200や入力端末
装置300において、任意の帳票を印刷出力させる為
に、その実行を指示すると、図7のステップS7に進
み、帳票印刷実行処理が行われる。この場合、帳票印刷
処理装置100においてパラメータ設定部2はパラメー
タファイル4内のテーブルから帳票名一覧を読み出して
送信する為、ホストコンピュータ200や入力端末装置
300ではこれを受信して帳票名一覧表示させる。そし
て、この一覧画面の中から所望する帳票名を選択指定す
ると、この帳票名と共に実行コマンドを帳票印刷処理装
置100に送信する。このようにしてパラメータ設定処
理(ステップS6)、帳票印刷実行処理(ステップS
7)が終ると、ステップS3に戻る。なお、初期メニュ
の中から「帳票印刷の終了」が選択指定された場合に
は、このフローから抜ける。
Thus, the host computer 200
When the parameters of the tables A and B are input from the input terminal device 300 or the input terminal device 300, the parameters are transmitted to the form print processing device 100. Then, in the form print processing apparatus 100, the parameter setting unit 2 sets the A table parameter and the B table parameter in the parameter file 4 in association with the form name. Next, when the host computer 200 or the input terminal device 300 instructs execution of the form in order to print out the form, the process proceeds to step S7 in FIG. 7 and form print execution processing is performed. In this case, in the form print processing apparatus 100, the parameter setting unit 2 reads out the form name list from the table in the parameter file 4 and transmits the form name. The host computer 200 and the input terminal device 300 receive this form and display the form name list. . When a desired form name is selected and designated from the list screen, an execution command is transmitted to the form print processing apparatus 100 together with the form name. Thus, the parameter setting process (step S6), the form print execution process (step S6)
When 7) is completed, the process returns to step S3. If “end of form printing” is selected and designated from the initial menu, the process exits from this flow.

【0022】いま、ホストコンピュータ200や入力端
末装置300から帳票印刷の実行コマンドが帳票名と共
に入力されると、帳票印刷処理装置100において、表
構造解析部5は図10に示すフローチャートにしたがっ
て動作する。なお、図10は表構造解析部5の全体動作
の概要を示したゼネラルフローで、先ず、表構造解析部
5はパラメータファイル4から指定帳票のA表パラメー
タデータを読み出してA表結合テーブルを作成すると共
に(ステップA1)、構成ファイルを作成する(ステッ
プA2)。次に、表構造解析部5はパラメータファイル
4から指定帳票のB表パラメータデータを読み出してB
表の結合テーブルを作成すると共に(ステップA3)、
条件テーブル(ステップA4)、集計項目テーブル(ス
テップA5)、計算式テーブル(ステップA6)をそれ
ぞれ作成する。その後、B表のパラメータデータから書
式に関するデータを取り出して印刷書式メモリ8に書き
込む(ステップA7)。
When a form printing execution command is input together with a form name from the host computer 200 or the input terminal device 300, the table structure analysis unit 5 in the form print processing apparatus 100 operates according to the flowchart shown in FIG. . FIG. 10 is a general flow diagram showing an outline of the entire operation of the table structure analysis unit 5. First, the table structure analysis unit 5 reads out the A table parameter data of the designated form from the parameter file 4 and creates an A table connection table. At the same time (step A1), a configuration file is created (step A2). Next, the table structure analysis unit 5 reads the B table parameter data of the designated form from the parameter file 4 and
While creating a join table of the tables (step A3),
A condition table (step A4), a total item table (step A5), and a calculation formula table (step A6) are created. Thereafter, data relating to the format is extracted from the parameter data of Table B and written into the print format memory 8 (step A7).

【0023】図11はA表結合テーブルの作成フローを
示したもので、表構造解析部5はA表の列方向の見出し
部を解析して図6(A)に示す様なA表結合テーブルを
作成する。ここで、A表結合テーブルはA表に定義され
ているファイル名と項目名とを対応付ける対応テーブル
で、「ファイル名」、「シークェンシャル番号SE
Q」、「項目名」、「ファイル記号」とから成る。ここ
で、シークェンシャル番号SEQは同一ファイル内に定
義されている項目名を「01」から連続番号で特定する
為のコードであり、また、「ファイル記号」はA表に定
義されているファイルを「1」から連続番号で特定する
為のコードである。
FIG. 11 shows a flow of creating the A table connection table. The table structure analysis section 5 analyzes the column heading portion of the A table and analyzes the A table connection table as shown in FIG. Create Here, the A table join table is a correspondence table that associates file names and item names defined in the A table, and includes “file name”, “sequential number SE”.
Q "," item name ", and" file symbol ". Here, the sequential number SEQ is a code for specifying an item name defined in the same file by a consecutive number from “01”, and “file symbol” is a file defined in Table A. Is a code for specifying the serial number from “1”.

【0024】先ず、表構造解析部5はパラメータファイ
ル4から指定帳票のA表パラメータデータを読み出すと
共に(ステップB1)、ファイル記号として初期値
「1」を指定しておく(ステップB2)。そして、A表
の列方向の見出し部をその先頭から順次解析してゆく。
即ち、表構造解析部5は先ず、A表に定義されている先
頭ファイル名を指定したのち(ステップB3)、シーク
ェンシャル番号SEQの初期値「1」を指定し(ステッ
プB4)、更にこの先頭ファイル名に対応する最初の項
目名を指定する(ステップB5)。これによって指定さ
れたファイル名、シークェンシャル番号SEQ、項目
名、ファイル記号をA表結合テーブルに書き込む(ステ
ップB6)。この場合、図4に示すA表であれば、A表
結合テーブルの1行目には図6(A)に示す様なデータ
が書き込まれる。次に、同一ファイル名に対応して他の
項目名が定義されていれば(ステップB7)、シークェ
ンシャル番号SEQに「1」を加算してその値を更新す
ると共に(ステップB8)、次の項目名を指定し(ステ
ップB5)、A表結合テーブルへの書き込みを行う(ス
テップB6)。以下、同一ファイル名に対応する全ての
項目名を指定し終るまで上述の動作を繰り返す。この結
果、全ての項目名を指定し終ると、次のステップB9に
進み、A表に他のファイル名が有れば、それを条件にフ
ァイル記号「1」を加算し、その値の更新を行う(ステ
ップB10)。以下、ステップB3に戻り、A表から当
該他のファイル名を指定すると共に、そのファイル名に
対応する全ての項目名を順次指定しながらA表結合テー
ブルへの書き込みを行う。
First, the table structure analysis unit 5 reads out the parameter data of the designated form A from the parameter file 4 (step B1) and designates an initial value "1" as a file symbol (step B2). Then, the headings in the column direction of Table A are sequentially analyzed from the top.
That is, the table structure analysis unit 5 first specifies the first file name defined in the table A (step B3), and then specifies the initial value “1” of the sequential number SEQ (step B4). The first item name corresponding to the first file name is designated (step B5). The designated file name, sequential number SEQ, item name, and file symbol are written in the table A connection table (step B6). In this case, in the case of the table A shown in FIG. 4, data as shown in FIG. 6A is written in the first row of the table A connection table. Next, if another item name is defined corresponding to the same file name (step B7), “1” is added to the sequential number SEQ to update its value (step B8), and Is specified (step B5), and writing to the A table connection table is performed (step B6). Hereinafter, the above operation is repeated until all the item names corresponding to the same file name are designated. As a result, when all the item names have been designated, the process proceeds to the next step B9. If there is another file name in Table A, the file symbol “1” is added on condition that the other file name is present, and the value is updated. Perform (Step B10). Thereafter, returning to step B3, the other file name is specified from the table A, and writing to the table A connection table is performed while sequentially specifying all the item names corresponding to the file name.

【0025】次に、図10で示した構成ファイル7の作
成処理(ステップA2)を図12〜図16を参照して詳
述する。図12〜図14は構成ファイル7を作成する際
の動作を示したフローチャートであり、また、図15は
この場合における表構造解析部5の動作内容を図式的に
示した図、図16は作成された構成ファイル7を示した
図である。なお、図16の(A)は構成ファイル7のレ
コード構造を示したもので、この構成レコードは「子フ
ード」、「親コード」、「終了フラグ」、「名称」とか
ら成り、「子フード」および「親コード」はA表の階層
構造を表わす。また、「終了フラグ」は親コードに集計
レベルAが含まれている場合に“1”となるフラグであ
る。「名称」はA表に定義されている集計レコードのレ
コード名である。先ず、表構造解析部5はA表パラメー
タの先頭行を指定し(ステップC1)、指定行の集計レ
ベルは最上位のレベルAか否かをチェックする(ステッ
プC2)。ここで、集計レベルがAであれば、初期設定
の為に、表構造解析部5内の最終項目ワークメモリ(図
15の(B)参照)の内容を全てクリアしておくと共に
(ステップC3)、現在着目中のレベル(現在レベル)
として集計レベルAを指定しておく(ステップC4)。
Next, the process of creating the configuration file 7 (step A2) shown in FIG. 10 will be described in detail with reference to FIGS. 12 to 14 are flowcharts showing the operation when the configuration file 7 is created. FIG. 15 is a diagram schematically showing the operation contents of the table structure analysis unit 5 in this case, and FIG. FIG. 7 is a diagram showing a configuration file 7 that has been created. FIG. 16A shows the record structure of the configuration file 7. This configuration record is composed of "child food", "parent code", "end flag", and "name". "And" parent code "represent the hierarchical structure of Table A. The “end flag” is a flag that becomes “1” when the parent code includes the aggregation level A. “Name” is the record name of the tally record defined in Table A. First, the table structure analysis unit 5 specifies the first row of the A table parameter (step C1), and checks whether the totaling level of the specified row is the highest level A (step C2). If the totaling level is A, the contents of the last item work memory (see FIG. 15B) in the table structure analysis unit 5 are all cleared for the initial setting (step C3). , Currently focused level (current level)
Is specified (step C4).

【0026】この状態において、現在レベルと現在着目
している行(現在行)の行Noとからレベル行データを生
成する(ステップC5)。例えば、図4に示すA表を例
に挙げると、A表の先頭行は集計レベルAであり、かつ
その行Noは「01」であるので、この現在レベルと行No
とを組み合せたレベル行データ「A01」を生成する。
次に、このレベル行データ「A01」と現在行の名称
(集計レコードのレコード名「計」)とを最終項目ワー
クメモリの現在レベルAに対応する位置にセットする
(ステップC6)。なお、最終項目ワークメモリは図1
5の(B)に示す様に集計レベルA、B、C、D……に
対応してレベル行データおよび名称を記憶する構成とな
っている。
In this state, level row data is generated from the current level and the row number of the current row of interest (current row) (step C5). For example, taking Table A shown in FIG. 4 as an example, the first row of Table A is aggregation level A and its row No. is "01".
To generate level row data “A01”.
Next, the level row data “A01” and the name of the current row (record name “total” of the total record) are set at the position corresponding to the current level A in the last item work memory (step C6). The final item work memory is shown in Fig. 1.
As shown in FIG. 5 (B), the level row data and the name are stored corresponding to the aggregation levels A, B, C, D....

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

【0028】いま、指定行レベルBは現在レベルのA未
満であるので、ステップC12に進み、指定行レベルを
現在レベルとして現在レベルの更新を行う。次に、現在
レベルと現在行の行Noとからレベル行データを生成し
(ステップC13)、このレベル行データと現在行の名
称とを最終項目ワークメモリの現在レベルに対応する位
置にセットする(ステップC14)。この場合、レベル
行データ「B02」、名称「固定費」が現在レベルBに
対応する位置にセットされる(図15の(B)参照)。
次に、このレベル行データの先頭に記号(・)を結合し
(ステップC15)、この結合データを図15の(A)
に示す様に構成レコードの子コードとしてセットする
(ステップC16)。ここで、記号(・)はA表のうち
項目コードが入力されていない行を着目行とした場合に
セットされるもので、これによってソースファイルと対
応関係が無いことを示している。そして、図13のステ
ップC17に進み、最終項目ワークメモリの中から(現
在レベル+1)のレベル位置に格納されているレベル行
データを読み出し、このレベル行データの先頭に記号
(・)を結合し、この結合コードを構成レコードの親コ
ードとしてセットする(ステップC18)。いま、現在
レベルはB、したがって最終項目ワークメモリのレベル
Aの位置に格納されているレベル行データ「A01」に
記号(・)を結合した結合コードが親コードとなる(図
15の(A)参照)。ここで、親コードのレベルがAで
あれば(ステップC19)、構成レコードの終了フラグ
に“1”をセットする(ステップC20)。次に、親コ
ードの名称を最終項目ワークメモリから読み出して構成
レコードの名称としてセットする(ステップC21)。
このようにして1レコード分のデータとして子コード
「・B02」、親コード「・A01」、終了フラグ
「1」、名称「計」が揃うと、この構成レコ−ドは構成
ファイル7に書き出される(ステップC22)。
Since the specified row level B is less than the current level A, the process proceeds to step C12, and the current level is updated using the specified 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 a position corresponding to the current level in the last 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. 15B).
Next, a symbol (•) is connected to the head of this level row data (step C15), and this combined data is combined with the data in FIG.
Is set as a child code of the configuration record (step C16). Here, the symbol (•) is set when the line of the table A in which no item code is input is set as the line of interest, and this indicates that there is no correspondence with the source file. Then, the process proceeds to step C17 in FIG. 13 to read out the level row data stored at the (current level + 1) level position from the last item work memory, and connect a symbol (•) to the head of this level row data. The combination code is set as the parent code of the constituent record (step C18). Now, the current level is B, and therefore, the combined code obtained by combining the symbol (•) with the level line data “A01” stored at the level A position of the last item work memory becomes the parent code ((A) in FIG. 15). reference). 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).
When the child code ".B02", the parent code ".A01", the end flag "1", and the name "total" are prepared as data for one record, the configuration record is written to the configuration file 7. (Step C22).

【0029】次に図12のステップC7に戻るが、この
場合、現在行の管理単位エリアには丸印が付されていな
いので、次の行の3行目が指定される(ステップC
9)。その後、上述のステップC12〜C14が実行さ
れる結果、最終項目ワ−クメモリのレベルCにはレベル
行デ−タ「C03」と現在行の名称「人件費」がセット
される(図15の(B)参照)。そしてこのレベル行デ
−タに記号(・)を付けた結合コ−ドが構成レコードの
子コ−ドとしてセットされる(ステップC15、C1
6)。次に、最終項目ワ−クメモリ内のレベルBの位置
(1段上位のレベル位置)から読み出したレベル行デ−
タ「B02」に記号(・)を付けた結合コ−ドが構成レ
コ−ドの親コ−ドとしてセットされる(図13のステッ
プC17、C18)。この場合、親コ−ドに対応する最
終項目ワ−クメモリ内の名称「固定費」が構成レコ−ド
の名称となる(ステップC21)。このようにして1レ
コ−ド分のデ−タとして子コ−ド「・C03」、親コ−
ド「・B02」、名称「固定費」が揃うと、この構成レ
コ−ドは構成ファイル7に書き出される(ステップC2
2)。
Next, returning to step C7 of FIG. 12, in this case, since the management unit area of the current line is not marked with a circle, the third line of the next line is designated (step C7).
9). Thereafter, as a result of the above-described steps C12 to C14 being executed, the level line data "C03" and the name of the current line "personnel cost" are set in the level C of the last item work memory ((FIG. 15) B)). Then, a linking code obtained by adding a symbol (.) To this level row data is set as a child code of the constituent record (steps C15 and C1).
6). Next, the level row data read from the level B position (one-level higher level position) in the last item work memory.
A combination code in which a symbol (•) is added to the data "B02" is set as a parent code of the constituent record (steps C17 and C18 in FIG. 13). 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, the child code ".C03" and the parent code are used as data for one record.
When the record ".B02" and the name "fixed cost" are prepared, the configuration record is written out to the configuration file 7 (step C2).
2).

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

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

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

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

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

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

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

【0037】その他、表構造解析部5はB表パラメータ
データを解析して計算式テーブルを作成するが、この計
算式テーブルは各計算式を列項目位置に対応付けたもの
である。また、表構造解析部5はB表パラメータデータ
から書式データを列項目位置に対応付けて読み出し、印
刷書式メモリ8にセットする。
In addition, the table structure analysis unit 5 analyzes the table B parameter data and creates a calculation formula table. The calculation formula table associates each calculation formula with a column item position. Further, the table structure analysis unit 5 reads the format data from the table B parameter data in association with the column item position, and sets the format data in the print format memory 8.

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

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

【0040】次に、この計画ファイルの先頭レコードに
おいてその出力対象項目はB表に定義されている抽出条
件に合致するレコードか否かを調べる。即ち、先ず、展
開ファイル作成部9は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」に集計するが、この場合、マイナスサインフラ
グがセットされるものについてはマイナス集計が行わ
れ、マイナスサインフラグがセットされていないものは
プラス集計される。これによって図21に示す様な1レ
コード目の展開レコードが作成される。
Next, it is checked whether or not the output target item in the top record of the plan file is a record that matches the extraction condition defined in the table B. That is, first, the expanded file creation unit 9 refers to the table B connection table and checks whether or not the specified file symbol exists in this table (step E9). Here, the condition item is B as described above.
When defined in the table, file name, condition item name,
Since the file symbol etc. are set in the B table connection table,
The fact that the file symbol is not set means that the condition item is not defined in the table B (that is, the condition for extracting 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 extracted from the designated record. In this case, the item value “1” of the plan type is extracted from the first record. Then, a condition value corresponding to the item value is searched from the condition table B (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 is present in the first record in the table B condition table, the process proceeds to the next step E13, and the negative flag is set in the corresponding table B condition table. Is set or not. In this case,
Since the negative flag has not been set, step E19
Then, the value at the position corresponding to the matched condition value (B in this case) is extracted from the table B condition table, and the value of the item position corresponding to this value is searched for in the total item table (step E20). The corresponding item name is specified (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 the item position B is extracted, and the item value "800,000" corresponding to this item name is designated. At the same time as taking out from the record (step E22), it is checked whether a minus sign flag is set in the aggregation item table corresponding to the item position B (step E23).
Next, the process proceeds to step B24, where the item value "800,000" extracted from the designated record is totaled at the corresponding position "B" of the expanded record. If the minus sign flag is not set, it is added up. As a result, the first expanded record as shown in FIG. 21 is created.

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

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

【0043】次に、計画ファイルの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 expanded record (the third record) is generated. In this case, the item value of the plan type in the third record read from the plan file is “2”, and a condition value that matches this item value is set in the table B 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 to the corresponding position “C” in the expanded record (third record).

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

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

【0046】このような動作を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 records in the specified file are specified and no next record is detected in step E15, step E15 is executed.
Proceed to 16 to check whether another file is defined in the A table connection table. Now, since the accounting file is defined as another file in the table A joining 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 extracted as a file name from the table A connection table (step E1), and "2" is designated as its file symbol (step E2). Then, an accounting file is designated as a source file corresponding to this file name (step E).
3) Specify the first record (step E)
4).

【0047】この状態において、指定レコードの「勘定
科目」の項目値「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 is combined with the file symbol "2" 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 table B connection table,
The item value corresponding to the item name "counter account" of the table combination table is extracted from the first record of the accounting file (step E10). Now, since "0011" is extracted as the item value of "counter account" from the first record of the accounting file, a condition value that matches this item value is checked from the condition table of table B (step E11). In this case, since the corresponding condition value is set in the fifth and sixth rows in the table, a match is detected in step E12, and the process proceeds to step E13. And
Check whether the negation flag is set at the corresponding position. Since the negation flag is set in the fifth row of the table B condition table, the process proceeds to step E14, and another condition value that matches this item value "0011" in the table B condition table is added. Check if there is, but now B
Since the condition value “0011” exists in the sixth row in the table condition table, the process returns to step E13. Since the negative flag is not set at the position corresponding to this condition value, the process proceeds to step E19, where the corresponding item position "E" is extracted from the table B condition table, and this item position "E" is set. The item name in the matching total item table is specified (steps E20 and E21).
The first item position among the item positions “E” set on the second and sixth lines, that is, the item name “debit amount” corresponding to the fifth line is designated. Then, from the first record of the accounting file, the item value “5” corresponding to the designated item name is set.
"0000" is added to the corresponding position "E" of the expanded record in the first record for the accounting file (steps E22 to E24).

【0047】そして、ステップ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 in the sixth line as well as the fifth line in the total item table, the 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 extracted 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 is counted in the corresponding position "E" of the first record of the developed record. Since the minus sign flag is set in the sixth line of the totaling item table, the negative totaling, that is, the totaling operation of (previous debit amount “50,000” −current credit amount “0”) is performed. This is performed (step E24). Thereafter, the process proceeds from step E25, E14, E15 to step E18, where the second record of the accounting file is designated. As a result, an expanded record is generated corresponding to the second record of the accounting file. In this case, the item value of the account is also "2111" and the classification key is the same as in the first record. Becomes “22111”. Also, since the counter account of the second record is also “0011”, which matches the item condition value, the debit amount “0” is added up to the item position E of the developed record, and the credit amount is “40”. , 00
“0” is negatively counted in the item position E. Because of this,
The item position of the expanded record of the second record is "-40,
000 "is written.

【0048】次に、会計ファイルの3レコ−ド目が指定
されるが、この相手勘定の項目値は「0011」で、B
表条件テ−ブル内にはこれと一致する条件値はセットさ
れていないので、ステップE12からステップE26に
進み、B表結合テ−ブル内で指定ファイル対応して否定
フラグがセットされてるかをチェックする。いま、B表
条件テ−ブル内にはその5行目に会計ファイルに対応し
て否定フラグがセットされているので、ステップE27
に進み、否定フラグがセットされている位置の値「D」
をB表条件テ−ブルから取り出し、この値に一致する位
置を集計項目テ−ブル内から検索し(ステップE2
0)、その項目名「借方金額」に対応する項目値「8
0,000」を3レコ−ド目から取り出し、展開レコ−
ドの対応位置Dにプラス集計する。その後、ステップE
25からステップE21に戻り、上述と同様に次の項目
名「貸方金額」の項目値「0」が展開レコ−ドの位置
「D」にマイナス集計される。以下、次レコ−ドが指定
され、ステップE12で不一致が検出される毎に上述と
同様の動作が1レコ−ドずつ繰り返される。これによっ
て条件項目「相手勘定」の条件値「≠0011」にした
がった展開レコ−ドが順次生成される。
Next, the third record of the accounting file is specified, and the item value of the counter account is "0011".
Since the corresponding condition value is not set in the table condition table, the process advances from step E12 to step E26 to determine whether the negative flag is set in the table B connection table for the designated file. To check. Since a negative flag is set in the fifth row of the condition table corresponding to the accounting file in the table B, step E27 is executed.
To “D” at the position where the negative flag is set.
Is retrieved from the condition table of table B, and a position corresponding to this value is retrieved from the totaling item table (step E2).
0), the item value “8” corresponding to the item name “debit amount”
"000" from the third record,
The total is added to the corresponding position D of the key. Then, step E
From step 25, the process returns to step E21, and the item value "0" of the next item name "credit amount" is negatively added to the position "D" of the development record in the same manner as described above. Thereafter, the next record is designated, and every time a mismatch is detected in step E12, the same operation as described above is repeated one record at a time. As a result, development records according to the condition value “$ 0011” of the condition item “counter account” are sequentially generated.

【0049】その後、会計ファイルの全レコ−ドを指定
し終り、ステップE15で次レコ−ド無しが検出される
と、ステップE16に進み、A表結合テ−ブル内に他の
ファイルが有るかをチェックするが、この場合、ファイ
ル無しが検出されるので、ステップE17に進み、展開
レコ−ドの編集処理が行われる。即ち、分類キ−が同一
の展開レコ−ドをそれぞれ抽出し、これを1つのレコ−
ドにまとめると共に、分類キ−にしたがって各展開レコ
−ドを昇順にソ−トする。例えば、図22に示す様に、
1レコ−ド目と2レコ−ド目の展開レコ−ドはその分類
キ−が同一である為、1つの展開レコ−ドにまとめら
れ、その項目位置「E」の値は「10,000」とな
る。図23は上述の様にして作成された展開ファイル1
1の内容を示している。即ち、計画ファイル、会計ファ
イルの内容にしたがって作成された展開ファイル11
で、そのレコード構造はA、B、C、D、E、Fの項目
を有し、その先頭項目Aは分類キーとなっている。
Thereafter, when all the records in the accounting file are designated and no next record is detected in step E15, the flow advances to step E16 to check whether there is another file in the table A connection table. Is checked, in this case, since no file is detected, the process proceeds to step E17, where the development record is edited. In other words, each of the development records having the same classification key is extracted, and this is combined into one record.
In addition, the records are sorted and the developed records are sorted in ascending order according to the classification keys. For example, as shown in FIG.
Since the first record and the second record have the same classification key, they are grouped into one expanded record, and the value of the item position "E" is "10,000". ". FIG. 23 shows the expanded file 1 created as described above.
1 is shown. That is, the development 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.

【0050】このようにして展開ファイル作成部9は展
開ファイル11を作成したのち、展開集計処理部12を
起動させる。すると、展開集計処理部12は図24のフ
ローチャートにしたがって集計ファイル13を作成す
る。なお、図25は展開集計処理部12の動作内容を具
体的に説明する為の図である。展開ファイル作成部9は
展開ファイル11の内容と構成ファイル7の内容とに基
づいて集計ファイル13を部品展開手法にしたがって生
成する。先ず、展開集計処理部12は展開ファイル11
の先頭から1レコード分のデータを読み込む(ステップ
F1)。そして、次のステップF2ではデータ終了か、
つまり、展開ファイル11の先頭から全てのレコードを
読み出したか否かをチェックする。最初は展開ファイル
11の先頭から1レコード分のデータを読み込んだ場合
であるから、次のステップF3に進み、構成ファイル7
の内容をサーチし、その分類キーと一致する子コードを
構成ファイル7から検索する。いま、図25に示す様に
展開ファイル11の先頭レコード内の分類キーは「11
01」であり、構成ファイル7には図16に示す様にこ
れと一致する子コードが存在する為、ステップF3でそ
のことが検出されてステップF4に進み、集計ファイル
13のレコード(集計レコード)を生成する。即ち、図
25の具体例において、先ず、展開集計処理部12はこ
の子コード「1101」に対応する親コードを構成ファ
イル7から読み出し、この親コード「・C03」をB表
の行No「03」とそれ以外「・C」とに分解し、この行
No「03」を集計ファイル13の1レコード目の先頭項
目に配置し、またそれ以外の「・C」をそれに続けて配
置する。そしてこの子コードに対応する名称を構成ファ
イル7から読み出し、集計レコードの次の項目に配置す
る。これに続けて展開ファイル11のデータ項目を集計
レコードの次項目以降に順次配置する。
After the development file creation unit 9 creates the development file 11 in this manner, the development file processing unit 12 is activated. Then, the development tabulation processing unit 12 creates the tabulation file 13 according to the flowchart of FIG. FIG. 25 is a diagram for specifically explaining the operation contents of the development and aggregation processing unit 12. The development file creation unit 9 generates the total file 13 based on the contents of the development file 11 and the contents of the configuration file 7 in accordance with the component development method. First, the development tally processing unit 12 generates the development file 11
The data for one record is read from the beginning of the record (step F1). Then, in the next step F2, is it the end of the data?
That is, it is checked whether or not all records have been read from the beginning of the development file 11. Since the first case is a case where data for one record is read from the beginning of the development file 11, the process proceeds to the next step F3, where the configuration file 7 is read.
Is searched, and a child code matching the classification key is searched from the configuration file 7. Now, as shown in FIG. 25, the classification key in the first record of the development file 11 is "11
Since there is a child code corresponding to this in the configuration file 7 as shown in FIG. 16, this is detected in step F3 and the process proceeds to step F4, where the record (total record) of the total file 13 is displayed. Generate That is, in the specific example of FIG. 25, first, the expansion and aggregation processing unit 12 reads the parent code corresponding to the child code “1101” from the configuration file 7, and replaces the parent code “· C03” with the row No. “03” of the B table. ”And other“ • C ”.
No. “03” is placed at the head of the first record of the tally file 13, and other “• C” are placed following it. Then, the name corresponding to the child code is read from the configuration file 7, and is arranged in the next item of the tally record. Following this, the data items of the development file 11 are sequentially arranged after the next item of the tally record.

【0051】これによって集計ファイル13の1レコー
ド分のデータが生成されると、この生成レコードを集計
ファイル13に書き出すが、その際、集計ファイル13
内に既に同一分類キーを持つレコードが存在していれ
ば、それを1レコードに集計して集計ファイル13内に
書き込み、また同一分類キーのレコードが存在していな
ければ、今回生成したレコードを新たに集計ファイル1
3に追加する(ステップF5)。
When data for one record of the tallying file 13 is thus generated, the generated record is written to the tallying file 13.
If a record having the same classification key already exists in the file, the record is added up to one record and written into the tally file 13. If no record with the same classification key exists, the record generated this time is newly added. Total file 1
3 (step F5).

【0052】次に、構成ファイル7内の該当レコード位
置に終了フラグがセットされているか否かをチェックす
る(ステップF6)。ここで、構成ファイル7内の終了
フラグは親コードの集計レベルが「A」のときに“1”
となるもので、終了フラグが“1”のときにはそのまま
ステップF3に戻るが、終了フラグが“1”でなければ
展開ファイル11への書き出しを行う(ステップF
7)。この場合、図25の(B)に示す様なレコードを
生成して展開ファイル11へ戻す。即ち、構成ファイル
7内の該当する親コード「・C03」を先頭項目に配置
し、これに続いて展開ファイル11から読み出したデー
タを順次配置して成るレコードを展開ファイル11へ書
き出す。なお、図23で示した展開ファイル11におい
て、図中破線の下に配置したレコードはこの戻されたレ
コードを示している。その後、ステップF3に戻り、以
下、構成ファイル7の内容を全てサーチし、該当レコー
ドが検出されなくなるまで上述の動作を繰り返す。この
結果、ステップF3で該当レコード無しが検出されて不
一致終了となると、ステップF1に戻り、展開ファイル
11から次のレコードを読み出す。このような動作は展
開ファイル11の全レコードに対して行われる。する
と、ステップF1でデータ終了が検出されてステップF
8に進み、集計ファイル13を構成する各レコードをそ
の先頭項目の内容にしたがって昇順にソートする。
Next, it is checked whether or not the end flag is set at the corresponding record position in the configuration file 7 (step F6). Here, the end flag in the configuration file 7 is set to “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 when the end flag is not "1", the writing to the development file 11 is performed (step F3).
7). In this case, a record as shown in FIG. 25B is generated and returned to the development file 11. That is, the corresponding parent code “· C03” in the configuration file 7 is placed at the head item, and subsequently, a record in which the data read from the development file 11 is sequentially arranged is written to the development file 11. In the expansion file 11 shown in FIG. 23, the records arranged below the broken line in the figure indicate the returned records. Thereafter, the process returns to step F3, and thereafter, the entire contents of the configuration file 7 are searched, and the above-described operation is repeated until the corresponding record is not detected. As a result, when the absence of the corresponding record is detected in step F3 and the matching ends, the process returns to step F1 to read the next record from the development file 11. Such an operation is performed for all records in the development file 11. Then, the end of data is detected in step F1, and
Proceeding to 8, the records constituting the tally file 13 are sorted in ascending order according to the contents of the first item.

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

【0054】以上の様に、本実施例においてはホストコ
ンピュータ200や入力端末装置300から業務担当者
が所望する帳票を得る為にその出力イメージにしたがっ
て集計定義表であるA表、B表のパラメータを任意に入
力指定すると、帳票印刷処理装置100はその指定内容
にしたがって所定のファイルをホストコンピュータ20
0やファイルサーバ400等から読み出し、このファイ
ルから所定のレコード項目の内容を抽出して分類集計す
ると共に、その集計結果を階層構造で印刷するので、専
門的知識を有しない業務担当者であってもホストコンピ
ュータ200や入力端末装置300から単にA表、B表
のパラメータを入力するだけで所望する帳票を容易に得
ることができる。つまり、集計対象ファイルを外部装置
から読み出すと共に所定のレコード項目の内容を抽出し
て帳票データを作成し、これを印刷出力する機能は、帳
票印刷処理装置100が独自に行うので、ホストコンピ
ュータ200や入力端末装置300からはA表、B表パ
ラメータを単に入力するだけでよい。この結果、ホスト
コンピュータ200や入力端末装置300に帳票データ
を作成して印刷出力させる機能を持たせる必要はなく、
それだけ汎用性を向上させることが可能となる他、コス
ト的にも極めて有利なものとなる。
As described above, in the present embodiment, in order to obtain a desired form from the host computer 200 or the input terminal device 300, the parameters of the tables A and B, which are totaling definition tables, according to the output image. Is arbitrarily input and specified, the form print processing apparatus 100 stores a predetermined file in the host computer 20 according to the specified content.
0 and read out from the file server 400, etc., extract the contents of predetermined record items from this file, classify and totalize them, and print the totaled result in a hierarchical structure. Also, a desired form can be easily obtained by simply inputting the parameters of Table A and Table B from the host computer 200 or the input terminal device 300. That is, since the form print processing apparatus 100 performs the function of reading out the file to be totaled from the external device, extracting the contents of the predetermined record items and creating the form data, and printing out the form data, the host computer 200 and the host computer 200 It is only necessary to simply input the table A and table B parameters from the input terminal device 300. As a result, there is no need to provide the host computer 200 or the input terminal device 300 with a function of creating and printing out form data.
The versatility can be improved accordingly, and the cost is extremely advantageous.

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

【0056】[0056]

【発明の効果】請求項1記載の発明によれば、外部装置
が印刷処理装置に対する印刷要求を行う場合に、データ
の読込、加工、印刷書式変換を行った後の印刷データを
印刷装置に送信しなくとも、読込データ、加工方法、印
刷書式を指定する情報だけを印刷処理装置に送信するだ
けで印刷装置自体が自動的にデータの読込、加工、書式
印刷を行って所望する帳票を印刷することができる。
According to the first aspect of the invention, when an external device issues a print request to a print processing device, the print data after data reading, processing, and print format conversion are transmitted to the printing device. If you do not, just send the information that specifies the read data, processing method, and print format to the print processing device, and the printing device itself will automatically read, process, and print the data and print the desired form. be able to.

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

【図1】実施例に係るデータ処理システムを示したシス
テム構成図。
FIG. 1 is a system configuration diagram showing a data processing system according to an embodiment.

【図2】データ処理システムを構成する帳票印刷処理装
置のブロック構成図。
FIG. 2 is a block diagram of a form print processing device that forms the data processing system.

【図3】帳票の印刷出力例を示した図。FIG. 3 is a diagram showing a print output example of a form.

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

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

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

【図7】ホストコンピュー200や入力端末装置300
が帳票印刷処理装置100に対して端末モードとして機
能する際の動作を示したフローチャート。
FIG. 7 shows a host computer 200 and an input terminal device 300
5 is a flowchart showing an operation when the function of the form print processing apparatus 100 is in the terminal mode.

【図8】A表の基本フォーマットを示した図。FIG. 8 is a diagram showing a basic format of a table A.

【図9】B表の基本フォーマットを示した図。FIG. 9 is a diagram showing a basic format of a table B.

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

【図11】図10で示したA表結合テーブル作成処理を
詳細に示したフローチャート。
FIG. 11 is a flowchart showing details of the A-table connection table creation process shown in FIG. 10;

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

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

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

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

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

【図17】図10で示したB表に関するテーブル作成処
理の一部を示したフローチャート。
FIG. 17 is a flowchart showing a part of a table creation process for the table B shown in FIG. 10;

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

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

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

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

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

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

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

【図25】展開集計処理の動作内容を具体的に示した図
で、(A)は展開ファイル、構成ファイルから集計レコ
ードが生成される様子を示した図、(B)は新たに生成
される展開レコードを示した図。
FIGS. 25A and 25B are diagrams specifically showing the operation contents of the development and aggregation processing, where FIG. 25A shows a state in which a total record is generated from a development file and a 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 プリンタ 100 帳票印刷処理装置 200 ホストコンピュータ 300 入力端末装置 400 ファイルサーバ REFERENCE SIGNS LIST 1 reception unit 2 parameter setting unit 3 transmission unit 4 parameter file 5 table structure analysis unit 6 parameter analysis table 7 configuration file 8 printing format memory 9 expansion file creation unit 10 data file 11 expansion file 12 expansion aggregation processing unit 13 totalization file 14 printing Processing unit 15 Printer 100 Form print processing device 200 Host computer 300 Input terminal device 400 File server

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 外部装置からの印刷要求に応じて帳票の
印刷を行う印刷装置であって、 帳票を構成するレコードおよび項目の指定と、帳票作成
の元となるデータの指定と、データの加工方法の指定と
を含むパラメータが外部装置から送信されてきた際にこ
のパラメータを受信する受信手段と、前記パラメータで指定された帳票作成の元となる データ
を外部装置から読み込む読込手段と、前記外部装置から読み込まれたデータを前記パラメータ
で指定されたデータの加工方法に基づいて 加工する加工
手段と、前記加工されたデータを前記パラメータで指定されたレ
コードおよび項目からなる帳票として 印刷する印刷手段
と、 を具備したことを特徴とする印刷処理装置。
1. A form processing method according to a print request from an external device.
A printing apparatus that performs printing , when parameters including the specification of records and items constituting a form, the specification of data to be a source of a form, and the specification of a data processing method are transmitted from an external device. Receiving means for receiving this parameter, reading means for reading data from which the form specified by the parameter is based on an external device, and reading the data read from the external device into the parameter.
Processing means for performing processing based on the data processing method specified by the parameter; and processing the processed data by the data specified by the parameter.
And a printing means for printing as a form including codes and items .
【請求項2】 更に、前記受信手段によって読み込まれ
たパラメータを保持する保持手段と、 印刷を指示する印刷指示手段とを有し、前記印刷指示手
段による印刷の指示があった際に、前記保持手段に保持
されているパラメータに基づいて前記読込手段によるデ
ータの読込と、前記加工手段によるデータの加工と、前
記印刷手段による帳票の印刷とを行うようにしたことを
特徴とする請求項1記載の印刷処理装置。
2. The method according to claim 1, further comprising the step of :
Holding means for holding the set parameters, and print instructing means for instructing printing, and when the print instructing means instructs printing, the reading means based on the parameters held in the holding means. 2. A print processing apparatus according to claim 1, wherein data reading by said processing means, data processing by said processing means, and printing of a form by said printing means are performed.
【請求項3】 前記帳票を構成する各レコードはデータ3. Each record constituting the form is data
の集計レベルに対応し、前記データの加工は読み込まれProcessing of the data is read in
たデータを各集計レベル毎に集計し、その集計結果を対Data is aggregated for each aggregation level, and the aggregation results are compared.
応する集計レベルのレコードのデータとして印刷するよPrint as the data of the record of the corresponding aggregation level
うにしたことを特徴とする請求項1記載の印刷処理装2. The print processing apparatus according to claim 1, wherein
置。Place.
【請求項4】 前記受信手段は、入力端末装置によって
入力されたパラメータを受信し、前記読込手段は、デー
タ記憶装置に記憶されているデータを読み込むようにし
たことを特徴とする請求項1記載の印刷処理装置。
4. The apparatus according to claim 1, wherein said receiving means receives a parameter input by an input terminal device, and said reading means reads data stored in a data storage device. Print processing device.
JP06134493A 1993-02-26 1993-02-26 Print processing device Expired - Fee Related JP3309164B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06134493A JP3309164B2 (en) 1993-02-26 1993-02-26 Print processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06134493A JP3309164B2 (en) 1993-02-26 1993-02-26 Print processing device

Publications (2)

Publication Number Publication Date
JPH06250805A JPH06250805A (en) 1994-09-09
JP3309164B2 true JP3309164B2 (en) 2002-07-29

Family

ID=13168427

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06134493A Expired - Fee Related JP3309164B2 (en) 1993-02-26 1993-02-26 Print processing device

Country Status (1)

Country Link
JP (1) JP3309164B2 (en)

Also Published As

Publication number Publication date
JPH06250805A (en) 1994-09-09

Similar Documents

Publication Publication Date Title
JP2003114813A (en) Analysis server, program analysis network system and program analysis method
JP2002063323A (en) Operation process designing support system, activity support system, and operation process total support system
US5805881A (en) Method and apparatus for generating arbitrary output records in response to output designation of records
JP3309164B2 (en) Print processing device
JP3551445B2 (en) Form processing device
JP3109324B2 (en) Data aggregation device
WO2022029874A1 (en) Data processing device, data processing method, and data processing program
CN115238662A (en) Bidding file rapid editing method and system
JP7160432B2 (en) Image processing device, image processing method, program
JP3482651B2 (en) Data processing device
JP3548866B2 (en) Data processing device
JP6741326B1 (en) System and method for displaying journals
JP3873404B2 (en) Workflow system
WO2023047570A1 (en) Information processing device, information processing method, and information processing program
JP3109331B2 (en) Form output device
US11659104B2 (en) Generation of an electronic document capable of receiving user input
JP3064706B2 (en) Data processing device
JP3489138B2 (en) Form output device
JP6965843B2 (en) Catalog creation support device, support screen display method and catalog creation support method
JP3554768B2 (en) Data aggregation device
JPH07141445A (en) Data processor
KR20050049760A (en) Report formating installation of web reporting tool and method thereof
JP2021043851A (en) Information processing device, information processing system, information processing method and information processing program
JP2021051723A (en) Information processor, information processing method, and program
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: 20080524

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090524

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090524

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100524

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110524

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110524

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120524

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees