JP3489138B2 - Form output device - Google Patents

Form output device

Info

Publication number
JP3489138B2
JP3489138B2 JP18217493A JP18217493A JP3489138B2 JP 3489138 B2 JP3489138 B2 JP 3489138B2 JP 18217493 A JP18217493 A JP 18217493A JP 18217493 A JP18217493 A JP 18217493A JP 3489138 B2 JP3489138 B2 JP 3489138B2
Authority
JP
Japan
Prior art keywords
record
item
file
name
tally
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
JP18217493A
Other languages
Japanese (ja)
Other versions
JPH0785175A (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 JP18217493A priority Critical patent/JP3489138B2/en
Publication of JPH0785175A publication Critical patent/JPH0785175A/en
Application granted granted Critical
Publication of JP3489138B2 publication Critical patent/JP3489138B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】この発明は、オフィスコンピュー
タやパーソナルコンピュータ等において、会計ファイ
ル、人事ファイル等から読み出したレコードデータに基
づいて帳票を出力する帳票出力装置に関する。 【0002】 【従来の技術】従来、オフィスコンピュータや汎用コン
ピュータ等の事務処理装置においては、会計ファイル、
人事ファイル、売上伝票ファイル、在庫ファイル等、各
種多様のファイルを記憶管理しているが、各ファイルを
構成するレコード構造は、ファイル毎に異なっており、
同一レコード形態(レコードを構成する各項目が一致す
るレコード)毎にまとめて別ファイルとして記憶管理し
ている。ところで、所定のファイルからレコードを抽出
し、この抽出レコードの中から任意の項目データを読み
出してレコード集計を行い、この集計結果を帳票フォー
ムと共に出力させる帳票作成処理は、予めシステムエン
ジニア等の専門家が個々の帳票に1:1に対応させて設
計しておいた帳票処理プログラムにしたがって行われ
る。 【0003】 【発明が解決しようとする課題】このように従来におい
ては、個々の帳票に1:1に対応させた個別の帳票処理
プログラムを予め設定しておく必要があるが、実際の業
務は時の経過につれて変化してゆく為、帳票処理プログ
ラムが現実に適合しなくなり、そのままでは業務内容に
マッチした帳票を得ることができなくなることがある。
このような場合、従来においては、予め作成しておいた
帳票処理プログラムの一部を変更して対処するようにし
ているが、多少の変更を加える場合でも、プログラミン
グ等の専門的で高度の知識を必要とする為、一般ユーザ
の業務担当者にあってはその変更は極めて困難であり、
システムエンジニアにプログラムの変更を依頼しなけれ
ばならないのが現状であった。この発明の課題は、帳票
処理プログラムを変更することなしに、一般ユーザであ
る業務担当者が所望する帳票を得る為に、出力対象項目
等と共に網かけ等の属性を単に指定しておくだけで、そ
の指定内容に基づいて意図したイメージ通りの帳票を出
力できるようにすることである。 【0004】 【課題を解決するための手段】この発明は、集計レコー
ドの集計レコード名が縦軸に複数配置され、集計対象項
目の集計項目名が横軸に複数配置され、上記各集計レコ
ード名の各集計項目名毎の集計データを出力した集計帳
票を作成して出力する帳票出力装置であって、上記集計
帳票の縦方向の出力書式を定義するための帳票枠縦イメ
ージによる第1フォーマットを表示し、その第1フォー
マットをその縦方向の表枠位置や表枠サイズを適宜変更
することにより任意に定義すると共に、その第1フォー
マット上で縦軸を構成する集計レコードの集計レコード
名の行配置位置とその行の行修飾情報、読み込み対象と
なるファイル名、上記集計レコード毎にその対象ファイ
ル内の各レコードの内で集計対象となるレコードの抽出
条件、を定義する第1定義手段と、上記集計帳票の横方
向の出力書式を定義するための帳票枠横イメージによる
第2フォーマットを表示し、その第2フォーマットをそ
の横方向の表枠位置や表枠サイズを適宜変更することに
より任意に定義すると共に、その第2フォーマット上で
横軸を構成する集計対象項目の集計項目名の列配置位置
とその列の列修飾情報、集計項目名毎に上記集計対象と
して抽出されたレコードの内で集計対象となるデータ項
目名を定義する第2定義手段と、上記第1定義手段で定
義されたファイル名と集計レコード毎の抽出条件とに基
づいて、その対象となるファイルから上記集計レコード
毎に集計対象となるレコードを抽出する抽出手段と、上
記第2定義手段で定義された集計項目毎のデータ項目名
に基づいて、上記抽出手段で各集計レコード毎に抽出さ
れたレコードの内で上記データ項目名のデータを読出
し、その読み出されたデータを上記各集計項目毎に集計
することで、上記集計項目毎にデータが集計された集計
レコードを上記各集計レコード名に対応する集計レコー
ド毎に作成する集計レコード作成手段と、上記第1定義
手段で定義された各集計レコード名をその定義内容に従
って集計帳票の縦軸方向に配置出力し、上記第2定義手
段で定義された各集計項目名をその定義内容に従って集
計帳票の横軸方向に配置出力すると共に、上記集計レコ
ード作成手段で作成された各集計レコードに基づいて、
その各集計レコード内の各集計項目の集計データを上記
各集計レコード名と各集計項目名とに対応する出力位置
に配置出力し、且つ上記第1定義手段で定義された各行
の行修飾情報に従って各行を修飾すると共に上記第2定
義手段で定義された各列の列修飾情報に従って各列を修
飾した集計帳票を作成する帳票作成手段と、を具備した
ことを特徴とする。 【0005】 【0006】 【実施例】以下、図1〜図25を参照して一実施例を説
明する。図1は本実施例に係るデータ処理装置のブロッ
ク構成図である。このデータ処理装置はオフィスコンピ
ュータを構成するもので、専門的知識を有しない業務担
当者等が集計定義表を用いて集計レベル毎に集計対象等
を任意に指定しておくだけで、この集計定義表の定義内
容に該当するレコードを所定ファイルから読み出して集
計レベルに応じた階層構造でレコードを分類集計し、こ
の集計結果を帳票データとして印刷出力するものであ
る。入力部1は各種のデータやコマンド等を入力するキ
ー入力装置で、入力部1から入力されたデータはパラメ
ータ設定部2に取り込まれて処理されると共に表示部3
に表示出力される。なお、入力部1は所定のキー操作に
応答してパラメータ設定部2に対して起動命令を与え
る。 【0007】パラメータ設定部2は入力部1からの起動
命令に応答して動作し、業務担当者等が所望する任意の
レコード集計を指示する為に集計レコードのレコード名
や集計対象あるいは集計条件等を定義する定義表(本実
施例にあっては2種類のA表、B表)を入力部1から入
力されたデータにしたがって生成し、表示部3から表示
出力させると共に、パラメータファイル4に設定する。
なお、A表、B表については後で詳細に説明するので、
ここでは簡単に説明しておくものとする。例えば、所望
する帳票として図2に示す様な「経費実績表」を印刷出
力させる為に、この帳票の出力イメージにしたがった集
計定義表としてA表およびB表を生成しておく。ここ
で、図2に示す帳票は集計レコードのレコード名を行項
目に配置し、また集計レコードのデータ項目名を列項目
に配置したものであり、この帳票を得る為に定義された
A表は図3、B表は図4に示す様に構成されており、A
表は集計レベル毎に集計レコードのレコード名および集
計レコードとして抽出される項目内容等を定義する定義
表である。また、B表は集計レコードのデータ項目とし
て出力される項目名およびその項目名に対応してデータ
項目として抽出される出力対象項目あるいは帳票印刷時
の書式や集計条件等を定義する定義表である。また、A
表、B表には項目単位毎に帳票印刷時の属性として網か
け、罫線の線種も任意に定義できるようになっている。 【0008】パラメータファイル4にはA表、B表に対
応してその基本フォーマット(罫線データ等)が予めメ
ーカサイドによって固定的に格納されている他に、入力
部1から任意に入力された各種帳票のA表パラメータデ
ータ、B表パラメータデータおよび、入力部1から任意
に入力された各種の帳票名とA表パラメータデータ、B
表パラメータデータとを対応付ける対応テーブルが記憶
されている。 【0009】表構造解析部5は帳票印刷時に入力部1か
ら入力された起動命令にしたがって動作し、出力対象と
して任意に指定された帳票名に対応するA表パラメータ
データ、B表パラメータデータを解析し、その解析結果
にしたがって各種のパラメータ解析テーブル6を作成す
る。この場合、本実施例においてはパラメータ解析テー
ブル6として図5(A)に示す様なA表結合テーブル、
図5(B)に示す様なB表結合テーブル、図5(C)に
示す様なB表条件テーブル、図5(D)に示す様なB表
集計項目テーブルの他、図示しないがB表計算式テーブ
ルを作成する。また、表構造解析部5はA表に定義され
ている集計レベルに応じた階層構造等を解析し、その解
析結果に基づいて構成ファイル7を作成する。なお、構
成ファイル7は後で詳述するが、A表内の集計対象項目
とそれに対応する集計レコードとの対応関係や集計レベ
ルの階層構造における上下関係(親子関係)等を表わす
ファイルである。更に、表構造解析部5はA表、B表に
定義されている網かけ等の属性やB表のヘッダー位置に
定義されている各欄の項目名を読み出して印刷書式メモ
リ8に設定する他、B表に定義されている印刷書式を読
み出して印刷書式メモリ8に設定する。その後、表構造
解析部5は展開ファイル作成部9に起動命令を与える。 【0010】展開ファイル作成部9はパラメータ解析テ
ーブル6内の各種テーブル内容を参照し、データファイ
ル10を構成する各種のソースファイルの中から集計対
象ファイルを指定したり、この集計対象ファイルから抽
出したレコードに基づいて1レコードずつ展開レコード
を順次生成し、展開ファイル11に書き出す。これによ
って展開ファイル11を作成すると、展開ファイル作成
部9は展開集計処理部12に起動命令を与える。 【0011】展開集計処理部12は構成ファイル7を参
照しながら展開ファイル11の内容に基づいて1レコー
ドずつ集計レコードを順次作成し、集計ファイル13に
書き出す。これによって集計ファイル13を作成する
と、展開集計処理部12は印刷処理部14に起動命令を
与える。印刷処理部14は集計ファイル13の内容を印
刷書式メモリ8に設定されている印刷書式にしたがって
1レコードずつ帳票フォーマットと共にプリンタ15か
ら印字出力させることにより、帳票作成を行う。 【0012】次に、本実施例の動作を説明する。先ず、
所望する帳票を得る為に入力部1からA表、B表の作成
を指示すると、パラメータ設定部2はこれに応答して動
作する。先ず、A表作成時にパラメータ設定部2はパラ
メータファイル4から読み出したA表の基本フォーマッ
トにしたがって表枠等を表示出力させる。いま、A表の
基本フォーマットが表示出力されている状態において、
業務担当者は入力部1からA表のパラメータデータを入
力する。ここで、A表の行方向の見出し部には、各集計
レベルに対応して任意の名称が集計レコードのレコード
名として入力されている。例えば、図3に示す如く行No
「01」には集計レベルAに対応してレコード名「計」
が入力され、また、行No「02」には集計レベルBに対
応してレコード名「固定費」、行No「03」には集計レ
ベルCに対応してレコード名「人件費」……が入力され
ている。なお、上述の例では集計レベル毎に任意のレコ
ード名を入力部1から直接入力するようにしたが、使用
するレコード名が予め定まっている場合には、これら使
用予定のレコード名をテーブルに記憶しておき、レコー
ド名入力時にこのテーブル内容をウィンドゥ画面に一覧
表示させ、その中から任意のレコード名を選択すること
によってレコード名を入力するようにしてもよい。ま
た、レコード名は名称に限らず、コードであってもよ
い。 【0013】また、A表見出し部には、任意のファイル
名および項目名が入力されている。例えば、図3に示す
A表においては2種類のファイル名「計画FILE」、
「会計FILE」が入力されており、これによって集計
レコードをどのファイルから抽出すべきかの対象ファイ
ル名が定義されている。また、ファイル名「計画FIL
E」に対応してその項目名「予算項目」が入力され、ま
た、ファイル名「会計FILE」に対応してその項目名
「勘定科目」が入力されており、これによって集計レコ
ードとして抽出すべき対象項目名が定義されている。更
に、A表の行方向および列方向の見出し部によって構成
されるマトリックス状の各入力エリアには、集計対象項
目の具体的な項目内容(項目コード)が入力されてい
る。例えば、行No「03」、即ち、集計レベルCに対応
するレコード名「人件費」については、「計画FIL
E」の「予算項目」に対応して項目コード「101」、
「102」が入力され、また、「会計FILE」の「勘
定科目」に対応して項目コード「2111」、「211
2」、「2134」が入力されており、これによって計
画ファイルを構成する予算項目のうち、項目コード「1
01」、「102」に該当するレコードを抽出すべきこ
とが定義され、また、会計ファイルを構成する勘定項目
のうち、項目コード「2111」、「2112」、「2
134」に該当するレコードを抽出すべきことが定義さ
れている。 【0014】また、A表には各行Noに対応して管理単位
エリアが設けられており、任意の行を指定してそれに対
応する位置に丸印を入力することにより当該行は項目コ
ードが入力されるエリアであることを示す。これはA表
の定義内容を行単位毎に解析する際に、当該丸印が付さ
れている行が解析対象となり、その他の行を対象から外
すことによって処理スピードの向上を図る為である。同
時に、業務担当者が抽出集計すべきデータがソースファ
イル(会計FILEなど)にある事を確認する意味もあ
る。また、本実施例においては帳票の一部を強調する為
に、A表のレコード名見出し部を用いて行項目毎に網か
けを施すか否か、レベル別にレコードを括る罫線を細線
にするか太線にするかを任意に定義できるようになって
いる。例えば、行No「02」および行No「05」のレコ
ード名見出し項目欄にはそれぞれ網かけが施されてお
り、これによって帳票印刷時にその2行目および5行目
全体に網かけを施して修飾すべきことを定義している。
また、行No「02」および行No「05」のレコード名見
出し項目欄において、その集計レベルに合せた縦罫線に
は太線が引かれており、これによって集計レベルに応じ
てレコードデータを括る罫線フォーマットの線種として
太線が指定され、この太線で対応するレコードを括るべ
きことを定義している。このようにしてA表を作成する
と、パラメータ設定部2はそのパラメータデータをパラ
メータファイル4に設定する。 【0015】次に、パラメータ設定部2はパラメータフ
ァイル4からB表の基本フォーマットを読み出して表示
出力させる。ここで、図4に示す如く、この行方向の見
出し部にはその行項目のラベルとして「書式」、「対象
FILE」、「集計項目」、「計算式」、「条件項
目」、「条件値」が予め固定的に設定されており、ま
た、B表の列方向における見出し部の各列項目はその項
目位置を示す名称として「A」、「B」、「C」、……
「G」に対応付けられている。 【0016】いま、B表の基本フォーマットが表示出力
されている状態において、業務担当者は入力部1からB
表のパラメータデータを入力する。ここで、B表の列方
向における見出し部には集計レコードのデータ項目とし
て印刷出力される項目名が入力されている。例えば、項
目位置「A」には「経費項目」、項目位置「B」には
「期初計画」、項目位置「C」には「修正計画」、項目
位置「D」、「E」にはその共有項目として「実積」お
よびその下位項目として項目位置「D」には「部門経
費」、項目位置「E」には「付替経費」、更に項目位置
「F」には「実積計」、項目位置「G」には「計画差」
が入力されている。また、本実施例においては帳票の一
部を強調する為に、B表の項目見出し部を用いて列項目
毎に網かけを施すか否かを任意に定義できるようになっ
ている。例えば、列項目位置「C」および「G」の項目
欄に網かけが施されており、これによって帳票印刷時に
その3列目および7列目全体に網かけを施して修飾すべ
きことを定義している。なお、A表の行項目に施される
網かけと、B表の列項目に施される網かけとはその斜線
方向が逆の関係にあり、これによって両者を識別するよ
うにしている。 【0017】また、B表の行項目において、「書式」に
は項目データの印刷書式として列項目毎に欄幅、文字
種、文字サイズ等が入力されている。また、次の「対象
FILE」には列項目位置「B」、「C」に対応して
「計画FILE」が入力され、列項目位置「D」、
「E」に対応して「会計FILE」が入力されている。
更に、次の「集計項目」は集計対象として抽出されたレ
コードの中からどの項目データを集計すべきかを定義す
るもので、列項目位置「B」、「C」に対応して「予算
額+」が入力され、また、列項目位置「D」、「E」に
対応して「借方金額+」および「貸方金額−」が入力さ
れている。ここで、プラス/マイナスの符号はレコード
集計時の加算集計あるいは減算集計を定義するものであ
る。 【0018】次に、B表の列項目位置B、C、D……に
対応する「計算式」の各欄には、出力される集計レコー
ドを加工する為の計算式が入力されている。ここで、あ
る項目データをそのまま出力すべきことを定義する場合
には、その項目位置に対応する欄内に計算式を記述する
必要はないが、ある項目データを加工すべきことを定義
する場合には、その項目位置に対応する欄内にその加工
内容を示す計算式を記述しておく。計算式は任意の欄位
置を変数とするもので、この欄位置と、定数と、簡単な
演算子を用いて記述するようにしている。欄位置はB表
の列項目位置によって表わされるが、他の計算式の結果
を参照すべき場合には、その計算式が入力されている行
Noが列項目位置に付加される。なお、計算式の記述とし
て図4に示す計算式「D+E」は列項目位置D、Eに対
応する集計レコード内の項目データを加算すべきことを
定義する。また、計算式「B/1000」は列項目位置
Bに対応する項目データを“1000”で割ってその値
を“千”の単位で出力すべきことを定義する。更に、計
算式「C−F」は列項目位置Cに対応する項目データか
ら欄位置F1に入力されている計算式「D+E」の結果
を減算すべきことを定義する。 【0019】一方、次の「条件項目」はA表の定義内容
によって抽出されたレコードを更に絞り込む為の抽出条
件項目を定義するもので、その「条件項目」の項目名と
して列項目位置「B」、「C」にはそれぞれ「計画種
別」が入力され、またその「条件値」として列項目位置
「B」には「1」、列項目位置「C」には「2」、
「3」、「4」が入力され、同様に、「条件項目」の項
目名として列項目位置「D」、「E」にはそれぞれ「相
手勘定」が入力され、また「条件値」として列項目位置
「D」には「≠0011(0011を除く他の全てのコ
ードを抽出すべきことを示している)」、列項目位置
「E」には「0011」が入力されている。なお、1つ
の条件項目に複数の条件値が定義されている場合には、
その項目のレコード抽出条件は論理和(or条件)を意
味している。 【0020】このようにして、A表、B表を作成した
後、入力部1から任意の帳票名を指定してその印刷指令
を与えると、表構造解析部5は図6に示すフローチャー
トにしたがって動作する。なお、図6は表構造解析部5
の全体動作の概要を示したゼネラルフローで、先ず、表
構造解析部5はパラメータファイル4から指定帳票のA
表パラメータデータを読み出してA表結合テーブルを作
成すると共に(ステップA1)、構成ファイルを作成す
る(ステップA2)。次に、表構造解析部5はパラメー
タファイル4から指定帳票のB表パラメータデータを読
み出してB表の結合テーブルを作成すると共に(ステッ
プA3)、条件テーブル(ステップA4)、集計項目テ
ーブル(ステップA5)、計算式テーブル(ステップA
6)をそれぞれ作成する。その後、B表のパラメータデ
ータから書式に関するデータを取り出して印刷書式メモ
リ8に書き込む(ステップA7)。 【0021】図7はA表結合テーブルの作成フローを示
したもので、表構造解析部5はA表の列方向の見出し部
を解析して図5(A)に示す様なA表結合テーブルを作
成する。ここで、A表結合テーブルはA表に定義されて
いるファイル名と項目名とを対応付ける対応テーブル
で、「ファイル名」、「シークェンシャル番号SE
Q」、「項目名」、「ファイル記号」とから成る。ここ
で、シークェンシャル番号SEQは同一ファイル内に定
義されている項目名を「01」から連続番号で特定する
為のコードであり、また、「ファイル記号」はA表に定
義されているファイルを「1」から連続番号で特定する
為のコードである。先ず、表構造解析部5はパラメータ
ファイル4から指定帳票のA表パラメータデータを読み
出すと共に(ステップB1)、ファイル記号として初期
値「1」を指定しておく(ステップB2)。そして、A
表の列方向の見出し部をその先頭から順次解析してゆ
く。即ち、表構造解析部5は先ず、A表に定義されてい
る先頭ファイル名を指定したのち(ステップB3)、シ
ークェンシャル番号SEQの初期値「1」を指定し(ス
テップB4)、更にこの先頭ファイル名に対応する最初
の項目名を指定する(ステップB5)。これによって指
定されたファイル名、シークェンシャル番号SEQ、項
目名、ファイル記号をA表結合テーブルに書き込む(ス
テップB6)。この場合、図3に示すA表であれば、A
表結合テーブルの1行目には図5(A)に示す様なデー
タが書き込まれる。次に、同一ファイル名に対応して他
の項目名が定義されていれば(ステップB7)、シーク
ェンシャル番号SEQに「1」を加算してその値を更新
すると共に(ステップB8)、次の項目名を指定し(ス
テップB5)、A表結合テーブルへの書き込みを行う
(ステップB6)。以下、同一ファイル名に対応する全
ての項目名を指定し終るまで上述の動作を繰り返す。こ
の結果、全ての項目名を指定し終ると、次のステップB
9に進み、A表に他のファイル名が有れば、それを条件
にファイル記号「1」を加算し、その値の更新を行う
(ステップB10)。以下、ステップB3に戻り、A表
から当該他のファイル名を指定すると共に、そのファイ
ル名に対応する全ての項目名を順次指定しながらA表結
合テーブルへの書き込みを行う。 【0022】次に、図6で示した構成ファイル7の作成
処理(ステップA2)を図8〜図12を参照して詳述す
る。図8〜図10は構成ファイル7を作成する際の動作
を示したフローチャートであり、また、図11はこの場
合における表構造解析部5の動作内容を図式的に示した
図、また図12は作成された構成ファイル7を示した図
である。なお、図11の(A)は構成ファイル7のレコ
ード構造を示したもので、この構成レコードは「子フー
ド」、「親コード」、「終了フラグ」、「名称」とから
成り、「子フード」および「親コード」はA表内の集計
対象項目とそれに対応する集計レコードとの対応関係を
表わしたり、集計レベルの階層構造における上下関係
(親子関係)を表わすレコードである。また、「終了フ
ラグ」は親コードに集計レベルAが含まれている場合に
“1”となるフラグであり、終了フラグが“1”にセッ
トされている場合にはそれよりも上位レベルへのレコー
ド集計を行わないことを示している。「名称」はA表に
定義されている集計レコードのレコード名である。先
ず、表構造解析部5はA表パラメータの先頭行を指定し
(ステップC1)、指定行の集計レベルは最上位のレベ
ルAか否かをチェックする(ステップC2)。ここで、
集計レベルがAであれば、初期設定の為に、表構造解析
部5内の最終項目ワークメモリ(図11の(B)参照)
の内容を全てクリアしておくと共に(ステップC3)、
現在着目中のレベル(現在レベル)として集計レベルA
を指定しておく(ステップC4)。この状態において、
現在レベルと現在着目している行(現在行)の行Noとか
らレベル行データを生成する(ステップC5)。例え
ば、図3に示すA表を例に挙げると、A表の先頭行は集
計レベルAであり、かつその行Noは「01」であるの
で、この現在レベルと行Noとを組み合せたレベル行デー
タ「A01」を生成する。次に、このレベル行データ
「A01」と現在行の名称(集計レコードのレコード名
「計」)とを最終項目ワークメモリの現在レベルAに対
応する位置にセットする(ステップC6)。なお、最終
項目ワークメモリは図11の(B)に示す様に集計レベ
ルA、B、C、D……に対応してレベル行データおよび
名称を記憶する構成となっており、構成レコード作成時
のワークメモリである。 【0023】次に、現在行の管理単位エリアに丸印が付
されているか否かをチェックする(ステップC7)。い
ま、図3に示す様に先頭行には丸印が付されていないの
で、A表の次行に着目してその行にレコード名が設定さ
れているか否かをチェックする(ステップC8)。ここ
で、設定有りが検出されると、現在行を更新して次行の
指定を行う(ステップC9)。これによってA表の2行
目が指定されると次に、ステップC2に戻るが、この場
合、2行目の集計レベルはB、したがってステップC1
0に進み、指定行のレベルが現在レベルを越えたか否か
のエラーチェックを行い、越えていれば、最終項目メモ
リ内で指定行のレベル以下の内容を全てクリアしておく
(ステップC11)。 【0024】いま、指定行レベルBは現在レベルのA未
満であるので、ステップC12に進み、指定行レベルを
現在レベルとして現在レベルの更新を行う。次に、現在
レベルと現在行の行Noとからレベル行データを生成し
(ステップC13)、このレベル行データと現在行の名
称とを最終項目ワークメモリの現在レベルに対応する位
置にセットする(ステップC14)。この場合、レベル
行データ「B02」、名称「固定費」が現在レベルBに
対応する位置にセットされる(図11の(B)参照)。
次に、このレベル行データの先頭に記号(・)を結合し
(ステップC15)、この結合データを図11の(A)
に示す様に構成レコードの子コードとしてセットする
(ステップC16)。ここで、記号(・)はA表のうち
項目コードが入力されていない行を着目行とした場合に
セットされるもので、これによってソースファイルと対
応関係が無いことを示している。そして、図9のステッ
プC17に進み、最終項目ワークメモリの中から(現在
レベル+1)のレベル位置に格納されているレベル行デ
ータを読み出し、このレベル行データの先頭に記号
(・)を結合し、この結合コードを構成レコードの親コ
ードとしてセットする(ステップC18)。いま、現在
レベルはB、したがって最終項目ワークメモリのレベル
Aの位置に格納されているレベル行データ「A01」に
記号(・)を結合した結合コードが親コードとなる(図
11の(A)参照)。ここで、親コードのレベルがAで
あれば(ステップC19)、構成レコードの終了フラグ
に“1”をセットする(ステップC20)。次に、親コ
ードの名称を最終項目ワークメモリから読み出して構成
レコードの名称としてセットする(ステップC21)。
このようにして1レコード分のデータとして子コード
「・B02」、親コード「・A01」、終了フラグ
「1」、名称「計」が揃うと、この構成レコ−ドは構成
ファイル7に書き出される(ステップC22)。 【0025】次に図8のステップC7に戻るが、この場
合、現在行の管理単位エリアには丸印が付されていない
ので、次の行の3行目が指定される(ステップC9)。
その後、上述のステップC12〜C14が実行される結
果、最終項目ワ−クメモリのレベルCにはレベル行デ−
タ「C03」と現在行の名称「人件費」がセットされる
(図11の(B)参照)。そしてこのレベル行デ−タに
記号(・)を付けた結合コ−ドが構成レコードの子コ−
ドとしてセットされる(ステップC15、C16)。次
に、最終項目ワ−クメモリ内のレベルBの位置(1段上
位のレベル位置)から読み出したレベル行デ−タ「B0
2」に記号(・)を付けた結合コ−ドが構成レコ−ドの
親コ−ドとしてセットされる(図11のステップC1
7、C18)。この場合、親コ−ドに対応する最終項目
ワ−クメモリ内の名称「固定費」が構成レコ−ドの名称
となる(ステップC21)。このようにして1レコ−ド
分のデ−タとして子コ−ド「・C03」、親コ−ド「・
B02」、名称「固定費」が揃うと、この構成レコ−ド
は構成ファイル7に書き出される(ステップC22)。 【0026】続いて、図8のステップC7で3行目の管
理単位エリアに丸印が付いていることが検出されると、
図10のステップC23に進み、ファイル記号の初期値
として「1」をセットしておく。次に、現在行に入力さ
れている項目コ−ドをその先頭から指定し(ステップC
24)、ファイル記号と項目コ−ドとを結合してこの結
合コ−ドを構成レコ−ドの子コ−ドとしてセットする
(ステップC25、C26)。この場合、ファイル記号
「1」と項目コ−ド「101」とが結合される為、子コ
−ドは「1101」となる。次に、最終項目ワ−クメモ
リ内の現在レベルのレベル行デ−タの先頭に記号(・)
を結合し(ステップC27)、この結合デ−タを構成レ
コ−ドの親コ−ドとしてセットする(ステップC2
8)。そして、この親コ−ドの名称「人件費」を最終項
目ワ−クメモリから読み出して構成レコ−ドの名称とし
てセットする(ステップC29)。図11の(C)はこ
の場合の構成レコ−ドを示し、子コ−ドが「110
1」、親コ−ドが「・C03」、名称が「人件費」から
成る構成レコ−ドが、構成ファイル7に書き出される
(ステップC30)。次に、現在行に他の項目コ−ドが
入力されているかをチェックし(ステップC31)、有
れば、ステップC24に戻り、次の項目コ−ドを指定し
て以下、上述の動作を繰り返す。この結果、3行目の項
目コ−ド「102」が指定された場合の構成レコ−ド
は、子コ−ドが「1102」、親コ−ドが「・C0
3」、名称が「人件費」となる。 【0027】その後、ステップC31で項目コ−ド無し
が検出されるので、ステップC32に進み、他のファイ
ル名がA表内に定義されているかをチェックするが、い
ま、A表内には次のファイル名として「会計FILE」
が定義されているので、ステップC33に進み、ファイ
ル記号に「1」を加算してその値を更新したのち、ステ
ップC24に戻る。この場合、ファイル記号は「2」、
項目コ−ドとして最初の「2111」が指定される為、
構成レコ−ドの子コ−ドは「22111」となり、親コ
−ドは「・C03」、名称は「人件費」となる。いま、
ステップC32で他のファイル無しが指定されると、図
8のステップC8に戻り、以下、ステップC8で設定無
しが検出されるまで構成レコ−ドを作成して構成ファイ
ル7に書き出す処理を1レコ−ドずつ繰り返す。これに
よって図12に示す様な構成ファイル7が作成される。
この構成ファイル7の内容は図3のA表を参照すること
によって生成されたものである。 【0028】このようにして構成ファイル7を作成し終
ると、表構造解析部5はB表の結合テーブル、B表条件
テ−ブル、集計項目テ−ブルの他、計算式テ−ブルを作
成する。このうち、B表結合テ−ブル、条件テ−ブル、
集計項目テ−ブルは図13および図14に示すフローチ
ャートにしたがって作成される。ここで、B表結合テ−
ブル(図5(B)を参照)は「ファイル名」、「シーク
ェンシャル番号SEQ」、条件項目の「項目名」、「フ
ァイル記号」とから成る。また、B表条件テ−ブル(図
5(C)参照)は「ファイル名」、「B表の列項目位
置」、「条件値」、「否定フラグ」とから成る。ここ
で、「否定フラグ」とは条件値として「≠(等しくな
い)」が設定されていることを示すフラグである。ま
た、集計項目テ−ブル(図5(D)参照)は「ファイル
名」、「B表の列項目位置」、集計項目の「項目名」、
「マイナスサイン」とから成る。ここで、「マイナスサ
イン」は例えば「貸方金額−」という様に集計項目に項
目名にマイナス符号が付いていることを示す。 【0029】先ず、表構造解析部5はパラメータファイ
ル4から指定帳票のB表パラメータデータを読み出し
(ステップD1)、その第2列(項目位置B)を指定し
ておく(ステップD2)。次に、指定列の対象ファイル
名を呼び出すと共に(ステップD3)、このファイル名
に対応するファイル記号をA表結合テーブルより呼び出
す(ステップD4)。そして、次のステップD5でシー
クェンシャル番号SEQの初期値「1」をセットしたの
ち、指定列の条件項目に着目して項目名が設定されてい
るかをチェックし(ステップD6)、設定されていれば
その条件項目名を指定する(ステップD9)。これによ
って得られたファイル名、シークェンシャル番号SE
Q、条件項目名、ファイル記号から結合レコードを生成
したのち(ステップD10)、この結合レコードをB表
結合テーブルにセットするが、その際、同一レコードの
重複設定を避ける為に、B表結合テーブル内に同一レコ
ードが設定されていないことを条件に(ステップD1
1)、生成した結合レコードをB表結合テーブルにセッ
トする(ステップD12)。 【0030】次に、指定列の条件値に着目してその条件
値を指定すると共に(ステップD13)、この条件値に
“≠”が付加されていれば(ステップD14)、否定フ
ラグをセットする(ステップD15)。このようにして
得られたファイル名、指定列の項目位置を示す列名称、
条件値、否定フラグとから条件レコードを生成し(ステ
ップD16)、B表の条件テーブルにセットする(ステ
ップD17)。ここで、指定列に複数の条件値が定義さ
れていれば、各条件値毎に条件レコードを生成する為、
ステップD18では他の条件値が有るか否かをチェック
し、有ればステップD13に戻り、次の条件値を指定し
てそれに対応する条件レコードを生成して条件テーブル
にセットする。そして、次のステップD19では指定列
に他の条件項目が有るか否かをチェックし、有ればステ
ップD20に進み、シークェンシャル番号SEQに
「1」を加算してその値を更新したのち、ステップD9
に戻り、次の条件項目を指定し、以下、それに対応する
結合レコードを生成したり、条件レコードを生成して対
応テーブルにセットする。 【0031】ステップD19で他の条件項目無しが検出
されると、ステップD21に進み、指定列の条件項目を
指定し、その条件項目にマイナス符号が付加されていれ
ば(ステップD22)、マイナスサインフラグのセット
を行う(ステップD23)。このようにして得られたフ
ァイル名、指定列の列項目位置を列名称、集計項目、マ
イナスサインフラグとから集計項目レコードを生成し
(ステップD24)、集計項目テーブルにセットする
(ステップD25)。 【0032】このようにB表の1列分の定義内容を解析
して1列分のB表結合テーブル、条件テーブル、集計項
目テーブルを作成したら、ステップD7に進み、B表の
次列にデータが指定されているかをチェックし、有れば
その行を指定し(ステップD8)、以下、ステップD3
に戻り、B表の定義内容を1行ずつ解析しながらテーブ
ル作成動作を繰り返す。 【0033】次に、表構造解析部5は上述のようにして
B表結合テーブル、B表条件テーブル、集計項目テーブ
ルを作成し終ると、B表パラメータデータを解析して計
算式テーブルを作成するが、この計算式テーブルは各計
算式を列項目位置に対応付けたものである。次に、表構
造解析部5はA表、B表パラメータデータから書式デー
タを列項目位置に対応付けて読み出し、印刷書式メモリ
8にセットする。 【0034】図15はこの印刷書式の解析動作を示した
フローチャートであり、また図16は印刷書式メモリ8
に設定されたA表の印刷書式、B表の印刷書式を示して
いる。先ず、表構造解析部5は印刷書式メモリ8にA表
の印刷書式を設定する為に、A表パラメータを指定する
と共に(ステップE1)、その1行目を指定しておく
(ステップE2)。次に、レコード名見出し部の指定行
に着目し、その罫線の種類を判別し、その判別結果をA
表印刷書式として設定すると共に(ステップE3)、網
かけの有無を判別してその判別結果を設定する(ステッ
プE4)。そして、他の行が有れば(ステップE5)、
次行を指定し(ステップE6)、以下、ステップE3に
戻り、A表のレコード名見出し部に定義されている罫線
の種類、網かけ有無を1行ずつ解析して印刷書式メモリ
8にA表の印刷書式として設定してゆく。この結果、図
3のA表に対応して印刷書式メモリ8には、図16に示
す様なA表印刷書式が設定される。この場合、行番号
「2」に対応して罫線の種類には「太線」、網かけには
「有り」が設定される。このようにしてA表印刷書式を
設定すると、次に、表構造解析部5はB表の印刷書式を
設定する。先ず、B表パラメータを指定すると共に(ス
テップE7)、その第1欄を指定しておく(ステップE
8)。次に、項目名見出し部に着目し、この指定欄の始
点位置および欄幅を検出して設定すると共に(ステップ
E9)、指定欄に入力されている見出し名称を読み出し
て設定し(ステップE10)、更に、網かけ有無を判別
してその判別結果を設定する(ステップE11)。次
に、指定欄の印刷書式を読み出して設定する(ステップ
E12)。そして、他の欄が有れば(ステップE1
3)、次の欄を指定し(ステップE14)、以下、ステ
ップE9に戻り、B表の内容を1欄ずつ解析して印刷書
式メモリ8にB表印刷書式として設定してゆく。この結
果、図4のB表に対応して印刷書式メモリ8には図16
に示す様なB表印刷書式が設定される。 【0035】このようなテーブル作成処理が終ると、表
構造解析部5は展開ファイル作成部9を起動させる。す
ると、展開ファイル作成部9は図17および図18に示
すフローチャートにしたがって展開ファイル作成処理を
行う。なお、展開ファイル11は帳票の出力データであ
る集計ファイル13を作成するまでに中間的に生成され
るファイルである。ここで、図19はソースファイルが
計画ファイルの場合にその1レコード目〜4レコード目
の内容にしたがって作成された展開レコードを示し、ま
た、図20はソースファイルが会計ファイルの場合にそ
の1レコード目〜3レコード目の内容にしたがって作成
された展開レコードを示している。更に、図21はこれ
によって作成された展開ファイル11の内容を示してい
る。いま、パラメータ解析テーブル6には図5(A)〜
(D)に示す様な内容の各種テーブルがセットされてい
るものとする。 【0036】先ず、展開ファイル作成部9はパラメータ
解析テーブル6を参照し、A表結合テーブルよりファイ
ル名(最初は1レコード目のファイル名)を取り出すと
共に(ステップF1)、そのファイル記号を指定してお
く(ステップF2)。次に、このファイル名に対応する
ソースファイルを指定し(ステップF3)、このソース
ファイル内の先頭レコードを指定する(ステップF
4)。これによって集計対象ファイルとしてA表に最初
に定義されている「計画ファイル」の先頭レコードが指
定される。次に、A表結合テーブルから項目名(最初は
1レコード目の項目名)を取り出し(ステップF5)、
この項目名に対応する項目値を指定ファイル内の指定レ
コード(最初は先頭レコード)から取り出す(ステップ
F6)。そして、この項目値と指定ファイル記号とを結
合し(ステップF7)、この結合データを展開レコード
の分類キーとしてセットする(ステップF8)。いま、
図19に示す様に計画ファイルの先頭レコードから予算
項目の項目値「101」が取り出され、この項目値「1
01」と指定ファイル記号「1」とが結合され、この結
合データ「1101」が展開レコードの1レコード目に
おける分類キーとなる。 【0037】次に、この計画ファイルの先頭レコードに
おいてその出力対象項目はB表に定義されている抽出条
件に合致するレコードか否かを調べる為に、先ず、展開
ファイル作成部9はB表結合テーブルを参照し、このテ
ーブル内に指定ファイル記号が有るかをチェックする
(ステップF9)。ここで、上述した様に条件項目名が
B表内に定義されていれば、B表結合テーブルには、フ
ァイル名、条件項目名、ファイル記号等がセットされて
いる。この為、ファイル記号がセットされていないとい
うことは条件項目がB表に定義されていないこと(つま
り、出力対象項目の抽出条件がセットされていない無条
件)を意味する。いま、B表結合テーブルには指定ファ
イル記号「1」がセットされているので、ステップF1
0に進み、この指定ファイル記号がセットされている結
合レコードから条件項目名およびファイル名を読み出
し、この条件項目名に対応する項目値(項目データ)を
指定レコードから取り出す。この場合、先頭レコードか
ら計画種別の項目値「1」が取り出される。そして、同
一ファイル名でこの項目値に対応する条件値をB表条件
テーブル内から検索し(ステップF11)、一致する条
件値が有るかをチェックする(ステップF12)。い
ま、先頭レコードに含まれている計画種別の項目値
「1」はB表条件テーブル内の1レコード目に存在する
為、次のステップF13に進み、それに対応するB表条
件テーブル内に否定フラグがセットされているか否かを
チェックするが、この場合、否定フラグはセットされて
いないので、ステップF19に進み、一致した条件値に
対応する位置の値(この場合、B)をB表条件テーブル
から取り出し、これと一致する項目位置の値を集計項目
テーブル内で検索し(ステップF20)、これに対応す
る項目名を指定する(ステップF21)。ここで、集計
項目テーブルにはその1レコード目に項目位置Bがセッ
トされているのでそれに対応する項目名「予算額」が取
り出され、この項目名に対応する項目値「800,00
0」を指定レコードから取り出すと共に(ステップF2
2)、この項目位置Bに対応して集計項目テーブル内に
マイナスサインフラグがセットされているかをチェック
する(ステップF23)。次に、ステップF24に進
み、指定レコードから取り出した項目値「800,00
0」を展開レコードの対応位置「B」に集計するが、こ
の場合、マイナスサインフラグがセットされるものにつ
いてはマイナス集計が行われ、マイナスサインフラグが
セットされていないものはプラス集計される。これによ
って図19に示す様な1レコード目の展開レコードが作
成される。 【0038】次に、集計項目テーブル内で同一の項目位
置(この場合、B)が他にもセットされているかをチェ
ッするが(ステップF25)、図5(D)に示す様に、
会計ファイルについては項目名「借方金額」、「貸方金
額」に対応して集計項目テーブル内にそれぞれ2ケ所ず
つ同一項目位置D、Eがセットされているが、計画ファ
イルについては同一項目位置が複数セットされていない
ので、ステップF14に進み、B表条件テーブル内で項
目値と一致する条件値が他に有るかをチェックする。い
ま、B表条件テーブル内において条件値「1」はその1
行目しか存在しない為、ステップF15に進み、指定さ
れた計画ファイル内に次のレコードがあることを条件
に、次のレコードを指定する(ステップF18)。 【0039】これによって計画ファイルの2レコード目
が指定され、ステップF5に戻り、以下、上述の動作が
繰り返される。この場合、ファイル記号「1」と2レコ
ード目の予算項目値「102」とによって2レコード目
における展開レコードの分類キー「1102」が生成さ
れる(ステップF5〜F8)。また、上記1レコード目
と同様に2レコード目の計画種別に対応する項目値も
「1」で、この項目値「1」に一致する条件値はB表条
件テーブル内に存在し、かつそれに対応して否定フラグ
もセットされていないので、ステップF19に進み、B
表条件テーブルから項目位置「B」を取り出し、この項
目位置「B」に対応する項目名「予算額」の値を計画フ
ァイルの2レコード目から取り出す(ステップF20〜
F22)。この場合、図19に示す様に、計画ファイル
の2レコード目の予算額の項目から「200,000」
が取り出され、展開レコード(2レコード目)の対応位
置「B」にプラス集計される(ステップF24)。 【0040】次に、計画ファイルの3レコード目が指定
されると(ステップF18)、展開レコード(3レコー
ド目)の分類キー「1103」が生成される。この場
合、計画ファイルから読み出された3レコード目の計画
種別の項目値は「2」で、この項目値と一致する条件値
はB表条件テーブル内にセットされているが、この条件
値に一致する項目値は「C」である。したがって、計画
ファイルの3レコード目から取り出された「予算額」の
項目値「400,000」が展開レコード(3レコード
目)における対応位置「C」にプラス集計される。 【0041】更に、計画ファイルの4レコード目が指定
されると、その3レコード目と同様に展開レコード(4
レコード目)の項目位置「C」には計画ファイルの4レ
コード目から取り出された予算額の項目値「50,00
0」がプラス集計される。なお、この展開レコードの分
類キーは「1104」となる。以下、同様に、計画ファ
イルを1レコードずつ順次指定しながら、パラメータ解
析テーブル6内のA表結合テーブル、B表の結合テーブ
ル、条件テーブル、集計項目テーブルを参照し、計画フ
ァイルの展開レコードを1レコードずつ順次作成してゆ
く。 【0042】なお、ステップF9でB表結合テーブル内
に指定ファイル記号がセットされていないことが検出さ
れた場合には、条件項目が定義されていない無条件項目
である為、ステップF28に進み、B表条件テーブルの
定義内容を参照せず、直接的に、集計項目テーブル内で
指定ファイルと同一のファイル名を検索し、以降、ステ
ップF21に戻る。 【0043】このような動作を1レコードずつ行った結
果、指定ファイル内の全レコードを指定し終り、ステッ
プF15で次レコード無しが検出されると、ステップF
16に進み、A表結合テーブル内に他のファイルが定義
されているかをチェックする。いま、A表結合テーブル
内には、他のファイルとして会計ファイルが定義されて
いるので、最初のステップF1に戻り、上述と同様に会
計ファイルに対応してその展開レコードを順次生成する
処理を行う。即ち、A表結合テーブルよりファイル名と
して「会計FILE」を取り出し(ステップF1)、そ
のファイル記号として「2」を指定しておく(ステップ
F2)。そして、このファイル名に対応するソースファ
イルとして会計ファイルを指定すると共に(ステップF
3)、その先頭レコードを指定しておく(ステップF
4)。 【0044】この状態において、指定レコードの「勘定
科目」の項目値「2111」とファイル記号「2」とを
結合し、1レコード目における展開レコードの分類キー
「22111」を生成する(ステップF5〜F8)。そ
して、ステップF9に進むが、この場合、B表結合テー
ブルにはファイル記号「2」が記憶されているので、B
表結合テーブルの項目名「相手勘定」に対応する項目値
を会計ファイルの1レコード目から取り出す(ステップ
F10)。いま、会計ファイルの1レコード目からは
「相手勘定」の項目値として「0011」が取り出され
るので、この項目値と一致する条件値をB表条件テ−ブ
ルから検索する(ステップF11)。この場合、該当す
る条件値はテ−ブル内の5行目と6行目にそれぞれセッ
トされているので、ステップF12で一致が検出されて
ステップF13に進み、先ず、最初の5行目に着目し、
それに対応する位置に否定フラグがセットされているか
をチェックする。いま、B表条件テ−ブルの5行目には
否定フラグがセットされている為、ステップF14に進
み、B表条件テ−ブル内でこの項目値「0011」と一
致する条件値が他に有るかをチェックするが、いま、B
表条件テ−ブル内の6行目に条件値「0011」が有る
為、ステップF13に戻る。いま、この条件値に対応す
る位置に否定フラグはセットされていないので、ステッ
プF19に進み、B表条件テ−ブルからこれに対応する
項目位置「E」を取り出し、この項目位置「E」に一致
する集計項目テ−ブル内の項目名を指定するが(ステッ
プF20、F21)、この場合、集計項目テ−ブルの5
行目、6行目にそれぞれセットされている項目位置
「E」のうち最初の項目位置、つまり、5行目に対応す
る項目名「借方金額」を指定する。そして、会計ファイ
ルの1レコ−ド目から指定項目名に対応する項目値「5
0,000」を会計ファイルに対する1レコ−ド目にお
ける展開レコ−ドの対応する位置「E」にプラス集計す
る(ステップF22〜F24)。 【0045】そして、ステップF25に進むが、この場
合、集計項目テ−ブル内にはその5行目の他に6行目に
も同一の項目位置「E」が存在する為、ステップF21
に戻り、集計項目テ−ブル内の当該項目位置に対応する
項目名「貸方金額」を指定し、この指定項目名に対応す
る項目値を会計ファイルの1レコ−ド目から取り出す
(ステップF22)。この場合、会計ファイルの1レコ
−ド目からは貸方金額の項目値として「0」が取り出さ
れ、展開レコ−ドの1レコ−ド目の対応位置「E」に集
計されるが、この際、集計項目テ−ブルの6行目にはマ
イナスサインフラグがセットされているので、マイナス
集計、つまり、(前回の借方金額「50,000」−今
回の貸方金額「0」)の集計演算が行われる(ステップ
F24)。その後、ステップF25、F14、F15か
らステップF18に進み、会計ファイルの2レコ−ド目
が指定される。 【0046】これによって会計ファイルの2レコ−ド目
に対応してその展開レコ−ドが生成されるが、この場
合、勘定科目の項目値も「2111」で、1レコ−ド目
と同様に分類キ−は「22111」となる。また、2レ
コ−ド目の相手勘定も「0011」で、項目条件値と一
致する為、その借方金額「0」が展開レコ−ドの項目位
置Eにプラス集計され、またその貸方金額「40,00
0」がその項目位置Eにマイナス集計される。この為、
2レコ−ド目の展開レコ−ドの項目位置には「−40,
000」が書き込まれる。 【0047】次に、会計ファイルの3レコ−ド目が指定
されるが、この相手勘定の項目値は「0010」で、B
表条件テ−ブル内にはこれと一致する条件値はセットさ
れていないので、ステップF12からステップF26に
進み、B表結合テ−ブル内で指定ファイル対応して否定
フラグがセットされてるかをチェックする。いま、B表
条件テ−ブル内にはその5行目に会計ファイルに対応し
て否定フラグがセットされているので、ステップF27
に進み、否定フラグがセットされている位置の値「D」
をB表条件テ−ブルから取り出し、この値に一致する位
置を集計項目テ−ブル内から検索し(ステップF2
0)、その項目名「借方金額」に対応する項目値「80
0,000」を3レコ−ド目から取り出し、展開レコ−
ドの対応位置Dにプラス集計する。その後、ステップF
25からステップF21に戻り、上述と同様に次の項目
名「貸方金額」の項目値「0」が展開レコ−ドの位置
「D」にマイナス集計される。以下、次レコ−ドが指定
され、ステップF12で不一致が検出される毎に上述と
同様の動作が1レコ−ドずつ繰り返される。これによっ
て条件項目「相手勘定」の条件値「≠0011」にした
がった展開レコ−ドが順次生成される。 【0048】その後、会計ファイルの全レコ−ドを指定
し終り、ステップF15で次レコ−ド無しが検出される
と、ステップF16に進み、A表結合テ−ブル内に他の
ファイルが有るかをチェックするが、この場合、ファイ
ル無しが検出されるので、ステップF17に進み、展開
レコ−ドの編集処理が行われる。即ち、分類キ−が同一
の展開レコ−ドをそれぞれ抽出し、これを1つのレコ−
ドにまとめると共に、分類キ−にしたがって各展開レコ
−ドを昇順にソ−トする。例えば、図20に示す様に、
1レコ−ド目と2レコ−ド目の展開レコ−ドはその分類
キ−が同一である為、1つの展開レコ−ドにまとめら
れ、その項目位置「E」の値は「10,000」とな
る。図21は上述の様にして作成された展開ファイル1
1の内容を示している。即ち、計画ファイル、会計ファ
イルの内容にしたがって作成された展開ファイル11
で、そのレコード構造はA、B、C、D、E、Fの項目
を有し、その先頭項目Aは分類キーとなっている。 【0049】このようにして展開ファイル作成部9は展
開ファイル11を作成したのち、展開集計処理部12を
起動させる。すると、展開集計処理部12は図22のフ
ローチャートにしたがって集計ファイル13を作成す
る。なお、図23は展開集計処理部12の動作内容を具
体的に説明する為の図である。展開ファイル作成部9は
展開ファイル11の内容と構成ファイル7の内容とに基
づいて集計ファイル13を部品展開手法にしたがって生
成する。先ず、展開集計処理部12は展開ファイル11
の先頭から1レコード分のデータを読み込む(ステップ
G1)。そして、次のステップG2ではデータ終了か、
つまり、展開ファイル11の先頭から全てのレコードを
読み出したか否かをチェックする。最初は展開ファイル
11の先頭から1レコード分のデータを読み込んだ場合
であるから、次のステップG3に進み、構成ファイル7
の内容をサーチし、その分類キーと一致する子コードを
持った構成レコードを構成ファイル7から検索する。い
ま、図23に示す様に展開ファイル11の先頭レコード
内の分類キーは「1101」であり、構成ファイル7に
は図14に示す様にこれと一致する子コードが存在する
為、ステップG3でそのことが検出されてステップG4
に進み、集計ファイル13のレコード(集計レコード)
を生成する。即ち、図23の具体例において、先ず、展
開集計処理部12はこの子コード「1101」に対応す
る親コードを構成ファイル7から読み出し、この親コー
ド「・C03」をB表の行No「03」とそれ以外「・
C」とに分解し、この行No「03」を集計ファイル13
の1レコード目の先頭項目に配置し、またそれ以外の
「・C」をそれに続けて配置する。そしてこの子コード
に対応する名称を構成ファイル7から読み出し、集計レ
コードの次の項目に配置する。これに続けて展開ファイ
ル11のデータ項目「800,000」を集計レコード
の次項目以降に順次配置する。この集計レコードはA表
の行No「03」に定義されているレコード名「人件
費」、集計レベル「C」の集計レコードであり、このレ
コード名に対応してA表に定義されている集計対象コー
ドに該当するデータを集計したものである。これによっ
て集計ファイル13の1レコード目のデータが生成され
ると、この生成レコードを集計ファイル13に書き出す
が、その際、集計ファイル13内に既に同一分類キーを
持つレコードが存在していれば、それを1レコードにま
とめて集計ファイル13内に書き込み、また同一分類キ
ーのレコードが存在していなければ、今回生成したレコ
ードを新たに集計ファイル13に追加する(ステップG
5)。 【0050】次に、構成ファイル7内の該当レコード位
置に終了フラグがセットされているか否かをチェックす
る(ステップG6)。ここで、構成ファイル7内の終了
フラグは親コードの集計レベルが「A」のときに“1”
となるもので、終了フラグが“1”のときにはそのまま
ステップF3に戻るが、終了フラグが“1”でなければ
新たな展開レコードを生成して展開ファイル11への書
き出しを行う(ステップG7)。この場合、図23の
(B)に示す様な新たな展開レコードを生成して展開フ
ァイル11へ戻す。即ち、今回生成した集計レコードよ
りも上位レベルにあるレコード名がA表に定義されてい
れば、今回生成した集計レコードの集計結果を上位レベ
ルにあるレコード名の集計レコードへ集計させる為に、
新たな展開レコードを生成して展開ファイル11への書
き出しを行う。ここで、構成ファイル7内の該当する親
コード「・C03」を先頭項目に配置し、これに続いて
展開ファイル11から読み出したデータを順次配置して
成るレコードを展開ファイル11へ書き出す。なお、図
21で示した展開ファイル11において、図中破線の下
に配置したレコードはこの戻されたレコードを示してい
る。その後、ステップG3に戻り、以下、構成ファイル
7の内容を全てサーチし、該当レコードが検出されなく
なるまで上述の動作を繰り返す。この結果、ステップG
3で該当レコード無しが検出されて不一致終了となる
と、ステップG1に戻り、展開ファイル11から次のレ
コードを読み出す。このような動作は展開ファイル11
の全レコードに対して行われる。すると、ステップG1
でデータ終了が検出されてステップG8に進み、集計フ
ァイル13を構成する各レコードをその先頭項目の内容
にしたがって昇順にソートする。このようにしてソート
された集計ファイル内の各レコードは帳票出力時の印刷
順に並べ替えられる。 【0051】このようにして集計ファイル13が作成さ
れると、展開集計処理部12は印刷処理部14を起動さ
せる。すると、印刷処理部14は印刷書式メモリ8の内
容を取り込んでA表およびB表の印刷書式にしたがって
集計ファイル13の内容を帳票フォーマットと共にプリ
ンタ15から印刷出力させる。図24は印刷処理部14
の動作を示したフローチャートである。先ず、印刷処理
部14は印刷書式メモリ8に設定されているB表印刷書
式にしたがって項目見出し部を印刷させる為に、B表印
刷書式から見出し項目名称を順次取り出して罫線フォー
マットの対応する欄位置に挿入し、印刷処理部14内の
ページメモリ(図示せず)内に罫線と共に配置する(ス
テップH1)。そして、この項目見出し部の各欄をB表
印刷書式に設定されている網かけ有無に基づいて修飾す
る(ステップH2)。 【0052】次に、A表印刷書式の1番目を指定し(ス
テップH3)、指定行番号の罫線の種類および網かけ有
無の状態をフラグとして記憶しておく(ステップH
4)。そして、集計ファイル13の先頭から1レコード
読み出し(ステップH5)、そのレコード内に含まれて
いる集計レベルを判別し(ステップH6)、それに対応
する括り用の罫線フォーマットを生成する(ステップH
7)。即ち、罫線フォーマットは図25に示す様にレベ
ルA、B、Cに対応してその左端部分の形状が相違して
おり、この形状によって集計レベルの上下関係を表わし
ている。なお、この罫線フォーマットを生成させるため
のデータは予め入力部1から任意に入力されて印刷書式
メモリ8に設定されたもので、この設定内容に基づいて
印刷処理部14はレベル別に左端部分の形状が異なる罫
線フォーマットを生成する。また、各罫線フォーマット
の各項目欄はB表印刷書式に欄番号に対応して設定され
ている始点位置、欄幅に基づいて特定されたものであ
る。 【0053】このようにして1レコード分の罫線フォー
マットを生成すると、印刷処理部14は上述のステップ
H4で記憶しておいたA表印刷書式の状態フラグを参照
し、このフラグに応じた罫線および網かけ状態に罫線フ
ォーマットの全体を修飾し、ページメモリに配置する
(ステップH7)。次に、上述のステップH5で読み出
した集計レコード内の各フィールドデータを対応する項
目欄に配置するが、その際、B表印刷書式の各欄に設定
されている印刷書式に基づいて配置すると共に、B表印
刷書式の各欄に設定されている網かけ状態に基づいて各
項目欄を修飾する(ステップH8)。 【0054】そして、ステップH9に戻り、集計ファイ
ル13内に他のレコードが有るかを調べ、有れば、ステ
ップH10に進み、A表印刷書式の次の行番号を指定し
たのちステップH4に戻り、以下、上述の動作を繰り返
し、1レコードずつ集計ファイル13内のレコードを印
刷してゆく。これによって、図2に示す様な帳票が得ら
れる。この帳票は図3、図4に示すA表、B表にしたが
って作成されたもので、その行項目の見出し部には集計
レコードのレコード名が印刷され、また、列項目の見出
し部には集計レコードの項目名が印刷され、更に、集計
レコードのフィールドデータがレコード名、項目名に対
応付けて印刷されたものとなる。また、レベル別に集計
レコードを括る罫線のうち任意に指定した罫線が太線で
印刷され、また各行目あるいは列項目のうち任意に指定
した項目に網かけが施されて印刷され、帳票の一部が意
図したイメージ通りに強調されたものとなる。 【0055】以上の様に、本実施例においては一般ユー
ザである業務担当者が所望する帳票を得る為に、その出
力イメージにしたがってA表、B表を単に定義しておく
だけで、その定義内容にしたがって集計対象レコードが
所定のファイルから読み出されて分類集計されると共
に、その集計結果が定義内容通りの並び順で、かつ集計
レベルに応じた階層構造で印刷されると共に、罫線の種
類、網かけの有無に応じて帳票の一部が強調印刷され
る。この為、業務担当者であっても意図したイメージ通
りの帳票を容易に得ることができる。 【0056】なお、上記実施例は帳票の一部を強調する
為に罫線の種類として太線、細線を指定するようにした
が、破線、二重線等であってもよく、また、罫線の種
類、網かけに限らず、印刷色を指定したり、反転文字を
指定するようにしてもよい。また、上記実施例はレコー
ド集計を行う場合について説明したが、A表の集計レベ
ルをAだけにすることにより、レコード集計に限らず、
単にレコード抽出、配列、項目内計算等を行うようにし
たものであってもよい。一方、上記実施例はA表、B表
を別個独立に定義するようにしたが、A表、B表を同一
画面上において同時に定義するようにしてもよい。ま
た、上記実施例においては、A表の見出し部によって構
成されるマトリックス上の任意の交点位置に項目コード
を入力するようにしたが、項目名を入力するようにして
もよい。 【0057】 【発明の効果】本発明によれば、集計帳票を定義する際
は、帳票枠縦イメージによる第1フォーマットと、帳票
枠横イメージによる第2フォーマットとをそれぞれ個別
に表示させて、帳票の縦方向の定義と横方向の定義と
を、別々に個別に定義するようにしたので、帳票全体を
同時に定義するのではなく、帳票を縦方向の観点と、横
方向の観点とから個別に検討しながら定義することがで
きるようになる。特に帳票の縦方向の観点からの検討で
は、集計帳票としての縦方向の表枠の形態を定義すると
共に、その集計帳票の縦軸方向の集計単位、集計対象フ
ァイル、レコード抽出条件の各要素を特に着目しながら
検討しながら定義することができ、また帳票の横方向の
観点からの検討では、集計帳票としての横方向の表枠の
形態を定義すると共に、その集計帳票の横軸方向に配置
される集計項目毎の集計対象データ項目に着目してその
要素を検討しながら定義することができ、集計帳票にお
ける各集計単位毎に集計される各データを集計対象ファ
イルからどのように抽出し、集計し、出力するのかを、
集計帳票の縦方向の書式イメージを確認しながら、また
集計帳票の横方向の書式イメージを確認しながら簡易に
定義設定できる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention
Accounts and personal computers.
And record data read from personnel files, etc.
And a form output device for outputting a form based on the form. [0002] Conventionally, office computers and general-purpose computers have been used.
For business processing devices such as computers, accounting files,
HR files, sales slip files, inventory files, etc.
We store and manage a variety of files.
The record structure to configure is different for each file,
Same record format (each item of the record matches
Records) and manages them as separate files.
ing. By the way, extract records from a given file
And reads any item data from this extracted record.
And summarizes the records.
The form creation process to be output together with the system
Experts such as Zinnia set up each report in a one-to-one correspondence.
It is performed according to the form processing program
You. [0003] As described above, in the prior art
Individual form processing that corresponds to each form 1: 1
It is necessary to set the program in advance, but
Since business tasks change over time, the form processing program
Ram no longer fits in reality,
It may not be possible to obtain a matched form.
In such a case, conventionally,
Change a part of the form processing program to deal with it
But if you make some changes,
General users because they require specialized and advanced knowledge such as
It ’s extremely difficult for those who
I have to ask a system engineer to change the program
That was the current situation. The object of the present invention is to
General user without changing the processing program
Output items to obtain the desired form
By simply specifying attributes such as shading with
Output a form as intended based on the specified content
It is to be able to power. SUMMARY OF THE INVENTION [0004] The present invention provides a tallying record.
Are displayed on the vertical axis.
Multiple summary item names are arranged on the horizontal axis, and each summary record
Summary book that outputs summary data for each summary item name
A form output device that creates and outputs a form,
Form frame vertical image to define the vertical output format of the form
Display the first format in the
Change the position and size of the mat in the vertical direction.
Arbitrarily defined by the
Aggregate record of the aggregate record that forms the vertical axis on the mat
Line location and the line qualification information for that line,
File name and the target file
Of records to be aggregated from each record in the file
First definition means for defining conditions, and the side of the above summary form
By the form frame horizontal image to define the output format of the orientation
Displays the second format, and displays the second format.
The position and size of the table frame in the horizontal direction
More arbitrarily defined and in its second format
Column layout position of the summary item name of the summary target items that make up the horizontal axis
And the column qualification information of that column,
Items to be summarized in the records extracted
The second definition means for defining the eye name and the first definition means
Based on the defined file name and the extraction conditions for each
From the target file
Extracting means for extracting records to be aggregated for each
Data item name for each total item defined by the second definition means
Is extracted for each totaled record by the extraction means based on
Read the data of the above data item name in the specified record
Then, the read data is totaled for each of the above totaling items.
By doing so, the aggregation of the data for each of the above aggregation items
The record is a summary record corresponding to each of the above summary record names.
Total record creation means created for each password, and the first definition
Each summary record name defined by the
Is output in the direction of the vertical axis of the tabulation report.
Collects the totals defined in the column according to their definitions.
In addition to outputting the report in the horizontal axis direction of the
Based on each summary record created by the code creation means,
The summary data for each summary item in each summary record is
Output position corresponding to each summary record name and each summary item name
And output each line defined by the first definition means.
Qualify each row according to the row qualification information of
Modify each column according to the column qualification information for each column defined by the
Form creation means for creating a decorated totals form
It is characterized by the following. An embodiment will be described below with reference to FIGS. 1 to 25.
I will tell. FIG. 1 is a block diagram of a data processing apparatus according to the present embodiment.
FIG. This data processing device is
Computers that do not have specialized knowledge.
The subject, etc., for each tabulation level, using the tabulation definition table
Can be specified arbitrarily in the definition of this aggregation definition table.
Reads the applicable records from the specified file and collects them.
Records are classified and summarized in a hierarchical structure according to the total level.
Prints out the aggregation result of
You. The input unit 1 is a key for inputting various data and commands.
-The data input from the input unit 1 is
The data is taken into the data setting unit 2 and processed, and the display unit 3
Is displayed and output. In addition, the input unit 1 performs predetermined key operations.
In response, a start command is given to the parameter setting unit 2.
You. The parameter setting unit 2 is activated from the input unit 1
Operate in response to an instruction, and
Record name of summary record to indicate record summary
Definition table that defines the data to be aggregated or the aggregation conditions, etc.
In the embodiment, two types of tables A and B) are input from the input unit 1.
Generated according to the input data and displayed on the display unit 3
Output and set in parameter file 4.
Note that Table A and Table B will be described in detail later,
Here, a brief description will be given. For example, desired
Print out "Expense record" as shown in Fig. 2
Collection according to the output image of this form
Tables A and B are generated as total definition tables. here
In the form shown in FIG. 2, the record name of the summary record
And the data item name of the summary record as a column item
Is defined in order to obtain this form
Table A is configured as shown in FIG. 3 and Table B is configured as shown in FIG.
The table shows the record names and collections of summary records for each summary level.
Definition that defines the item contents extracted as a total record
It is a table. Table B is a data item of the total record.
Names that are output and data corresponding to the item names
Output target items extracted as items or when printing forms
This is a definition table that defines the format, totaling conditions, and the like. Also, A
Tables and Tables B have a net as an attribute when printing a form for each item.
In addition, the line type of the ruled line can be arbitrarily defined. [0008] The parameter file 4 contains a table A and a table B.
The basic format (ruled line data, etc.)
Besides being permanently stored by the
Table A parameter data of various forms arbitrarily input from the unit 1
Data, table B parameter data and any input from input unit 1
Form name and A table parameter data, B
Correspondence table that associates with table parameter data is stored
Have been. [0009] The table structure analysis unit 5 is the input unit 1 when printing a form.
It operates according to the start command input from the
A table parameter corresponding to the form name specified arbitrarily
Data and table B parameter data are analyzed and the analysis result
Creates various parameter analysis tables 6 according to
You. In this case, in this embodiment, the parameter analysis table
Table 6 as shown in FIG.
Table B join table as shown in FIG. 5 (B) and FIG. 5 (C)
Table B condition table as shown, Table B as shown in FIG. 5 (D)
In addition to the total item table, not shown in the table B formula table
Create a file. The table structure analysis unit 5 is defined in Table A.
Analyze the hierarchical structure etc. according to the aggregation level
The configuration file 7 is created based on the analysis result. The structure
File 7 will be described in detail later.
And the aggregation level of the corresponding
Represents the hierarchical relationship (parent-child relationship) in the hierarchical structure of files
File. Further, the table structure analysis unit 5 adds the table A and the table B
To the defined attributes such as shading and the header position of Table B
Read the item name of each defined column and print the memo
8 and read the print format defined in Table B.
The data is set in the print format memory 8. Then the table structure
The analysis unit 5 gives a start command to the development file creation unit 9. [0010] The expanded file creation unit 9 is a parameter analysis template.
Refer to the contents of various tables in
From the various source files that compose file 10
Specify the target file or extract from this target file.
Expanded records one record at a time based on the issued records
Are sequentially generated and written to the development file 11. This
To create an expansion file 11
The unit 9 gives a start command to the development and aggregation processing unit 12. The development and tallying unit 12 refers to the configuration file 7.
1 record based on the contents of the development file 11
Totals records are created one by one, and the totals
Write out. This creates the tally file 13
Then, the development tabulation unit 12 sends a start instruction to the print processing unit 14.
give. The print processing unit 14 stamps the contents of the tally file 13
According to the print format set in the print format memory 8
Printer 15 with record format for each record
The form is created by printing out the data. Next, the operation of this embodiment will be described. First,
Creation of tables A and B from the input unit 1 to obtain the desired form
Is instructed, the parameter setting unit 2 responds
Make. First, the parameter setting unit 2 sets the parameters when creating Table A.
Basic format of Table A read from meter file 4
Display and output the table frame and the like according to the Now, in Table A
With the basic format displayed and output,
The operator inputs the parameter data of Table A from the input unit 1.
Power. Here, in the heading section in the row direction of Table A,
A record whose name is an aggregation record with any name corresponding to the level
Is entered as the first name. For example, as shown in FIG.
"01" is the record name "Total" corresponding to the aggregation level A
Is input, and the row No. “02” corresponds to the aggregation level B.
Accordingly, the record name “fixed cost” and the row No. “03”
Record name "personnel cost" ... is entered in response to Bell C
ing. Note that in the above example, an arbitrary record
Although the code name is input directly from the input unit 1,
If the record name to be
Record the name of the record to be used in the table,
List the contents of this table on the window screen when entering the window name
Display and select any record name from them
May be used to input a record name. Ma
The record name is not limited to the name, but may be a code.
No. An arbitrary file is included in the table A heading section.
Name and item name are entered. For example, as shown in FIG.
In Table A, there are two types of file names, "plan FILE",
"Accounting FILE" has been entered
The file from which the records should be extracted
File name is defined. In addition, file name "plan FIL
E, the item name "Budget Item" is entered.
The item name corresponding to the file name "Accounting FILE"
"Account" has been entered.
A target item name to be extracted as a code is defined. Change
, Composed of the row and column headings of Table A
Each input area in a matrix form
The specific item content (item code) of the eye is entered
You. For example, row No. "03", that is, corresponding to the aggregation level C
For the record name "personnel cost" to be
E ”, the item code“ 101 ”corresponding to the“ budget item ”,
"102" is entered, and "Accounting File"
Item codes “2111” and “211” corresponding to “regular subjects”
2 "and" 2134 "have been entered,
Item code “1” of the budget items constituting the image file
01 and 102 should be extracted.
Are defined and account items that make up the accounting file
Among the item codes “2111”, “2112”, “2”
134 "should be extracted.
Have been. In the table A, the management unit corresponding to each row No.
An area is provided, and an arbitrary line can be specified and
By entering a circle at the corresponding position, the line
Indicates that this is the area where the code is input. This is Table A
When analyzing the definition contents for each line,
Rows are analyzed and other rows are excluded from the analysis.
This is to improve the processing speed. same
Sometimes, the data to be extracted and aggregated by
It is also meaningful to confirm that it is in
You. In this embodiment, a part of the form is emphasized.
In the table A, use the record name
The ruled line that wraps records by level, whether or not to apply
Can be arbitrarily defined as
I have. For example, the records of row No. “02” and row No. “05”
The heading column is shaded.
Thus, when printing a form, the second and fifth lines
It defines what should be modified by shading the whole.
In addition, the record name of row No. “02” and row No. “05”
In the entry item column, add a vertical ruled line that matches the aggregation level.
Is a bold line, so that depending on the aggregation level
As a line type in a ruled line format for grouping record data
A bold line is specified, and the corresponding record should be enclosed with this bold line.
Is defined. Create table A in this way
And the parameter setting unit 2
Set in meter file 4. Next, the parameter setting section 2 sets the parameter
Reads and displays the basic format of Table B from file 4.
Output. Here, as shown in FIG.
In the output section, "Format", "Target"
FILE "," total item "," calculation formula "," condition item "
Eyes and condition values are fixedly set in advance.
In addition, each column item in the heading section in the column direction of Table B is
As names indicating eye positions, “A”, “B”, “C”,...
It is associated with “G”. Now, the basic format of Table B is displayed and output.
In this state, the person in charge of operation
Enter the parameter data for the table. Here, the column of table B
In the heading part of the direction, the data item of the summary record is used.
The name of the item to be printed out is entered. For example, the term
Eye position "A" is "Expense item", Item position "B" is
“Early plan”, item position “C” is “Revision plan”, item
Positions “D” and “E” are “Shared Items” and “Shared Items”
The item position “D” and its subordinate items
Expense ", item position" E "has" Distribution cost ", and item position
"F" is "actual meter", item position "G" is "planned difference"
Is entered. Also, in the present embodiment, the form
Column items using the heading section of Table B to highlight the section
Shading can be arbitrarily defined for each case.
ing. For example, items at column item positions "C" and "G"
The columns are shaded, so that when printing forms
The entire third and seventh columns should be shaded for modification.
Is defined. In addition, it is applied to the line item of table A
Shading and shading applied to column items in Table B are indicated by diagonal lines.
The directions are opposite, so that you can distinguish them.
I'm trying. In the line item of Table B, "Format"
Is the column width and character for each column item as the print format of the item data
Type, character size, etc. are entered. In addition, the following "
"FILE" corresponds to column item positions "B" and "C".
"Plan FILE" is input, and column item position "D",
“Accounting FILE” is input corresponding to “E”.
In addition, the following “total items” are the
Define which field data should be aggregated from the code
Corresponding to the column item positions "B" and "C"
Amount + ”is entered, and column item positions“ D ”and“ E ”
Correspondingly, "debit amount +" and "credit amount-" are entered.
Have been. Here, the plus / minus sign is the record
It defines the addition or subtraction aggregation at the time of aggregation.
You. Next, at column item positions B, C, D,.
In the corresponding “Calculation Formula” columns, the totaled record to be output is displayed.
The calculation formula for processing the code has been entered. Where
To define that the item data should be output as is
Describes the calculation formula in the column corresponding to the item position
Not required, but defines that certain item data should be processed
If you want to change the
A calculation formula indicating the contents is described. Calculation formula is optional
Position as a variable, this column position, a constant, a simple
It is described using operators. Column position is Table B
Column item position, but the result of other formulas
If you should refer to the line where the formula is entered
No is added to the column item position. Note that the description of the calculation formula
The calculation formula "D + E" shown in FIG.
That the field data in the corresponding summary record should be added
Define. The calculation formula "B / 1000" is the column item position.
Divide the item data corresponding to B by "1000" and get the value
Is to be output in units of “thousands”. In addition,
Is the formula "CF" the item data corresponding to column item position C?
Of the formula "D + E" entered in the field position F1
Is defined to be subtracted. On the other hand, the following "condition item" is the definition content of Table A.
Extraction rules to further narrow down the records extracted by
Define the condition item, and the item name of the "condition item"
And column item positions "B" and "C"
Is entered, and the column condition is
"B" is "1", column item position "C" is "2",
"3" and "4" are input, and similarly, "condition item"
The column names “D” and “E” are “
"Check account" is input, and column item position as "Condition value"
"D" indicates "$ 0011 (all other characters except 0011)
Indicates that the code should be extracted)), column item position
“0011” is input to “E”. One
If multiple condition values are defined for the condition item of
The record extraction condition for that item is a logical sum (or condition).
I taste. In this way, Table A and Table B were created.
Then, an arbitrary form name is specified from the input unit 1 and the print command is issued.
, The table structure analysis unit 5 sets the flow chart shown in FIG.
Works according to the FIG. 6 shows the table structure analysis unit 5.
In the general flow that outlines the overall operation of
The structure analysis unit 5 reads the A of the designated form from the parameter file 4.
Reads the table parameter data and creates the A-table connection table
(Step A1) and create a configuration file.
(Step A2). Next, the table structure analysis unit 5
Reads table B parameter data of the specified form from data file 4.
And create a join table for Table B (step
A3), condition table (step A4), total item table
Table (Step A5), calculation formula table (Step A
6) is created respectively. After that, the parameter
Format data from the data
Write to the memory 8 (step A7). FIG. 7 shows a flow of creating the A-table connection table.
In the table structure analysis unit 5, the column heading of the table A in the column direction
To create an A-table binding table as shown in FIG.
To achieve. Here, the A table join table is defined in the A table.
Table that associates file names with item names
In the "File name", "Sequential number SE"
Q "," item name ", and" file symbol ". here
And the sequential number SEQ is set in the same file.
Identified item names by serial numbers starting from "01"
And the “file symbol” is specified in Table A.
Files defined by serial numbers starting from "1"
This is the code for First, the table structure analysis unit 5 sets parameters
Read parameter data of table A of specified form from file 4
At the same time (step B1).
A value "1" is designated (step B2). And A
Analyze the column headings in the table sequentially from the beginning.
Good. That is, the table structure analysis unit 5 first defines the table A
After specifying the first file name (step B3),
Specify the initial value “1” for the quenchal number SEQ
Step B4), and the first file name corresponding to this first file name
Is specified (step B5). With this finger
Fixed file name, sequential number SEQ, section
Write the item name and file symbol in the table A
Step B6). In this case, if the table A shown in FIG.
The first row of the table join table contains data as shown in FIG.
Data is written. Next, another file corresponding to the same file name
If the item name is defined (step B7), the seek
Add "1" to the initial number SEQ and update the value
(Step B8) and specify the next item name (Step B8).
Step B5) Write to the A-table connection table
(Step B6). Hereafter, all files corresponding to the same file name
The above operation is repeated until all the item names are specified. This
As a result, when all the item names are specified, the next step B
Go to 9 and if there is another file name in Table A, condition it
Adds the file symbol "1" to, and updates the value
(Step B10). Hereinafter, returning to step B3, the table A
Specify the other file name from
Table A while sequentially specifying all item names corresponding to the file name
Write to the merge table. Next, creation of the configuration file 7 shown in FIG.
The processing (step A2) will be described in detail with reference to FIGS.
You. 8 to 10 show the operation when creating the configuration file 7.
FIG. 11 is a flow chart showing
Schematically shows the operation contents of the table structure analyzing unit 5 in the case of
FIG. 12 is a diagram showing the created configuration file 7.
It is. FIG. 11A shows a record of the configuration file 7.
This configuration record shows the child
"", "Parent code", "End flag", "Name"
"Child food" and "Parent code" are tabulated in Table A
The correspondence between the target item and the corresponding summary record
Hierarchy in the hierarchical structure of representing or summarizing levels
This is a record representing (parent-child relationship). Also, "End file
Lag "means that the parent code contains aggregation level A
This flag is set to “1”, and the end flag is set to “1”.
Record to a higher level if
This indicates that no tally is performed. "Name" is in Table A
This is the record name of the defined summary record. Destination
The table structure analysis unit 5 specifies the first row of the table A parameter.
(Step C1), the aggregation level of the specified row is the highest level
Then, it is checked whether or not the file is A (step C2). here,
If the aggregation level is A, analyze the table structure for initial setting
The last item work memory in the section 5 (see FIG. 11B)
Is cleared (step C3),
Aggregation level A as the currently focused level (current level)
Is specified (step C4). In this state,
The row number of the current level and the current row (current row)
Then, level row data is generated (step C5). example
For example, taking Table A shown in FIG. 3 as an example, the first row of Table A is a collection.
The total level is A and the row number is "01"
Is the level row data that combines this current level and row No.
A “A01” is generated. Next, this level row data
"A01" and the name of the current row (record name of the totals record
"Total") to the current level A of the last item work memory
The corresponding position is set (step C6). The final
The item work memory has a total level as shown in FIG.
.. Corresponding to level A, B, C, D,.
It is configured to store the name, and when creating the configuration record
Work memory. Next, a circle is added to the management unit area of the current line.
It is checked whether or not it has been performed (step C7). I
Also, as shown in FIG. 3, the first line is not circled.
Attention is paid to the next row of table A, and the record name is set in that row.
It is checked whether or not it has been performed (step C8). here
When the setting is detected, the current line is updated and the next line
Specify (step C9). This gives two rows in table A
When the eye is specified, the process returns to step C2.
In this case, the aggregation level of the second row is B, and therefore, step C1
Proceeds to 0 and determines if the level of the specified line has exceeded the current level
Error check, and if it exceeds, note the last item
Clear all contents below the level of the specified line in the library
(Step C11). Now, the designated row level B is not the current level A
Since it is full, the process proceeds to step C12, where the designated line level is
Update the current level as the current level. Then, now
Generate level row data from level and row number of current row
(Step C13), the level row data and the name of the current row
Is the position corresponding to the current level of the last item work memory.
(Step C14). In this case, the level
Row data "B02", name "fixed cost" is now level B
It is set to the corresponding position (see FIG. 11B).
Next, connect the symbol (•) to the beginning of this level row data.
(Step C15), the combined data is stored in FIG.
Set as a child code of the configuration record as shown in
(Step C16). Here, the symbol (•) in Table A
When the line where the item code is not input is taken as the line of interest
This is set by the
This indicates that there is no response. Then, the step shown in FIG.
Proceed to step C17, and from the last item work memory (currently
Level row data stored at the level position of level +1)
Data at the beginning of this level row data.
(•) and combine this code with the parent
(Step C18). Now and now
Level is B, therefore the level of the last item work memory
To the level row data “A01” stored at the position of A
The combined code combining the symbols (•) becomes the parent code (Fig.
11 (A)). Here, the parent code level is A
If there is (step C19), the end flag of the configuration record
Is set to "1" (step C20). Next, parent
Read the name of the code from the last item work memory and configure
It is set as the name of the record (step C21).
In this way, child code as data for one record
".B02", parent code ".A01", end flag
When "1" and the name "total" are completed, this composition record is composed
The data is written to the file 7 (step C22). Next, returning to step C7 in FIG.
In the case, the management unit area of the current line is not circled
Therefore, the third line of the next line is specified (step C9).
Thereafter, the above-described steps C12 to C14 are executed.
As a result, the level row data is stored in the level C of the last item work memory.
"C03" and the name of the current line "Personnel cost" are set.
(See FIG. 11B). And this level row data
The join code with the symbol (•) is the child code of the constituent record.
(Steps C15 and C16). Next
Next, the position of level B in the last item work memory (up one level)
Level row data "B0" read from the
2) with a symbol (•) attached to the constituent record
Set as parent code (step C1 in FIG. 11)
7, C18). In this case, the last item corresponding to the parent code
The name "fixed cost" in the work memory is the name of the constituent record
(Step C21). Thus one record
The child code ".C03" and the parent code "."
B02 "and the name" fixed cost "
Is written to the configuration file 7 (step C22). Subsequently, at step C7 in FIG.
When it is detected that the logical unit area has a circle,
The process proceeds to step C23 in FIG.
Is set to "1". Then, type in the current line
From the beginning (step C)
24), combining the file symbol with the item code
Set the combined code as a child code of the constituent record
(Steps C25 and C26). In this case, the file symbol
Since "1" and item code "101" are combined, child code
-Is "1101". Next, the final item work memo
At the beginning of the level line data of the current level in the
Are combined (step C27), and this combined data is
Set as the parent code of the code (step C2)
8). Then, enter the name of this parent code "personnel expenses" in the last section.
Read from the work memory and use it as the name of the configuration record
(Step C29). (C) of FIG.
FIG. 14 shows a configuration record in the case where
1 ", parent code is" .C03 ", name is" personnel cost "
Is written to the configuration file 7
(Step C30). Next, another item code is added to the current line.
Check whether it has been entered (step C31), and
If so, the process returns to step C24 to specify the next item code.
Hereinafter, the above operation is repeated. As a result, the third line term
Configuration record when eye code "102" is specified
Indicates that the child code is "1102" and the parent code is ".C0
3 "and the name is" personnel expenses ". Thereafter, in step C31, there is no item code.
Is detected, the process proceeds to step C32, and another file is detected.
Check if the file name is defined in table A, but
In Table A, "Accounting FILE" is used as the next file name.
Is defined, the process proceeds to step C33, and the file
After adding “1” to the symbol and updating the value,
Return 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” and the parent code
-Is ".C03" and the name is "personnel cost". Now
If no other file is specified in step C32,
8, the process returns to step C8.
Until a configuration record is created and a configuration file is created
The process of writing data to the record 7 is repeated one record at a time. to this
Thus, a configuration file 7 as shown in FIG. 12 is created.
Refer to Table A in FIG. 3 for the contents of this configuration file 7.
It was generated by In this way, the configuration file 7 is created and the
Then, the table structure analysis unit 5 determines the join table of the B table, the B table condition
In addition to tables and summary item tables, create formula tables
To achieve. Among them, the table B connection table, the condition table,
The aggregation item table is a flowchart shown in FIGS. 13 and 14.
Created according to charts. Here, the table B connection table
(See FIG. 5 (B)) are "file name", "seek"
Original number SEQ ", condition item" item name ",
File symbol ". Table B condition table (Fig.
5 (C)) is “file name”, “column position of table B”
, “Condition value”, and “negative flag”. here
The “negative flag” is a condition value of “≠ (equal
) Is set. Ma
In addition, the tabulation item table (see FIG.
Name "," column item position of table B "," item name "of total item,
"Minus sign". Here, "
"In" is a total item such as "credit amount-".
Indicates that the eye name has a minus sign. First, the table structure analysis unit 5 sets the parameter file
Read parameter data of table B of designated form from file 4
(Step D1), specify the second column (item position B)
(Step D2). Next, the target file of the specified column
Name (step D3) and the file name
The file symbol corresponding to the table from the A table connection table
(Step D4). Then, in the next step D5,
The initial value of quenchal number SEQ was set to "1"
That is, the item name is set focusing on the condition item in the specified column.
Check if it is set (step D6), and if it is set
The condition item name is specified (step D9). This
File name, sequential number SE obtained
Generate a combined record from Q, condition item name and file symbol
After that (Step D10), the combined record is stored in Table B.
Set in the join table,
In order to avoid duplicate settings, the same record
Under the condition that the mode is not set (step D1
1) Set the generated join record in the B table join table.
(Step D12). Next, focusing on the condition value of the designated column, the condition
A value is specified (step D13), and
If “≠” is added (step D14), the negative flag
A lag is set (step D15). Like this
The obtained file name, column name indicating the item position of the specified column,
A condition record is generated from the condition value and the negative flag (step
(Step D16), set in the condition table of Table B (Step
D17). Here, multiple condition values are defined for the specified column.
If it is, to generate a condition record for each condition value,
In step D18, it is checked whether there is another condition value
If there is, return to step D13 and specify the next condition value.
To generate a condition record corresponding to the condition table
Set to. Then, in the next step D19, the designated column
Check if there are other condition items in the
Proceed to Step D20 and enter the sequential number SEQ
After adding “1” and updating the value, step D9
Return to and specify the next condition item.
Generate joined records or condition records to create
Set on the table. No other condition item is detected in step D19
Then, the process proceeds to step D21, where the condition item of the designated column is set.
Specified, and a minus sign is added to the condition item.
(Step D22), setting of minus sign flag
(Step D23). The file obtained in this way
File name, column item position of specified column, column name, summary item,
Generate summary item record from the minus sign flag
(Step D24), set in total item table
(Step D25). As described above, the definition contents of one column of the table B are analyzed.
Table B join table, condition table, and aggregate item for one column
After creating the eye table, proceed to step D7,
Check if data is specified in the next column, and if so,
The line is designated (step D8), and thereafter, step D3
And analyze the definition contents of table B line by line
Repeat the file creation operation. Next, the table structure analysis unit 5 performs
B table join table, B table condition table, total item table
After creating the file, analyze the parameter data in Table B and calculate
Create a formula table.
The formula is associated with the column item position. Next, the table structure
The structure analysis unit 5 converts the table A and table B parameter data into
Data in the print format memory
Set to 8. FIG. 15 shows the operation of analyzing the print format.
FIG. 16 is a flowchart, and FIG.
Table A shows the print format of Table A and Table B shows the print format
I have. First, the table structure analysis unit 5 stores the A table in the print format memory 8.
Specify Table A parameters to set the print format of
(Step E1), and designate the first line.
(Step E2). Next, the specified line in the record name
, The type of the ruled line is determined, and the determination result is represented by A
Set as a table print format (step E3) and
Determine the presence or absence of a call and set the determination result (Step
E4). And if there is another row (step E5),
Specify the next line (step E6), and then go to step E3
Return, the ruled line defined in the record name heading of Table A
Print format memory by analyzing line type and shaded line by line
8 is set as the print format of Table A. As a result,
In the print format memory 8 corresponding to the table A of FIG.
Such a table A print format is set. In this case, the line number
For the type of ruled line corresponding to "2", "bold line"
“Yes” is set. In this way, the A-table printing format
Once set, the table structure analysis unit 5 then changes the print format of table B
Set. First, specify the table B parameters and
(Step E7), the first column is designated (step E)
8). Next, paying attention to the item name heading,
Detect and set the dot position and field width (step
E9) Read out the heading name entered in the designated field
(Step E10), and further, determine whether or not to shade.
Then, the determination result is set (step E11). Next
, Read and set the print format in the designated field (step
E12). If there is another column (step E1)
3) Specify the next field (step E14), and
Return to Step E9, analyze the contents of Table B one by one and print
It is set in the formula memory 8 as a table B print format. This result
As a result, the print format memory 8 corresponding to the table B in FIG.
Is set as shown in Table B. When such a table creation process is completed, the table
The structure analysis unit 5 activates the expanded file creation unit 9. You
Then, the expanded file creation unit 9 is shown in FIG. 17 and FIG.
Create a deployment file according to the flowchart
Do. The expansion file 11 is the output data of the form.
Generated by the time the tally file 13 is created
File. Here, FIG. 19 shows that the source file is
1st to 4th records in the case of a plan file
Indicates a deployment record created according to the contents of
FIG. 20 shows the case where the source file is an accounting file.
Created according to the contents of the first to third records of
Shows the expanded record that was created. Furthermore, FIG.
Shows the contents of the expanded file 11 created by
You. Now, FIG.
Various tables with contents as shown in (D) are set.
Shall be. First, the expansion file creation unit 9 sets the parameters
Refer to the analysis table 6 and check the file
When you retrieve the file name (the first file name of the first record)
In both cases (step F1), the file symbol is specified.
(Step F2). Then, corresponding to this file name
Specify the source file (step F3)
Specify the first record in the file (step F
4). As a result, the first file in Table A is
The first record of the "plan file" defined in
Is determined. Next, from the A table join table, item names (initially
Item name of the first record) (Step F5),
Enter the item value corresponding to this item name in the specified file in the specified file.
Retrieve from code (initial first record) (step
F6). Then, link this item value with the specified file symbol.
(Step F7), the combined data is expanded
(Step F8). Now
As shown in FIG. 19, the budget starts from the first record of the plan file.
The item value “101” of the item is extracted, and the item value “1” is obtained.
01 "and the designated file symbol" 1 "are combined.
The combined data "1101" is the first record of the development record
This is the key to classification. Next, in the first record of this plan file,
The output target item is the extraction condition defined in Table B.
First, expand to find out if the record matches
The file creating unit 9 refers to the table B connection table, and
Check if the specified file symbol exists in the cable
(Step F9). Here, the condition item name is
If defined in the B table, the B table join table
File name, condition item name, file symbol, etc. are set
I have. Therefore, if the file symbol is not set
This means that the condition items are not defined in Table B (that is,
And the extraction condition of the output target item is not set
Case). Now, the specified file is
Since the file symbol “1” has been set, step F1
0, and the result is
Read condition item name and file name from merged record
Then, the item value (item data) corresponding to this condition item name is
Retrieve from specified record. In this case, the first record
Then, the item value “1” of the plan type is extracted. And the same
Table B shows the condition value corresponding to this item value in one file name
Search from the table (step F11) and find a matching article
It is checked whether there is a case value (step F12). I
Also, the item value of the plan type included in the first record
“1” exists in the first record in the table B condition table
Therefore, the process proceeds to the next step F13, and the corresponding B table
Whether the negative flag is set in the case table
Check that in this case the negation flag is set
Since there is no such condition, the process proceeds to step F19, where the matched condition value is set.
The corresponding position value (in this case, B) is stored in the B table condition table.
, And the value of the item position that matches this is calculated
Search in the table (step F20), and
Then, an item name is designated (step F21). Where tally
In the item table, item position B is set in the first record.
The item name “budget amount” corresponding to the
And the item value “800,00” corresponding to this item name
"0" from the designated record (step F2).
2) In the total item table corresponding to the item position B,
Check if the minus sign flag is set
(Step F23). Next, proceed to step F24.
Field value "800,00" extracted from the specified record.
"0" is added to the corresponding position "B" of the expanded record.
In the case of
Is negative, the minus sign flag is set.
Those that are not set are added up. This
The first record as shown in FIG.
Is done. Next, the same item position in the total item table
Check whether the other device (in this case, B) is set.
(Step F25), as shown in FIG.
For the accounting file, the item names "debit amount" and "credit
There are no two places in the summary item table corresponding to the amount
The same item positions D and E are set, but the
File does not have the same item position
Therefore, the process proceeds to step F14, and the item in the table B condition table is set.
Check if there is another condition value that matches the eye value. I
In the table B condition table, the condition value “1” is 1
Since only the line exists, the process proceeds to step F15 and the designated
Condition that the next record exists in the
Next, the next record is designated (step F18). Thus, the second record of the plan file
Is specified, and the process returns to step F5.
Repeated. In this case, the file symbol "1" and two records
Second record based on the budget item value “102” of the first node
Generated classification key "1102"
(Steps F5 to F8). Also, the first record
Similarly, the item value corresponding to the plan type in the second record
The condition value that matches this item value “1” is “1”
Negative flag that exists in the case table and correspondingly
Has not been set, the process proceeds to step F19, and B
Extract item position "B" from the table condition table,
Enter the value of item name “budget amount” corresponding to eye position “B”
From the second record of the file (step F20-
F22). In this case, as shown in FIG.
"200,000" from the item of budget amount in the second record of
Is extracted and the corresponding position of the expanded record (the second record)
The value is added to the value "B" (step F24). Next, the third record of the plan file is specified.
(Step F18), the development record (3 records
The classification key “1103” of the (d) is generated. This place
If the third record read from the plan file
The item value of the type is "2", and the condition value that matches this item value
Is set in the table B condition table.
The item value that matches the value is “C”. Therefore, plan
Of the "budget amount" extracted from the third record of the file
Item value "400,000" is expanded record (3 records
The total is added to the corresponding position “C” in the eye. Further, the fourth record of the plan file is designated.
Then, the expanded record (4
Record item 4) in the plan file
The item value "50,00" of the budget amount extracted from the code
“0” is added up. Note that this expansion record
The type key is “1104”. Hereafter, similarly,
Parameters while sequentially specifying files one by one.
Join table of table A and join table of table B in analysis table 6
File, condition table, and summary item table, and
Create file expansion records one by one
Good. It is to be noted that, in step F9, the table B
The specified file symbol is not set in
Unconditional items for which no conditional items are defined
Therefore, the process proceeds to step F28, where the table B condition table
In the summary item table directly, without referring to the definition contents
Search for the same file name as the specified file.
Return to Step F21. This operation is performed one record at a time.
As a result, all records in the specified file are specified, and
If no next record is detected in step F15, step F
Proceed to step 16 and define another file in the A table join table
Check if it is done. Now, A table join table
Within the accounting file is defined as another file
Return to the first step F1, and
Generation records corresponding to the total file sequentially
Perform processing. That is, the file name and the
Then, "account FILE" is taken out (step F1).
"2" is specified as the file symbol of
F2). Then, the source file corresponding to this file name
Specify the accounting file as the file (step F
3) Specify the first record (step F)
4). In this state, the “account” of the designated record
Item value “2111” of the “Course” and the file symbol “2”
Merge, classification key of expanded record in the first record
“22111” is generated (steps F5 to F8). So
Then, the process proceeds to step F9.
Since the file symbol "2" is stored in the
Item value corresponding to the item name "counter account" in the table join table
From the first record of the accounting file (step
F10). Now, from the first record of the accounting file
"0011" is extracted as the item value of "counter account"
Therefore, the condition value that matches this item value is
(Step F11). In this case,
Condition values are set in the fifth and sixth rows of the table, respectively.
Has been detected, a match is detected in step F12.
Proceeding to step F13, first focusing on the first fifth line,
Whether the negation flag is set at the corresponding position
Check Now, in the fifth row of the table B condition table,
Since the negative flag has been set, the process proceeds to step F14.
In the table B condition table, this item value "0011"
Check if there is another matching condition value.
The condition value "0011" exists in the sixth row of the table condition table
Therefore, the process returns to step F13. Now, corresponding to this condition value
The negation flag is not set at the position
Proceeding to step F19, corresponding to the table B condition table
Extract item position "E" and match this item position "E"
Specify the item name in the summary item table to be
F20, F21), in this case, 5 of the total item table
Item positions set in the second and sixth lines
The position corresponding to the first item position of “E”, that is, the fifth line
Specify the item name "Debit amount". And the accounting file
Item value "5" corresponding to the specified item name from the first record of the
"0000" as the first record for the accounting file
To the corresponding position "E" of the expanded record
(Steps F22 to F24). Then, the process proceeds to step F25.
In this case, in the summary item table, in the sixth row in addition to the fifth row
Since the same item position “E” also exists in step F21,
And returns to the corresponding item position in the summary item table.
Specify the item name "Credit Amount" and
Item values from the first record of the accounting file
(Step F22). In this case, one record of the accounting file
-"0" is taken out as the item value of the credit amount from
At the corresponding position "E" of the first record of the deployment record.
However, at this time, the sixth line of the summary item table
Minus sign is set because the minus sign is set.
Aggregation, that is, (previous debit amount "50,000"-now
Total calculation of credit amount "0" is performed (step)
F24). After that, steps F25, F14, F15
Goes to step F18 and proceeds to the second record of the accounting file.
Is specified. Thus, the second record of the accounting file is obtained.
The corresponding expanded record is generated.
In this case, the item value of the account is also "2111" and the first record
Similarly, the classification key is "22111". In addition, 2
The counter account of the code is also “0011”, which is the same as the item condition value.
The debit amount "0" is the item number in the development 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. Next, the third record of the accounting file is designated.
However, the item value of this counter account is “0010” and B
The corresponding condition value is set in the table condition table.
Since it has not been performed, the process goes from step F12 to step F26.
Proceed and deny corresponding to the specified file in the table B connection table
Check if the flag is set. Now, Table B
In the condition table, the fifth line corresponds to the accounting file.
Since the negative flag has been set in step F27,
To “D” at the position where the negative flag is set.
From the table B condition table,
Is searched from the total item table (step F2).
0), the item value “80” 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 F
From 25, the process returns to step F21, and the next item is
Item value "0" of name "Credit amount" is the position of the expanded record
It is negatively counted to "D". Hereafter, the next record is specified
Each time a mismatch is detected in step F12,
The same operation is repeated one record at a time. By this
Value of the condition item "counter account"
Unfolded records are sequentially generated. After that, all the records of the accounting file are designated.
At the end, no next record is detected in step F15.
Then, the process proceeds to step F16, and another table is stored in the A table connection table.
Check if the file exists.
Is detected, the process proceeds to step F17,
The record is edited. That is, the classification keys are the same
Extract each of the expanded records of
Together with each deployment record according to the classification key.
-Sort the nodes in ascending order. For example, as shown in FIG.
The development records of the first record and the second record are classified.
Since the keys are the same, they are put together in one development record.
The value of the item position “E” is “10,000”.
You. FIG. 21 shows the expanded file 1 created as described above.
1 is shown. In other words, plan files, accounting files
File 11 created according to the contents of the file
And the record structure is the items of A, B, C, D, E, F
, And the first item A is a classification key. In this way, the development file creation unit 9
After creating the open file 11, the development tally processing unit 12
Start. Then, the development tabulation processing unit 12
Create tally file 13 according to the chart
You. FIG. 23 shows the operation contents of the development tabulation processing unit 12.
It is a figure for explaining physically. The expanded file creation unit 9
Based on the contents of the development file 11 and the contents of the configuration file 7
File 13 according to the component development method
To achieve. First, the development tally processing unit 12 generates the development file 11
Read one record of data from the beginning of the
G1). Then, in the next step G2, whether the data is over or not
That is, all records from the top of the development file 11 are
Check whether it has been read. The first is the expanded file
When data for one record is read from the beginning of 11
Therefore, the process proceeds to the next step G3, and the configuration file 7
Search the contents of the
The held configuration record is searched from the configuration file 7. I
Also, as shown in FIG.
Is “1101”, and the configuration file 7
Has a child code that matches this as shown in FIG.
Therefore, this is detected in step G3 and step G4
To the record of the tally file 13 (tally record)
Generate That is, in the specific example of FIG.
The open tabulation processing unit 12 corresponds to the child code “1101”.
The parent code is read from the configuration file 7 and the parent code is read.
Do “· C03” is replaced by row No. “03” in table B and other “
C ", and the line No." 03 "
In the first item of the first record of
".C" is placed after it. And this child code
Is read from the configuration file 7, and the
Place in the next item in the code. Following this, the deployment file
Total data of data item "800,000" of file 11
It is arranged sequentially after the next item. This aggregation record is table A
Record name "person" defined in the row No. "03" of
Expenses ”and a totaling record of totaling level“ C ”.
Codes for tabulation defined in Table A corresponding to code names
This is the total of the data corresponding to the code. By this
The data of the first record of the tally file 13 is generated
Then, the generated record is written to the tally file 13.
However, at this time, the same classification key is already
If there is a record that has
And write it in the aggregation file 13
If no record exists, the record created this time
Mode is newly added to the tally file 13 (step G
5). Next, the corresponding record position in the configuration file 7
Check whether the end flag is set in the
(Step G6). Here, the end in the configuration file 7
The flag is "1" when the aggregation level of the parent code is "A"
When the end flag is "1",
Returning to step F3, if the end flag is not "1"
Generate new expansion record and write to expansion file 11
A start is performed (step G7). In this case, FIG.
A new expansion record as shown in FIG.
Return to file 11. In other words, it ’s the total record generated this time.
If a record name at a higher level is defined in table A,
If the summary result of the summary record generated this time is
In order to aggregate to the total record of the record name in the file,
Generate new expansion record and write to expansion file 11
Make a start. Here, the corresponding parent in the configuration file 7
Place the code ".C03" in the first item, followed by
By sequentially arranging the data read from the development file 11,
Is written to the development file 11. The figure
In the expanded file 11 indicated by 21, the broken line in the figure
The record you placed in shows this returned record.
You. Then, the process returns to step G3, and the configuration file
Searched all contents of 7 and found no corresponding record
The above operation is repeated until it is. As a result, step G
In 3 it is detected that there is no corresponding record, and it ends in a mismatch.
Then, the process returns to step G1, and the next
Read the code. Such an operation is performed by the expansion file 11
For all records in Then, step G1
, The end of data is detected, and the process proceeds to step G8, where
The contents of the first item of each record that constitutes the file 13
In ascending order according to. Sort in this way
Each record in the aggregated file is printed when the form is output
Sorted in order. In this way, the tally file 13 is created.
Then, the development tally processing unit 12 activates the print processing unit 14.
Let Then, the print processing unit 14 stores in the print format memory 8
Take in the contents and follow the printing format of Table A and Table B
Preparing the contents of the aggregation file 13 together with the form format
Print output from the printer 15. FIG. 24 shows the print processing unit 14.
5 is a flowchart showing the operation of the first embodiment. First, the printing process
The unit 14 is a table B print document set in the print format memory 8.
B mark to print the item heading according to the formula
The heading item names are sequentially extracted from the printing format and
Inserted into the corresponding column position of the mat,
It is arranged together with the ruled line in the page memory (not shown).
Step H1). And each column of this item heading section is shown in Table B
Modify based on the shading set in the print format
(Step H2). Next, the first of the A-table printing formats is designated (S
Step H3), type of ruled line of designated line number and shaded
The absence state is stored as a flag (step H).
4). Then, one record from the top of the tally file 13
Read (step H5), included in the record
(Step H6) and determine the aggregation level
To generate a ruled line format for consolidation (step H
7). That is, as shown in FIG.
The shape of the left end part is different according to A, B, C
This shape shows the upper and lower relationship of the aggregation level.
ing. In order to generate this ruled line format,
Data is input in advance from the input unit 1 and the print format
It is set in the memory 8 and based on this setting
The print processing unit 14 has a ruled rule in which the shape of the left end portion is different for each level.
Generate a line format. Also, each ruled line format
Are set in Table B printing format corresponding to the column numbers.
Specified based on the starting point position and field width
You. In this manner, the ruled line format for one record is obtained.
When the mat is generated, the print processing unit 14
Refer to the status flag of Table A print format stored in H4
The ruled line corresponding to this flag and the ruled line
Qualify the entire format and place it in page memory
(Step H7). Next, in step H5 described above,
Term corresponding to each field data in the calculated summary record
Placed in the eye column, at that time, set in each column of Table B print format
And the B mark
Based on the shaded state set in each column of the printing format,
The item field is modified (step H8). Then, the process returns to step H9, and
It checks whether there is another record in the file 13 and if so, the
Proceed to Step H10 and specify the next line number
Thereafter, the process returns to step H4, and the above operation is repeated.
And records the records in the aggregation file 13 one record at a time.
Printing. As a result, a form as shown in FIG. 2 is obtained.
It is. This form is shown in Tables A and B shown in FIGS.
The line item has a header
The record name of the record is printed and the column heading
The name of the tally record is printed on the tab.
The field data of the record matches the record name and item name.
It will be printed in response. Also aggregated by level
Arbitrarily specified ruled lines are bold lines
Printed and can be arbitrarily specified for each line or column item
Items are shaded and printed, and a part of the form is
It will be emphasized according to the image shown. As described above, in this embodiment, the general user
In order to obtain the desired form,
Simply define Table A and Table B according to the force image
Only, the records to be summarized
When read from a specified file and classified and aggregated,
In addition, the tally results are arranged in the order defined, and the tally
Printed in a hierarchical structure according to the level,
Some forms are emphasized and printed depending on the type and shading.
You. For this reason, even the business person in charge
Form can be easily obtained. In the above embodiment, a part of the form is emphasized.
Added thick line and thin line as rule line type
May be a dashed line, a double line, etc.
Not only for types and shading, but also for specifying print colors and
It may be specified. In addition, the above-described embodiment
Although the case of performing tallying has been described,
By setting only A to
Simply perform record extraction, array, in-item calculation, etc.
May be used. On the other hand, in the above embodiment, Table A and Table B
Are defined separately and independently.
You may make it define simultaneously on a screen. Ma
Further, in the above-described embodiment, the configuration is made by the heading of Table A.
Item code at any intersection on the matrix to be generated
Was entered, but entered the item name
Is also good. According to the present invention, when defining a summary form,
Is the first format with the form frame vertical image and the form
Separately from the second format based on the horizontal frame image
In the form, the definition of the form vertically and horizontally
Are defined separately and separately, so the entire form
Instead of defining them at the same time, the form should be
It can be defined while considering individually from the perspective of direction.
I will be able to. In particular, from the viewpoint of the vertical direction of the form
Defines the form of the vertical table frame as a summary form
In both cases, the aggregation unit in the vertical axis direction of the aggregation
Pay particular attention to each element of file and record extraction conditions
Can be defined while considering
Consideration from the perspective of the horizontal table frame as a summary form
Define the form and place it in the horizontal axis direction of the summary form
Focusing on the data items to be totaled for each
It can be defined while considering the elements, and it is
The data to be tabulated for each tabulation unit
How to extract, aggregate, and output files from
While checking the vertical format image of the summary form,
Simplify while checking the horizontal format image of the summary form
Definition can be set.

