JPH0926955A - Report format data conversion system - Google Patents

Report format data conversion system

Info

Publication number
JPH0926955A
JPH0926955A JP7177261A JP17726195A JPH0926955A JP H0926955 A JPH0926955 A JP H0926955A JP 7177261 A JP7177261 A JP 7177261A JP 17726195 A JP17726195 A JP 17726195A JP H0926955 A JPH0926955 A JP H0926955A
Authority
JP
Japan
Prior art keywords
data
report
code
common control
report format
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.)
Pending
Application number
JP7177261A
Other languages
Japanese (ja)
Inventor
Hiroshi Abukawa
博 虻川
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.)
NIPPON DENKI FIELD SERVICE
NEC Fielding Ltd
Original Assignee
NIPPON DENKI FIELD SERVICE
NEC Fielding 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 NIPPON DENKI FIELD SERVICE, NEC Fielding Ltd filed Critical NIPPON DENKI FIELD SERVICE
Priority to JP7177261A priority Critical patent/JPH0926955A/en
Publication of JPH0926955A publication Critical patent/JPH0926955A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To shorten report output time by shortening the transfer time of report format data from a host computer to a terminal computer. SOLUTION: The report format data are inputted from a report format file 51 in a report input means 41, common control data 20 are generated in a line feed part conversion means A and a report part conversion means B and they are outputted to a report format conversion file 52 in a conversion file output means 42. They are compressed and transferred in a report three- dimensional compression means C, returned to original in a report three- dimensional restoration means D on a terminal side and outputted to a report format conversion file 82. The common control data 20 are inputted in a conversion file input means 93, code conversion is performed in a KANJI (Chinese character) code conversion means 92 and the report format data are generated in the report format file 81 in a report format output means 91 and printed to a printer 11 in a report output means 10.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、レポート書式データ変
換システムに関し、特にホストコンピュータから端末コ
ンピュータ装置へのプリントにおけるレポート書式デー
タ変換システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a report format data conversion system, and more particularly to a report format data conversion system for printing from a host computer to a terminal computer.

【0002】[0002]

【従来の技術】従来、この種のレポート書式データ変換
方式は、たとえば特開平05−094416号公報のレ
ポートファイル配信システムに示されるように、ホスト
コンピュータから端末コンピュータへのプリントにおい
て、レポート出力の高速化を図る目的として用いられ
る。
2. Description of the Related Art Conventionally, this type of report format data conversion system has a high speed of report output when printing from a host computer to a terminal computer, as shown in the report file distribution system of Japanese Patent Laid-Open No. 05-094416. Used for the purpose of

【0003】図10は、従来のレポート書式データ変換
方式の一例を示すブロック図である。
FIG. 10 is a block diagram showing an example of a conventional report format data conversion method.

【0004】この従来例は、バッチ処理の入力ファイル
301,301aと、バッチプログラム302と、各端
末毎に処理結果のレポートイメージデータを格納する一
時レポートファイル303−1〜303−nと、一時レ
ポートファイル303−1〜303−nをファイル転送
可能なデータ形式に変換するファイル転送用変換プログ
ラム304と、転送ファイル305−1〜305−n
と、転送を受けたデータを格納するレポートファイル3
06と、レポートファイル306から指定されたバッチ
処理の結果を選択してプリンタから出力する印字プログ
ラム307と、レポート308とより構成される。
In this conventional example, batch processing input files 301 and 301a, a batch program 302, temporary report files 303-1 to 303-n for storing report image data of processing results for each terminal, and temporary reports. A file transfer conversion program 304 for converting the files 303-1 to 303-n into a data format capable of file transfer, and transfer files 305-1 to 305-n
And a report file 3 that stores the transferred data
06, a print program 307 for selecting the result of the designated batch processing from the report file 306 and outputting it from the printer, and a report 308.

【0005】次に、この従来例の動作を説明する。入力
ファイル301,301aをバッチプログラム302で
処理した結果は、各端末毎に分けて一時レポートファイ
ル303−1〜303−nに格納する。オフライン処理
中に一時レポートファイル303−1〜303−nをフ
ァイル転送用変換プログラム304によりファイル転送
可能なデータ形式に変換し、転送用ファイル305−1
〜305−nに格納する。オンライン処理の開始直前に
各端末に転送用ファイル305−1〜305−nを転送
し、レポートファイル306を作成する。オンライン処
理の運用開始後に、各端末では必要なときに印字プログ
ラム307を起動し、レポートファイル306から必要
なバッチ処理の処理結果のみをレポート308として出
力する。
Next, the operation of this conventional example will be described. The results of processing the input files 301 and 301a by the batch program 302 are stored in the temporary report files 303-1 to 303-n separately for each terminal. During the offline processing, the temporary report files 303-1 to 303-n are converted by the file transfer conversion program 304 into a data format capable of file transfer, and the transfer file 305-1
To 305-n. Immediately before the start of the online processing, the transfer files 305-1 to 305-n are transferred to each terminal and the report file 306 is created. After starting the operation of the online processing, the printing program 307 is started in each terminal when necessary, and only the processing result of the required batch processing is output from the report file 306 as the report 308.

【0006】[0006]

【発明が解決しようとする課題】この従来の特開平05
−094416号公報のレポートファイル配信システム
は、夜間バッチ処理のレポートをオンライン処理の開始
前に各端末へ転送することにより、同一回線上でオンラ
インとの競合を避けてレポート出力時間を短縮してい
る。そのため、オンライン中のバッチ処理で生成したレ
ポートを出力する場合、効果が出ない問題があった。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
The report file delivery system of Japanese Patent No. 094416 transfers the nighttime batch processing report to each terminal before starting the online processing, thereby avoiding the competition with the online on the same line and shortening the report output time. . Therefore, when outputting the report generated by the online batch processing, there is a problem that the effect does not appear.

【0007】また、従来の特開平05−094416号
公報のレポートファイル配信システムは、書式情報を含
んだ多量のデータをそのまま形式で転送したしているた
め、転送時間や回線費用の面で問題があった。
Further, since the conventional report file distribution system of Japanese Patent Laid-Open No. 05-094416 transfers a large amount of data including format information as it is, it causes a problem in terms of transfer time and line cost. there were.

