[go: up one dir, main page]

JPH05257775A - Data processing device - Google Patents

Data processing device

Info

Publication number
JPH05257775A
JPH05257775A JP4054002A JP5400292A JPH05257775A JP H05257775 A JPH05257775 A JP H05257775A JP 4054002 A JP4054002 A JP 4054002A JP 5400292 A JP5400292 A JP 5400292A JP H05257775 A JPH05257775 A JP H05257775A
Authority
JP
Japan
Prior art keywords
data
record
format
format program
input
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
JP4054002A
Other languages
Japanese (ja)
Inventor
Tokuji Tashiro
徳二 田代
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.)
Juki Corp
Original Assignee
Juki Corp
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 Juki Corp filed Critical Juki Corp
Priority to JP4054002A priority Critical patent/JPH05257775A/en
Publication of JPH05257775A publication Critical patent/JPH05257775A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

(57)【要約】 【目的】 データのベリファイ、あるいはアップデート
の際、適切なフォーマットプログラムを自動的に選択で
きるデータ処理装置を提供する。 【構成】 データベースファイル2の各レコード中の所
定の位置に制御バイトを設け、この制御バイトとしてそ
のレコードの入力に使用されたフォーマットプログラム
を識別するデータ(01、02、03…)を格納する。
ベリファイおよびアップデート処理においては、このフ
ォーマットプログラム識別データ(01、02、03
…)を参照することにより、そのレコードの入力に使用
されたものと同じフォーマットプログラムを自動的に選
択し、ベリファイおよびアップデート処理を行なうこと
により、フォーマットプログラムの選択ミスにより無効
データ発生やデータ破壊を生じる問題がなく、安全、確
実にデータ処理業務を行なえる。
(57) [Summary] [Purpose] To provide a data processing device capable of automatically selecting an appropriate format program when verifying or updating data. [Configuration] A control byte is provided at a predetermined position in each record of the database file 2, and data (01, 02, 03 ...) Which identifies the format program used for inputting the record is stored as the control byte.
In the verification and update processing, this format program identification data (01, 02, 03
...), the same format program that was used to input the record is automatically selected, and the verify and update processes are performed to prevent invalid data generation or data corruption due to a format program selection error. Safe and reliable data processing operations can be performed without any problems.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ処理装置、特にレ
コードのデータフォーマットを記述したフォーマットプ
ログラムに基づき、レコード単位でデータベースファイ
ルに対するデータ入力を制御するデータ処理装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device, and more particularly to a data processing device for controlling data input to a database file in record units based on a format program describing a record data format.

【0002】[0002]

【従来の技術】従来より、コンピュータによるデータベ
ースシステムが知られているが、このようなシステムの
うち、特に、固定長レコードを採用したシステムにおい
ては、データ入出力の際のファイルフォーマットをなん
らかのかたちで記述しておく必要がある。
2. Description of the Related Art Conventionally, a database system using a computer has been known. Among such systems, particularly in a system that adopts fixed-length records, the file format for data input / output is in some form. It is necessary to describe it.

【0003】通常、このようなデータ入出力の際のファ
イルフォーマットは、入力フォーマットプログラム(フ
ァイル)、あるいは出力フォーマット(ファイル)など
の形で作成される。
Usually, the file format for such data input / output is created in the form of an input format program (file) or an output format (file).

【0004】たとえば、データエントリ(入力)の際、
あらかじめ入力フォーマットプログラムが用意されてい
る場合には、使用したいフォーマットプログラムを指定
して入力を開始することにより、レコード入力の際の画
面フォーマットおよびキー制御、あるいはディスクへの
データの格納形式の選択などが自動的に行なわれる。
For example, at the time of data entry (input),
If an input format program is prepared in advance, by specifying the format program you want to use and starting input, screen format and key control at the time of record input, selection of data storage format on disk, etc. Is done automatically.

【0005】[0005]

【発明が解決しようとする課題】上記のようなフォーマ
ットプログラムは、データの新規入力の場合のみなら
ず、たとえば、すでに他人が入力したデータベースファ
イル中のデータをベリファイ、あるいはアップデート
(更新、あるいは訂正)するような場合にも使用され
る。
The format program as described above is used not only for new input of data but also for verifying or updating (updating or correcting) data in a database file already input by another person. It is also used when you do.

【0006】従来では、データのベリファイ、あるいは
アップデートの際、ユーザがその作業に使用するフォー
マットプログラムを指定することにより、ベリファイ、
あるいはアップデート中の画面フォーマットおよびキー
制御、あるいはディスクへのデータの格納形式の選択な
どの制御が行なわれる。
Conventionally, at the time of verifying or updating data, a user specifies a format program to be used for the work, and
Alternatively, control such as screen format and key control during updating or selection of data storage format on the disk is performed.

【0007】したがって、データのベリファイ、あるい
はアップデートの際、たとえば、ユーザがエントリの時
と異なる誤ったフォーマットプログラムを選択すると、
全く異なった入力制御が行なわれることになり、無効デ
ータを生じたり、データそのものが破壊される問題があ
った。
Therefore, when verifying or updating the data, for example, when the user selects an incorrect format program different from that at the time of entry,
Since completely different input control is performed, there is a problem that invalid data is generated or the data itself is destroyed.

【0008】特に、1データベースファイル中で、レコ
ードごとに異なるフォーマットプログラムを使用可能な
システムでは、上記のようなミスが生じる可能性が高
い。
Particularly, in a system in which different format programs can be used for each record in one database file, the above-mentioned mistakes are likely to occur.

【0009】本発明の課題は、以上の問題を解決し、デ
ータのベリファイ、あるいはアップデートの際、適切な
フォーマットプログラムを自動的に選択できるデータ処
理装置を提供することにある。
An object of the present invention is to solve the above problems and to provide a data processing device capable of automatically selecting an appropriate format program when verifying or updating data.

【0010】[0010]

【課題を解決するための手段】以上の課題を解決するた
めに、本発明においては、レコードのデータフォーマッ
トを記述したフォーマットプログラムに基づき、レコー
ド単位でデータベースファイルに対するデータ入力を制
御するデータ処理装置において、あるレコードのデータ
入力の際に使用したフォーマットプログラムを識別する
データを該レコードのデータの一部として前記データベ
ースファイルに記録し、既に入力されたデータベースフ
ァイルに対するアクセスを行なう際、レコード内に記録
されたフォーマットプログラムを識別するデータからレ
コードのデータ入力の際に使用したフォーマットプログ
ラムを特定し、該フォーマットプログラムを用いて前記
アクセスを制御する制御手段を有する構成を採用した。
In order to solve the above problems, the present invention provides a data processing device for controlling data input to a database file on a record-by-record basis on the basis of a format program describing a record data format. , Data for identifying a format program used when inputting data of a certain record is recorded in the database file as a part of the data of the record, and is recorded in the record when the already input database file is accessed. The format program used when the data of the record is input is specified from the data for identifying the format program, and the configuration having the control means for controlling the access using the format program is adopted.

【0011】[0011]

【作用】以上の構成によれば、レコードのデータ入力の
際に使用したフォーマットプログラムを識別するデータ
が該レコードのデータの一部として記録されるため、デ
ータベースファイルに対するデータのベリファイ、ある
いはアップデートなどのアクセスの際、このフォーマッ
トプログラム識別データを参照することにより、適切な
フォーマットプログラムを用いてアクセスを制御でき
る。
According to the above construction, since the data for identifying the format program used when inputting the data of the record is recorded as a part of the data of the record, it is possible to verify or update the data in the database file. At the time of access, by referring to the format program identification data, the access can be controlled by using an appropriate format program.

【0012】[0012]

【実施例】以下、図面に示す実施例に基づき、本発明を
詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the embodiments shown in the drawings.

【0013】図1に本発明を採用したデータ処理装置の
構造を示す。図1において、符号11は、データベース
システムの中核をなす制御部で、ワークステーション、
パーソナルコンピュータその他のコンピュータから成
る。なお、符号14は、制御部11に接続されたキーボ
ード、マウスなどからなる入力装置である。
FIG. 1 shows the structure of a data processing apparatus adopting the present invention. In FIG. 1, reference numeral 11 is a control unit that is the core of the database system, and is a workstation,
It consists of a personal computer and other computers. Reference numeral 14 is an input device including a keyboard, a mouse and the like connected to the control unit 11.

【0014】符号12は記憶装置で、ハードディスクの
ような記憶媒体からなり、データファイル2を格納す
る。入力装置14およびCRTディスプレイなどからな
る表示部16を用いたデータファイル2のデータエント
リ(入力)は、制御部11のソフトウェアに従って公知
の操作手順により実行される。
Reference numeral 12 is a storage device, which comprises a storage medium such as a hard disk and stores the data file 2. The data entry (input) of the data file 2 using the input device 14 and the display unit 16 including a CRT display is performed by a known operation procedure according to the software of the control unit 11.

【0015】その場合、あらかじめ用意されたフォーマ
ットプログラム1のうち、適切なものが選択され、この
フォーマットプログラム1の記述内容に応じて、キーボ
ード14のキー入力制御、表示部16の画面制御、およ
び記憶装置12のデータベースファイル2へのデータ格
納形式などが制御される。
In this case, an appropriate one is selected from the format programs 1 prepared in advance, and the key input control of the keyboard 14 and the screen control of the display unit 16 and the storage are performed according to the description contents of the format program 1. The data storage format in the database file 2 of the device 12 is controlled.

【0016】本実施例の場合、フォーマットプログラム
1は、1レコードを単位として、各フィールドのデータ
形式や、データ長、表示および格納形式を所定の形式で
記述したものである。
In the case of the present embodiment, the format program 1 describes the data format of each field, the data length, the display and the storage format in a predetermined format in units of one record.

【0017】また、本実施例の場合、1データベースフ
ァイル中においてレコードごとに異なるフォーマットプ
ログラムを使用できるものとする。すなわち、データエ
ントリの場合には、従来どおり、キーボード14からの
適当な操作手順によりユーザに所望のフォーマットプロ
グラム1を選択させ、そのフォーマットプログラム1に
よりキーボード14のキー入力制御、表示部16の画面
制御、および記憶装置12のデータベースファイル2へ
のデータ格納形式などを制御するものとする。
Further, in the case of this embodiment, different format programs can be used for each record in one database file. That is, in the case of data entry, the user is allowed to select a desired format program 1 by an appropriate operating procedure from the keyboard 14, and the key input control of the keyboard 14 and the screen control of the display unit 16 are performed by the format program 1 as usual. , And the data storage format in the database file 2 of the storage device 12 and the like.

【0018】フォーマットプログラム1は、公知の適当
なプログラム形式で記述されており、ユーザ、あるいは
システム管理者が所望の内容を記述したり、また、既存
のフォーマットプログラムを編集することができる。
The format program 1 is described in a well-known appropriate program format, and the user or system administrator can describe desired contents and can edit an existing format program.

【0019】さらに、本実施例では、エントリ時に選択
されたフォーマットプログラム1の種別をデータの一部
としてデータベースファイル2中に格納する。図2は、
本実施例におけるデータベースファイル2の構成を示し
ている。
Further, in this embodiment, the type of the format program 1 selected at the time of entry is stored in the database file 2 as a part of the data. Figure 2
The structure of the database file 2 in a present Example is shown.

【0020】図示のように、データベースファイル2の
各レコード中の所定の位置(図示の例では先頭バイト)
には制御バイトが設けられており、この制御バイトとし
てそのレコードの入力に使用されたフォーマットプログ
ラム1を識別するデータ(図示の例では01、02、0
3…)が格納される。
As shown in the drawing, a predetermined position (first byte in the illustrated example) in each record of the database file 2
Is provided with a control byte, and as the control byte, data for identifying the format program 1 used for inputting the record (01, 02, 0 in the illustrated example).
3 ...) is stored.

【0021】図3は上記構成における制御部11による
データエントリ、ベリファイおよびアップデート処理の
手順を示している。ここでは、1レコードについてのエ
ントリ、ベリファイおよびアップデート処理ループが示
されている。
FIG. 3 shows the procedure of data entry, verification and update processing by the control unit 11 in the above-mentioned configuration. Here, the entry, verify and update processing loop for one record is shown.

【0022】図3のステップS1〜S3はキーボード1
4からの入力に応じてステップS4、S7、あるいはS
8におけるエントリ、ベリファイおよびアップデート処
理を選択する処理を示している。
Steps S1 to S3 in FIG. 3 are the keyboard 1
Step S4, S7, or S depending on the input from
8 shows a process of selecting the entry, verify and update processes in FIG.

【0023】ステップS1においてデータエントリが選
択された場合には、ステップS4で従来同様にエントリ
処理が行なわれる。ここでは、前記のように、実際のエ
ントリ操作に先立って、適当な操作手順によりユーザに
所望のフォーマットプログラム1を選択させ、選択され
たフォーマットプログラム1を用いて各レコードの入
力、表示、格納が制御される。
When the data entry is selected in step S1, entry processing is performed in the same manner as in the conventional case in step S4. Here, as described above, prior to the actual entry operation, the user is made to select the desired format program 1 by an appropriate operation procedure, and the input, display, and storage of each record are performed using the selected format program 1. Controlled.

【0024】ステップS2ないし、S3でベリファイな
いしアップデート処理が選択された場合には、ステップ
S7、S8で対応するベリファイないしアップデート処
理を実行する前に、それぞれステップS5、S6におい
て、ベリファイないしアップデート処理で使用するフォ
ーマットプログラムを自動的に選択する。
When the verify or update process is selected in steps S2 to S3, the verify or update process is executed in steps S5 and S6, respectively, before the corresponding verify or update process is executed in steps S7 and S8. Automatically select the format program to use.

【0025】実際には、ステップS5、ないしS6で現
在アクセスしているデータベースファイル2のレコード
の制御バイト(図2参照)を参照し、ベリファイないし
アップデート処理で使用すべきフォーマットプログラム
を自動的に選択し、このフォーマットプログラムに基づ
き、ステップS7、S8に移行し、ベリファイないしア
ップデート処理における表示、入力あるいはデータ格納
を制御する。
Actually, in steps S5 to S6, the control byte of the record of the database file 2 currently being accessed (see FIG. 2) is referred to, and the format program to be used in the verify or update process is automatically selected. Then, based on this format program, the process proceeds to steps S7 and S8 to control the display, input or data storage in the verification or update process.

【0026】なお、データベースファイル2の制御バイ
トの内容は、適当な表示形式でレコードのベリファイな
いしアップデート処理中、キーボード14に明示的に表
示するようにすれば、ユーザは、現在扱っているレコー
ドのフォーマットを確認することができ、便利である。
If the contents of the control byte of the database file 2 are explicitly displayed on the keyboard 14 during the record verifying or updating process in an appropriate display format, the user can display the record currently handled. You can check the format, which is convenient.

【0027】また、適当な操作手順によりエントリ時と
異なるフォーマットプログラム1を選択可能とし、エン
トリ時と異なるフォーマットプログラム1が選択された
場合には、自動的にデータフォーマットを変換して表
示、入力あるいはデータ格納を変更する制御(リフォー
マット処理)を行なうようにしてもよい。その場合、変
更後のフィールド長が短すぎる場合などの変換エラーが
生じた場合には警告を発生し、さらに異なるフォーマッ
トプログラム1を選択させるようにしてもよい。
Further, the format program 1 different from that at the time of entry can be selected by an appropriate operation procedure, and when the format program 1 different from that at the time of entry is selected, the data format is automatically converted and displayed, input or. You may make it control (reformat processing) which changes data storage. In that case, when a conversion error occurs such as when the changed field length is too short, a warning may be issued and a different format program 1 may be selected.

【0028】以上の実施例によれば、データベースファ
イル2中に制御バイトとしてデータ入力時に使用したフ
ォーマットプログラムを識別するデータを格納し、この
制御バイトをレコードのベリファイないしアップデート
時に参照し、レコードのベリファイないしアップデート
処理に使用すべきフォーマットプログラムを自動的に選
択するようにしているため、従来のようにフォーマット
プログラムの選択ミスにより無効データ発生やデータ破
壊を生じる問題がなく、安全、確実にデータ処理業務を
行なえるという優れた効果がある。
According to the above embodiment, the data for identifying the format program used at the time of data input is stored in the database file 2 as the control byte, and the control byte is referred at the time of verifying or updating the record to verify the record. Also, since the format program that should be used for the update process is automatically selected, there is no problem of invalid data generation or data destruction due to the mistake of selecting the format program as in the past, and safe and reliable data processing business. It has the excellent effect that

【0029】[0029]

【発明の効果】以上から明らかなように、本発明によれ
ば、レコードのデータフォーマットを記述したフォーマ
ットプログラムに基づき、レコード単位でデータベース
ファイルに対するデータ入力を制御するデータ処理装置
において、あるレコードのデータ入力の際に使用したフ
ォーマットプログラムを識別するデータを該レコードの
データの一部として前記データベースファイルに記録
し、既に入力されたデータベースファイルに対するアク
セスを行なう際、レコード内に記録されたフォーマット
プログラムを識別するデータからレコードのデータ入力
の際に使用したフォーマットプログラムを特定し、該フ
ォーマットプログラムを用いて前記アクセスを制御する
制御手段を有する構成を採用しているので、レコードの
データ入力の際に使用したフォーマットプログラムを識
別するデータが該レコードのデータの一部として記録さ
れるため、データベースファイルに対するデータのベリ
ファイ、あるいはアップデートなどのアクセスの際、こ
のフォーマットプログラム識別データを参照することに
より、適切なフォーマットプログラムを用いてアクセス
を制御でき、従来のように誤ったフォーマットプログラ
ムを選択して無効データを生じたり、データそのものを
破壊するという事故を生じることがない優れたデータ処
理装置を提供できる。
As is apparent from the above, according to the present invention, in a data processing device for controlling data input to a database file on a record-by-record basis, based on a format program describing a record data format, the data of a certain record is recorded. Data for identifying the format program used at the time of input is recorded in the database file as a part of the data of the record, and when the database file already input is accessed, the format program recorded in the record is identified. Since the format program used when inputting the data of the record is specified from the data to be recorded and the control means for controlling the access is used by using the format program, the format program is used when inputting the data of the record. Since the data for identifying the formatted program is recorded as a part of the data of the record, an appropriate format can be obtained by referring to the format program identification data when verifying or updating the data in the database file. It is possible to provide an excellent data processing apparatus which can control access using a program and which does not cause an accident that invalid data is generated by selecting an incorrect format program as in the conventional case or data itself is destroyed.

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

【図1】本発明を採用したデータ処理装置のブロック図
である。
FIG. 1 is a block diagram of a data processing device adopting the present invention.

【図2】図1の装置のデータベースファイルの格納形式
を示した説明図である。
FIG. 2 is an explanatory diagram showing a storage format of a database file of the apparatus of FIG.

【図3】図1の装置におけるエントリ、ベリファイおよ
びアップデート処理の制御手順を示したフローチャート
図である。
3 is a flowchart showing a control procedure of entry, verify and update processing in the apparatus of FIG.

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

1 フォーマットプログラム 2 データベースファイル 11 制御部 12 記憶装置 14 キーボード 16 表示部 1 format program 2 database file 11 control unit 12 storage device 14 keyboard 16 display unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 レコードのデータフォーマットを記述し
たフォーマットプログラムに基づき、レコード単位でデ
ータベースファイルに対するデータ入力を制御するデー
タ処理装置において、 あるレコードのデータ入力の際に使用したフォーマット
プログラムを識別するデータを該レコードのデータの一
部として前記データベースファイルに記録し、既に入力
されたデータベースファイルに対するアクセスを行なう
際、レコード内に記録されたフォーマットプログラムを
識別するデータからレコードのデータ入力の際に使用し
たフォーマットプログラムを特定し、該フォーマットプ
ログラムを用いて前記アクセスを制御する制御手段を有
することを特徴とするデータ処理装置。
1. A data processing device for controlling data input to a database file on a record-by-record basis based on a format program describing a record data format, and data for identifying a format program used for data input of a record. The format used when inputting the data of the record from the data identifying the format program recorded in the record when the data is recorded in the database file as a part of the data of the record and the database file already input is accessed. A data processing device comprising a control means for specifying a program and controlling the access using the format program.
JP4054002A 1992-03-13 1992-03-13 Data processing device Pending JPH05257775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4054002A JPH05257775A (en) 1992-03-13 1992-03-13 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4054002A JPH05257775A (en) 1992-03-13 1992-03-13 Data processing device

Publications (1)

Publication Number Publication Date
JPH05257775A true JPH05257775A (en) 1993-10-08

Family

ID=12958392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4054002A Pending JPH05257775A (en) 1992-03-13 1992-03-13 Data processing device

Country Status (1)

Country Link
JP (1) JPH05257775A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08297676A (en) * 1995-04-27 1996-11-12 Nec Corp Method and device for general-purpose distribution data input for satellite or the like

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08297676A (en) * 1995-04-27 1996-11-12 Nec Corp Method and device for general-purpose distribution data input for satellite or the like

Similar Documents

Publication Publication Date Title
US6826604B2 (en) Input/output device information management system for multi-computer system
US8201079B2 (en) Maintaining annotations for distributed and versioned files
US20050160356A1 (en) Dealing with annotation versioning through multiple versioning policies and management thereof
US4979109A (en) Method of controlling a data dictionary directory system in a data base system
JP3265131B2 (en) Event generation distribution method
JPH07262072A (en) File controller
JPH05257775A (en) Data processing device
JP2003058534A (en) Data processing device and program
JPH07295876A (en) Access right controlling device
JP3489392B2 (en) Security system
JP3795204B2 (en) File management apparatus, computer system, file management method, and recording medium
JP3120493B2 (en) Data processing device
JP2692196B2 (en) Test data editing method
JP2933222B2 (en) Document processing device
JPS60179850A (en) Start control system of maintenance
JPH0476744A (en) Computer system with shared memory table recovering function
JP3247846B2 (en) Medical practice input device
JP3923634B2 (en) CD security system
JPH04336341A (en) File access control system
JPH02297285A (en) Document processor
JPH1069263A (en) Automatic screen generation method based on data attribute request
JPH11143692A (en) Release medium preparation device
JPS63104154A (en) File shift system
JPH0573395A (en) File controller
JPH0331944A (en) database system