【図面の簡単な説明】 【図1】実施例に係るデータ処理装置のブロック構成
図。 【図2】帳票の印刷出力例を示した図。 【図3】A表に定義された内容を具体的に示した図。 【図4】B表に定義された内容を具体的に示した図。 【図5】図3、図4に示すA表、B表を解析することに
よって得られたA表結合テーブル、B表結合テーブル、
B表条件テーブル、B表集計項目テーブルの内容を具体
的に示したもので、(A)はA表結合テーブル、(B)
はB表結合テーブル、(C)はB表条件テーブル、
(D)はB表集計項目テーブルを示した図。 【図6】表構造解析部5の全体動作の概要を示したゼネ
ラルフローチャート。 【図7】図6で示したA表結合テーブル作成処理を詳細
に示したフローチャート。 【図8】図6で示した構成ファイル作成処理の一部を詳
細に示したフローチャート。 【図9】図8に続く構成ファイル作成処理の一部を示し
たフローチャート。 【図10】図8に続く構成ファイル作成処理の一部を示
したフローチャート。 【図11】構成ファイル作成処理の動作内容を具体的に
示した図で、(A)、(C)は構成レコード、(B)は
最終項目ワークメモリの内容を示した図。 【図12】構成ファイルの具体的な内容を示した図。 【図13】図6で示したB表に関するテーブル作成処理
の一部を示したフローチャート。 【図14】図13に続くテーブル作成処理の一部を示し
たフローチャート。 【図15】図6で示した印刷書式解析処理を詳細に示し
たフローチャート。 【図16】印刷書式メモリの内容を示し、(A)はB表
印刷書式、(B)はA表印刷書式を示した図。 【図17】展開ファイル作成処理の一部を示したフロー
チャート。 【図18】図17に続く展開ファイル作成処理の一部を
示したフローチャート。 【図19】計画ファイルのレコード内容に基づいて作成
された展開レコードを示した図。 【図20】会計ファイルのレコード内容に基づいて作成
された展開レコードを示した図。 【図21】展開ファイル11の内容を具体的に示した
図。 【図22】展開集計処理部12による展開集計処理を示
した図。 【図23】展開集計処理の動作内容を具体的に示した図
で、(A)は展開ファイル、構成ファイルから集計レコ
ードが生成される様子を示した図、(B)は新たに生成
される展開レコードを示した図。 【図24】印刷処理部14の動作を示したフローチャー
ト。 【図25】集計レベル別に生成される罫線フォーマット
を示した図。 【符号の説明】 1 入力部 2 パラメータ設定部 3 表示部 4 パラメータファイル 5 表構造解析部 6 パラメータ解析テーブル 7 構成ファイル 8 印刷書式メモリ 9 展開ファイル作成部 10 データファイル 11 展開ファイル 12 展開集計処理部 13 集計ファイル 14 印刷処理部 15 プリンタ
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a data processing device according to an embodiment. FIG. 2 is a diagram illustrating a print output example of a form. FIG. 3 is a diagram specifically showing the contents defined in Table A. FIG. 4 is a diagram specifically showing contents defined in a table B. FIG. 5 is a table joined table, a table joined table obtained by analyzing the tables A and B shown in FIGS. 3 and 4,
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. FIG. 6 is a general flowchart showing an outline of the entire operation of the table structure analysis unit 5; FIG. 7 is a flowchart showing details of the A-table connection table creation processing shown in FIG. 6; FIG. 8 is a flowchart showing in detail a part of the configuration file creation processing shown in FIG. 6; FIG. 9 is a flowchart showing a part of a configuration file creation process following FIG. 8; FIG. 10 is a flowchart showing a part of a configuration file creation process following FIG. 8; FIGS. 11A and 11C are diagrams specifically showing the operation contents of a configuration file creation process, wherein FIGS. 11A and 11C are configuration records, and FIG. 11B is a diagram showing the contents of a last item work memory; FIG. 12 is a diagram showing specific contents of a configuration file. FIG. 13 is a flowchart showing a part of a table creation process for the table B shown in FIG. 6; FIG. 14 is a flowchart showing a part of a table creation process following FIG. 13; FIG. 15 is a flowchart showing details of the print format analysis processing shown in FIG. 6; 16A and 16B show the contents of a print format memory, where FIG. 16A shows a table B print format and FIG. 16B shows a table A print format. FIG. 17 is a flowchart showing a part of a development file creation process. FIG. 18 is a flowchart showing a part of a development file creation process following FIG. 17; FIG. 19 is a diagram showing an expanded record created based on the record contents of a plan file. FIG. 20 is a diagram showing an expanded record created based on the record contents of an accounting file. FIG. 21 is a diagram specifically showing the contents of a development file 11; FIG. 22 is a diagram showing a development tabulation process performed by a development tabulation processing unit 12; 23A and 23B are diagrams specifically showing the operation contents of the development and aggregation processing, in which FIG. 23A illustrates a state in which a summary record is generated from a development file and a configuration file, and FIG. The figure which showed the expansion record. FIG. 24 is a flowchart showing the operation of the print processing unit 14; FIG. 25 is a diagram showing a ruled line format generated for each aggregation level. [Description of Signs] 1 input unit 2 parameter setting unit 3 display unit 4 parameter file 5 table structure analysis unit 6 parameter analysis table 7 configuration file 8 print format memory 9 expansion file creation unit 10 data file 11 expansion file 12 expansion aggregation processing unit 13 aggregation file 14 print processing unit 15 printer

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−62662(JP,A) 特開 平6−309199(JP,A) 中山陽一,事務用自動データ処理装置 ADPSの理論と技術,日経コンピュー タ,日本,1990年 1月 1日,No. 216,p.137−p.146 (58)調査した分野(Int.Cl.7,DB名) G06F 19/00 G06F 17/60 G06F 17/21 G06F 12/00 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-4-62662 (JP, A) JP-A-6-309199 (JP, A) Yoichi Nakayama, Automatic data processing equipment for office work ADPS theory and technology, Nikkei Computer, Japan, January 1, 1990, No. 216, p. 137-p. 146 (58) Field surveyed (Int.Cl. 7 , DB name) G06F 19/00 G06F 17/60 G06F 17/21 G06F 12/00