【0008】[0008]

【課題を解決するための手段】本発明のレポート書式デ
ータ変換システムは、レポート書式データをレポート書
式ファイルから入力するレポート書式入力手段、レポー
ト書式データの改行情報を共通制御データの改行情報部
に変換する改行部変換手段、レポート書式データのレポ
ート情報を共通制御データのレポート情報部に変換する
レポート部変換手段、共通制御データを第1のレポート
書式変換ファイルに出力する変換ファイル出力手段を有
するレポート変換手段と、前記第1のレポート書式変換
ファイルの共通制御データを入力し、三次元方向に圧縮
して圧縮データを出力するレポート三次元圧縮手段と、
前記圧縮データをデータ受信手段から入力し、基の共通
制御データに戻して第2のレポート書式変換ファイルに
出力するレポート三次元復元手段と、前記第2のレポー
ト書式変換ファイルの共通制御データを入力する変換フ
ァイル入力手段、端末コンピュータ用に漢字コードを変
換する漢字コード変換手段、共通制御データからレポー
ト書式データを生成するレポート書式出力手段を有する
レポート生成手段とを具備することを特徴とする。
A report format data conversion system of the present invention is a report format input means for inputting report format data from a report format file, and converts line feed information of report format data into a line feed information section of common control data. Report conversion having a line feed section conversion means, a report section conversion means for converting report information of report format data into a report information section of common control data, and a conversion file output means for outputting common control data to a first report format conversion file Means, and report three-dimensional compression means for inputting the common control data of the first report format conversion file, compressing in the three-dimensional direction, and outputting compressed data.
Inputting the compressed data from the data receiving means, returning to the common control data of the original and outputting to the second report format conversion file, and the common control data of the second report format conversion file. And a report generating means having a report format output means for generating report format data from the common control data.

【0009】[0009]

【実施例】次に、本発明について図面を参照して説明す
る。
Next, the present invention will be described with reference to the drawings.

【0010】図1は、本発明の一実施例を示す構成図で
ある。また、図2は、共通制御データ20を示すレイア
ウト図である。図1において、ホストコンピュータ1
は、レポート内容をデータ化したレポート書式データを
レポート書式ファイル51から入力するレポート書式入
力手段41、レポート書式データで改行または、改ペー
ジを制御する改行情報を共通制御データ20の改行情報
部202に変換する改行部変換手段A、レポート書式デ
ータでレポート内容を示すレポート情報を共通制御デー
タ20のレポート情報部201に変換するレポート部変
換手段B、共通制御データ20をレポート書式変換ファ
イル52に出力する変換ファイル出力手段42を有する
レポート変換手段4と、レポート書式データが格納され
ているレポート書式ファイル51、共通制御データ20
を格納するレポート書式変換ファイル52を有する磁気
ディスク装置5と、共通制御データ20を三次元方向か
ら圧縮するレポート三次元圧縮手段Cとより構成され
る。また、端末コンピュータ2は、レポート三次元圧縮
手段Cによって圧縮した共通制御データ20を基に戻し
てレポート書式変換ファイル82に出力するレポート三
次元復元手段Dと、共通制御データ20を格納するレポ
ート書式変換ファイル82、レポート書式データを格納
するレポート書式ファイル81を有する磁気ディスク装
置8と、共通制御データ20をレポート書式変換ファイ
ル82から入力するレポート変換ファイル入力手段9
3、共通制御データ20を入力してレポートデータ20
3の漢字情報を端末コンピュータ用に変換する漢字コー
ド変換手段92、共通制御データ20からレポート書式
データを生成するレポート書式出力手段91を有するレ
ポート生成手段9と、圧縮データを端末コンピュータ2
へ転送するデータ転送手段6と、圧縮データをホストコ
ンピュータより受信するデータ受信手段7と、レポート
書式ファイル81からレポート書式データを入力してプ
リンタ装置11に出力するレポート出力手段10と、プ
リンタ装置11とより構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a layout diagram showing the common control data 20. In FIG. 1, a host computer 1
Is a report format input means 41 for inputting report format data in which the report contents are converted into data from the report format file 51, and a line feed or line feed information for controlling a page break in the report format data in the line feed information section 202 of the common control data 20. A line feed conversion unit A for conversion, a report section conversion unit B for converting report information indicating report contents in the report format data into the report information section 201 of the common control data 20, and the common control data 20 are output to the report format conversion file 52. Report conversion means 4 having conversion file output means 42, report format file 51 storing report format data, common control data 20
Is composed of a magnetic disk device 5 having a report format conversion file 52 for storing the report format, and a report three-dimensional compression means C for compressing the common control data 20 from the three-dimensional direction. Further, the terminal computer 2 returns the common control data 20 compressed by the report three-dimensional compression means C to the report format conversion file 82 and outputs it to the report format conversion file 82, and the report format for storing the common control data 20. A conversion file 82, a magnetic disk device 8 having a report format file 81 for storing report format data, and a report conversion file input means 9 for inputting common control data 20 from the report format conversion file 82.
3. Input common control data 20 and report data 20
3 kanji code conversion means 92 for converting the kanji information for the terminal computer, report generation means 9 having report format output means 91 for generating report format data from the common control data 20, and compressed data for the terminal computer 2
Data transfer means 6 for transferring the compressed data from the host computer, report output means 10 for inputting the report format data from the report format file 81 and outputting it to the printer device 11, and the printer device 11. Composed of and.

【0011】次に、図1に示す実施例の動作について説
明する。レポート変換手段4は、レポート書式入力手段
41によりレポート書式ファイル51から1レコードの
レポート書式データを入力し、改行部変換手段Aとレポ
ート部変換手段Bにおいて共通制御データ20を生成し
て、変換ファイル出力手段42により共通制御データ2
0をレポート書式変換ファイル52に出力する。また、
レポート変換手段4は、レポート書式ファイル51の全
データ終了まで継続して行い、レポート三次元圧縮手段
Cに制御を渡す。レポート三次元圧縮手段Cは、レポー
ト書式変換ファイル52から共通制御データ20を入力
し、三次元方向に圧縮してデータ転送手段6に渡す。デ
ータ転送手段6は、圧縮データをデータ受信手段7に転
送し、データ受信手段7は、受信した圧縮データをレポ
ート三次元復元手段Dに渡す。レポート三次元復元手段
Dは、三次元方向に圧縮したデータを元の共通制御デー
タ20に戻してレポート書式変換ファイル82に出力し
て、レポート生成手段9に制御を渡す。レポート生成手
段9は、変換ファイル入力手段93によりレポート書式
変換ファイル82から1レコードの共通制御データ20
を入力し、漢字コード変換手段92においてレポートデ
ータ203の漢字コード変換を行い、レポート書式出力
手段91により共通制御データ20のレポートデータ2
03を、レポート書式データファイル81に出力する。
また、レポート生成手段9は、レポート書式変換ファイ
ル82の全データ終了まで継続して行い、レポート出力
手段10に制御を渡す。レポート出力手段10は、レポ
ート書式ファイル81よりレポート書式データを入力し
てプリンタ装置11に出力する。
Next, the operation of the embodiment shown in FIG. 1 will be described. The report conversion means 4 inputs the report format data of one record from the report format file 51 by the report format input means 41, generates the common control data 20 in the line feed part conversion means A and the report part conversion means B, and converts the converted file. Common control data 2 by output means 42
0 is output to the report format conversion file 52. Also,
The report conversion means 4 continuously performs until the end of all data in the report format file 51, and passes control to the report three-dimensional compression means C. The report three-dimensional compression means C inputs the common control data 20 from the report format conversion file 52, compresses it in the three-dimensional direction, and transfers it to the data transfer means 6. The data transfer unit 6 transfers the compressed data to the data receiving unit 7, and the data receiving unit 7 transfers the received compressed data to the report three-dimensional decompression unit D. The report three-dimensional restoring unit D returns the data compressed in the three-dimensional direction to the original common control data 20 and outputs it to the report format conversion file 82, and passes control to the report generating unit 9. The report generation means 9 uses the conversion file input means 93 to convert the report format conversion file 82 from one record of the common control data 20.
Input, the Kanji code conversion unit 92 converts the Kanji code of the report data 203, and the report format output unit 91 outputs the report data 2 of the common control data 20.
03 is output to the report format data file 81.
Further, the report generation means 9 continuously performs until the end of all data of the report format conversion file 82, and passes control to the report output means 10. The report output means 10 inputs report format data from the report format file 81 and outputs it to the printer device 11.

【0012】次に図3〜図7の流れ図と図9のデータ情
報図を使用して動作について説明する。
Next, the operation will be described with reference to the flow charts of FIGS. 3 to 7 and the data information chart of FIG.

【0013】図3の改行部変換手段Aを説明する流れ図
において、レポート書式データの改行情報から改ページ
命令を判断し(ステップA1)、改ページ命令の場合
は、改ページ前印字または、改ページ後印字を判断して
改行コード205に改ページコードを設定し、現在印字
位置をゼロクリアする(ステップA2)。改行命令の場
合は、改行前印字または、改行後印字を判断して改行コ
ード205に改行印字コードを設定し(ステップA
3)、レポート書式データの改行情報からページの先頭
からの改行数で印字する絶対改行、ページの終端に印字
するページ終端、文字データで改行数を示すシンボリッ
ク改行、前回の印字位置からの改行数で印字する相対改
行の種別を判断し(ステップA4,A6,A8)、絶対
改行の場合は(ステップA4)、絶対改行数から現在印
字位置を減算して前回印字位置からの相対数によって改
行する相対改行数を求める(ステップA5)。ページ終
端の場合は(ステップA6)、最大行数から現在位置を
減算して相対改行数を求める(ステップA7)。シンボ
リック改行の場合は(ステップA8)、文字データを数
値データに変換して相対改行数を求める(ステップA
9)。以外の相対改行命令は、そのまま相対改行数とす
る。相対改行数を改行数206に設定すると共に現在印
字位置に加算して(ステップA10)、レポート部変換
手段Bに制御を渡す。
In the flow chart for explaining the line feed portion conversion means A of FIG. 3, a page break command is judged from the line feed information of the report format data (step A1), and in the case of a page break command, printing before page break or page break After printing is judged, a page break code is set in the line feed code 205, and the current print position is cleared to zero (step A2). In the case of a line feed command, the print before line feed or the print after line feed is judged and the line feed print code is set in the line feed code 205 (step A
3), Absolute line feed printed from the line feed information of the report format data with the number of line feeds from the beginning of the page, page end printed at the end of the page, symbolic line feed indicating the number of line feeds in the character data, number of line feeds from the previous print position The type of relative line feed to be printed in is judged (steps A4, A6, A8), and in the case of absolute line feed (step A4), the current print position is subtracted from the absolute line feed number and line feed is performed based on the relative number from the previous print position. The number of relative line breaks is calculated (step A5). If it is the end of the page (step A6), the current position is subtracted from the maximum number of lines to obtain the number of relative line feeds (step A7). In the case of a symbolic line feed (step A8), the character data is converted into numerical data to obtain the relative line feed number (step A8).
9). Relative line feed commands other than are treated as the relative line feed number. The relative line feed number is set to the line feed number 206, added to the current print position (step A10), and the control is passed to the report conversion unit B.

【0014】図4のレポート部変換手段Bを説明する流
れ図において、レポート書式データの先頭に位置付け
(ステップB1)、全データ変換終了を判断し(ステッ
プB2)、未変換の場合は、文字の書体を示すフォン
ト、文字の大きさを示す文字ピッチ、文字の印字位置を
上下する印字位置上下、文字の間隔を示す文字移動の制
御コードを判断し(ステップB3)、制御コードの場合
は、フォント、文字ピッチ、印字位置上下、文字移動の
制御コードをJISコードに変換してレポートデータ2
03に格納する(ステップB4)。制御コード以外の場
合は、印字桁位置を示す桁位置付け、同一文字の繰り返
し印字を示す文字繰り返しの編集コードを判断し(ステ
ップB5)、編集コードの場合は、桁位置付け、文字繰
り返しの編集コードをプリント書式に戻してレポートデ
ータ203に格納する(ステップB6)。編集コード以
外の場合は、一文字をレポートデータ203に格納する
(ステップB7)。次に変換対象となるレポートデータ
に位置付けて(ステップB8)、全データ変換終了判断
(ステップB2)に戻る。全データ変換終了の場合は、
レポートデータ203に格納したデータ長をデータ長2
04に設定して(ステップB9)、変換ファイル出力手
段42に制御を渡す。
In the flow chart for explaining the report part converting means B of FIG. 4, the report format data is positioned at the beginning (step B1), it is judged whether all the data has been converted (step B2), and if not converted, the character typeface is used. , A character pitch indicating the size of the character, a print position up and down to move the print position of the character, and a character movement control code indicating the character interval (step B3). Report data 2 by converting the control code for character pitch, print position up / down, and character movement to JIS code
03 (step B4). If it is other than the control code, the digit position indicating the print digit position is determined, and the edit code of the character repeat indicating the repeated printing of the same character is judged (step B5). The print format is restored and stored in the report data 203 (step B6). If it is other than the edit code, one character is stored in the report data 203 (step B7). Next, the report data to be converted is positioned (step B8), and the process returns to the determination of completion of all data conversion (step B2). When all data conversion is completed,
The data length stored in the report data 203 is the data length 2
It is set to 04 (step B9), and the control is passed to the conversion file output means 42.

【0015】図5,図6のレポート三次元圧縮手段Cを
説明する流れ図と図9の圧縮内容21を示すデータ情報
図において、ページ設定インデックスm、1バイト設定
インデックスnに1を設定し、レポート書式変換ファイ
ル52から共通制御データ20を入力して、二次元の共
通制御テーブル(n,m)に入力データ終了または、共
通制御テーブル終了するまで1バイト単位にm=m+1
の位置に格納する際、共通制御データ20の改行コード
205が改ページコードの場合は、インデックスmをデ
ータ長テーブル(n)に格納し、n=n+1、m=1を
行う(ステップC1)。データ長を参照するインデック
スp、圧縮対象を抽出するインデックスr、圧縮データ
を格納するインデックスsに1を設定する(ステップC
2)。インデックスnとインデックスpを比較して共通
制御テーブルの全データ圧縮終了を判断し(ステップC
3)、圧縮対象データ有りの場合は、共通制御テーブル
(p,r)の内容が圧縮済が判断し(ステップC4)、
未圧縮の場合は、共通制御テーブル(p,r)の内容と
p=p+1、r=r+160毎にインデックスを動かし
た内容とで、項間、行間、項行間の同一文字数を数え、
最も圧縮できる圧縮内容21を生成して、インデックス
pとインデックスrを動かす前の状態に戻す(ステップ
C5)。今回の圧縮内容21と前回の圧縮内容21を比
較して再圧縮が可能か判断し(ステップC6)、再圧縮
可能な場合は、今回の圧縮内容21と前回の圧縮内容2
1の識別コード211とパラメータ212から、再生成
した圧縮内容21をs=s−前回圧縮内容データ長の圧
縮テーブル(s)から上書きし、s=s+今回圧縮内容
データ長を行う(ステップC7)。再圧縮不可能な場合
は、同一文字が3個以上、スペースが2個以上の最小圧
縮長を判断し(ステップC8)、最小圧縮長を満たして
いる場合は、今回の圧縮内容21を圧縮テーブル(s)
から設定し、s=s+今回圧縮内容データ長を行う(ス
テップC9)。最小圧縮長より小さい場合は、共通制御
テーブル(p,r)の内容が圧縮内容21の識別コード
211に含まれているか確認し、含まれる場合は、識別
コード211のエスケープコードを付加して共通制御デ
ータ(p,r)の内容を圧縮テーブル(s)から設定し
てs=s+2を行い、含まれない場合は、共通制御デー
タ(p,r)の内容をそのまま圧縮テーブル(s)に設
定してs=s+1を行う(ステップC10)。項間、行
間、項行間の中で、今回圧縮が行われた方向に圧縮テー
ブル(p,r)から圧縮した文字数分、圧縮済コードを
設定する(ステップC11)。インデックスrとデータ
長テーブル(p,r)の内容を比較して1ページ分の圧
縮完了を判断し(ステップC12)、1ページ分圧縮完
了の場合は、圧縮内容21の項終了である行数を(r−
1)÷160+1から求め、圧縮テーブル(s)から項
終了を設定し、s=s+2、p=p+1、r=1を行い
(ステップC13)、共通制御データ圧縮終了の判断に
戻る(ステップC3)。1ページ分圧縮未完了の場合
は、r=r+1を行って次の圧縮対象データに位置付け
(ステップC14)、共通制御データ圧縮終了の判断に
戻る(ステップC3)。共通制御テーブル(p,r)の
内容が圧縮済の場合は(ステップC4)、1ページ分の
圧縮完了の判断に制御を渡す(ステップC12)。共通
制御テーブルの全データ圧縮終了の場合は(ステップC
3)、圧縮テーブルの先頭から圧縮テーブル(s−1)
までの内容を、データ転送手段6に出力して(ステップ
C15)、レポート書式変換ファイル52の共通制御デ
ータ20を全データ入力完了か判断し(ステップC1
6)、入力データ有りの場合は、共通制御データ格納に
制御を渡す(ステップC1)。入力データ無しの場合
は、圧縮内容21の全終了をデータ転送手段6に出力し
て(ステップC17)、データ転送手段6に制御を渡
す。
In the flow charts for explaining the report three-dimensional compression means C of FIGS. 5 and 6 and the data information diagram showing the compression contents 21 of FIG. 9, the page setting index m and the byte setting index n are set to 1, and the report is set. The common control data 20 is input from the format conversion file 52, and the input data ends in the two-dimensional common control table (n, m), or m = m + 1 in 1-byte units until the end of the common control table.
When the line feed code 205 of the common control data 20 is a page feed code when stored at the position, the index m is stored in the data length table (n), and n = n + 1 and m = 1 are performed (step C1). The index p that refers to the data length, the index r that extracts the compression target, and the index s that stores the compressed data are set to 1 (step C
2). The index n and the index p are compared to determine the end of compression of all data in the common control table (step C
3) If there is data to be compressed, it is determined that the contents of the common control table (p, r) have been compressed (step C4),
In the case of uncompressed, the number of the same characters between terms, between rows, and between terms and rows is counted by the contents of the common control table (p, r) and the contents by moving the index for each p = p + 1, r = r + 160,
The compressed content 21 which can be compressed most is generated, and the state before moving the index p and the index r is returned (step C5). The current compression content 21 and the previous compression content 21 are compared to determine whether recompression is possible (step C6). If recompression is possible, the current compression content 21 and the previous compression content 2
From the identification code 211 of 1 and the parameter 212, the regenerated compression content 21 is overwritten from the compression table (s) of s = s-previous compression content data length, and s = s + current compression content data length is performed (step C7). . If recompression is not possible, the minimum compression length of three or more identical characters and two or more spaces is determined (step C8). If the minimum compression length is satisfied, the current compression content 21 is the compression table. (S)
And s = s + currently compressed content data length (step C9). If it is smaller than the minimum compression length, it is confirmed whether the content of the common control table (p, r) is included in the identification code 211 of the compressed content 21, and if it is included, the escape code of the identification code 211 is added to make it common. The content of the control data (p, r) is set from the compression table (s) and s = s + 2 is performed. If not included, the content of the common control data (p, r) is directly set in the compression table (s). Then, s = s + 1 is performed (step C10). The compressed code is set by the number of characters compressed from the compression table (p, r) in the direction in which compression is performed this time among the inter-row, inter-row, and inter-row spaces (step C11). The index r and the contents of the data length table (p, r) are compared to determine the completion of compression for one page (step C12). When the compression for one page is completed, the number of lines that is the end of the term of the compression content 21. To (r-
1) ÷ 160 + 1, set the term end from the compression table (s), perform s = s + 2, p = p + 1, r = 1 (step C13), and return to the determination of common control data compression end (step C3). . If one page of compression has not been completed, r = r + 1 is performed to position the next compression target data (step C14), and the process returns to the determination of the end of common control data compression (step C3). If the contents of the common control table (p, r) are already compressed (step C4), control is passed to the judgment of completion of compression of one page (step C12). If all the data in the common control table has been compressed (step C
3), compression table (s-1) from the beginning of the compression table
The contents up to are output to the data transfer means 6 (step C15), and it is judged whether all the common control data 20 of the report format conversion file 52 have been input (step C1).
6) If there is input data, control is passed to the common control data storage (step C1). If there is no input data, the entire end of the compressed contents 21 is output to the data transfer means 6 (step C17), and the control is passed to the data transfer means 6.

【0016】図7,図8のレポート三次元復元手段Dを
説明する流れ図と図9の圧縮内容21を示すデータ情報
図において、項間の圧縮回数を保持する復元回数テーブ
をゼロクリアし、復元データを格納するインデックスn
に1を設定、圧縮データを参照するインデックスm=圧
縮データ入力長+300を行い(ステップD1)、イン
デックスmと圧縮データ入力長を比較して圧縮データの
入力を判断し(ステップD2)、圧縮データ入力有りの
場合は、圧縮テーブル(圧縮データ入力長+1)から3
00バイトのデータを圧縮テーブルの先頭から複写、レ
ポート受信手段7から入力した圧縮データを圧縮テーブ
ル(301)から格納、m=m−圧縮データ入力長+1
を行う(ステップD3)。圧縮データ入力無しの場合
は、復元回数テーブル(n)がゼロ以外か判断し(ステ
ップD4)、ゼロ以外の場合は、復元回数テーブル
(n)から1を減算し、n=n+1で次の復元回数テー
ブルの内容に位置付けて(ステップD5)、復元回数の
判断に戻る(ステップD4)。ゼロの場合は、圧縮テー
ブル(m)が項終了か比較して1ページ分の復元完了を
判断し(ステップD6)、1ページ分復元未完了の場合
は、圧縮テーブル(m)が圧縮内容21の識別コード2
11に存在するか確認し(ステップD7)、識別コード
211以外の場合は、圧縮テーブル(m)の内容をその
まま復元テーブル(n)に複写し、n=n+1、m=m
+1を行って次の圧縮内容に位置付け(ステップD
8)、圧縮データの入力判断に戻る(ステップD2)。
識別コード211の場合は、圧縮テーブル(m)がエス
ケープコードか判断し(ステップD9)、エスケープコ
ードの場合は、圧縮テーブル(m+1)の内容を復元テ
ーブル(n)に複写しn=n+1、m=m+2を行って
次の圧縮内容に位置付け(ステップD10)、圧縮デー
タの入力判断に戻る(ステップD2)。エスケープコー
ド以外の場合は、圧縮内容21の識別コード211に従
って、パラメータ212の内容で数量指定が無いものを
1として項数、行数、桁数を編集、文字の無いものをス
ペースとして文字テーブルに抽出し、m=m+圧縮内容
データ長、桁方向の回数を数えるインデックスp、行方
向の回数を数えるインデックスrをゼロクリアする(ス
テップD11)。インデックスpと桁数を比較して桁方
向の繰り返し回数を判断し(ステップD12)、桁数未
満の場合は、インデックスrと行数を比較して行方向の
繰り返し回数を判断し(ステップD13)、行数未満の
場合は、復元テーブル(r×160+n)に文字テーブ
ル(p)の文字を複写、復元回数テーブル(r×160
+n)に項数を加算、r=r+1を行う(ステップD1
5)。行数以上の場合は、p=p+1、r=0、n=n
+1を行い(ステップD14)、行方向の繰り返し回数
判断に戻る(ステップD13)。桁数以上場合は、圧縮
データ入力判断に戻る(ステップD2)。1ページ分復
元完了の場合は、パラメータ212の行数を元に、復元
テーブル(01)から復元テーブル(行数×160)ま
での内容をレポート書式変換ファイル82に出力し、n
=1、m=m+2を行う(ステップD16)。圧縮テー
ブル(m)の内容が全終了か判断し(ステップD1
7)、全終了以外の場合は、圧縮データの入力判断に戻
る(ステップD2)。全終了の場合は、レポート生成手
段9に制御を渡す。
In the flow charts for explaining the report three-dimensional decompression means D of FIGS. 7 and 8 and the data information diagram showing the compression contents 21 of FIG. 9, the decompression number table that holds the compression frequency between terms is cleared to zero, and the decompressed data is restored. Index n to store
Is set to 1, the index m for referring to the compressed data = compressed data input length + 300 is performed (step D1), the input of the compressed data is judged by comparing the index m with the compressed data input length (step D2), and the compressed data If there is an input, 3 from the compression table (compressed data input length + 1)
00 bytes of data is copied from the beginning of the compression table, compressed data input from the report receiving means 7 is stored from the compression table (301), m = m-compressed data input length + 1
Is performed (step D3). When there is no compressed data input, it is judged whether the decompression number table (n) is other than zero (step D4). When it is not zero, 1 is subtracted from the decompression number table (n), and the next decompression is performed at n = n + 1. After positioning the contents of the number of times table (step D5), the process returns to the judgment of the number of times of restoration (step D4). If it is zero, the compression table (m) is compared with the term end and it is judged that the restoration of one page is completed (step D6). If the restoration of one page is not completed, the compression table (m) shows the compression contents 21. Identification code 2
11 (step D7), and if the code is other than the identification code 211, the contents of the compression table (m) are copied as they are to the decompression table (n), and n = n + 1, m = m.
+1 is performed and the next compressed content is positioned (step D
8) Then, the process returns to the input judgment of the compressed data (step D2).
In the case of the identification code 211, it is judged whether the compression table (m) is an escape code (step D9). In the case of the escape code, the contents of the compression table (m + 1) are copied to the decompression table (n), n = n + 1, m. = M + 2 to locate the next compressed content (step D10), and return to the input judgment of compressed data (step D2). In the case of other than the escape code, according to the identification code 211 of the compression content 21, the content of the parameter 212 that does not specify the quantity is set to 1, and the number of items, the number of lines, and the number of digits are edited, and the one without a character is set as a space in the character table. The data is extracted, and m = m + compressed content data length, index p for counting the number of digits and the index r for counting the number of rows are cleared to zero (step D11). The index p is compared with the number of digits to determine the number of repetitions in the digit direction (step D12). If the number of digits is less than the number of digits, the index r is compared with the number of rows to determine the number of repetitions in the row direction (step D13). , If the number of lines is less than the number of lines, the characters in the character table (p) are copied to the restoration table (r × 160 + n), and the restoration number table (r × 160)
The number of terms is added to + n), and r = r + 1 is performed (step D1
5). If the number of rows is greater than or equal to the number of rows, p = p + 1, r = 0, n = n
+1 is performed (step D14), and the process returns to the determination of the number of repetitions in the row direction (step D13). If the number of digits is greater than or equal to the number of digits, the process returns to the compressed data input determination (step D2). When the restoration for one page is completed, the contents from the restoration table (01) to the restoration table (number of rows × 160) are output to the report format conversion file 82 based on the number of rows of the parameter 212, and n
= 1 and m = m + 2 are performed (step D16). It is judged whether the contents of the compression table (m) are all completed (step D1).
7) If it is not all the end, the process returns to the judgment of input of compressed data (step D2). When the whole process is completed, control is passed to the report generating means 9.

【0017】[0017]

【発明の効果】以上説明したように本発明は、書式情報
を含んだ多量のレポート書式データを改行部変換手段と
レポート部変換手段において共通制御データに変換し、
レポート三次元圧縮手段において圧縮することによりレ
ポート書式データ量を削減したので、データ転送時間の
短縮や回線費用の削減が図れ、オンライン処理中でもレ
ポート出力時間を短縮でき、共通制御データへの変換に
より複数機種の端末コンピュータに出力できるという効
果を奏する。
As described above, according to the present invention, a large amount of report format data including format information is converted into common control data by the line feed part conversion means and the report part conversion means.
By reducing the amount of report format data by compressing with the report three-dimensional compression means, the data transfer time and line cost can be reduced, the report output time can be shortened even during online processing, and multiple data can be converted by common control data. The effect is that it can be output to a terminal computer of a model.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】図1中のレポート書式変換ファイルの共通制御
データを示すレイアウト図である。
FIG. 2 is a layout diagram showing common control data of a report format conversion file in FIG.

【図3】図1中の改行部変換手段の動作を説明するため
の流れ図である。
FIG. 3 is a flow chart for explaining the operation of a line feed portion converting means in FIG.

【図4】図1中のレポート部変換手段の動作を説明する
ための流れ図である。
FIG. 4 is a flowchart for explaining the operation of the report part converting means in FIG.

【図5】図1中のレポート三次元圧縮手段の動作を説明
するための流れ図である。
5 is a flow chart for explaining the operation of the report three-dimensional compression means in FIG. 1. FIG.

【図6】図1中のレポート三次元圧縮手段の動作を説明
するための流れ図である。
FIG. 6 is a flow chart for explaining the operation of the report three-dimensional compression means in FIG.

【図7】図1中のレポート三次元復元手段の動作を説明
するための流れ図である。
FIG. 7 is a flowchart for explaining the operation of the report three-dimensional restoring unit in FIG.

【図8】図1中のレポート三次元復元手段の動作を説明
するための流れ図である。
FIG. 8 is a flowchart for explaining the operation of the report three-dimensional restoration unit in FIG.

【図9】図6中のレポート三次元圧縮手段段の圧縮内容
を示すデータ情報図である。
9 is a data information diagram showing the compression contents of the report three-dimensional compression means stage in FIG.

【図10】従来のレポートファイル配信システムの一例
のブロック図である。
FIG. 10 is a block diagram of an example of a conventional report file delivery system.

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

1 ホストコンピュータ 2 端末コンピュータ 4 レポート変換手段 5 磁気ディスク装置 6 データ転送手段 7 データ受信手段 8 磁気ディスク装置 9 レポート生成手段 10 レポート出力手段 11 プリンタ装置 20 共通制御データ 21 圧縮内容 41 レポート書式入力手段 42 変換ファイル出力手段 51 レポート書式ファイル 52 レポート書式変換ファイル 81 レポート書式ファイル 82 レポート書式変換ファイル 91 レポート書式出力手段 92 漢字コード変換手段 93 変換ファイル入力手段 201 レポート情報部 202 改行情報部 203 レポートデータ 204 データ長 205 改行コード 206 改行数 211 識別コード 212 パラメータ A 改行部変換手段 B レポート部変換手段 C レポート三次元圧縮手段 D レポート三次元復元手段 1 host computer 2 terminal computer 4 report conversion means 5 magnetic disk device 6 data transfer means 7 data receiving means 8 magnetic disk device 9 report generation means 10 report output means 11 printer device 20 common control data 21 compression content 41 report format input means 42 Conversion file output means 51 Report format file 52 Report format conversion file 81 Report format file 82 Report format conversion file 91 Report format output means 92 Kanji code conversion means 93 Conversion file input means 201 Report information section 202 Line feed information section 203 Report data 204 data Length 205 Line feed code 206 Number of line feeds 211 Identification code 212 Parameter A Line feed conversion unit B Report conversion unit C Report three-dimensional compression unit D Port three-dimensional restoration means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 レポート書式データをレポート書式ファ
イルから入力するレポート書式入力手段、レポート書式
データの改行情報を共通制御データの改行情報部に変換
する改行部変換手段、レポート書式データのレポート情
報を共通制御データのレポート情報部に変換するレポー
ト部変換手段、共通制御データを第1のレポート書式変
換ファイルに出力する変換ファイル出力手段を有するレ
ポート変換手段と、 前記第1のレポート書式変換ファイルの共通制御データ
を入力し、三次元方向に圧縮して圧縮データを出力する
レポート三次元圧縮手段と、 前記圧縮データをデータ受信手段から入力し、基の共通
制御データに戻して第2のレポート書式変換ファイルに
出力するレポート三次元復元手段と、 前記第2のレポート書式変換ファイルの共通制御データ
を入力する変換ファイル入力手段、端末コンピュータ用
に漢字コードを変換する漢字コード変換手段、共通制御
データからレポート書式データを生成するレポート書式
出力手段を有するレポート生成手段とを具備することを
特徴とするレポート書式データ変換システム。
1. A report format input means for inputting report format data from a report format file, a newline conversion means for converting linefeed information of report format data to a newline information section of common control data, and report information of report format data is common. Report section converting means for converting control information into a report information section, report converting means having conversion file output means for outputting common control data to a first report format conversion file, and common control for the first report format conversion file A report three-dimensional compression means for inputting data, compressing in three-dimensional directions and outputting compressed data, and a second report format conversion file for inputting the compressed data from the data receiving means and returning to the common control data Of the report three-dimensional restoration means for outputting to the second report format conversion file A conversion file input means for inputting general control data, a kanji code conversion means for converting a kanji code for a terminal computer, and a report generation means having a report format output means for generating report format data from common control data. Characteristic report format data conversion system.
【請求項2】 前記改行部変換手段が、レポート書式デ
ータの改行情報から改ページ命令を判断し、共通制御デ
ータに改ページコードを設定する手段と、 改行コードを共通制御データに設定し、レポート書式デ
ータの改行情報から絶対改行を判断し、絶対改行数と現
在印字位置から相対改行数を求め、レポート書式データ
の改行情報からページ最終を判断し、最大行数と現在印
字位置から相対改行数を求め、レポート書式データの改
行情報からシンボリックを判断し、シンボリックコード
から相対改行数を求め、相対改行数を共通制御データに
設定する手段とを含む請求項1記載のレポート書式デー
タ変換システム。
2. The means for converting the line feed part to determine a page break command from the line feed information of the report format data and to set a page break code to the common control data, and to set the line feed code to the common control data to report Absolute line breaks are determined from the line break information of the format data, the relative line breaks are calculated from the absolute line breaks and the current print position, the page end is judged from the report line breaks, and the maximum line count and the relative line breaks from the current print position. The report format data conversion system according to claim 1, further comprising means for determining the symbolic from the line feed information of the report format data, obtaining the relative line feed number from the symbolic code, and setting the relative line feed number in the common control data.
【請求項3】 前記レポート部変換手段が、レポート書
式データのレポート情報全データ変換終了を判断し、未
変換の場合は、制御コードを判断し、フォント、文字ピ
ッチ、印字位置上下、移動の制御コードをJISコード
に変換し、共通制御データのレポートデータに格納する
手段と、 編集コードを判断し、桁位置付け、文字繰り返しの編集
コードをプリント書式に戻し、共通制御データのレポー
トデータに格納する手段と、 制御コードおよび編集コード以外のレポート情報を共通
制御データのレポートデータに複写する手段とを含む請
求項1記載のレポート書式データ変換システム。
3. The report section converting means judges completion of conversion of all report information of report format data, and if not converted, judges a control code and controls font, character pitch, print position up / down, movement. A means for converting the code into a JIS code and storing it in the report data of the common control data, and a means for judging the edit code, positioning the digit, returning the edit code of character repetition to the print format, and storing it in the report data of the common control data. The report format data conversion system according to claim 1, further comprising: and a means for copying the report information other than the control code and the edit code to the report data of the common control data.
【請求項4】 前記レポート三次元圧縮手段が、共通制
御テーブルに共通制御データを格納し、各インデックス
を初期化する手段と、 圧縮テーブル全データ終了を判断し、圧縮データ有の場
合は、現在位置のデータと項間、行間、項行間の同一文
字数から最も圧縮可能な圧縮データを生成し、今回の圧
縮データと前回の圧縮データから新たな圧縮データを生
成し、圧縮テーブルに上書きし、再生成不可能な圧縮デ
ータにおいて最小圧縮長を満たしているものを圧縮テー
ブルに設定し、圧縮不可能なデータにおいて圧縮制御コ
ードと同一な文字に対しエスケープコードを付加して圧
縮テーブルに設定し、圧縮した共通制御データに圧縮済
コードを設定する手段と、 1ページ分の圧縮完了を判断し、圧縮完了の場合は、項
終了データを圧縮テーブルに設定する手段と、 圧縮テーブル全データ圧縮済の場合は、圧縮データをデ
ータ転送手段に出力する手段と、 入力データの有無を判断し、入力データ有りの場合は、
共通制御データを格納し、入力データ無しの場合は、全
終了データをデータ転送手段に出力する手段とを含む請
求項1記載のレポート書式データ変換システム。
4. The report three-dimensional compression means stores common control data in a common control table, initializes each index, and judges the end of all data in the compression table. Generates the most compressible compressed data from the position data and the same number of characters between terms, between lines, and between terms and lines, generates new compressed data from the current compressed data and the previous compressed data, overwrites it on the compression table, and plays it. Set the compression table that cannot meet the minimum compression length in the compression table, and add the escape code to the same character as the compression control code in the uncompressed data and set it in the compression table. A means for setting a compressed code to the common control data that has been set, and whether the compression of one page has been completed. Means for setting, for a compression table all data Compressed includes means for outputting the compressed data to the data transfer means, to determine the presence or absence of the input data, if the there is an input data,
The report format data conversion system according to claim 1, further comprising means for storing common control data and outputting all end data to a data transfer means when there is no input data.
【請求項5】 前記レポート三次元復元手段が、各イン
デックスを初期化する手段と、 圧縮データの入力を判断し、圧縮データ入力有りの場合
は、圧縮データをレポート受信手段から入力する手段
と、 復元回数を判断し、ゼロ以外の場合は、復元回数テーブ
ルより1減算して次の復元回数判断に戻り、1ページ分
の復元完了を判断し、1ページ分未完了の場合は、圧縮
内容の識別コードを判断し、識別コード以外の場合は、
圧縮テーブルの内容を復元テーブルに複写し、識別コー
ドがエスケープコードの場合は、圧縮テーブルの次のデ
ータを復元テーブルに複写し、エスケープコード以外の
場合は、識別コードとパラメータから項数、行数、桁
数、文字データを抽出し、行方向、桁方向に繰り返し文
字データを復元テーブルに設定、項数を復元回数テーブ
ルに設定する手段と、 1ページ分復元完了の場合は、復元テーブルの内容をレ
ポート変換ファイルに出力する手段と、 圧縮データ全終了を判断し、圧縮データ有りの場合は、
圧縮データ入力判断に戻る手段とを含む請求項1記載の
レポート書式データ変換システム。
5. The report three-dimensional decompression means, means for initializing each index, means for judging input of compressed data, and if compressed data is input, means for inputting compressed data from the report receiving means, When the number of restorations is judged, if it is not zero, 1 is subtracted from the number of restorations table and the process returns to the judgment of the next number of restorations. It is judged that the restoration of one page is completed. Judge the identification code, if other than the identification code,
Copy the contents of the compression table to the decompression table. If the identification code is an escape code, copy the next data of the compression table to the decompression table. If it is not an escape code, use the identification code and parameters to determine the number of items and the number of lines. , The number of digits and the character data are extracted, and the character data that is repeated in the row direction and the column direction is set in the restoration table, and the number of items is set in the restoration number table. Is output to the report conversion file, and the end of all compressed data is judged. If there is compressed data,
The report format data conversion system according to claim 1, further comprising means for returning to the compressed data input determination.
JP7177261A 1995-07-13 1995-07-13 Report format data conversion system Pending JPH0926955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7177261A JPH0926955A (en) 1995-07-13 1995-07-13 Report format data conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7177261A JPH0926955A (en) 1995-07-13 1995-07-13 Report format data conversion system

Publications (1)

Publication Number Publication Date
JPH0926955A true JPH0926955A (en) 1997-01-28

Family

ID=16027979

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7177261A Pending JPH0926955A (en) 1995-07-13 1995-07-13 Report format data conversion system

Country Status (1)

Country Link
JP (1) JPH0926955A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341286B1 (en) 1998-09-30 2002-01-22 Bsp International Corporation Method and apparatus for generating and distributing reports

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341286B1 (en) 1998-09-30 2002-01-22 Bsp International Corporation Method and apparatus for generating and distributing reports

Similar Documents

Publication Publication Date Title
EP0585522B1 (en) Page printer having automatic font compression
US5490237A (en) Page printer having improved system for receiving and printing raster pixel image data from a host computer
AU577451B2 (en) Computer based drawing management system
US6020972A (en) System for performing collective symbol-based compression of a corpus of document images
EP0727733A1 (en) Printing system, printing apparatus, information processing apparatus and storage medium storing font download control program
TWI282529B (en) Split runlength encoding method and apparatus
JPH09130262A (en) Data compression extension device
JPH08279761A (en) Method and circuit for compression of digital data and for release of the compression
JPH0926955A (en) Report format data conversion system
JP3854790B2 (en) Image processing apparatus and method, and storage medium
JPH06344601A (en) Outputting apparatus and outputting method
CN116048486A (en) Processing method of configuration item data, electronic equipment and computer readable storage medium
EP0346388B1 (en) High speed raster image processor
US20030067463A1 (en) Page data processor, page data processing method and program
JPH0644013A (en) Method for compressing printing data
JP3218088B2 (en) Printer
JPH1173272A (en) Writing data compressing/expanding device and program recording medium thereof
JP3033731B2 (en) Ruled line processing device, ruled line processing method, and recording medium for recording program
JPH09270919A (en) Data compression method in page printer
JP2595902B2 (en) Disk map creation method
KR960005013B1 (en) Graphic emulation method in cvp
CN100559822C (en) Image processing apparatus
JP3006203B2 (en) Document processing device
JP3160446B2 (en) Recording device
CN117407455A (en) Material rendering processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990223