JPH05334159A - Method for automatically diagnosing file destruction - Google Patents

Method for automatically diagnosing file destruction

Info

Publication number
JPH05334159A
JPH05334159A JP4138763A JP13876392A JPH05334159A JP H05334159 A JPH05334159 A JP H05334159A JP 4138763 A JP4138763 A JP 4138763A JP 13876392 A JP13876392 A JP 13876392A JP H05334159 A JPH05334159 A JP H05334159A
Authority
JP
Japan
Prior art keywords
file
recording
execution flag
data
recording execution
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
JP4138763A
Other languages
Japanese (ja)
Inventor
Kenji Nagai
健司 永井
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.)
Toshiba Tec Corp
Original Assignee
Tokyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP4138763A priority Critical patent/JPH05334159A/en
Publication of JPH05334159A publication Critical patent/JPH05334159A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

(57)【要約】 【目的】 電源投入時に、前回記録途中で電源が切れた
ファイルを探し、そのファイルの実データを自動的に正
しく編集し得るファイル破壊自動診断方法を提供する。 【構成】 入力部から入力された各種データが記録され
る記憶部を有する電子機器において、前記記憶部にデー
タを記録する作業の開始前に各ファイル毎に記録実行フ
ラグをセットし、前記記憶部の記録終了時に実データに
対応するインデックスを作成して各ファイル毎に前記記
録実行フラグをリセットし、電源投入時には前記記録実
行フラグの状態を判断し、前記記録実行フラグがセット
されたファイルについてのみ実データを正しく編集して
からインデックスを作成し直し、前記記録実行フラグを
リセットした後に、通常の業務に移行するようにした。
(57) [Summary] [Purpose] To provide a file destruction automatic diagnosis method that can search for a file whose power was turned off during the previous recording when the power was turned on and automatically edit the actual data of the file automatically. In an electronic device having a storage unit in which various data input from an input unit is recorded, a recording execution flag is set for each file before starting the work of recording data in the storage unit, and the storage unit When the recording is completed, an index corresponding to the actual data is created, and the recording execution flag is reset for each file. When the power is turned on, the state of the recording execution flag is judged, and only for the file for which the recording execution flag is set. After properly editing the actual data, the index is recreated, the recording execution flag is reset, and then the normal operation is performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電子機器において、フ
ァイルに記憶されたデータの破壊を防止し得るファィル
破壊自動診断方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic file destruction diagnosing method capable of preventing destruction of data stored in a file in an electronic device.

【0002】[0002]

【従来の技術】入力部から入力された各種データが記録
されるメモリやディスク等を有するPOS端末機等の電
子機器において、データ入力中における停電或いは誤操
作に伴うハード及びその他のトラブルによってファイル
のデータが破壊される場合がある。従来は、データの破
壊が判明された時点で、ファイル修復プログラムをマニ
アルで起動して破壊されたデータを修復し、或いは、保
存データより正しいデータを復元する方法がある。
2. Description of the Related Art In an electronic device such as a POS terminal having a memory and a disk in which various data input from an input section are recorded, data of a file is generated due to a power failure during data input or other troubles caused by an erroneous operation. May be destroyed. Conventionally, there is a method of manually starting a file repair program when data corruption is found, and repairing corrupted data, or restoring correct data from saved data.

【0003】[0003]

【発明が解決しようとする課題】データの破壊がその場
で判明する場合は、前述したようにマニアルでファイル
修復プログラムを起動することにより対処することがで
きる。しかし、記録途中のファイルが何のファイルであ
るか、又は破壊されたファイルが何のファイルであるか
については通常のオペレーション・システムでは判明さ
れず、後日にシステムの不具合として表面化するため、
破壊の影響が広がり、データの修復作業が困難である。
When the data destruction is found on the spot, it can be dealt with by activating the file restoration program manually as described above. However, it is not known in the normal operating system what kind of file the file being recorded is, or what file is destroyed, and it will be revealed as a system failure at a later date.
The influence of destruction spreads, making it difficult to recover data.

【0004】[0004]

【課題を解決するための手段】本発明は、入力部から入
力された各種データが記録される記憶部を有する電子機
器において、前記記憶部にデータを記録する作業の開始
前に各ファイル毎に記録実行フラグをセットし、前記記
憶部の記録終了時に実データに対応するインデックスを
作成して各ファイル毎に前記記録実行フラグをリセット
し、電源投入時には前記記録実行フラグの状態を判断
し、前記記録実行フラグがセットされたファイルについ
てのみ実データを正しく編集してからインデックスを作
成し直し、前記記録実行フラグをリセットした後に、通
常の業務に移行するようにした。
According to the present invention, in an electronic device having a storage section in which various data input from an input section are recorded, each file is stored before the operation of recording the data in the storage section is started. A recording execution flag is set, an index corresponding to actual data is created at the end of recording in the storage unit, the recording execution flag is reset for each file, and the state of the recording execution flag is determined when the power is turned on. Only in the file in which the recording execution flag is set, the actual data is properly edited, the index is recreated, and after the recording execution flag is reset, the normal operation is performed.

【0005】[0005]

【作用】ファイル記録途中は記録実行フラグがセットさ
れるため、非継続処理に際して電源を投入した時に、記
録実行フラグの状態を判断することにより記録途中のフ
ァイルを探し、そのファイルの実データを正しく編集す
ることができる。したがって、停電及びその他のトラブ
ルにより記録途中のファイルが存在しても、該当するフ
ァイルを自動的に修復することができる。
Since the recording execution flag is set during the recording of the file, when the power is turned on during the discontinuation process, the state of the recording execution flag is judged to find the recording-in-progress file, and the actual data of the file is correctly recorded. Can be edited. Therefore, even if a file that is being recorded exists due to a power failure or other trouble, the corresponding file can be automatically restored.

【0006】[0006]

【実施例】本発明の一実施例を図面に基づいて説明す
る。まず、図2にPOS端末機における回路図を示す。
本発明の実行プログラムが書き込まれたROM1と、こ
のROM1のプログラムに制御されるCPU2と、可変
データが記憶される記憶部であるRAM3と、記憶部で
あるハードディスク4と、データを入力するためのキー
入力装置5と、入力されたデータを表示する表示装置6
と、入力されたデータを出力するプリンタ装置7とが互
いに接続されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings. First, FIG. 2 shows a circuit diagram of the POS terminal.
A ROM 1 in which an execution program of the present invention is written, a CPU 2 controlled by the program of the ROM 1, a RAM 3 as a storage unit for storing variable data, a hard disk 4 as a storage unit, and a unit for inputting data. Key input device 5 and display device 6 for displaying input data
And the printer device 7 that outputs the input data are connected to each other.

【0007】次に、前記ROM1に書き込まれたプログ
ラムについて説明する。初めに、通常の業務、すなわ
ち、データの更新プログラムを、図1(a)に示すフロ
ーチャートを参照して説明する。まず、該当するファイ
ルの先頭のフラグエリアに記録実行フラグをセットし、
その後に該当するファイルのデータを更新する。続い
て、該当するファイルの記録実行後に前記記録実行フラ
グをリセットすることにより、ファイルの記録を完了す
る。
Next, the program written in the ROM 1 will be described. First, a normal operation, that is, a data update program will be described with reference to the flowchart shown in FIG. First, set the recording execution flag in the flag area at the beginning of the corresponding file,
After that, the data of the corresponding file is updated. Subsequently, the recording of the file is completed by resetting the recording execution flag after recording the corresponding file.

【0008】図3は前記RAM3にデータを記憶させた
例を示すもので、各ファイルA7,ファイルB8毎に、
先頭に記録実行フラグをセットするための1バイトのフ
ラグエリア7a,8aをもつ。図4はハードディスク4
にデータを記憶させた例を示すもので、各ファイルC
9,ファイルD10毎に、先頭に記録実行フラグをセッ
トするための1バイトのフラグエリア9a,10aをも
つ。
FIG. 3 shows an example in which data is stored in the RAM 3. For each file A7 and file B8,
It has 1-byte flag areas 7a and 8a for setting the recording execution flag at the head. Figure 4 shows hard disk 4
Shows an example of storing data in each file C
9. Each file D10 has 1-byte flag areas 9a and 10a for setting a recording execution flag at the head.

【0009】次に、自動修復プログラムを、図1(b)
に示すフローチャートを参照して説明する。該当するフ
ァイルのフラグエリアに記録実行フラグがセットされて
いる場合にのみ、実データの並び変えを実行し、インデ
ックスを作成し直し、記録実行フラグをリセットする。
Next, the automatic repair program is executed as shown in FIG.
This will be described with reference to the flowchart shown in FIG. Only when the recording execution flag is set in the flag area of the corresponding file, rearrangement of actual data is executed, indexes are recreated, and the recording execution flag is reset.

【0010】次に、前記自動修復プログラムを起動させ
るプログラムを図1(c)に示す。このプログラムで
は、電源投入時に、まず、継続実行であるか否かを判断
する。非継続実行の場合は、ファイル中のデータの記録
状態に異常があるため、継続実行しようとしても実行が
不可能であるため、結果としてオペレーティング・シス
テム(OS)によって非継続実行として判断される。前
回において、ファイル記録途中に停電或いは誤操作によ
りデータに異常が発生する場合がこれに相当する。この
ように非継続実行として判断された場合には、前述した
自動修復プログラムを実行した後に、通常のデータ記録
業務に移行する。電源投入時に継続実行と判断された場
合は、直ちに通常のデータ記録業務に移行する。
Next, a program for starting the automatic repair program is shown in FIG. In this program, when the power is turned on, first, it is determined whether or not the execution is continuous. In the case of non-continuous execution, since the recording state of the data in the file is abnormal, the continuous execution cannot be executed, and as a result, the operating system (OS) determines the non-continuous execution. This corresponds to the case where an abnormality occurs in the data due to a power failure or an erroneous operation during file recording in the previous time. In this way, when it is determined to be the non-continuous execution, the above-described automatic repair program is executed, and then the normal data recording operation is started. If it is judged to continue the execution when the power is turned on, it immediately shifts to the normal data recording work.

【0011】このように、ファイル記録途中は記録実行
フラグがセット状態に維持されるため、非継続処理に際
して電源を投入した時に、記録実行フラグの状態を判断
することにより記録途中のファイルを探し、そのファイ
ルの実データを正しく編集することができる。したがっ
て、停電及びその他のトラブルにより記録途中のファイ
ルが存在しても、該当するファイルのデータを自動的に
修復することができる。これに伴い、データ修復のため
の特別な操作が不必要になり、操作性を向上させること
ができる。さらに、ファイルのデータ破壊がその場で修
復されるため、システム全体に与える影響を防止するこ
とができる。
As described above, since the recording execution flag is maintained in the set state during the recording of the file, when the power is turned on during the discontinuation process, the state of the recording execution flag is judged to search for the file in the middle of recording, You can edit the actual data of the file correctly. Therefore, even if there is a file that is being recorded due to a power failure or other trouble, the data of the corresponding file can be automatically restored. Along with this, a special operation for data restoration becomes unnecessary, and operability can be improved. Further, since the data destruction of the file is repaired on the spot, the influence on the entire system can be prevented.

【0012】[0012]

【発明の効果】本発明は、入力部から入力された各種デ
ータが記録される記憶部を有する電子機器において、前
記記憶部にデータを記録する作業の開始前に各ファイル
毎に記録実行フラグをセットし、前記記憶部の記録終了
時に実データに対応するインデックスを作成して各ファ
イル毎に前記記録実行フラグをリセットし、電源投入時
には前記記録実行フラグの状態を判断し、前記記録実行
フラグがセットされたファイルについてのみ実データを
正しく編集してからインデックスを作成し直し、前記記
録実行フラグをリセットした後に、通常の業務に移行す
るようにしたので、ファイル記録途中は記録実行フラグ
がセット状態に維持されるため、非継続処理に際して電
源を投入した時に、記録実行フラグの状態を判断するこ
とにより記録途中のファイルを探し、そのファイルの実
データを正しく編集することができ、したがって、停電
及びその他のトラブルにより記録途中のファイルが存在
しても、該当するファイルのデータを自動的に修復する
ことができ、これに伴い、データ修復のための特別な操
作が不必要になり、操作性を向上させることができ、さ
らに、ファイルのデータ破壊がその場で修復されるた
め、システム全体に与える影響を防止することができる
等の効果を有する。
According to the present invention, in an electronic device having a storage section for recording various data input from the input section, a recording execution flag is set for each file before the operation of recording data in the storage section is started. Set, an index corresponding to actual data is created at the end of recording in the storage unit, the recording execution flag is reset for each file, and the state of the recording execution flag is determined when the power is turned on. Correctly edit the actual data only for the set file, recreate the index, reset the recording execution flag, and then shift to normal operation, so the recording execution flag is set during file recording. Therefore, when the power is turned on during discontinuation processing, the status of the recording execution flag is checked to determine whether recording is in progress. You can search for a file and edit the actual data of that file correctly. Therefore, even if there is a file that is being recorded due to power failure or other trouble, you can automatically restore the data of the corresponding file, Along with this, special operation for data recovery becomes unnecessary, the operability can be improved, and further, the data destruction of the file is repaired on the spot, preventing the influence on the entire system. It has the effect of being able to.

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

【図1】本発明の実行プログラムを示すフローチャート
である。
FIG. 1 is a flowchart showing an execution program of the present invention.

【図2】電子回路を示すブロック図である。FIG. 2 is a block diagram showing an electronic circuit.

【図3】RAMにおけるデータの記憶状態を示す説明図
である。
FIG. 3 is an explanatory diagram showing a storage state of data in a RAM.

【図4】ハードディスクにおけるデータの記憶状態を示
す説明図である。
FIG. 4 is an explanatory diagram showing a storage state of data in a hard disk.

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

3,4 記憶部 7〜10 ファイル 3,4 Storage 7-10 files

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力部から入力された各種データが記録
される記憶部を有する電子機器において、前記記憶部に
データを記録する作業の開始前に各ファイル毎に記録実
行フラグをセットし、前記記憶部の記録終了時に実デー
タに対応するインデックスを作成して各ファイル毎に前
記記録実行フラグをリセットし、電源投入時には前記記
録実行フラグの状態を判断し、前記記録実行フラグがセ
ットされたファイルについてのみ実データを正しく編集
してからインデックスを作成し直し、前記記録実行フラ
グをリセットした後に、通常の業務に移行するようにし
たことを特徴とするファイル破壊自動診断方法。
1. An electronic device having a storage section for recording various data input from an input section, wherein a recording execution flag is set for each file before the operation of recording data in the storage section is started, At the end of recording in the storage unit, an index corresponding to actual data is created and the recording execution flag is reset for each file. When the power is turned on, the state of the recording execution flag is determined, and the file in which the recording execution flag is set The file destruction automatic diagnosis method is characterized in that the actual data is properly edited, the index is created again, the recording execution flag is reset, and then the normal operation is performed.
JP4138763A 1992-05-29 1992-05-29 Method for automatically diagnosing file destruction Pending JPH05334159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4138763A JPH05334159A (en) 1992-05-29 1992-05-29 Method for automatically diagnosing file destruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4138763A JPH05334159A (en) 1992-05-29 1992-05-29 Method for automatically diagnosing file destruction

Publications (1)

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

Family

ID=15229622

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4138763A Pending JPH05334159A (en) 1992-05-29 1992-05-29 Method for automatically diagnosing file destruction

Country Status (1)

Country Link
JP (1) JPH05334159A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1124803A (en) * 1997-07-04 1999-01-29 Nec Corp Detection method for suspend processing abnormality
US8006080B2 (en) 2006-12-28 2011-08-23 Sony Corporation Apparatus, method, computer program and recording medium for processing information
JP2015007999A (en) * 2008-04-02 2015-01-15 エス.シー. ジョンソン アンド サン、インコーポレイテッド Low voltage reset determination and operational flow modification for microprocessor-controlled devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1124803A (en) * 1997-07-04 1999-01-29 Nec Corp Detection method for suspend processing abnormality
US8006080B2 (en) 2006-12-28 2011-08-23 Sony Corporation Apparatus, method, computer program and recording medium for processing information
JP2015007999A (en) * 2008-04-02 2015-01-15 エス.シー. ジョンソン アンド サン、インコーポレイテッド Low voltage reset determination and operational flow modification for microprocessor-controlled devices

Similar Documents

Publication Publication Date Title
JPH05334159A (en) Method for automatically diagnosing file destruction
JP3206096B2 (en) Input data processing device
CN111104256A (en) A data reading method, device, device and storage medium
JPH0594353A (en) Database management system
JP4230553B2 (en) Data recording device
JPH09330272A (en) BIOS control method
JP4154900B2 (en) Station data automatic recovery method and method in electronic switching system
JP2853527B2 (en) Automatic file failure recovery system
JP2002024055A (en) Computer system and application program operation reproduction method
JP2580776B2 (en) Backup method of business data file for failure of magnetic disk device
JPH0695942A (en) Computer device having dual file conversion function
JPH0675957A (en) Restoration mechanism of fault during editing
JPS62284440A (en) Software resource maintenance system for terminal equipment
JPH052499A (en) Job trouble re-processing system of information processor
JP2765223B2 (en) Check method of checked file
JPH0713833A (en) Sequential file processing system
JP2000076111A (en) Data base inconsistency detecting method
JPH0350304B2 (en)
CN116610245A (en) Method, device, equipment and storage medium for processing timing task
JPH06266598A (en) Information processor
JPS63311452A (en) Recovery system for data file
JPS62173670A (en) Input/output controller
JPH05134888A (en) Information processor
JPH03225434A (en) Job reactuation system
JPH0619799A (en) Utility processing device