Claims (1)

(57)【特許請求の範囲】 【請求項1】集計レコードの集計レコード名が縦軸に複
数配置され、集計対象項目の集計項目名が横軸に複数配
置され、上記各集計レコード名の各集計項目名毎の集計
データを出力した集計帳票を作成して出力する帳票出力
装置であって、 上記集計帳票の縦方向の出力書式を定義するための帳票
枠縦イメージによる第1フォーマットを表示し、その第
1フォーマットをその縦方向の表枠位置や表枠サイズを
適宜変更することにより任意に定義すると共に、その第
1フォーマット上で縦軸を構成する集計レコードの集計
レコード名の行配置位置とその行の行修飾情報、読み込
み対象となるファイル名、上記集計レコード毎にその対
象ファイル内の各レコードの内で集計対象となるレコー
ドの抽出条件、を定義する第1定義手段と、 上記集計帳票の横方向の出力書式を定義するための帳票
枠横イメージによる第2フォーマットを表示し、その第
2フォーマットをその横方向の表枠位置や表枠サイズを
適宜変更することにより任意に定義すると共に、その第
2フォーマット上で横軸を構成する集計対象項目の集計
項目名の列配置位置とその列の列修飾情報、集計項目名
毎に上記集計対象として抽出されたレコードの内で集計
対象となるデータ項目名を定義する第2定義手段と、 上記第1定義手段で定義されたファイル名と集計レコー
ド毎の抽出条件とに基づいて、その対象となるファイル
から上記集計レコード毎に集計対象となるレコードを抽
出する抽出手段と、 上記第2定義手段で定義された集計項目毎のデータ項目
名に基づいて、上記抽出手段で各集計レコード毎に抽出
されたレコードの内で上記データ項目名のデータを読出
し、その読み出されたデータを上記各集計項目毎に集計
することで、上記集計項目毎にデータが集計された集計
レコードを上記各集計レコード名に対応する集計レコー
ド毎に作成する集計レコード作成手段と、 上記第1定義手段で定義された各集計レコード名をその
定義内容に従って集計帳票の縦軸方向に配置出力し、上
記第2定義手段で定義された各集計項目名をその定義内
容に従って集計帳票の横軸方向に配置出力すると共に、
上記集計レコード作成手段で作成された各集計レコード
に基づいて、その各集計レコード内の各集計項目の集計
データを上記各集計レコード名と各集計項目名とに対応
する出力位置に配置出力し、且つ上記第1定義手段で定
義された各行の行修飾情報に従って各行を修飾すると共
に上記第2定義手段で定義された各列の列修飾情報に従
って各列を修飾した集計帳票を作成する帳票作成手段
と、 を具備したことを特徴とする帳票出力装置。
(57) [Claims] [Claim 1] A plurality of tally record names of tally records are arranged on a vertical axis, and a plurality of tally item names of tally target items are arranged on a horizontal axis. A form output device for creating and outputting a tally form that outputs tally data for each tally item name, and displays a first format based on a form frame vertical image for defining a vertical output format of the tally form. , The first format is arbitrarily defined by appropriately changing the position of the table frame in the vertical direction and the size of the table frame, and the row arrangement position of the total record name of the total record constituting the vertical axis in the first format And a row qualifying information of the row, a file name to be read, and an extraction condition of a record to be tabulated among records in the target file for each of the tabulated records. Means for displaying a second format based on a form frame horizontal image for defining a horizontal output format of the tabulation form, and appropriately changing the second format in the horizontal table frame position and the table frame size. Arbitrarily defined in the second format, the column arrangement position of the aggregation item name of the aggregation target item constituting the horizontal axis in the second format, the column decoration information of the column, and the record extracted as the aggregation target for each aggregation item name Second definition means for defining a data item name to be tabulated in the file, and the file name and the extraction condition for each tabulated record defined by the first definition means. Extracting means for extracting a record to be tabulated for each record; and, based on the data item name for each tabulated item defined by the second defining means, the extracting means extracts each record. By reading the data of the above data item name from among the records extracted for each total, and summing the read data for each of the total items, a total record in which the data is totaled for each total item is obtained. A totaling record creating means for creating each totaling record corresponding to each of the totaling record names, and arranging and outputting each totaling record name defined by the first definition means in a vertical axis direction of the totaling form according to the definition contents; Each summary item name defined by the second definition means is arranged and output in the horizontal axis direction of the summary form according to the definition contents, and
Based on each of the tally records created by the tally record creation means, the tally data of each tally item in each tally record is arranged and output at an output position corresponding to each of the tally record names and tally item names, A form creation means for qualifying each row according to the row qualification information of each row defined by the first definition means and creating a totalized form in which each column is qualified according to the column qualification information of each column defined by the second definition means A form output device, comprising:
JP18217493A 1993-06-29 1993-06-29 Form output device Expired - Fee Related JP3489138B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18217493A JP3489138B2 (en) 1993-06-29 1993-06-29 Form output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18217493A JP3489138B2 (en) 1993-06-29 1993-06-29 Form output device

