JPH05334152A - Rapid access method for variable length message file - Google Patents

Rapid access method for variable length message file

Info

Publication number
JPH05334152A
JPH05334152A JP4136422A JP13642292A JPH05334152A JP H05334152 A JPH05334152 A JP H05334152A JP 4136422 A JP4136422 A JP 4136422A JP 13642292 A JP13642292 A JP 13642292A JP H05334152 A JPH05334152 A JP H05334152A
Authority
JP
Japan
Prior art keywords
message
file
variable
length
length message
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
JP4136422A
Other languages
Japanese (ja)
Inventor
Masao Wakimoto
正生 脇本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4136422A priority Critical patent/JPH05334152A/en
Publication of JPH05334152A publication Critical patent/JPH05334152A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the size of a message file and to attain rapid access by automatically forming a variable length message file, a rapid message control file for retrieval, or the like and rapidly extracting a message while referring to those formed files at the time of outputting the message. CONSTITUTION:This rapid access method is provided with a variable length message file 2 for storing a variable length message and a fixed length rapid message control file 3 for storing control data for retrieving the variable length message stored in the file 2 and constituted so that the variable length message is stored in the file 2 corresponding to the input of the variable length message and control data (e.g. message size and an offset from the head) for retrieving the variable length message are stored in the file 3.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、可変長メッセージファ
イルを高速にアクセスする高速アクセス方法に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a high speed access method for accessing a variable length message file at high speed.

【0002】[0002]

【従来の技術】従来、操作者がキーボードからコマンド
を入力し、これを受け取ったアプリケーションがコマン
ドを起動する。この際、コマンドにエラーなどが発生し
たとき、当該コマンドがメッセージの表示を依頼する。
このメッセージの表示依頼に対応して、固定長のメッセ
ージファイルから通知された番号に対応するメッセージ
を高速に取り出し、画面上に表示、例えばメッセージフ
ァイルが見つかりませんと表示するようにしていた。
2. Description of the Related Art Conventionally, an operator inputs a command from a keyboard, and an application that receives the command starts the command. At this time, when an error occurs in the command, the command requests the display of a message.
In response to the request to display this message, the message corresponding to the number notified from the fixed length message file is extracted at high speed and displayed on the screen, for example, the message file cannot be found.

【0003】[0003]

【発明が解決しようとする課題】上述したように、従来
はメッセージファイルを高速にアクセスしてメッセージ
を取り出すために、固定長メッセージファイルにメッセ
ージを順次格納し、番号によって高速に該当するメッセ
ージを取り出していたため、小さなメッセージであって
も固定長であるためにこの部分を有効に利用できないと
共に、ファイルサイズが大きくなり、プログラムサイズ
を意識して開発しているため、プログラムサイズに制限
がでてくるという問題があった。
As described above, conventionally, in order to access a message file at high speed and retrieve the message, the messages are sequentially stored in a fixed-length message file, and the corresponding message is retrieved at high speed by number. However, even if it is a small message, this part cannot be used effectively because it has a fixed length, and the file size becomes large, so the program size is limited because the program size is taken into consideration when developing. There was a problem.

【0004】本発明は、これらの問題を解決するため、
可変長メッセージファイルおよび検索のための高速メッ
セージ制御ファイルなどを自動作成し、出力時にこれら
を参照して高速にメッセージを取り出し、メッセージフ
ァイルのサイズを小さくすると共に高速アクセスを可能
にすることを目的としている。
The present invention solves these problems by
For the purpose of automatically creating variable-length message files and high-speed message control files for retrieval, referring to these at the time of output to extract messages at a high speed, reducing the size of the message file, and enabling high-speed access. There is.

【0005】[0005]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、メッセー
ジファイル作成コマンド1は、可変長メッセージファイ
ル2および高速メッセージ制御ファイル3などを自動作
成するものである。
[Means for Solving the Problems] Means for solving the problems will be described with reference to FIG. In FIG. 1, a message file creation command 1 is for automatically creating a variable length message file 2, a high speed message control file 3 and the like.

【0006】可変長メッセージファイル2は、メッセー
ジデータ(メッセージ番号および可変長メッセージ)を
格納するファイルである。高速メッセージ制御ファイル
3は、可変長メッセージファイル2に格納した可変長メ
ッセージを検索する制御データを格納する固定長のファ
イルである。
The variable length message file 2 is a file for storing message data (message number and variable length message). The high-speed message control file 3 is a fixed-length file that stores control data for searching the variable-length message stored in the variable-length message file 2.

【0007】メッセージデータ高速取出し部10は、高
速メッセージ制御ファイル3を参照して可変長メッセー
ジファイル2から高速に可変長メッセージを取出すもの
である。
The message data high-speed extraction unit 10 refers to the high-speed message control file 3 and extracts a variable-length message from the variable-length message file 2 at high speed.

【0008】[0008]

【作用】本発明は、図1に示すように、可変長メッセー
ジの入力に対応して、メッセージファイル作成コマンド
1が可変長メッセージを可変長メッセージファイル2に
格納すると共にこれを検索する制御データ(例えば可変
長メッセージのサイズ、先頭からのオフセット)を高速
メッセージ制御ファイル3に格納するようにしている。
According to the present invention, as shown in FIG. 1, the control data for storing the variable length message in the variable length message file 2 by the message file creation command 1 and searching the variable data ( For example, the size of the variable length message and the offset from the beginning) are stored in the high speed message control file 3.

【0009】また、複数の可変長メッセージファイル2
のマージ指示に対応して、メッセージファイル作成コマ
ンド1が高速メッセージ制御ファイル3をそれぞれ参照
して制御データを取り出し、これらの制御データをもと
に可変長メッセージファイル2からメッセージ番号を取
出して比較し、一致するものがあったときに、制御デー
タ中の情報をもとにいずれか1つ(例えば更新時刻の新
しいものを1つ)を選択し、他のものを削除(制御デー
タおよびメッセージデータを削除)し、マージするよう
にしている。
Also, a plurality of variable length message files 2
In response to the merge instruction of, the message file creation command 1 refers to the high speed message control file 3 to retrieve the control data, and based on these control data, retrieves the message number from the variable length message file 2 and compares them. , When there is a match, select one (for example, one with a new update time) based on the information in the control data, and delete the others (control data and message data are deleted). Deleted) and then merge.

【0010】また、メッセージの取り出し依頼に対応し
て、メッセージデータ高速取出し部10が高速メッセー
ジ制御ファイル3の固定長の該当する番号の位置から制
御データを取り出し、この制御データをもとに、可変長
メッセージファイル2の先頭から該当する位置の可変長
メッセージを取り出し、出力するようにしている。
Further, in response to a message retrieval request, the message data high-speed retrieval unit 10 retrieves control data from the position of the corresponding fixed-length number in the high-speed message control file 3, and based on this control data, the variable The variable length message at the corresponding position is extracted from the beginning of the long message file 2 and output.

【0011】従って、可変長メッセージファイル2およ
び高速メッセージ制御ファイル3を自動作成し、出力時
にこれらを参照して高速に可変長メッセージを取り出す
ことにより、メッセージファイルの無駄をなくししてサ
イズを小さくすることが可能となると共に高速に可変長
メッセージを取り出すことが可能となる。
Therefore, the variable-length message file 2 and the high-speed message control file 3 are automatically created, and the variable-length message is extracted at high speed by referring to them at the time of output, thereby eliminating the waste of the message file and reducing the size. It becomes possible to take out a variable length message at high speed.

【0012】[0012]

【実施例】次に、図1から図5を用いて本発明の実施例
の構成および動作を順次詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be sequentially described in detail with reference to FIGS.

【0013】図1は、本発明の1実施例構成図を示す。
図1の(a)は、ファイル作成時の構成図を示す。これ
は、オペレータがメッセージ番号、可変長メッセージを
入力したことに対応して、あるいはマージする複数の可
変長メッセージファイル2を指定したことに対応して、
可変長メッセージファイル2、高速メッセージ制御ファ
イル3、およびメッセージインクルードファイル4を自
動的に作成したり、マージしたりするときの構成図であ
って、通常メーカの開発者の操作に対応する処理であ
る。
FIG. 1 shows a block diagram of an embodiment of the present invention.
FIG. 1A shows a block diagram when a file is created. This corresponds to the operator inputting a message number, variable length message, or specifying a plurality of variable length message files 2 to be merged.
FIG. 4 is a configuration diagram for automatically creating or merging the variable length message file 2, the high speed message control file 3, and the message include file 4, and is a process corresponding to the operation of a developer of a normal maker. ..

【0014】図1の(a)において、メッセージファイ
ル作成コマンド1は、開発者がメッセージ番号、可変長
メッセージを入力したことに対応して、メッセージデー
タ(メッセージ番号および可変長メッセージ)を可変長
メッセージファイル2に詰めて格納すると共に、このと
きの先頭アドレスおよびメッセージデータのサイズ、更
新時刻からなる、固定長の制御データを高速メッセージ
制御ファイル3に格納したり、複数の可変長メッセージ
ファイル2をマージしたりするものである。
In FIG. 1 (a), the message file creation command 1 stores message data (message number and variable length message) in a variable length message in response to the developer inputting a message number and a variable length message. In addition to packing and storing in file 2, control data of fixed length consisting of the start address, message data size and update time at this time is stored in high speed message control file 3 or multiple variable length message files 2 are merged. It is something to do.

【0015】可変長メッセージファイル2は、メッセー
ジデータ(メッセージ番号および可変長メッセージ)を
詰めて格納するファイルである。例えば図示のように、 P0001 ファイルが見つかりません というメッセージデータを格納するファイルである。
The variable length message file 2 is a file in which message data (message number and variable length message) are packed and stored. For example, as shown in the figure, it is a file that stores message data that the P0001 file cannot be found.

【0016】高速メッセージ制御ファイル3は、可変長
メッセージファイル2から該当するメッセージデータを
高速に取り出すためのものであって、固定長の制御デー
タを詰めて格納したものである。ここで、固定長の制御
データは、図2の(b)に示すように、例えば ・メッセージデータのサイズ(バイト数) ・可変長メッセージファイル2の先頭からのオフセット ・メッセージデータを更新した更新時刻 などである。この制御データは、固定長であるため、高
速メッセージ制御ファイル3に先頭から詰めて格納して
おき、検索時に先頭から順序(番号)に対応する位置か
ら制御データを迅速に取り出すことができる。
The high-speed message control file 3 is for extracting corresponding message data from the variable-length message file 2 at high speed, and is a file in which fixed-length control data is packed and stored. Here, the fixed-length control data is, for example, as shown in FIG. 2B: -the size of the message data (the number of bytes) -the offset from the beginning of the variable-length message file 2-the update time of updating the message data And so on. Since this control data has a fixed length, it can be stored in the high-speed message control file 3 from the beginning, and the control data can be quickly retrieved from the position corresponding to the order (number) from the beginning at the time of retrieval.

【0017】メッセージインクルードファイル4は、コ
ンパイルするときに便利なように、 ・メッセージ番号 ・シーケンシャルに付与した番号 ・可変長メッセージ ・その他 をまとめたものである。コンパイル時には、このメッセ
ージインクルードファイル4と各コマンドのソースを一
緒にコンパイルしてオブジェクトにし、他のオブジェク
トと併せてロードモジュールを生成する。
The message include file 4 is a collection of message numbers, sequentially assigned numbers, variable length messages, and others, which are convenient for compiling. At the time of compilation, the message include file 4 and the source of each command are compiled together into an object, and a load module is generated together with other objects.

【0018】図1の(b)は、メッセージ取出し時の構
成図を示す。これは、オペレータがディスプレイ5上で
キーボード6を操作してコマンドをアプリケーション7
に入力したとき、当該コマンド8を起動(実行)しよう
として、例えばファイルが見つからなかったとき、これ
に対応する番号をもとに、可変長メッセージファイル2
および高速メッセージ制御ファイル3(これらは実際に
はコンパイルしてロードモジュールになっているがここ
では模式的に表す)を参照してメッセージデータを取出
し、ディスプレイ5上に表示するときの構成図である。
FIG. 1B shows a block diagram when a message is fetched. This is because the operator operates the keyboard 6 on the display 5 to issue commands to the application 7
When the command 8 is input, the command 8 is tried to be started (executed), and when the file is not found, the variable length message file 2
3 is a configuration diagram when the message data is extracted with reference to the high-speed message control file 3 (these are actually compiled into load modules, but schematically shown here) and displayed on the display 5. ..

【0019】図1の(b)において、ディスプレイ5
は、各種メニューやデータを表示して会話しつつ処理を
行うためのものである。キーボード6は、各種データや
コマンドなどを入力するものである。
In FIG. 1B, the display 5
Is for displaying various menus and data and performing processing while talking. The keyboard 6 is used to input various data and commands.

【0020】アプリケーション(アプリケーションプロ
グラム)7は、キーボード6から入力されたコマンドな
どに対応して、各種処理を行う応用プログラムである。
コマンド8は、アプリケーション上で起動されたコマン
ドである。
The application (application program) 7 is an application program that performs various processes in response to commands input from the keyboard 6.
Command 8 is a command activated on the application.

【0021】メッセージ出力部9は、コマンド8からの
メッセージデータの出力依頼に対応して、メッセージデ
ータの取出しをメッセージデータ高速取出し部10に指
示するものである。
The message output unit 9 instructs the message data high-speed extraction unit 10 to take out the message data in response to the message data output request from the command 8.

【0022】メッセージデータ高速取出し部10は、高
速メッセージ制御ファイル3から取り出した制御データ
をもとに、可変長メッセージファイル2から該当するメ
ッセージデータを高速に取り出すものである。
The message data high-speed extraction section 10 extracts corresponding message data from the variable-length message file 2 at high speed based on the control data extracted from the high-speed message control file 3.

【0023】DOS11は、オペレーティングシステム
であって、全体を統括制御するものである。次に、図2
を用いて可変長メッセージファイル2、高速メッセージ
制御ファイル3、メッセージインクルードファイル4に
ついて説明する。
The DOS 11 is an operating system and controls the entire system. Next, FIG.
The variable length message file 2, the high speed message control file 3, and the message include file 4 will be described with reference to FIG.

【0024】図2の(a)は、可変長メッセージファイ
ルの形式例を示す。これは、可変長メッセージとして、 ・P0001 ファイルが見つかりません。
FIG. 2A shows an example of the format of a variable length message file. This is a variable length message: ・ P0001 file cannot be found.

【0025】・P0002 ファイルの形式が間違って
います。 ・P0003 ファイルを削除します。 などを詰めて格納したものである。例えば図中のP00
03のメッセージデータを取り出すとき、先頭からのO
F(オフセット)と、メッセージデータのLL(サイ
ズ)によって取り出す範囲を決める。このOF(オフセ
ット)とLL(サイズ)は、図2の(b)の高速メッセ
ージ制御ファイル3の固定長の制御データに図示のよう
に設定する。
-The format of the P0002 file is incorrect. -Delete the P0003 file. It is packed and stored. For example, P00 in the figure
When extracting the 03 message data, O from the beginning
The range to be taken out is determined by F (offset) and LL (size) of the message data. The OF (offset) and LL (size) are set in the fixed-length control data of the high-speed message control file 3 in FIG.

【0026】図2の(b)は、高速メッセージ制御ファ
イルの形式例を示す。これは、可変長メッセージファイ
ル2からメッセージデータを取り出すための制御データ
として、 ・LL:メッセージデータのサイズ(バイト数) ・OF:可変長メッセージファイル2の先頭からのオフ
セット ・TIME:メッセージデータを更新した更新時刻 などからなる固定長のデータを高速メッセージ制御ファ
イル3に格納する。固定長であるため、順番(番号)の
通知に対応して、先頭から該当する位置の制御データを
高速に取り出すことができる。そして、この取り出した
制御データをもとに、上述した可変長メッセージファイ
ル2の先頭からオフセットOFの位置を始点としてサイ
ズ(長さ)LL分のメッセージデータを迅速に取り出す
ことができる。
FIG. 2B shows a format example of the high speed message control file. This is the control data for extracting the message data from the variable length message file 2. LL: Message data size (number of bytes) OF: Offset from the beginning of variable length message file 2 TIME: Update message data The fixed-length data such as the updated time is stored in the high-speed message control file 3. Since the length is fixed, the control data at the corresponding position can be extracted at high speed from the beginning in response to the notification of the order (number). Then, based on the extracted control data, it is possible to quickly extract message data of size (length) LL from the beginning of the variable-length message file 2 starting from the position of the offset OF.

【0027】図2の(c)は、メッセージインクルード
ファイルの形式例を示す。これは、メッセージデータを
コンパイルし易い形式にまとめたものである。次に、図
3を用いて、図1の(a)の構成の動作を詳細に説明す
る。
FIG. 2C shows a format example of the message include file. This is a compilation of message data in a format that is easy to compile. Next, the operation of the configuration of FIG. 1A will be described in detail with reference to FIG.

【0028】図3において、(1)は、開発者が可変長
メッセージの作成を指示する。これは、開発者が例えば CRTMSGコマンド(作成) ・メッセージ番号P0002 ・可変長メッセージ を発行する。これを受け取った、図1の(a)のメッセ
ージファイル作成コマンド1がメッセージ番号と可変長
メッセージから以下のファイルを作成する。
In FIG. 3, at (1), the developer gives an instruction to create a variable length message. For this, the developer issues, for example, a CRTMSG command (creation) -message number P0002-variable length message. Upon receiving this, the message file creation command 1 in FIG. 1A creates the following file from the message number and the variable length message.

【0029】・可変長メッセージファイル ・高速メッセージ制御ファイル ・メッセージインクルードファイル ここで、図1の(a)の、、、の順序で詳細に
説明する。
Variable-length message file-High-speed message control file-Message include file Here, detailed description will be given in the order of ,,, in (a) of FIG.

【0030】図1の(a)のは、開発者がメッセージ
番号と可変長メッセージを入力し、ファイルの作成を指
示する。は、図2の(b)の高速メッセージ制御ファ
イル3に格納しようとする固定長の制御データに、メッ
セージデータのサイズや可変長メッセージファイル2の
先頭からのオフセット、更に更新時刻を設定し、当該高
速メッセージ制御ファイル3に詰めて格納する。
In FIG. 1A, the developer inputs a message number and a variable length message, and instructs the file creation. Sets the size of the message data, the offset from the beginning of the variable length message file 2, and the update time to the fixed length control data to be stored in the high speed message control file 3 of FIG. 2B. The high-speed message control file 3 is packed and stored.

【0031】は、メッセージ番号(例えばP000
2)と可変長メッセージ(例えば“ファイル形式が間違
っています”)を、図2の(a)の可変長メッセージフ
ァイル2に示すように詰めて格納する。
Is a message number (for example, P000)
2) and the variable length message (for example, “file format is wrong”) are packed and stored as shown in the variable length message file 2 of FIG.

【0032】は、メッセージデータをメッセージイン
クルードファイル4に追加する。以上によって、開発者
がメッセージ番号(例えばP0002)および可変長メ
ッセージ(例えば“ファイルの形式が間違っていま
す”)を入力してファイル作成を指示したことに対応し
て、メッセージファイル作成コマンド1が高速メッセー
ジ制御ファイル3、可変長メッセージファイル2、更に
メッセージインクルードファイル4を図2の(b)、
(a)、(c)に示すように自動的に作成する。
The message data is added to the message include file 4. As a result, the message file creation command 1 is faster in response to the developer instructing the file creation by inputting the message number (eg P0002) and variable length message (eg “file format is wrong”) The message control file 3, the variable length message file 2, and the message include file 4 are shown in FIG.
It is automatically created as shown in (a) and (c).

【0033】次に、図3において、(2)は、開発者が
複数の可変長メッセージファイル2のマージを指示す
る。これは、開発者が例えば CRTMSGコマンド(マージ) ・マージする複数の可変長メッセージファイル を発行する。これを受け取った、図1の(a)のメッセ
ージファイル作成コマンド1が可変長メッセージファイ
ル2のメッセージ番号を比較し、マージした以下のファ
イルを作成する。同一のメッセージ番号の場合には、高
速メッセージ制御ファイル3のTIMEから新しいもの
を使用する。
Next, in FIG. 3, at (2), the developer instructs to merge a plurality of variable length message files 2. It issues multiple variable length message files that the developer can merge, eg CRTMSG command (merge). Upon receiving this, the message file creation command 1 of FIG. 1A compares the message numbers of the variable length message file 2 and creates the following merged files. In the case of the same message number, a new one from the TIME of the high speed message control file 3 is used.

【0034】・可変長メッセージファイル ・高速メッセージ制御ファイル ・メッセージインクルードファイル ここで、図1の(a)の、、、の順序で詳細に
説明する。
Variable-length message file-High-speed message control file-Message include file Here, detailed description will be given in the order of ,,, in (a) of FIG.

【0035】図1の(a)のは、開発者がマージする
複数の可変長メッセージファイル2を指定し、マージを
指示する。は、図2の(b)のそれぞれの高速メッセ
ージ制御ファイル3から該当する制御データをそれぞれ
取り出す。
In FIG. 1A, the developer designates a plurality of variable length message files 2 to be merged and instructs the merge. Retrieves the corresponding control data from the respective high speed message control files 3 of FIG.

【0036】は、で取り出した制御データをもとに
可変長メッセージファイル2からメッセージ番号を取出
して比較し、一致するものがあったときに、ここでは制
御データ中の更新時刻の新しいものを残し、他のものを
削除し(メッセージデータおよび制御データの両者を削
除し)、残りのものを一体にマージする。
On the basis of the control data taken out in step 1, the message number is extracted from the variable length message file 2 and compared. If there is a match, the new update time in the control data is left here. , Delete others (delete both message data and control data) and merge the rest together.

【0037】は、同様に、メッセージインクルードフ
ァイル4からも該当するものを削除し、残りのものを一
体にマージする。以上によって、開発者が複数の可変長
メッセージファイル2を指定してマージを指示したこと
に対応して、メッセージファイル作成コマンド1が高速
メッセージ制御ファイル3、可変長メッセージファイル
2、更にメッセージインクルードファイル4を自動的に
メッセージ番号の重複するもののうち例えば更新時刻の
新しいものを残し他のものを削除し、一体にマージす
る。これにより、開発者がそれぞれ可変長メッセージフ
ァイル2、高速メッセージ制御ファイル3、メッセージ
インクルードファイル4を個別に作成しておき、コンパ
イルする段階になって、マージを行い、重複するメッセ
ージ番号のものを削除して一体にした可変長メッセージ
ファイル2、高速メッセージ制御ファイル3、メッセー
ジインクルードファイル4を自動作成することが可能と
なる。
Similarly, the corresponding one is deleted from the message include file 4 and the remaining ones are merged together. As described above, the message file creation command 1 corresponds to the high speed message control file 3, the variable length message file 2, and the message include file 4 in response to the developer designating a plurality of variable length message files 2 and instructing the merge. For example, among the duplicate message numbers, the one having a new update time is automatically retained and the other ones are deleted, and merged together. As a result, the developer individually creates the variable-length message file 2, the high-speed message control file 3, and the message include file 4, and at the stage of compiling, merges and deletes duplicate message numbers. Then, the variable length message file 2, the high speed message control file 3 and the message include file 4 which are integrated can be automatically created.

【0038】次に、図4を用いて、図1の(b)の構成
の動作を詳細に説明する。これは、ユーザが、コマンド
実行を指示し、エラー発生などしたことに対応して、こ
のエラー発生の番号をもとに可変長メッセージを取り出
し、表示するときの動作説明図である。
Next, the operation of the configuration shown in FIG. 1B will be described in detail with reference to FIG. This is an operation explanatory diagram when the user gives a command execution command and, in response to an error occurrence or the like, extracts and displays a variable length message based on the error occurrence number.

【0039】図4において、S1は、ユーザがアプリケ
ーション7のコマンド実行させる。これは、図1の
(b)で、ユーザがキーボード6からコマンド入力し、
アプリケーション7にコマンド実行させる(図1の
(b)の、)。
In FIG. 4, in S1, the user causes the application 7 to execute a command. In FIG. 1B, the user inputs a command from the keyboard 6,
The application 7 is caused to execute the command ((b) in FIG. 1).

【0040】S2は、コマンド実行時にエラーが発生
し、メッセージ番号を渡し、メッセージ出力をメッセー
ジ出力部9に依頼する(図1の(b)の)。S3は、
メッセージ出力部9がメッセージデータの取出し依頼
を、メッセージデータ高速取出し部3に行う(図1の
(b)の))。
In S2, an error occurs during command execution, the message number is passed, and the message output unit 9 is requested to output the message ((b) in FIG. 1). S3 is
The message output unit 9 requests the message data high-speed extraction unit 3 to take out the message data ((b) of FIG. 1).

【0041】S4は、メッセージデータ高速取出し部1
0が高速メッセージ制御ファイル3の該当する制御デー
タを取り出す(図1の(b)の)。S5は、可変長メ
ッセージファイル2からメッセージデータを取り出す
(図1の(b)の)。
S4 is the message data high-speed extraction section 1
0 retrieves the corresponding control data of the high speed message control file 3 ((b) of FIG. 1). In S5, the message data is extracted from the variable length message file 2 ((b) of FIG. 1).

【0042】S6は、メッセージ出力(画面表示)する
(図1の(b)の、)。例えばディスプレイ5上に P0002 ファイルの形式が間違っています を表示する。
In S6, a message is output (screen display) ((b) in FIG. 1). For example, the display indicates that the format of the P0002 file is incorrect.

【0043】以上によって、ユーザがコマンド入力して
実行させ、エラー発生時などに当該エラー発生に対応す
るメッセージ番号をもとに、高速メッセージ制御ファイ
ル3の先頭から該当する位置の制御データを高速に取出
し、この制御データ中のオフセットおよびサイズをもと
に可変長メッセージファイル2からメッセージデータを
高速に取出し、この取り出したメッセージデータを表示
する。
As described above, the user inputs and executes a command, and when an error occurs, the control data at the corresponding position from the beginning of the high speed message control file 3 is speeded up based on the message number corresponding to the error occurrence. The message data is taken out, the message data is taken out from the variable length message file 2 at high speed based on the offset and size in the control data, and the taken message data is displayed.

【0044】図5は、本発明のメッセージインクルード
ファイルの説明図を示す。メッセージインクルードファ
イル4は、コンパイルし易いように図2の(c)に示す
ように、配置したものである。このメッセージインクル
ードファイル4は、図示のように、各コマンドのソース
(C言語)と一緒にしてコンパイルし、オブジェクトを
生成する。これらコンパイルした複数のオブジェクトを
まとめロードモジュールを作成する。そして、このロー
ドモジュールを用い、上述した図4に記述したように、
ユーザがコマンド実行をアプリケーション7に指示した
ときに、エラー発生に対応して、当該エラー発生に対応
するメッセージ番号をもとに、図2の(c)のメッセー
ジインクルードファイルの先頭からこの指示されたメッ
セージ番号の位置から固定長の制御データを取出し、こ
の制御データをもとに可変長メッセージファイル2から
該当するメッセージデータ(例えば“P0002 ファ
イルの形式が間違っています”)をディスプレイ5上に
表示し、ユーザにエラー発生内容を判り易く知らせる。
FIG. 5 is an explanatory diagram of the message include file of the present invention. The message include file 4 is arranged as shown in FIG. 2C so as to be easily compiled. As shown in the figure, the message include file 4 is compiled with the source (C language) of each command to generate an object. A load module is created by combining these compiled multiple objects. Then, using this load module, as described in FIG. 4 above,
When the user instructs the application 7 to execute a command, in response to the error occurrence, this instruction is given from the beginning of the message include file of FIG. 2C based on the message number corresponding to the error occurrence. The control data of fixed length is taken out from the position of the message number, and based on this control data, the corresponding message data (eg "P0002 file format is wrong") from variable length message file 2 is displayed on the display 5. , Notify the user of the content of the error in an easy-to-understand manner.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
可変長メッセージファイル2および高速メッセージ制御
ファイル3を自動作成し、出力時にこれらを参照して高
速にメッセージを取り出す構成を採用しているため、メ
ッセージファイルの無駄をなくしてサイズを小さくする
ことができると共に、高速にメッセージデータ(メッセ
ージ番号および可変長メッセージ)を取り出して表示な
どすることができる。これらにより、 (1) 可変長メッセージファイル2にすることによ
り、メッセージファイルのサイズを小さくし、かつメッ
セージファイルのアクセスを高速化できる。
As described above, according to the present invention,
Since the variable length message file 2 and the high-speed message control file 3 are automatically created and the message is referred to at the time of output to extract the message at high speed, the message file can be eliminated and the size can be reduced. At the same time, the message data (message number and variable length message) can be extracted and displayed at high speed. With these, (1) By making the variable length message file 2, the size of the message file can be reduced and the access to the message file can be speeded up.

【0046】(2) メッセージファイル作成コマンド
1を作成したことにより、以下の効果が生じる。 (2−1) 可変長メッセージファイル2の自動作成が
できる。
(2) The following effects are produced by creating the message file creation command 1. (2-1) The variable length message file 2 can be automatically created.

【0047】(2−2) 高速メッセージ制御ファイル
3の自動作成ができる。 (2−3) 各コマンド用のメッセージインクルードフ
ァイル4の自動作成ができる。
(2-2) The high speed message control file 3 can be automatically created. (2-3) The message include file 4 for each command can be automatically created.

【0048】(2−4) 可変長メッセージファイル2
と可変長メッセージファイル2とのマージが容易とな
る。
(2-4) Variable length message file 2
And the variable length message file 2 can be easily merged.

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

【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】本発明のファイル例である。FIG. 2 is an example of a file of the present invention.

【図3】本発明のメッセージファイル作成コマンドの動
作説明図である。
FIG. 3 is an operation explanatory diagram of a message file creation command of the present invention.

【図4】本発明のメッセージ出力処理の動作説明図であ
る。
FIG. 4 is an operation explanatory diagram of a message output process of the present invention.

【図5】本発明のメッセージインクルードファイルの説
明図である。
FIG. 5 is an explanatory diagram of a message include file of the present invention.

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

1:メッセージファイル作成コマンド 2:可変長メッセージファイル 3:高速メッセージ制御ファイル 4:メッセージインクルードファイル 5:ディスプレイ 6:キーボード 7:アプリケーション(プログラム) 8:コマンド 9:メッセージ出力部 10:メッセージデータ高速取出し部 11:DOS 1: Message file creation command 2: Variable length message file 3: High-speed message control file 4: Message include file 5: Display 6: Keyboard 7: Application (program) 8: Command 9: Message output unit 10: High-speed message data extraction unit 11: DOS

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】可変長メッセージファイルを高速にアクセ
スする高速アクセス方法において、 可変長メッセージを格納する可変長メッセージファイル
(2)と、 この可変長メッセージファイル(2)に格納した可変長
メッセージを検索する制御データを格納する固定長の高
速メッセージ制御ファイル(3)とを備え、 可変長メッセージの入力に対応して、この可変長メッセ
ージを上記可変長メッセージファイル(2)に格納する
と共にこれを検索する制御データ(例えばメッセージの
サイズ、先頭からのオフセット)を上記高速メッセージ
制御ファイル(3)に格納するように構成したことを特
徴とする可変長メッセージファイルの高速アクセス方
法。
1. A high-speed access method for accessing a variable-length message file at high speed, wherein a variable-length message file (2) storing a variable-length message and a variable-length message stored in this variable-length message file (2) are searched. And a fixed-length high-speed message control file (3) for storing control data to store the variable-length message corresponding to the input of the variable-length message and storing the variable-length message in the variable-length message file (2). A high-speed access method for a variable-length message file, characterized in that the control data (eg, message size, offset from the beginning) to be stored is stored in the high-speed message control file (3).
【請求項2】可変長メッセージファイルを高速にアクセ
スする高速アクセス方法において、 メッセージデータ(メッセージ番号および可変長メッセ
ージ)を格納する可変長メッセージファイル(2)と、 この可変長メッセージファイル(2)に格納した可変長
メッセージを検索する制御データを格納する固定長の高
速メッセージ制御ファイル(3)とを備え、 複数の可変長メッセージファイル(2)のマージ指示に
対応して、上記高速メッセージ制御ファイル(3)をそ
れぞれ参照して制御データを取り出し、当該制御データ
をもとに上記可変長メッセージファイル(2)からメッ
セージ番号を取出して比較し、一致するものがあったと
きに、制御データ中の情報をもとにいずれか1つ(例え
ば更新時刻の新しいものを1つ)を選択し、他のものを
削除(制御データおよびメッセージデータを削除)し、
マージするように構成したことを特徴とする可変長メッ
セージファイルの高速アクセス方法。
2. A high-speed access method for accessing a variable-length message file at high speed, comprising a variable-length message file (2) for storing message data (message number and variable-length message) and a variable-length message file (2). A fixed-length high-speed message control file (3) for storing control data for searching the stored variable-length message is provided, and the high-speed message control file (3) is provided corresponding to a merge instruction of a plurality of variable-length message files (2). The control data is extracted by referring to each of 3), and the message number is extracted from the variable length message file (2) based on the control data and compared. If there is a match, the information in the control data Select any one (for example, one with a new update time) based on Delete an object and (delete control data and message data),
A high-speed access method for variable-length message files, which is configured to be merged.
【請求項3】可変長メッセージファイルを高速にアクセ
スする高速アクセス方法において、 可変長メッセージを格納する可変長メッセージファイル
(2)と、 この可変長メッセージファイル(1)に格納した可変長
メッセージを検索する制御データを格納する固定長の高
速メッセージ制御ファイル(3)とを備え、 メッセージの取り出し依頼に対応して、上記高速メッセ
ージ制御ファイル(3)の固定長の該当する順序の位置
から制御データを取り出し、この制御データをもとに、
上記可変長メッセージファイル(2)の先頭から該当す
る位置の可変長メッセージを取り出し、出力するように
構成したことを特徴とする可変長メッセージファイルの
高速アクセス方法。
3. A high-speed access method for accessing a variable-length message file at high speed, wherein a variable-length message file (2) storing a variable-length message and a variable-length message stored in this variable-length message file (1) are searched. And a fixed-length high-speed message control file (3) for storing control data to be stored, and the control data is sent from the fixed-length corresponding sequence position of the high-speed message control file (3) in response to a message retrieval request. Take out, based on this control data,
A high-speed access method for a variable-length message file, characterized in that a variable-length message at a corresponding position is extracted from the head of the variable-length message file (2) and output.
JP4136422A 1992-05-28 1992-05-28 Rapid access method for variable length message file Pending JPH05334152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4136422A JPH05334152A (en) 1992-05-28 1992-05-28 Rapid access method for variable length message file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4136422A JPH05334152A (en) 1992-05-28 1992-05-28 Rapid access method for variable length message file

Publications (1)

Publication Number Publication Date
JPH05334152A true JPH05334152A (en) 1993-12-17

Family

ID=15174788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4136422A Pending JPH05334152A (en) 1992-05-28 1992-05-28 Rapid access method for variable length message file

Country Status (1)

Country Link
JP (1) JPH05334152A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134609A (en) * 2007-11-30 2009-06-18 Seiko Epson Corp Variable length data storage device, variable length data storage method, variable length data reading method, and program for the same
JP2016173724A (en) * 2015-03-17 2016-09-29 京セラドキュメントソリューションズ株式会社 Information processing device, and information processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134609A (en) * 2007-11-30 2009-06-18 Seiko Epson Corp Variable length data storage device, variable length data storage method, variable length data reading method, and program for the same
JP2016173724A (en) * 2015-03-17 2016-09-29 京セラドキュメントソリューションズ株式会社 Information processing device, and information processing method

Similar Documents

Publication Publication Date Title
JP3123025B2 (en) Cut and paste filter in data processing system
JPH04342025A (en) Text managing and restoring system
JP2667352B2 (en) Data retrieval apparatus and method
JPH05334152A (en) Rapid access method for variable length message file
JP3594471B2 (en) Scenario display device and method
JPS63288357A (en) Data editing system
JPS61210415A (en) Crt key input operating device
JPH1115851A (en) Www page link control system and recording medium recording control processing program for the system
JPH04230517A (en) Hierarchical menu processor
JPH07219739A (en) Window management system for data analysis device
JP2507629B2 (en) Automatic wiring processing system
JPH0916381A (en) Program preparation and execution system
JPH0561662A (en) Method and device for controlling execution of program parts
JPH0750480B2 (en) Text data editing device
JPH10283231A (en) Data processor
JPH1097532A (en) Information processor and method
JPH05334325A (en) Document preparing system of data processor
JPH07182149A (en) Message display system
JPH01267749A (en) Garbage collection system for display list
JPH09282314A (en) Character input device
JPH0325665A (en) Document producing device
JPH0449421A (en) File editing system
JPH04167053A (en) Text editor
JPH04291449A (en) Scroll processing system for document editing device
JPH02115933A (en) Interactive rule preparing system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020416