JPH0496149A - File compression processing method - Google Patents
File compression processing methodInfo
- Publication number
- JPH0496149A JPH0496149A JP2209276A JP20927690A JPH0496149A JP H0496149 A JPH0496149 A JP H0496149A JP 2209276 A JP2209276 A JP 2209276A JP 20927690 A JP20927690 A JP 20927690A JP H0496149 A JPH0496149 A JP H0496149A
- Authority
- JP
- Japan
- Prior art keywords
- file
- compression
- processing
- data
- name
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、情報処理装置において、分割順編成ファイル
形式で格納されたデータファイルを所定のタイミングで
圧縮処理するファイル圧縮処理方法に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a file compression processing method for compressing a data file stored in a divided sequential file format at a predetermined timing in an information processing apparatus.
(従来の技術)
情報処理装置が記憶装置内に保持するデータファイルの
中には、更新、その他の処理を行なう度に無駄な領域が
生じるものがある。その無駄な部分を除去するためには
、ファイル圧縮処理が行なわれる。(Prior Art) Among the data files that an information processing device holds in a storage device, there are some in which a wasted area is generated every time an update or other processing is performed. In order to remove the useless parts, file compression processing is performed.
第2図に、本発明の方法が適用される従来一般のシステ
ムのブロック図を示す。FIG. 2 shows a block diagram of a conventional general system to which the method of the present invention is applied.
図のシステムは、上位装置10と、通信回線11を介し
て接続された下位装置20から成る。The system shown in the figure consists of a higher-level device 10 and a lower-level device 20 connected via a communication line 11.
上位装置1oには、データベース12が接続されている
。下位装置20には、パスライン21を介して接続され
たプロセッサ22、キーボード23、磁気ディスク装置
24及びインタフェース(I/F)25が設けられてい
る。A database 12 is connected to the host device 1o. The lower device 20 is provided with a processor 22 , a keyboard 23 , a magnetic disk device 24 , and an interface (I/F) 25 connected via a path line 21 .
プロセッサ22は、下位装置20の動作を制御するため
の回路である。キーホード23は、オペレータが下位装
置20を制御するために操作する種々のキーを備えてい
る。インタフェース25は、通信回線11を介して、上
位装置10との間のデータの授受を制御する回路である
。磁気ディスク装置24には、この下位装置20で使用
するデータファイルを格納するための分割順編成ファイ
ル30が設けられている。The processor 22 is a circuit for controlling the operation of the lower-order device 20. The key fob 23 includes various keys operated by an operator to control the lower-level device 20. The interface 25 is a circuit that controls data exchange with the host device 10 via the communication line 11. The magnetic disk device 24 is provided with a divided sequential file 30 for storing data files used by the lower device 20.
この図中には、プロセッサ22が動作中に直接アクセス
する圧縮元ファイル31と、データファイルの圧縮作業
中に転記を行なう圧縮先ファイル32とが設けられてい
る。圧縮元ファイル31は即ち実働中のファイルで、圧
縮先ファイル32は圧縮処理時のみ作成される仮設ファ
イルである。In this figure, there are provided a compression source file 31 that is directly accessed by the processor 22 during operation, and a compression destination file 32 that is transcribed during data file compression work. The compression source file 31 is an active file, and the compression destination file 32 is a temporary file created only during compression processing.
例えば、金融機関の窓口端末や配信データ出力用プリン
タ等においては、上記分割順編成ファイル30に、画面
データや帳票データ等を格納しておき、オペレータがキ
ーボード23を操作して種々のデータを入力すると、そ
の際に得られた可変データと、分割順編成ファイル30
に格納された画面データ又は帳票データとが合成されて
、デイスプレィ26に表示又はプリンタ27に印字出力
される。For example, in a counter terminal of a financial institution or a printer for outputting distributed data, screen data, form data, etc. are stored in the division order organization file 30, and an operator operates the keyboard 23 to input various data. Then, the variable data obtained at that time and the divided sequential organization file 30
The screen data or form data stored in the image data are combined and displayed on the display 26 or printed out on the printer 27.
こうして使用される画面データや帳票データ等は、種々
の原因で、一部変更あるいは大幅な変更が行なわれる。The screen data, form data, etc. used in this way are partially or significantly changed for various reasons.
この場合、上位装置10のデータベース12中に格納さ
れた更新済みの画面データや帳票データが、所定のタイ
ミングで下位装置20に転送され、分割順編成ファイル
30中に格納される。In this case, the updated screen data and form data stored in the database 12 of the higher-level device 10 are transferred to the lower-level device 20 at a predetermined timing and stored in the division order organization file 30.
第3図に、分割順編成ファイルの構成とその圧縮処理動
作説明図を示す。FIG. 3 shows the structure of a divided sequential file and an explanatory diagram of its compression processing operation.
分割順編成ファイルは、図の上方に示すように、ディレ
クトリ部■と実体部■とから構成されている。ディレク
トリ部■には、所定のデータファイルA、B、Cの書込
み開始アドレスやデータ長等が格納されている。実体部
■には、ディレクトリ部■で定義されたデータファイル
A、B。As shown in the upper part of the figure, the division sequential organization file is composed of a directory part (2) and a substance part (2). The write start address, data length, etc. of predetermined data files A, B, and C are stored in the directory section (2). The entity part ■ contains data files A and B defined in the directory part ■.
Cが格納されている。C is stored.
ここで、例えばデータファイルA、B、Cをそれぞれ異
なる画面データとすると、当初これらの画面データは、
分割順編成ファイルの先頭から順に隙間なく書込まれて
いる。しかしながら、一部の画面データが更新等により
書替えられる際には、この分割順編成ファイルの最新に
書込んだデータファイルの次の部分から、新たなデータ
ファイルの書込み(ダウンロード)が行なわれる。そし
て、ディレクトリ部■の、該当するデータファイルの書
込み先頭アドレスを示すポインタを書替える。For example, if data files A, B, and C are different screen data, initially these screen data are
The files are written sequentially from the beginning of the divided sequential file without any gaps. However, when part of the screen data is rewritten due to updating or the like, a new data file is written (downloaded) from the next part of the most recently written data file in this divided sequential file. Then, the pointer indicating the write start address of the corresponding data file in the directory section (3) is rewritten.
分割順編成ファイルはこのように使用され、実際には、
画面データの更新によって新たな画面データがダウンロ
ードされると、その都度中間に空き領域が生じる。Split sequential files are used in this way, in practice:
Whenever new screen data is downloaded as a result of updating the screen data, an empty area is created in the middle.
即ち、図中、ハツチングを付したデータファイル部分■
、■、■の間に、ハツチングのない空き領域が発生する
。このような空き領域が多数発生した場合には、この分
割順編成ファイルに大きな無駄が生じ、更に新たな更新
を必要とする場合、最新に書込んだデータファイル以後
の空き領域が不足し、ダウンロードが不可能になる場合
がある。In other words, in the figure, the hatched data file part■
An empty area without hatching occurs between , ■, and ■. If a lot of free space like this occurs, there will be a large waste of this divided sequential file, and if a new update is required, there will be a shortage of free space after the most recently written data file, and the download will be delayed. may become impossible.
そこで、ファイルを有効利用するために、オペレータの
指示等により、ファイル圧縮処理が実行される。これに
は、図のように、圧縮元ファイル名”AAAAA”のフ
ァイル31のデータを順に読出して、圧縮元ファイル名
“AAAAAW”のファイル32に書込む処理を行なう
。この場合、空き領域を詰め、ディレクトリ部■のポイ
ンタを全て換算して更新し、実体部■の先頭から順に、
データファイル■、■、■が書込まれるようにする。Therefore, in order to make effective use of files, file compression processing is executed in response to an operator's instruction or the like. To do this, as shown in the figure, the data in the file 31 with the compression source file name "AAAAA" is sequentially read and written into the file 32 with the compression source file name "AAAAAW". In this case, fill up the free space, convert and update all the pointers in the directory part ■, and start from the beginning of the real part ■.
Enable data files ■, ■, ■ to be written.
(発明が解決しようとする課題)
ところが、上記のようなファイル圧縮処理は、他の処理
と比較して長時間を必要とする。従って、オペレータが
適当なタイミングでファイル圧線処理を起動させると、
その都度、長時間装置の運用が停止してしまう。従って
、例えば、装置の電源をオンした場合に、ファイル更新
が成されるシステムでは、ファイル更新がある度にファ
イル圧縮処理を強制的に実行させると、装置の運用を開
始するまでに相当の時間を必要とするといった難点があ
った。(Problems to be Solved by the Invention) However, the above file compression process requires a longer time than other processes. Therefore, if the operator starts file pressure line processing at an appropriate timing,
Each time, the operation of the device stops for a long time. Therefore, for example, in a system where files are updated when the device is powered on, if file compression processing is forcibly executed every time a file is updated, it will take a considerable amount of time before the device starts operating. The problem was that it required .
また、定期的な保守点検作業を行なう際にファイル圧縮
処理を実行させるようにしたシステムでは、作業ミス等
によってそのようなファイル圧縮処理の実行を怠ると、
ファイル更新時にファイルが満杯となって更新不能とな
ってしまう。これでは、装置の運用上、大きな支障をき
たす。In addition, in a system that performs file compression processing when performing periodic maintenance and inspection work, if such file compression processing is neglected due to a work error,
When updating a file, the file becomes full and cannot be updated. This poses a major problem in the operation of the device.
本発明は以上の点に着目してなされたもので、運用上の
障害を発生させることなく、所定のタイミングで、他の
処理を妨げずファイル圧縮処理を確実に自動的に実行す
ることのできるファイル圧縮処理方法を提供することを
目的とするものである。The present invention has been made with attention to the above points, and it is possible to reliably and automatically execute file compression processing at a predetermined timing without causing any operational failure and without interfering with other processing. The purpose is to provide a file compression processing method.
(課題を解決するための手段)
本発明の第1の方法は、上位装置のデータベースから所
定のデータファイルを読出して、所定のタイミングで分
割順編成ファイルにダウンロードすると共に、当該ダウ
ンロード終了後、最も優先度の低いタスクとして前記分
割順編成ファイルのファイル圧縮処理を実行することを
特徴とするものである。(Means for Solving the Problems) A first method of the present invention reads a predetermined data file from a database of a host device, downloads it to a division sequential organization file at a predetermined timing, and after the download is completed, the The present invention is characterized in that file compression processing of the divided sequential file is executed as a low priority task.
また、第2の方法は、実働中の圧縮元ファイルのデータ
を読出して仮設した圧縮先ファイルに書込むことにより
分割順編成ファイルの圧縮処理を完了後、前記圧縮元フ
ァイル名と前記圧縮元ファイル名とを交換する場合に、
何れか一方を第3のファイル名に変更し、その後、他方
及び一方の順に目的のファイル名に変更していき、前記
仮設した圧縮先ファイルを実働中のファイルと交換する
までの間、前記各ファイル名の変更過程毎に、当該過程
を識別するファイル書替中フラグを設定することを特徴
とするものである。In addition, in the second method, after completing the compression process of the split sequential file by reading the data of the compression source file that is currently in operation and writing it to a temporary compression destination file, the compression source file name and the compression source file are When exchanging names,
Change one of the file names to the third file name, then change the other file name to the desired file name in order, until the temporary compression destination file is replaced with the actual file. This method is characterized in that, for each process of changing a file name, a file rewriting flag is set to identify the process.
(作用)
本発明の方法においては、データファイルのダウンロー
ドをきっかけとしてファイル圧縮処理を起動する。尚、
このファイル圧縮処理は、最も優先度の低いタスクとし
て処理が起動される。従って、若し他の処理が要求され
た場合には、ファイル圧縮処理は中断し、結果として装
置の空き時間を利用して処理が進められることになる。(Function) In the method of the present invention, file compression processing is started when a data file is downloaded. still,
This file compression process is started as a task with the lowest priority. Therefore, if other processing is requested, the file compression processing will be interrupted, and as a result, the processing will proceed using the available time of the device.
尚、圧縮処理完了後は、圧縮先ファイルのファイル名を
、先に実働中の圧縮元ファイルのファイル名に変更する
必要があるため、その間の停電等により生じる障害発生
を防止すべく、ファイル名の変更過程を認識できるファ
イル書替中フラグを設定する。これにより、空き時間を
利用した長時間のファイル圧縮処理が可能となり、かつ
、作業がファイル名書替中にどこで中断しても、その中
断時点からファイル名の書替えを続行できる。In addition, after the compression process is completed, the file name of the compression destination file must be changed to the file name of the compression source file that is currently in operation. Set the file rewriting flag to recognize the change process. This makes it possible to perform file compression processing over a long period of time using free time, and even if work is interrupted at any point during file name rewriting, file name rewriting can be continued from the point of interruption.
(実施例) 以下、本発明を図の実施例を用いて詳細に説明する。(Example) Hereinafter, the present invention will be explained in detail using embodiments shown in the drawings.
第1図は、本発明のファイル圧縮処理動作を示すフロー
チャートである。FIG. 1 is a flowchart showing the file compression processing operation of the present invention.
本発明の方法は、既に第2図で示したような装置で実行
される。即ち、上位装置10のデータベース12から所
定のデータファイルを読出して、所定のタイミングで分
割順編成ファイル30にダウンロードし、そのダウンロ
ードによって生じる空き領域をなくすために、圧縮処理
を実行する。The method of the invention is carried out in a device such as that already shown in FIG. That is, a predetermined data file is read from the database 12 of the host device 10, downloaded to the division sequential organization file 30 at a predetermined timing, and compression processing is executed to eliminate the free space created by the download.
先ず、装置の電源がオンされると、装置の動作開始に当
たって、ファイルオーブン処理が行なわれる(ステップ
Sl)。このファイルオーブン処理は、本発明の第2の
方法に関わるため、後で詳述する。実質的には、このス
テップS1完了後、第2図に示したような磁気ディスク
装置24中の圧縮元ファイル31が、実働中のファイル
としてオーブンされる。First, when the power of the apparatus is turned on, a file oven process is performed to start the operation of the apparatus (step Sl). This file oven treatment is related to the second method of the present invention and will be described in detail later. Substantially, after this step S1 is completed, the compression source file 31 in the magnetic disk device 24 as shown in FIG. 2 is opened as an active file.
次に、ダウンロートが必要か否かが判断される(ステッ
プS2)。ダウンロードが不要な場合には、装置は通常
の処理にそのまま移行する。Next, it is determined whether download is necessary or not (step S2). If downloading is not necessary, the device simply proceeds to normal processing.
方、ダウンロードが必要な場合には、ステップS3にお
いて、ダウンロードによるファイル更新が行なわれる。On the other hand, if downloading is necessary, the file is updated by downloading in step S3.
これは、第2図に示した上位装置10が、データベース
12から所定のデータファイルを読出して下位装置2o
に転送し、該当する圧縮元ファイル31中に更新すべき
データファイルを格納することにより行なわれる。This is done by the higher-level device 10 shown in FIG. 2 reading a predetermined data file from the database 12 and
This is done by transferring the data file to be updated and storing the data file to be updated in the corresponding compression source file 31.
尚、上記ステップS2において、ダウンロードが必要か
否かを判断する場合には、端末で保持している画面デー
タ、帳票データ等のバージョン番号と、上位装置10が
保持しているこれらのデータのバージョン番号との突合
わせが行なわれる。In step S2 above, when determining whether downloading is necessary, the version numbers of screen data, form data, etc. held in the terminal and the versions of these data held in the host device 10 are used. A match is made with the number.
そして、両者のバージョン番号が一致していれば、ダウ
ンロード不要と判断し、不一致の場合、ダウンロードが
必要と判断する。このような判断は、電源オン等の直後
に実行される。If the version numbers match, it is determined that downloading is not necessary; if they do not match, it is determined that downloading is necessary. Such a determination is executed immediately after the power is turned on or the like.
ダウンロードの具体的な手順は、既に第3図で説明した
通りである。The specific procedure for downloading is as already explained in FIG.
その後、ファイル圧縮処理の起動が行なわれる(ステッ
プS4)。Thereafter, file compression processing is started (step S4).
即ち、本発明においては、ダウンロードが実行されると
、それをきっかけとしてファイル圧縮処理が自動的に起
動される。そして、この場合、ファイル圧縮処理プログ
ラムは、第2図に示した下位装置20のその他の各種処
理と比較した場合に、最も優先度の低いタスクとして起
動される。That is, in the present invention, when a download is executed, file compression processing is automatically started. In this case, the file compression processing program is started as a task with the lowest priority when compared with the various other processes of the lower-level device 20 shown in FIG.
従って、例えば、第2図のキーボード23を用いて、オ
ペレータが入出金処理等を実行する場合、その都度、圧
縮処理が中断され、又、その後の空き時間を待って、圧
縮処理が再開されて続行される。このような条件設定を
行なうことによって、ファイル圧縮処理は、自動的に無
条件に実行され、かつ、他の如何なる処理も妨げること
なく自動的に完了する。従って、その後、新たなダウン
ロード要求があった場合に、分割順編成ファイルの空き
領域が不足するといった事態が防止される。Therefore, for example, when an operator performs a deposit/withdrawal process using the keyboard 23 shown in FIG. Continued. By setting such conditions, file compression processing is automatically and unconditionally executed, and is automatically completed without interfering with any other processing. Therefore, if there is a new download request after that, a situation in which the free space of the divided sequential file becomes insufficient is prevented.
尚、このファイル圧縮処理は、第2図に示した実働中の
圧縮元ファイル31と、仮設された圧縮先ファイル32
を用いて実行されるが、電源が断されたり、新たなダウ
ンロードが実行されたりして、そのファイル圧縮処理が
中断したまま無効となってしまうこともある。このよう
な場合、ダウンロートによるファイル更新終了後、再び
ファイル圧縮処理が改めて起動されることになる。This file compression process is performed on the actual compression source file 31 and the temporary compression destination file 32 shown in FIG.
However, if the power is cut off or a new download is executed, the file compression process may be interrupted and become invalid. In such a case, after the file is updated by downloading, the file compression process will be started again.
第1図に戻って、ファイル圧縮処理の動作説明を続ける
。Returning to FIG. 1, the explanation of the operation of the file compression process will be continued.
ファイル圧縮処理が開始されると、先ず、第3図に示し
たデイレクト部■のポインタ等の初期化が行なわれる(
ステップS5)。そして、圧縮元ファイル“AAAAA
”31から1ブロツクのデータが読出される(ステップ
S6)。次に、そのデータが、圧縮先ファイル“AAA
AAW”32へ1ブロツク書込まれる(ステップS7)
。When the file compression process is started, first, the pointer etc. of the direct section (■) shown in Fig. 3 are initialized (
Step S5). Then, compress source file “AAAAAA”
One block of data is read from "31" (step S6). Next, the data is stored in the compressed file "AAA".
One block is written to AAW”32 (step S7)
.
その後、ポインタの更新を行ない(ステップS8)、圧
縮が終了したか否かが判断される(ステップS9)、そ
して、ステップS6からステップS9までの処理を繰返
し、全ての圧縮処理が完了すると、ファイル圧縮完了フ
ラグをオンにする(ステップ5IO)。After that, the pointer is updated (step S8), and it is determined whether or not the compression has ended (step S9). Then, the processes from step S6 to step S9 are repeated, and when all the compression processes are completed, the file The compression completion flag is turned on (step 5IO).
第1図に示した手順で、ファイル圧縮が完了すれば、装
置は、圧縮後の圧縮先ファイル32(第2図)を、新た
な実働中のファイルに切替えて処理を開始する。この時
点で、既にあった圧縮元ファイルは消滅する。When file compression is completed according to the procedure shown in FIG. 1, the apparatus switches the compressed destination file 32 (FIG. 2) to a new active file and starts processing. At this point, the existing compression source file disappears.
さてここで、第2の発明の説明を行なう。Now, the second invention will be explained.
先に説明したような圧縮処理が完了すると、圧縮元ファ
イルに予め付けられていたファイル名を、圧縮先ファイ
ルのファイル名と交換する作業を必要とする。When the compression process as described above is completed, it is necessary to exchange the file name previously assigned to the compression source file with the file name of the compression destination file.
このようなファイル名交換を必要とするのは、システム
自身は、圧縮元ファイルのファイル名を元に、種々の処
理を実行しているからである。また、圧縮処理のための
プログラムは、圧縮元ファイルと圧縮先ファイルの名称
を特定して動作するからである。The reason why such file name exchange is necessary is that the system itself executes various processes based on the file name of the compression source file. Further, the program for compression processing operates by specifying the names of the compression source file and the compression destination file.
先に説明したように、ファイル圧縮処理中に、何等かの
原因で動作が中断され、圧縮処理が無効となった場合で
も、圧縮元ファイル31に、まだ新たなダウンロードが
可能な程度の空き領域がある限り放置しても不都合は生
じない。即ち、次のダウンロードの際に改めて圧縮処理
を実行すればよい。As explained earlier, even if the operation is interrupted for some reason during the file compression process and the compression process becomes invalid, there is still enough free space in the compression source file 31 to allow new downloads. There will be no inconvenience if you leave it as long as it exists. That is, the compression process may be executed again at the time of the next download.
しかしながら、圧縮元ファイル31と圧縮先ファイル3
2の名称を書替える作業中に、障害等が発生して処理が
中断すると、最悪の場合には、何れのファイルも使用不
能となってしまうことがある。However, the compression source file 31 and the compression destination file 3
If a failure or the like occurs during the process of rewriting the name of file 2 and the process is interrupted, in the worst case, both files may become unusable.
第2の発明は、この問題を解決するためになされたもの
である。The second invention was made to solve this problem.
この場合に、本発明の第2の方法においては、ファイル
名の変更過程を区分し、各変更過程毎に、その過程を識
別するファイル書替中フラグを設定し、若し、その変更
過程中に障害が発生した場合には、ファイル書替中フラ
グにより指定された状態から、書替処理を続行できるよ
うにしている。In this case, in the second method of the present invention, the process of changing the file name is divided, and for each changing process, a file rewriting flag is set to identify that process. If a failure occurs, the rewriting process can be continued from the state specified by the file rewriting flag.
装置全体が通常の動作を行なっている場合、圧縮元ファ
イルの名称と圧縮先ファイルの名称とを、−時的にも同
一名称とすることは許されない。そのために、次のよう
な手順でファイル名の書替えが行なわれるのである。When the entire apparatus is operating normally, it is not allowed that the name of the compression source file and the name of the compression destination file are the same even at some point in time. For this purpose, file names are rewritten using the following procedure.
実施例では、ファイル名の変更を装置の電源断の際に行
なうものとする。装置の電源を正常に断にする場合、通
常、装置の各部の動作の後処理が実行される。この後処
理の中に、ファイル名変更処理を含める。従って、装置
の電源がオンされ、ダウンロードが行なわれると圧縮処
理が実行され、その圧縮後のファイルは装置の電源が断
となる際に名称書替えが行なわれる。装置の動作中、頻
繁にダウンロードが行なわれるようなことがなければ、
このような方法が、圧縮処理の自動化には最も適してい
るといえる。In the embodiment, it is assumed that the file name is changed when the device is powered off. When powering down a device normally, post-processing of the operation of each part of the device is typically performed. This post-processing includes file name change processing. Therefore, when the device is powered on and a download is performed, compression processing is executed, and the name of the compressed file is rewritten when the device is powered off. If there are no frequent downloads while the device is operating,
Such a method can be said to be most suitable for automating compression processing.
第4図に、そのようなファイル書替中フラグの設定動作
を説明するフローチャートを図示した。FIG. 4 shows a flowchart illustrating the setting operation of such a file rewriting flag.
この処理は、先に説明したように、第2図に示した下位
装置20の電源が断とされる旨の指示が入力した場合に
実行される。As described above, this process is executed when an instruction to turn off the power to the lower-order device 20 shown in FIG. 2 is input.
即ち、先ず、ファイル圧縮完了フラグがオンか否かが判
断される(ステップSl)。ファイル圧縮完了フラグが
オンでない場合には、たとえそれまでファイル圧縮処理
が進められていたとしても無視される。ファイル圧縮完
了フラグがオンになっている場合には、ファイル書替中
フラグを“1”にする(ステップS2)。ここで、圧縮
元ファイルのファイル名を、“AAAAA”から第3の
ファイル名“AAAAAR”に変更する(ステップS3
)。That is, first, it is determined whether the file compression completion flag is on (step Sl). If the file compression completion flag is not on, even if file compression processing has been in progress up to that point, it will be ignored. If the file compression completion flag is on, the file rewriting flag is set to "1" (step S2). Here, the file name of the compression source file is changed from "AAAAAA" to the third file name "AAAAAR" (step S3
).
次に、ファイル書替中フラグを“2”にする(ステップ
S4)。今度は、圧縮元ファイル名を、“AAAAAW
”から“AAAAA”に変更する(ステップS5)。そ
して、ファイル書替中フラグを“3“にする(ステップ
S6)。Next, the file rewriting flag is set to "2" (step S4). This time, change the compression source file name to “AAAAAW
” to “AAAA” (step S5). Then, the file rewriting flag is set to “3” (step S6).
次に、第3のファイル名に変更していた圧縮元ファイル
のファイル名を、“AAAAAR”から“AAAAAW
”に変更する(ステップS7)。Next, change the file name of the compression source file that had been changed from “AAAAAR” to “AAAAAW”.
” (step S7).
その後、ファイル書替中フラグを“0“とじ、ファイル
圧縮完了フラグをオフにする(ステップSS)。Thereafter, the file rewriting flag is set to "0" and the file compression completion flag is turned off (step SS).
以上のような処理を実行することによって、圧縮元ファ
イルと圧縮先ファイルのファイル名の交換が完了する。By performing the above processing, the exchange of file names between the compression source file and the compression destination file is completed.
その後、自動的に電源が断される(ステップS9)。こ
れによって、新たに装置が起動された場合には、圧縮処
理完了後の分割順編成ファイルをベースとして、処理が
実行されることになる。Thereafter, the power is automatically turned off (step S9). As a result, when the device is newly activated, the processing will be executed based on the divided sequential file after the compression processing is completed.
第4図に示した処理は、装置の電源断直前に実行される
ため、−時的に実働中のファイル名が消滅しても支障は
ない。また、−旦、一方を第3のファイル名に変更した
後、ファイル名交換を行なうため、同一のファイル名が
重複して付けられるといった障害は発生しない。Since the process shown in FIG. 4 is executed immediately before the device is powered off, there is no problem even if the name of the file currently in operation disappears. Furthermore, since the file names are exchanged after one file name is changed to the third file name, problems such as the same file name being given twice do not occur.
装置が正常に電源断となれば、このようにファイル名の
書替えが完了するが、この間に障害が発生したような場
合には、ファイル名の書替えが全く行なわれないか、又
、書替え途中の状態のまま終了することもあり得る。If the device is powered off normally, the rewriting of the file name is completed in this way, but if a failure occurs during this time, the file name may not be rewritten at all, or the file name may not be rewritten in the middle of rewriting. It is possible that the process may end in this state.
そこで、第1図に示したファイルオープン処理(ステッ
プS1)において、ファイル状態を正常な状態に戻すよ
うにする。Therefore, in the file open process (step S1) shown in FIG. 1, the file status is returned to a normal status.
即ち、始めに、圧縮元ファイルと圧縮先ファイルのファ
イルをオーブンし、そのファイル名が如何なる状態にあ
るかによって、中断したファイル名の書替えを正常に完
了させる。That is, first, the compression source file and the compression destination file are opened, and depending on the status of the file names, the interrupted rewriting of the file name is completed normally.
第5図に、ファイル名変更処理のリカバーのための処理
動作説明図を示す。図は、第4図の処理が対応し、その
縦方向に動作が進行するものとする。FIG. 5 shows an explanatory diagram of the processing operation for recovering the file name change processing. The figure corresponds to the process in FIG. 4, and the operation progresses in the vertical direction.
即ち、ファイル圧縮完了フラグは当初オフとされており
、ファイル圧縮が実行されるとオンとなり、ファイル名
の書替えが完了すると再びオフとなる。That is, the file compression completion flag is initially off, turns on when file compression is executed, and turns off again when rewriting of the file name is completed.
これらの過程でファイル名書替え中は、先に第4図を用
いて説明したように、ファイル書替中フラグが順に1.
2.3.Oと書替えられていく。While the file name is being rewritten in these processes, the file rewriting flags are set to 1.
2.3. It will be rewritten as O.
この場合、圧縮元ファイル名は、“AAAAA”から“
AAAAAR”、AAAAAW”というように書替えら
れる。また、圧縮元ファイル名は、AAAAAW”から
“AAAAA″のように書替えられる。In this case, the compression source file name changes from “AAAAAA” to “
It is rewritten as "AAAAAR", "AAAAAW". Further, the compression source file name is rewritten from "AAAAAAW" to "AAAAA".
第1図に示したファイルオープン処理(ステップSl)
においては、上記ファイル書替中フラグとオーブンされ
た圧縮元ファイル名及び圧縮元ファイル名が参照される
。その結果、例えばファイル書替中フラグが“1”、圧
縮元ファイル名が“AAAAA” 圧縮元ファイル名が
”AAAAAW”の場合には、第4図に示すステップS
3が完了し、まだステップS4が実行されていないと判
断し、ステップS3からステップS8までを実行して、
リカバーすることになる。File open processing (step Sl) shown in Figure 1
In , the file rewriting flag, the opened compression source file name, and the compression source file name are referred to. As a result, for example, if the file rewriting flag is "1", the compression source file name is "AAAAAA", and the compression source file name is "AAAAAAW", step S shown in FIG.
3 has been completed, and it is determined that step S4 has not yet been executed, steps S3 to S8 are executed,
It will be recovered.
以上のようにすれば、データファイルのダウンロードの
際に、ファイル圧縮処理が開始され、旦ファイル圧縮処
理が終了すれば、その後の電源断の際に、ファイル名の
書替えが行なわれ、たとえその書替えが何等かの原因で
中断したとしても、次の装置の電源投入後、ファイル名
書替え処理が正常に終了し、圧縮後の新たなファイルを
用いて処理の実行を開始することができる。If you do the above, the file compression process will start when the data file is downloaded, and once the file compression process is finished, the file name will be rewritten when the power is turned off. Even if the process is interrupted for some reason, the file name rewriting process will be completed normally after the next device is powered on, and the process can be started using the new compressed file.
本発明は以上の実施例に限定されない。The present invention is not limited to the above embodiments.
上記実施例では、圧縮元ファイル名を一旦第3のファイ
ル名に変更し、その後、圧縮元ファイル名を、圧縮元フ
ァイル名に変更した後、圧縮元ファイル名圧縮はファイ
ル名に変更するようにしている。In the above example, the compression source file name is first changed to the third file name, and then the compression source file name is changed to the compression source file name, and then the compression source file name compression is changed to the file name. ing.
しかしながら、圧縮元ファイル名のほうを、−旦、第3
のファイル名に変更してから名称交換を行なっても差し
支えない。However, the compression source file name is changed to -dan, 3rd
There is no problem even if you change the file name to the one before exchanging the names.
また、ファイル名の付は方、ファイル書替中フラグの形
式等は、その目的に応じて自由に変更して差し支えない
。Furthermore, the way the file is named, the format of the file rewriting flag, etc. may be freely changed depending on the purpose.
(発明の効果)
以上説明した本発明のファイル圧縮処理方法によれば、
上位装置のデータベースからデータファイルをダウンロ
ードする際、自動的にファイル圧縮処理が開始され、か
つ、その処理は最も優先度の低いタスクとして実行され
る。従って、他の処理を妨げることなく、確実にファイ
ルの圧縮が行なわれ、オペレータの負担を防止し、ファ
イルの更新の障害を防止することができる。また、ファ
イル圧縮完了後、圧縮元ファイルと圧縮先ファイルのフ
ァイル名を交換する際、そのファイル名の変更過程毎に
、当該過程を識別するファイル書替中フラグを設定した
ので、何等かの障害が発生し、あるいは強制的な電源断
によりファイル名の変更処理が中断した場合でも、リカ
バーを可能とし、自動的なファイルの圧縮処理に伴なう
オペレーションミス等によるファイルの破壊を防止する
ことができる。(Effects of the Invention) According to the file compression processing method of the present invention explained above,
When downloading a data file from the database of a host device, file compression processing is automatically started and is executed as a task with the lowest priority. Therefore, files can be reliably compressed without interfering with other processes, reducing the burden on the operator and preventing failures in updating files. In addition, when exchanging the file names of the compression source file and the compression destination file after file compression is completed, a file rewriting flag is set to identify the process for each file name change process, so there is no possibility of any failure. Even if the file renaming process is interrupted due to an error or a forced power cut, recovery is possible, and file destruction due to operational errors caused by automatic file compression can be prevented. can.
第1図は本発明のファイル圧縮処理方法を説明する動作
フローチャート、第2図は本発明の方法が適用されるシ
ステムブロック図、第3図は分割順編成ファイルの圧縮
処理動作説明図、第4図はファイル書替中フラグの設定
動作フローチャート、第5図はファイル名変更処理リカ
バー動作説明図である。
10・・・上位装置、12・・・データベース、20・
・・下位装置、30・・・分割順編成ファイル、31・
・・圧縮元ファイル、32・・・圧縮先ファイル。
特許出願人 沖電気工業株式会社FIG. 1 is an operational flowchart explaining the file compression processing method of the present invention, FIG. 2 is a system block diagram to which the method of the present invention is applied, FIG. The figure is a flowchart of the file rewriting flag setting operation, and FIG. 5 is an explanatory diagram of the file name change process recovery operation. 10... Upper device, 12... Database, 20.
...Lower device, 30...Divided sequential organization file, 31.
...Compression source file, 32...Compression destination file. Patent applicant Oki Electric Industry Co., Ltd.
Claims (1)
を読出して、所定のタイミングで分割順編成ファイルに
ダウンロードすると共に、当該ダウンロード終了後、最
も優先度の低いタスクとして前記分割順編成ファイルの
ファイル圧縮処理を実行することを特徴とするファイル
圧縮処理方法。 2、実働中の圧縮元ファイルのデータを読出して仮設し
た圧縮先ファイルに書込むことにより分割順編成ファイ
ルの圧縮処理を完了後、前記圧縮元ファイル名と前記圧
縮先ファイル名とを交換する場合に、何れか一方を第3
のファイル名に変更し、その後、他方及び一方の順に目
的のファイル名に変更していき、前記仮設した圧縮先フ
ァイルを実働中のファイルと交換するまでの間、前記各
ファイル名の変更過程毎に、当該過程を識別するファイ
ル書替中フラグを設定することを特徴とするファイル圧
縮処理方法。[Claims] 1. Read a predetermined data file from the database of the host device and download it to the division order organization file at a predetermined timing, and after the download is completed, the division order organization is executed as the task with the lowest priority. A file compression processing method characterized by executing file compression processing on a file. 2. When the compression source file name and the compression destination file name are exchanged after completing the compression process of the split sequential file by reading the data of the compression source file that is currently in operation and writing it to a temporary compression destination file. , one of the third
After that, change the file name to the desired file name, and then change the file name to the desired file name in order. Until the temporary compression destination file is replaced with the actual file, each file name change process. A file compression processing method characterized in that a file rewriting flag is set to identify the process.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2209276A JP3037375B2 (en) | 1990-08-09 | 1990-08-09 | File compression processing method |
| KR1019910013727A KR950005094B1 (en) | 1990-08-09 | 1991-08-08 | File Compression Method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2209276A JP3037375B2 (en) | 1990-08-09 | 1990-08-09 | File compression processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0496149A true JPH0496149A (en) | 1992-03-27 |
| JP3037375B2 JP3037375B2 (en) | 2000-04-24 |
Family
ID=16570266
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2209276A Expired - Lifetime JP3037375B2 (en) | 1990-08-09 | 1990-08-09 | File compression processing method |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP3037375B2 (en) |
| KR (1) | KR950005094B1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0764830A (en) * | 1993-08-27 | 1995-03-10 | Nec Corp | System for deleting unwanted data of file in online |
| CN114006947A (en) * | 2021-11-05 | 2022-02-01 | 统信软件技术有限公司 | File downloading method and device, computing equipment and storage medium |
-
1990
- 1990-08-09 JP JP2209276A patent/JP3037375B2/en not_active Expired - Lifetime
-
1991
- 1991-08-08 KR KR1019910013727A patent/KR950005094B1/en not_active Expired - Fee Related
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0764830A (en) * | 1993-08-27 | 1995-03-10 | Nec Corp | System for deleting unwanted data of file in online |
| CN114006947A (en) * | 2021-11-05 | 2022-02-01 | 统信软件技术有限公司 | File downloading method and device, computing equipment and storage medium |
| CN114006947B (en) * | 2021-11-05 | 2024-03-01 | 统信软件技术有限公司 | File downloading method and device, computing equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3037375B2 (en) | 2000-04-24 |
| KR950005094B1 (en) | 1995-05-18 |
| KR920004970A (en) | 1992-03-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6668261B1 (en) | Method of upgrading a program using associated configuration data | |
| JPH07110784A (en) | Additional format record storage method and apparatus | |
| CN113641378A (en) | Optical module program upgrading method, device, equipment and readable storage medium | |
| JP2614361B2 (en) | How to change file contents | |
| JP2001331379A (en) | Method and device for rewriting flash memory update program | |
| JP3037375B2 (en) | File compression processing method | |
| JPH10187454A (en) | Bios reloading system | |
| JP5158883B2 (en) | Firmware update method and firmware update apparatus | |
| JPH0793276A (en) | Starting system for computer | |
| JPH0410081B2 (en) | ||
| JP2000163109A (en) | Ladder programming device and ladder programming method | |
| JP2552738B2 (en) | Data processing device | |
| JPH0375947A (en) | Access control method in host cooperation system | |
| JP2526525B2 (en) | Memory control method | |
| JP2000020157A (en) | Host-linked processing device with hibernation processing function | |
| JPH03257524A (en) | Data control method for data processor | |
| JP3503531B2 (en) | Online real-time processing system and sub load module replacement method in the system | |
| JPH09288655A (en) | How to add a processor | |
| JPH0660023A (en) | System switching method | |
| JPH01196627A (en) | System for updating software | |
| JPH08101788A (en) | Memory operation management method and memory operation management device | |
| JP2005038180A (en) | Program starting method, program starting program, computer-readable storage medium | |
| JPH06168079A (en) | Data backup system | |
| JPH07306796A (en) | Data synchronous transfer method for duplex control system | |
| JPH0425904A (en) | Module rewrite device for control and arithmetic unit |