Publications (2)

Publication Number Publication Date
JPH0785175A JPH0785175A (en) 1995-03-31
JP3489138B2 true JP3489138B2 (en) 2004-01-19

Family

ID=16113642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18217493A Expired - Fee Related JP3489138B2 (en) 1993-06-29 1993-06-29 Form output device

Country Status (1)

Country Link
JP (1) JP3489138B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0462662A (en) * 1990-07-02 1992-02-27 Hitachi Inf Syst Ltd Processing defining method and business processing method
JP3551445B2 (en) * 1993-02-26 2004-08-04 カシオ計算機株式会社 Form processing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中山陽一,事務用自動データ処理装置ADPSの理論と技術,日経コンピュータ,日本,1990年 1月 1日,No.216,p.137−p.146

Also Published As

Publication number Publication date
JPH0785175A (en) 1995-03-31

Similar Documents

Publication Publication Date Title
CN102334098B (en) Multi-condition filtering of an interactive summary table
US6957191B1 (en) Automated financial scenario modeling and analysis tool having an intelligent graphical user interface
JP3108984B2 (en) Data processing device
JP2019531524A (en) Website construction system and method for website construction system
JPH05113879A (en) Program creation and data processing method
JP2017182474A (en) Diagram generating system, diagram processing system, diagram generating method and program
WO2001088703A1 (en) System for developing data collection software applications
JP2004005671A (en) Information processor, and information processing method
JP3489138B2 (en) Form output device
JP2001222613A (en) Method and device for displaying commercial area and medium
Lauesen et al. Virtual windows: Linking user tasks, data models, and interface design
JP3548866B2 (en) Data processing device
JPH09167191A (en) Data processor
JP3109324B2 (en) Data aggregation device
JP2017182764A (en) Diagram generating system, diagram processing system and program
JP3551445B2 (en) Form processing device
CA2361206C (en) Automated financial scenario modeling and analysis tool having an intelligent graphical user interface
JPH07141445A (en) Data processor
JP3482651B2 (en) Data processing device
JP2020009028A (en) Processing state confirmation support apparatus, processing state confirmation support method, and processing status confirmation support program
JP2004133833A (en) System, method and program for displaying balance sheet
JP3309164B2 (en) Print processing device
JP3109330B2 (en) Form output device
Dalgleish Beginning PivotTables in Excel 2007: From Novice to Professional
JPH06149781A (en) Data processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20071107

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081107

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees