JPH0844605A - Data check device - Google Patents

Data check device

Info

Publication number
JPH0844605A
JPH0844605A JP6193733A JP19373394A JPH0844605A JP H0844605 A JPH0844605 A JP H0844605A JP 6193733 A JP6193733 A JP 6193733A JP 19373394 A JP19373394 A JP 19373394A JP H0844605 A JPH0844605 A JP H0844605A
Authority
JP
Japan
Prior art keywords
record
check
attribute
data
data record
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
Application number
JP6193733A
Other languages
Japanese (ja)
Other versions
JP2616451B2 (en
Inventor
Masatoshi Tomina
正寿 冨名
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6193733A priority Critical patent/JP2616451B2/en
Publication of JPH0844605A publication Critical patent/JPH0844605A/en
Application granted granted Critical
Publication of JP2616451B2 publication Critical patent/JP2616451B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To perform an attribute check only for any specified attribute in a data record without bearing any burden to a user when checking the data record. CONSTITUTION:Based on record structure definition information 2 showing the structure of a reference data record, a record structure analystic part 12 prepares record structure definition extension information showing the item names, attributes, start position and item lengths of respective items in the reference data record. Based on a check operating instruction parameter description 3 and the record structure definition extension information, a parameter analystic part 15 calculates an in-record position to perform the check inside the check object data record. A data reading part 17 reads the data record from a check object record storage file 4, a check object part acquiring part 18 acquires the contents at the in-record position, which is calculated by the parameter analystic part 15, among the contents of the check object data record and an attribute check part 19 performs the attribute check for the contents acquired by the check object part acquiring part 18.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、或るシステムで作成さ
れたデータレコードに、そのデータレコードを他のシス
テムで利用した場合、属性エラーによりデータ例外を発
生させる部分が存在するか否かをチェックするデータチ
ェック装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to a data record created in a certain system, which is used to determine whether or not there is a portion that causes a data exception due to an attribute error when the data record is used in another system. The present invention relates to a data check device to be checked.

【0002】[0002]

【従来の技術】或るシステムAで作成されたデータレコ
ードを他のシステムBで利用する場合、システムBで認
識している基準データレコードの構造(データレコード
中の各項目の属性,項目長等)に基づいて、システムA
で作成されたチェック対象データレコードに、基準デー
タレコードに対して属性エラーとなる部分が存在するか
否かを事前にチェックしておくことが必要になる。
2. Description of the Related Art When a data record created in a certain system A is used in another system B, the structure of a reference data record recognized by the system B (attribute of each item in the data record, item length, etc.). ) Based on the system A
It is necessary to check in advance whether or not the check target data record created in step 1 has a part that causes an attribute error with respect to the reference data record.

【0003】チェック対象データレコード中に、基準デ
ータレコードに対して属性エラーとなる部分が存在する
か否かをチェックする技術としては、従来、基準データ
レコードの各項目の項目属性,項目長を含む項目定義情
報を外部記憶装置に格納しておき、データレコードのチ
ェック時、チェック対象データレコードを読み込むと共
に項目定義情報を主記憶装置上に展開し、この項目定義
情報に基づいて読み込んだチェック対象データレコード
に属性エラーとなる部分が存在するか否かをチェックす
る技術(例えば、特開昭59−148921号公報)が
知られており、この技術を利用することにより、システ
ムAで作成されたデータレコードが、基準データレコー
ドに対して属性エラーとなる部分を有しているか否かを
チェックすることができる。即ち、システムBが認識し
ている基準データレコードの各項目の項目属性,項目長
を項目定義情報として外部記憶装置に格納しておけば良
い。
Conventionally, as a technique for checking whether or not a part of the data record to be checked has an attribute error with respect to the reference data record, an item attribute and an item length of each item of the reference data record are conventionally included. The item definition information is stored in the external storage device, and when the data record is checked, the check target data record is read, and the item definition information is expanded on the main storage device, and the check target data read based on the item definition information is read. A technique (for example, Japanese Patent Laid-Open Publication No. Sho 59-148921) for checking whether or not a part causing an attribute error exists in a record is known. Check if the record has any attribute error with respect to the reference data record It can be. That is, the item attribute and item length of each item of the reference data record recognized by the system B may be stored in the external storage device as item definition information.

【0004】[0004]

【発明が解決しようとする課題】ところで、データレコ
ードの属性チェックを行なう場合、特定の属性について
のみ、属性チェックを行なえば十分な場合がある。例え
ば、システムBのデータレコード処理に関する機能のテ
ストを、システムBで作成したデータレコードが存在し
ないことからシステムAで既に作成されているデータレ
コードを利用して行なう場合であって、システムBで
は、上記データレコードには、属性が数字の項目と属性
が英数字の項目の2種類しか含まれていないと認識して
いる場合は、システムAで作成されたデータレコード
(このデータレコード中の項目は、数字,英数字,ゼロ
サプレスの内の何れかの属性であることが保証されてい
るとする)中の、システムBで属性が数字であると認識
している部分についてのみ属性チェックを行なえば十分
である。
By the way, when performing the attribute check of a data record, it may be sufficient to perform the attribute check only for a specific attribute. For example, a test of a function related to the data record processing of the system B is performed using a data record already created in the system A because the data record created in the system B does not exist. If it is recognized that the data record includes only two types of attributes, namely, a numeric item and an alphanumeric item, the data record created by the system A (the items in this data record are , Numeric, alphanumeric, or zero suppression), it is sufficient to perform an attribute check only on those parts of the system B that recognize that the attribute is a number. It is.

【0005】即ち、システムBで属性が数字であると認
識している部分を、システムAでは属性が英数字,ゼロ
サプレスと認識している場合は、システムAで作成され
たデータレコードの上記部分には、数字以外のコードが
格納されていることがあり、そのようなデータレコード
を使用してシステムBのテストを行なうと、データ例外
の発生によりテストが中断してしまうが、システムBで
属性が英数字であると認識している部分を、システムA
では属性が数字,ゼロサプレスであると認識していても
データ例外は発生しないからである。
That is, when the attribute recognized by the system B as a numeral is recognized by the system B, and when the attribute is recognized by the system A as an alphanumeric character and zero suppression, the data record created by the system A is added to the above described portion. In some cases, a code other than a number may be stored, and when a test of the system B is performed using such a data record, the test is interrupted due to the occurrence of a data exception. The parts that are recognized as alphanumeric characters are
This is because a data exception does not occur even if you recognize that the attribute is numeric or zero suppress.

【0006】このように、データレコードの特定の属性
についてのみ、属性チェックを行なえば十分な場合であ
っても、上記した従来の技術は、基準データレコードの
全ての項目の項目属性,項目長を外部記憶装置に格納す
るようにしているので、全ての項目について属性チェッ
クが行なわれてしまう。即ち、不必要な項目についても
属性チェックが行なわれるため、無駄な処理時間が多く
なるという問題がある。また、このような問題をなくす
ため、属性チェックを行なうことが必要な項目の項目属
性,項目開始位置,項目長のみを外部記憶装置に格納す
ることも考えられるが、この場合は、利用者が、チェッ
クを行なうことが必要になる項目の属性,開始位置,項
目長をレコード構造定義情報を解析することにより取得
しなければならないため、利用者に負担がかかるという
問題があった。
As described above, even if it is sufficient to perform an attribute check only on a specific attribute of a data record, the above-described conventional technique sets the item attributes and item lengths of all items of the reference data record. Since the data is stored in the external storage device, the attribute check is performed for all the items. That is, the attribute check is performed even for unnecessary items, which causes a problem of wasteful processing time. Further, in order to eliminate such a problem, it is conceivable to store only the item attribute, item start position, and item length of the item that needs to be attribute checked in the external storage device. The attribute, start position, and item length of the item that needs to be checked must be obtained by analyzing the record structure definition information, which causes a problem of burdening the user.

【0007】そこで、本発明の目的は、利用者に負担を
かけることなく、データレコード中の特定の属性につい
てのみ属性チェックを行なうことができるデータチェッ
ク装置を提供することにある。
Therefore, an object of the present invention is to provide a data check device capable of performing an attribute check only on a specific attribute in a data record without burdening the user.

【0008】[0008]

【課題を解決するための手段】本発明は上記目的を達成
するため、基準データレコードの構造を示すレコード構
造定義情報に基づいて前記基準データレコード中の各項
目の属性,開始位置及び項目長を示すレコード構造定義
展開情報を作成するレコード構造解析部と、チェック動
作指定パラメータ記述で指定されたチェック属性と前記
レコード構造解析部で作成したレコード構造定義展開情
報とに基づいて、チェック対象データレコード中のチェ
ックを行なうレコード内位置を求めるパラメータ解析部
と、前記チェック対象データレコードが格納されている
ファイルからデータレコードを1レコードずつ読み込む
データ読み込み部と、該データ読み込み部が読み込んだ
データレコードの内容の内、前記パラメータ解析部が求
めたレコード内位置の内容を取得するチェック対象部分
取得部と、該チェック対象部分取得部が取得した内容に
対して属性チェックを行なう属性チェック部とを備えた
ものである。
According to the present invention, in order to achieve the above object, the attribute, start position, and item length of each item in the reference data record are determined based on record structure definition information indicating the structure of the reference data record. A record structure analysis unit for creating record structure definition development information to be shown, based on the check attribute specified in the check operation specification parameter description and the record structure definition development information created by the record structure analysis unit, A parameter analysis unit for obtaining a position in a record for performing a check, a data reading unit for reading data records one by one from a file in which the data record to be checked is stored, and a data reading unit for reading the contents of the data records read by the data reading unit. Among the records in the record determined by the parameter analysis unit A check target portion acquisition unit for acquiring the content, in which a attribute check unit for performing attribute checks the contents of the check target portion acquisition unit has acquired.

【0009】また、属性エラーがあったチェック対象デ
ータレコード,属性エラー部分に対応する基準データレ
コードの項目名,属性エラー部分の内容を利用者に認識
させるという目的を達成するため、前記属性チェック部
で属性エラーが検出された部分を含むチェック対象デー
タレコードの相対番号,前記属性エラーが検出された部
分に対応する前記基準データレコードの項目名及び前記
属性エラーが検出された部分の内容を出力する結果出力
制御部を備えたものである。
In order to achieve the object of allowing a user to recognize the data record to be checked having an attribute error, the item name of the reference data record corresponding to the attribute error portion, and the content of the attribute error portion, the attribute checking section is provided. And outputs the relative number of the data record to be checked including the part where the attribute error was detected, the item name of the reference data record corresponding to the part where the attribute error was detected, and the content of the part where the attribute error was detected. It is provided with a result output control unit.

【0010】また、本発明は、或るシステムで作成され
たデータレコードに、それを他のシステムで利用した場
合、属性エラーによりデータ例外を発生させる部分が含
まれていても、上記或るシステムで作成されたデータレ
コードから上記他のシステムでのテスト等に於いて利用
可能なデータレコードを作成できるようにするという目
的を達成するため、前記結果出力制御部は、前記属性チ
ェック部で属性エラーが検出されなかったチェック対象
データレコードについては該データレコードをそのまま
出力データファイルに出力し、前記属性チェック部で属
性エラーが検出されたチェック対象データレコードにつ
いては属性エラーが検出された部分の内容を属性エラー
のない内容に変更した後、前記出力データファイルに出
力するものである。
Further, according to the present invention, even if a data record created in a certain system includes a portion which causes a data exception due to an attribute error when the data record is used in another system, the above-mentioned certain system In order to achieve the purpose of making it possible to create a data record that can be used in tests on other systems from the data record created by the above, the result output control unit is For the check target data record for which the attribute error was not detected, the data record is output as it is to the output data file. This is to output to the output data file after changing the content without attribute error.

【0011】[0011]

【作用】レコード構造解析部は、基準データレコードの
構造を示すレコード構造定義情報に基づいて基準データ
レコード中の各項目の属性,開始位置及び項目長を示す
レコード構造定義展開情報を作成し、パラメータ解析部
は、チェック動作指定パラメータ記述で指定されたチェ
ック属性とレコード構造解析部が作成したレコード構造
定義展開情報とに基づいてチェック対象データレコード
中のチェックを行なうレコード内位置を求める。
The record structure analysis unit creates record structure definition development information indicating the attribute, start position and item length of each item in the reference data record based on the record structure definition information indicating the structure of the reference data record, The analysis unit obtains a position in the data record to be checked in the check target data record based on the check attribute specified by the check operation specification parameter description and the record structure definition development information created by the record structure analysis unit.

【0012】データレコードのチェック時、データ読み
込み部がファイルからチェック対象データレコードを1
レコードずつ読み込む。
At the time of checking the data record, the data reading unit selects the data record to be checked from the file as 1
Read record by record.

【0013】データ読み込み部がチェック対象データレ
コードを1つ読み込むと、チェック対象部分取得部が、
そのデータレコードの内容の内、パラメータ解析部が求
めたレコード内位置の内容を取得する。
When the data reading unit reads one data record to be checked, the part to be checked acquisition unit
Among the contents of the data record, the contents of the position in the record obtained by the parameter analysis unit are acquired.

【0014】チェック対象部分取得部がチェック対象と
する項目の内容を取得すると、属性チェック部が、その
項目の内容に対して属性チェックを行なう。また、結果
出力制御部は、属性チェック部で属性エラーが検出され
た部分を含むチェック対象データレコードの相対番号,
前記属性エラーが検出された部分に対応する基準データ
レコードの項目名及び前記属性エラーが検出された部分
の内容を出力する。
When the check target part acquisition unit acquires the content of the item to be checked, the attribute check unit performs an attribute check on the content of the item. In addition, the result output control unit determines the relative number of the check target data record including the part in which the attribute error is detected by the attribute check unit,
An item name of the reference data record corresponding to the part where the attribute error is detected and the contents of the part where the attribute error is detected are output.

【0015】また、他の構成に於いては、前記属性チェ
ック部で属性エラーが検出されなかったチェック対象デ
ータレコードについては該データレコードをそのまま出
力データファイルに出力し、前記属性チェック部で属性
エラーが検出されたチェック対象データレコードについ
ては属性エラーが検出された部分の内容を属性エラーの
ない内容に変更した後、出力データファイルに出力す
る。
In another configuration, for the check target data record for which no attribute error is detected by the attribute check unit, the data record is directly output to the output data file, and the attribute check unit outputs the attribute error. For the check target data record in which is detected, the content of the portion in which the attribute error is detected is changed to the content without the attribute error, and then output to the output data file.

【0016】[0016]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0017】図1は本発明の実施例のブロック図であ
り、データチェック装置1と、レコード構造定義情報2
と、チェック動作指定パラメータ記述3と、チェック対
象レコード格納ファイル4と、プリンタ等の出力装置5
と、出力データファイル6と、表示装置7と、入力装置
8とから構成されている。
FIG. 1 is a block diagram of an embodiment of the present invention, wherein a data check device 1 and record structure definition information 2
A check operation specification parameter description 3, a check target record storage file 4, and an output device 5 such as a printer.
, An output data file 6, a display device 7, and an input device 8.

【0018】データチェック装置1は、レコード構造入
力部11と、レコード構造解析部12と、レコード構造
定義展開テーブル13と、パラメータ入力部14と、パ
ラメータ解析部15と、パラメータ展開テーブル16
と、データ読み込み部17と、チェック対象部分取得部
18と、属性チェック部19と、結果出力制御部20と
から構成されている。
The data check device 1 includes a record structure input unit 11, a record structure analysis unit 12, a record structure definition expansion table 13, a parameter input unit 14, a parameter analysis unit 15, and a parameter expansion table 16.
The data reading unit 17, the check target portion acquisition unit 18, the attribute check unit 19, and the result output control unit 20.

【0019】レコード構造入力部11にはレコード構造
定義情報2が入力される。
The record structure input section 11 receives record structure definition information 2.

【0020】レコード構造定義情報2は、チェック対象
データレコードの属性チェックを行なう際に基準とする
基準データレコードの構造を示す情報であり、COBO
Lに於けるCOPY原文等がこれに相当する。図2はレ
コード構造定義情報2の内容例を示した図であり、この
例は、データレコードがPKEY,店番,顧客番号,カ
ナ顧客名,電話番号,預金残高の項目から構成され、店
番,顧客番号,預金残高の項目の属性が数字で、カナ顧
客名,電話番号の項目の属性が英数字であることを示し
ている。また、この例は、基本項目である店番,顧客番
号,カナ顧客名,電話番号,預金残高の項目長がそれぞ
れ3,8,20,12,11であることを示し、PKE
Yが店番,顧客番号の集団項目になっていることを示し
ている。
The record structure definition information 2 is information indicating the structure of a reference data record used as a reference when the attribute check of the data record to be checked is performed.
The original text of COPY in L corresponds to this. FIG. 2 is a diagram showing an example of the contents of the record structure definition information 2. In this example, the data record is composed of items of PKEY, store number, customer number, kana customer name, telephone number, and deposit balance. It shows that the attributes of the items of the number and the deposit balance are numbers, and the attributes of the items of the kana customer name and the telephone number are alphanumeric. Also, this example shows that the item lengths of the basic items such as store number, customer number, kana customer name, telephone number, and deposit balance are 3, 8, 20, 12, and 11, respectively.
It indicates that Y is a group item of store number and customer number.

【0021】レコード構造解析部12は、レコード構造
入力部11が入力したレコード構造定義情報2を解析し
てレコード構造定義展開情報を生成し、それをレコード
構造定義展開テーブル13に展開する機能を有する。レ
コード構造定義展開情報は、レコード構造定義情報2に
よって構造が定義されている基準データレコードの各項
目の項目名,属性,開始位置,項目長を示すものであ
り、図3に示すように、1つの項目について情報が、レ
コード構造定義展開テーブル13の1つのテーブル番号
に対応する領域に格納される。
The record structure analysis unit 12 has a function of analyzing the record structure definition information 2 input by the record structure input unit 11 to generate record structure definition expansion information, and expanding the same into the record structure definition expansion table 13. . The record structure definition development information indicates the item name, attribute, start position, and item length of each item of the reference data record whose structure is defined by the record structure definition information 2. As shown in FIG. Information on one item is stored in an area corresponding to one table number in the record structure definition expansion table 13.

【0022】パラメータ入力部14にはチェック動作指
定パラメータ記述3が入力される。
The check operation specifying parameter description 3 is input to the parameter input unit 14.

【0023】チェック動作指定パラメータ記述3には、
チェック対象属性や、出力装置5,出力データファイル
6にどのような情報を出力するか等が記述される。図4
はチェック動作指定パラメータ記述3の内容例を示した
図である。
The check operation designation parameter description 3 includes
The attributes to be checked and what information is output to the output device 5 and the output data file 6 are described. FIG.
FIG. 8 is a diagram showing an example of the contents of a check operation designation parameter description 3.

【0024】図4の例は、チェック対象にする属性を数
字にし、チェック対象データレコード中に属性エラーが
あった場合は、概要情報(先頭のデータレコードから数
えて何番目のデータレコードであるのかを示す相対番
号,属性エラーがあった部分に対応する基準データレコ
ードの項目名,属性エラーがあった部分の内容)を出力
すると共に、データレコード中の属性エラーのあった部
分の内容を初期化(オール0)にして、そのデータレコ
ードを出力することを指示している。尚、図4の例は、
データレコード中の属性エラーのあった部分の内容を初
期化した後、そのデータレコードを出力することを指示
しているが、属性エラーのあった部分の内容を初期化す
る必要がない場合には、図4中のCLEAR文を削除す
れば良い。また、図4の例は、属性エラーのあった部分
を含むデータレコードのみを出力することを指示してい
るが、チェックしたデータレコードを全て出力する場合
には、図4中のSELECT文を削除すれば良い。更
に、概要情報を出力する必要がない場合は、図4中の第
1番目の文〜第3番目の文を削除すれば良い。
In the example of FIG. 4, when the attribute to be checked is a number and there is an attribute error in the data record to be checked, summary information (how many data records counted from the first data record? The relative number indicating the, the item name of the reference data record corresponding to the part with the attribute error, and the contents of the part with the attribute error) are output, and the contents of the part with the attribute error in the data record are initialized. (All 0s) is set to instruct to output the data record. In addition, the example of FIG.
If you are instructing to output the data record after initializing the content of the attribute error part in the data record, but it is not necessary to initialize the content of the attribute error part , The CLEAR sentence in FIG. Also, the example of FIG. 4 indicates that only the data record including the part having the attribute error is output, but when outputting all the checked data records, the SELECT statement in FIG. 4 is deleted. Just do it. Furthermore, if it is not necessary to output the summary information, the first to third sentences in FIG. 4 may be deleted.

【0025】パラメータ解析部15は、パラメータ入力
部14が入力したチェック動作指定パラメータ記述3と
レコード構造定義展開テーブル13に展開されているレ
コード構造定義展開情報とに基づいてチェック動作パラ
メータ展開情報を生成し、それをパラメータ展開テーブ
ル16に展開する機能を有する。
The parameter analysis unit 15 generates check operation parameter expansion information based on the check operation specification parameter description 3 input by the parameter input unit 14 and the record structure definition expansion information expanded in the record structure definition expansion table 13. Then, it has a function of expanding it in the parameter expansion table 16.

【0026】チェック動作パラメータ展開情報は、レコ
ード構造定義情報2で構造が定義されている基準データ
レコードの項目の内の、属性がチェック動作指定パラメ
ータ記述3によって指定されているチェック属性と一致
している項目それぞれについて、その項目についての情
報が格納されているレコード構造定義展開テーブル13
中の領域を示すテーブル番号と、その項目に対する比較
対象とを有している。また、チェック動作パラメータ展
開情報は、属性チェック部19,結果出力制御部20に
どのような動作を行なわせるかを示す動作フラグ及び概
要情報を出力するか否かを示す概要情報フラグも含んで
いる。図5はチェック動作パラメータ展開情報をパラメ
ータ展開テーブル16に展開した時のパラメータ展開テ
ーブル16の内容を示した図である。
The check operation parameter expansion information matches the check attribute whose attribute is specified by the check operation specification parameter description 3 in the items of the reference data record whose structure is defined by the record structure definition information 2. For each existing item, the record structure definition expansion table 13 that stores information about the item
It has a table number indicating the middle area and a comparison target for the item. The check operation parameter expansion information also includes an operation flag indicating what kind of operation the attribute check unit 19 and the result output control unit 20 should perform, and an outline information flag indicating whether to output the outline information. . FIG. 5 is a diagram showing the contents of the parameter expansion table 16 when the check operation parameter expansion information is expanded in the parameter expansion table 16.

【0027】データ読み込み部17は、チェック対象と
するデータレコードが格納されているチェック対象レコ
ード格納ファイル4からデータレコードを1レコードず
つ読み込む機能を有する。
The data reading unit 17 has a function of reading data records one by one from the check target record storage file 4 in which the data records to be checked are stored.

【0028】チェック対象部分取得部18は、データ読
み込み部17が読み込んだデータレコードの内容の内、
チェック対象とする部分の内容を取得する機能を有す
る。
The part to be checked acquisition unit 18 is a part of the contents of the data record read by the data reading unit 17.
It has a function of acquiring the contents of the part to be checked.

【0029】属性チェック部19は、チェック対象部分
取得部18が取得した内容に対して、パラメータ展開テ
ーブル16に格納されている比較対象に従ったチェック
を行なう。
The attribute check unit 19 checks the content acquired by the check target portion acquisition unit 18 according to the comparison target stored in the parameter expansion table 16.

【0030】結果出力制御部20は、パラメータ展開テ
ーブル16に格納されている概要情報フラグ,動作フラ
グの内容に従って、チェック結果等を出力する機能を有
する。
The result output control section 20 has a function of outputting a check result and the like according to the contents of the outline information flag and the operation flag stored in the parameter expansion table 16.

【0031】次に、本実施例の動作を説明する。Next, the operation of this embodiment will be described.

【0032】今、例えば、システムBのデータレコード
処理に関する機能のテストを、システムBで作成したデ
ータレコードが存在しないことからシステムAで既に作
成されているデータレコードを利用して行なうことがで
きるか否かを調べるために、データチェック装置1を用
いてシステムAで作成されたデータレコードの属性チェ
ックを行なう場合を考えてみる。
Now, for example, is it possible to test the function relating to the data record processing of the system B by using the data record already created in the system A because the data record created in the system B does not exist? In order to check whether or not the data check device 1 is used, consider the case where the attribute check of a data record created in the system A is performed using the data check device 1.

【0033】この場合、オペレータは、先ず、システム
Bで認識している基準データレコードの構造を示すレコ
ード構造定義情報2をレコード構造入力部11に入力す
る。
In this case, the operator first inputs the record structure definition information 2 indicating the structure of the reference data record recognized by the system B to the record structure input section 11.

【0034】レコード構造解析部12は、レコード構造
入力部11にレコード構造定義情報2が入力されると、
図6の流れ図に示すように、入力されたレコード構造定
義情報2中の文を1つ読み込み (ステップS1)、その
文の構文解析を行なう (ステップS3)。
When the record structure definition information 2 is input to the record structure input unit 11, the record structure analysis unit 12
As shown in the flowchart of FIG. 6, one sentence in the input record structure definition information 2 is read (step S1), and the syntax of the sentence is analyzed (step S3).

【0035】そして、読み込んだ文に構文エラーがある
場合 (ステップS4がYES)は、表示装置7にエラー
表示を行なった後 (ステップS6)、その処理を終了す
る。また、構文エラーがない場合 (ステップS4がN
O)は、読み込んだ文によって定義されている項目につ
いてのレコード構造定義展開情報を生成してそれをレコ
ード構造定義展開テーブル13に展開する (ステップS
5)。
If the read sentence has a syntax error (YES in step S4), an error message is displayed on the display device 7 (step S6), and then the process ends. If there is no syntax error (step S4 is N
O) generates record structure definition expansion information about the item defined by the read statement and expands it in the record structure definition expansion table 13 (step S).
5).

【0036】このステップS5の処理を詳細に説明する
と、次のようになる。即ち、読み込んだ文が基本項目を
定義するものである場合は、その文が定義している項目
の項目名,属性,開始位置及び項目長から構成されるレ
コード構造定義展開情報を生成し、生成したレコード構
造定義展開情報をレコード構造定義展開テーブル13中
の1つのテーブル番号に対応する領域に展開する。ここ
で、項目の開始位置は、読み込んだ文が最初の項目につ
いてのものである場合は「0」にし、そうでない場合
は、レコード構造定義展開テーブル13に前回展開した
レコード構造定義展開情報中の、項目の開始位置と項目
長とを加算した値にする。
The processing in step S5 will be described in detail as follows. That is, if the read sentence defines an elementary item, record structure definition expansion information including the item name, attribute, start position, and item length of the item defined by the sentence is generated and generated. The developed record structure definition development information is developed in an area corresponding to one table number in the record structure definition development table 13. Here, the start position of the item is set to “0” if the read sentence is for the first item, otherwise, the start position of the item in the record structure definition expansion information previously expanded in the record structure definition expansion table 13 is set. , A value obtained by adding the item start position and the item length.

【0037】また、読み込んだ文が集団項目を定義する
ものである場合は、その集団項目の項目長は、集団項目
中の全ての項目の項目長が判らないと、求めることがで
きないので、集団項目を定義する文を読み込んだ時点に
於いては、その集団項目のレコード構造定義展開情報の
内、項目名,属性(必ず英数字Xとする),開始位置の
み生成してそれらをレコード構造定義展開テーブル13
中の1つのテーブル番号に対応する領域に展開してお
き、項目長は、その集団項目に含まれている項目の項目
長が全て判った時点に於いて、それらを全て加算するこ
とにより求め、レコード構造定義展開テーブル13の上
記領域に展開する。
If the read sentence defines a group item, the item length of the group item cannot be obtained unless the item lengths of all the items in the group item are known. At the time when the statement that defines the item is read, only the item name, attribute (always alphanumeric X), and start position are generated from the record structure definition expansion information of the group item, and these are defined in the record structure definition. Deployment table 13
Expanded in the area corresponding to one of the table numbers, the item length is obtained by adding all the item lengths of the items included in the group item at the time when the item lengths are known, It is developed in the above-mentioned area of the record structure definition development table 13.

【0038】その後、レコード構造解析部12は、レコ
ード構造定義情報2中の次の文を1つ読み込み (ステッ
プS1)、その文について前述したと同様の処理を行な
う。レコード構造解析部12は、上述した処理をレコー
ド構造定義情報2中の全ての文について行なうと (ステ
ップS2がYES)と、表示装置7に正常終了表示を行
なった後 (ステップS7)、その処理を終了する。
Thereafter, the record structure analysis unit 12 reads one next sentence in the record structure definition information 2 (step S1), and performs the same processing as described above for that sentence. The record structure analysis unit 12 performs the above-described processing for all the sentences in the record structure definition information 2 (YES in step S2), and after displaying normal end on the display device 7 (step S7), the processing thereof. To finish.

【0039】従って、今、例えば、レコード構造定義情
報2の内容が図2に示すものであるとすると、次のよう
な処理が行なわれることになる。
Therefore, assuming now that the contents of the record structure definition information 2 are those shown in FIG. 2, the following processing will be performed.

【0040】レコード構造解析部12は、レコード構造
定義情報2の先頭の文「02 PKEY.」を読み込む
と (ステップS1)、構文解析を行なう (ステップS
3)。この文の構文は正しいので、ステップS4の判断
結果はNOとなり、ステップS5の処理が行なわれる。
The record structure analysis unit 12, when reading the first sentence "02 PKEY." Of the record structure definition information 2 (step S1), performs a syntax analysis (step S).
3). Since the syntax of this sentence is correct, the decision result in the step S4 is NO, and the process in the step S5 is performed.

【0041】この文は集団項目を定義するものであるの
で、レコード構造解析部12は、図3に示すように、項
目名「PKEY」,属性「X」,開始位置「0」をレコ
ード構造定義展開テーブル13のテーブル番号1の領域
に格納する (ステップS5)。
Since this statement defines a group item, as shown in FIG. 3, the record structure analysis unit 12 sets the item name “PKEY”, the attribute “X”, and the start position “0” in the record structure definition. It is stored in the area of table number 1 of the development table 13 (step S5).

【0042】次いで、レコード構造解析部12は、第2
番目の文「03 店番 PIC 9(3).」を読み込
む (ステップS1)。第2番目の文は、基本項目を定義
するものであるので、レコード構造解析部12は、図3
に示すように、項目名「店番」,属性「9」,開始位置
「0」,項目長「3」をレコード構造定義展開テーブル
13のテーブル番号2の領域に展開する (ステップS
5)。
Next, the record structure analysis unit 12
The third sentence "03 store number PIC 9 (3)." Is read (step S1). The second sentence defines an elementary item.
As shown in, the item name “store number”, the attribute “9”, the start position “0”, and the item length “3” are expanded in the area of table number 2 of the record structure definition expanding table 13 (step S
5).

【0043】その後、レコード構造解析部12は第3番
目の文「03 顧客番号 PIC9(8).」を読み込
む (ステップS1)。第3番目の文も、基本項目を定義
するものであるので、レコード構造解析部12は、図3
に示すように、レコード構造定義展開テーブル13のテ
ーブル番号3の領域に、項目名「顧客番号」,属性
「9」,開始位置「3」,項目長「8」を展開する (ス
テップS5)。
After that, the record structure analysis unit 12 reads the third sentence "03 Customer number PIC9 (8)." (Step S1). Since the third sentence also defines the basic item, the record structure analysis unit 12 uses the structure shown in FIG.
As shown in (5), the item name "customer number", attribute "9", start position "3", and item length "8" are developed in the area of table number 3 of the record structure definition development table 13 (step S5).

【0044】次いで、レコード構造解析部12は、第4
番目の文「02 カナ顧客名 PIC X(20).」
を読み込む (ステップS1)。第4番目の文も、基本項
目を定義するものであるので、レコード構造解析部12
は、図3に示すように、レコード構造定義展開テーブル
13のテーブル番号4の領域に、項目名「カナ顧客
名」,属性「X」,開始位置「11」,項目長「20」
を設定し、また、第4番目の文を読み込んだ時点に於い
て、集団項目を定義する第1番目の文が閉じたことが判
るので、レコード構造解析部12は、第2番目,第3番
目の文によって示される項目の項目長「3」,「8」を
加算し、加算結果「11」を集団項目の項目長としてレ
コード構造定義展開テーブル13のテーブル番号1の領
域に展開する(ステップS5)。
Next, the record structure analysis unit 12 causes the fourth
The second sentence "02 Kana customer name PIC X (20)."
Is read (step S1). Since the fourth sentence also defines the basic item, the record structure analysis unit 12
As shown in FIG. 3, in the area of table number 4 of the record structure definition expansion table 13, the item name “Kana customer name”, the attribute “X”, the start position “11”, the item length “20”.
Is set, and at the time when the fourth sentence is read, it is known that the first sentence defining the group item has been closed. The item lengths "3" and "8" of the item indicated by the second sentence are added, and the addition result "11" is developed in the area of table number 1 of the record structure definition development table 13 as the item length of the group item (step S5).

【0045】その後、レコード構造解析部12は、レコ
ード構造定義情報2中の第5番目,第6番目の文を順次
読み込み、前述した処理を行なう。そして、第6番目の
文「02 預金残高 PIC 9(11).」について
の処理が終了すると (ステップS2がYES)、表示装
置7に正常終了表示を行なった後 (ステップS7)、そ
の処理を終了する。
Thereafter, the record structure analysis unit 12 sequentially reads the fifth and sixth sentences in the record structure definition information 2 and performs the above-described processing. When the process for the sixth sentence "02 Deposit balance PIC 9 (11)." Is completed (YES in step S2), a normal completion display is displayed on the display device 7 (step S7), and then the process is executed. finish.

【0046】オペレータは、表示装置7に正常終了表示
が行なわれると、次にチェック動作指定パラメータ記述
3をパラメータ入力部14に入力する。尚、表示装置7
にエラー表示が行なわれた場合は、オペレータは、レコ
ード構造定義情報2中の誤りを修正し、修正後のレコー
ド構造定義情報2を再度入力する。
When the normal end display is displayed on the display device 7, the operator next inputs the check operation designation parameter description 3 into the parameter input section 14. The display device 7
If an error is displayed on the screen, the operator corrects the error in the record structure definition information 2 and inputs the corrected record structure definition information 2 again.

【0047】パラメータ解析部15は、パラメータ入力
部14に、チェック動作指定パラメータ記述3が入力さ
れると、図7の流れ図に示すように、チェック動作指定
パラメータ記述3中の文を1つ読み込み (ステップS1
1)、読み込んだ文の構文を解析する (ステップS1
3)。
When the check operation specification parameter description 3 is input to the parameter input unit 14, the parameter analysis unit 15 reads one sentence in the check operation specification parameter description 3 as shown in the flowchart of FIG. Step S1
1), analyze the syntax of the read sentence (step S1)
3).

【0048】そして、読み込んだ文に構文エラーがある
場合 (ステップS14がYES)は、表示装置7にエラ
ー表示を行なった後 (ステップS15)、その処理を終
了する。また、読み込んだ文に構文エラーがない場合
(ステップS14がNO)は、チェック動作指定パラメ
ータ記述3中の次の文を読み込み (ステップS11)、
前述したと同様の処理を行なう。
If there is a syntax error in the read sentence (YES in step S14), an error message is displayed on the display device 7 (step S15), and the process ends. Also, if there is no syntax error in the read statement
(NO in step S14) reads the next sentence in the check operation designation parameter description 3 (step S11),
The same processing as described above is performed.

【0049】そして、チェック動作指定パラメータ記述
3中の全ての文について前述した処理を行なうと、パラ
メータ解析部15は、読み込んだチェック動作指定パラ
メータ記述3とレコード構造定義展開テーブル13の内
容とに基づいてチェック動作指定パラメータ展開情報を
生成してそれをパラメータ展開テーブル16に展開し
(ステップS16)、その後、表示装置7に正常終了表
示を行なう (ステップS17)。
When the above-described processing is performed on all the statements in the check operation specification parameter description 3, the parameter analysis unit 15 determines based on the read check operation specification parameter description 3 and the contents of the record structure definition expansion table 13. To generate check operation specification parameter expansion information and expand it in the parameter expansion table 16
(Step S16) Then, a normal end display is performed on the display device 7 (Step S17).

【0050】図8は、図7のステップS16の処理の詳
細を示した流れ図であり、同図を参照してステップS1
6の処理を説明すると次のようになる。
FIG. 8 is a flowchart showing details of the processing in step S16 in FIG. 7, and reference is made to step S1 in FIG.
The process of 6 will be described below.

【0051】先ず、パラメータ解析部15は、レコード
構造定義展開テーブル13を参照し、チェック動作指定
パラメータ記述3によって指定されているチェック属性
と同じ属性が格納されているレコード構造定義展開テー
ブル13の領域のテーブル番号を全て取得し、取得した
テーブル番号をパラメータ展開テーブル16に設定する
(ステップS21)。
First, the parameter analysis unit 15 refers to the record structure definition expansion table 13 and stores an area in the record structure definition expansion table 13 in which the same attribute as the check attribute specified by the check operation specification parameter description 3 is stored. All the table numbers, and set the obtained table numbers in the parameter expansion table 16
(Step S21).

【0052】次いで、パラメータ解析部15は、パラメ
ータ展開テーブル16に比較対象を設定する。例えば、
チェック対象とする項目の属性として数字が指定されて
いる場合は、比較対象として不正十進を設定する (ステ
ップS22)。
Next, the parameter analysis unit 15 sets a comparison target in the parameter expansion table 16. For example,
If a numeric value is specified as the attribute of the item to be checked, illegal decimal is set as the comparison target (step S22).

【0053】その後、パラメータ解析部15は、チェッ
ク動作指定パラメータ記述3中に概要情報の出力が指定
されているか否かを判断し、概要情報の出力が指定され
ている場合は概要情報フラグに「1」を設定し、指定さ
れていない場合は「0」を設定する (ステップS2
3)。
Thereafter, the parameter analyzer 15 determines whether or not the output of the summary information is specified in the check operation specification parameter description 3. If the output of the summary information is specified, the parameter "15" is added to the summary information flag. "1" is set, and if not specified, "0" is set (step S2
3).

【0054】更に、パラメータ解析部15は、チェック
動作指定パラメータ記述3中のCLEAR文,SELE
CT文の有無に基づいて動作フラグを設定する (ステッ
プS24)。即ち、CLEAR文,SELECT文が両
方とも存在する場合は、動作フラグとしてCSを設定
し、CLEAR文のみが存在する場合はCを設定し、S
ELECT文のみが存在する場合はSを設定し、両方と
も存在しない場合は「0」を設定する。
Further, the parameter analysis unit 15 checks the CLEAR statement, SELE
An operation flag is set based on the presence / absence of a CT sentence (step S24). That is, when both the CLEAR statement and the SELECT statement exist, CS is set as the operation flag, and when only the CLEAR statement exists, C is set, and S
If only the ELECT statement exists, S is set, and if neither exists, "0" is set.

【0055】従って、今、例えば、チェック動作指定パ
ラメータ記述3の内容が図4に示すものであり、レコー
ド構造定義展開テーブル13の内容が図3に示すもので
あるる場合、以下の処理が行なわれることになる。
Therefore, for example, if the contents of the check operation designation parameter description 3 are as shown in FIG. 4 and the contents of the record structure definition expansion table 13 are as shown in FIG. 3, the following processing is performed. Will be.

【0056】図4に示したチェック動作指定パラメータ
記述3は、第5番目の文「IF:DATA−ERR」に
よって、チェック対象の属性を数字にすることを指定し
ているので、パラメータ解析部15は、図3に示すレコ
ード構造定義展開テーブル13を参照し、数字を示す属
性「9」が格納されている領域のテーブル番号「2」,
「3」,「6」を、図5に示すように、パラメータ展開
テーブル16に設定する (ステップS21)。
In the check operation specification parameter description 3 shown in FIG. 4, the fifth sentence "IF: DATA-ERR" specifies that the attribute to be checked is to be a number. Refers to the record structure definition expansion table 13 shown in FIG. 3, and stores the table number “2”,
“3” and “6” are set in the parameter expansion table 16 as shown in FIG. 5 (step S21).

【0057】次いで、パラメータ解析部15は、第5番
目の文「IF: DATA−ERR」によって、チェッ
ク対象の属性を数字にすることを指定しているので、図
5に示すように、比較対象として不正十進(NUME)
を設定する (ステップS22)。
Next, the parameter analysis unit 15 specifies that the attribute to be checked is to be a number by the fifth sentence "IF: DATA-ERR". Therefore, as shown in FIG. Unjust decimal (NUME)
Is set (step S22).

【0058】その後、パラメータ解析部15は、第1番
目の文〜第3番目の文によって概要情報の出力が指定さ
れているので、図5に示すように、概要情報フラグに
「1」を設定する (ステップS23)。
After that, since the parameter analysis unit 15 specifies the output of the outline information by the first sentence to the third sentence, the outline information flag is set to "1" as shown in FIG. Yes (step S23).

【0059】更に、パラメータ解析部15は、第6番
目,第7番目にCLEAR文,SELECT文が存在す
ることから、図5に示すように、動作フラグとして「C
S」を設定する。
Further, since the CLEAR statement and the SELECT statement are present at the sixth and seventh positions, the parameter analysis unit 15 sets "C" as the operation flag as shown in FIG.
S "is set.

【0060】オペレータは、チェック動作指定パラメー
タ記述3を入力した後、表示装置7に正常終了表示が行
なわれると、入力装置8を用いてデータ読み込み部17
に対して、システムAで作成されたチェック対象データ
レコードが格納されているチェック対象レコード格納フ
ァイル4の読み込みを指示する。尚、表示装置7にエラ
ー表示が行なわれた場合は、オペレータは、チェック動
作指定パラメータ記述3中の誤りを修正し、修正後のチ
ェック動作指定パラメータ記述3を再度入力する。
After the operator inputs the check operation designation parameter description 3, when the display device 7 displays a normal end, the data reading unit 17 using the input device 8 is displayed.
Is instructed to read the check target record storage file 4 storing the check target data records created by the system A. If an error is displayed on the display device 7, the operator corrects an error in the check operation specification parameter description 3, and inputs the corrected check operation specification parameter description 3 again.

【0061】データ読み込み部17は、データレコード
の読み込みが指示されると、図9の流れ図に示すよう
に、チェック対象レコード格納ファイル4からデータレ
コードを1つ読み込み (ステップS31)、それをチェ
ック対象部分取得部18に渡す(ステップS33)。そ
の後、データ読み込み部17は、待ち状態となり、チェ
ック対象部分取得部18から次のデータレコードの読み
込みが要求されるのを待つ (ステップS34)。
When instructed to read the data record, the data reading unit 17 reads one data record from the check target record storage file 4 (step S31) as shown in the flowchart of FIG. It is passed to the partial acquisition unit 18 (step S33). After that, the data reading unit 17 enters a waiting state and waits for a request to read the next data record from the check target portion acquisition unit 18 (step S34).

【0062】チェック対象部分取得部18は、データ読
み込み部17からチェック対象データレコードが渡され
ると、図10の流れ図に示すように、送られてきたデー
タレコードと、レコード構造定義展開テーブル13の内
容と、パラメータ展開テーブル16の内容とに基づい
て、送られてきたデータレコードの内、基準データレコ
ード中の、チェック動作指定パラメータ記述3によって
指定されたチェック対象の属性の項目部分と対応する部
分の内容を取得する (ステップS41)。
When the data record to be checked is passed from the data reading unit 17, the check target part acquiring unit 18, as shown in the flowchart of FIG. Based on the contents of the parameter expansion table 16 and the contents of the transmitted data record, the part of the reference data record corresponding to the item part of the attribute to be checked specified by the check operation specification parameter description 3 in the reference data record 3 The contents are acquired (step S41).

【0063】このステップS41の処理を詳細に説明す
ると、チェック対象部分取得部18は、先ず、パラメー
タ展開テーブル16に格納されているテーブル番号を取
得する。例えば、パラメータ展開テーブル16の内容が
図5に示すものであるとすると、チェック対象部分取得
部18は、テーブル番号「2」,「3」,「6」を取得
することになる。
The processing in step S 41 will be described in detail. First, the check target part obtaining unit 18 obtains a table number stored in the parameter development table 16. For example, if the content of the parameter expansion table 16 is as shown in FIG. 5, the check target portion acquisition unit 18 will acquire the table numbers “2”, “3”, and “6”.

【0064】次に、チェック対象部分取得部18は、取
得したテーブル番号「2」,「3」,「6」に基づいて
レコード構造定義展開テーブル13を参照し、上記テー
ブル番号の領域に格納されている項目名,開始位置,項
目長を取得する。例えば、レコード構造定義展開テーブ
ル13の内容が図3に示すものであるとすると、チェッ
ク対象部分取得部18は、テーブル番号「2」の領域に
展開されている項目名「店番」,開始位置「0」,項目
長「3」と、テーブル番号「3」の領域に展開されてい
る項目名「顧客番号」,開始位置「3」,項目長「8」
と、テーブル番号「6」の領域に展開されている項目名
「預金残高」,開始位置「43」,項目長「11」とを
取得することになる。
Next, the check target portion acquisition section 18 refers to the record structure definition expansion table 13 based on the acquired table numbers "2", "3", "6" and stores it in the area of the table number. Acquires the item name, start position, and item length that are set. For example, if the content of the record structure definition expansion table 13 is as shown in FIG. 3, the check target portion acquisition unit 18 causes the item name “store number” and the start position “in the table number“ 2 ”to be expanded. 0 ", item length" 3 ", and item name" customer number "expanded in the area of table number" 3 ", start position" 3 ", item length" 8 "
And the item name "deposit balance", start position "43", and item length "11" developed in the area of table number "6".

【0065】その後、チェック対象部分取得部18は、
データ読み込み部17から渡されたチェック対象データ
レコードの内の、上記取得した項目の開始位置,項目長
によって示される部分の内容を取得することにより、チ
ェック対象部分の内容を取得する。
After that, the check target portion acquisition unit 18
The contents of the check target part are acquired by acquiring the contents of the part indicated by the start position and item length of the acquired item in the check target data record passed from the data reading unit 17.

【0066】ステップS41でチェック対象部分の内容
を取得すると、チェック対象部分取得部18は、取得し
たチェック対象部分の内容,チェック対象部分に対応す
る基準データレコードに於ける項目名及び現在処理対象
にしているチェック対象データレコードを属性チェック
部19に渡す (ステップS42)。その後、チェック対
象部分取得部18は、待ち状態となり、属性チェック部
19から次のデータレコードについての情報が要求され
るのを待つ (ステップS43)。
When the contents of the part to be checked are obtained in step S41, the part to be checked obtaining part 18 sets the contents of the obtained part to be checked, the item name in the reference data record corresponding to the part to be checked, and the current processing object. The data record to be checked is passed to the attribute check unit 19 (step S42). After that, the check target portion acquisition unit 18 enters a waiting state and waits for the attribute check unit 19 to request information about the next data record (step S43).

【0067】属性チェック部19は、チェック対象部分
取得部18からチェック対象部分の内容,項目名及び現
在処理対象にしているデータレコードが渡されると、図
11の流れ図に示すように、現在処理対象にしているデ
ータレコードがチェック対象レコード格納ファイル4に
格納されているデータレコードの内の先頭から何番目の
データレコードであるのかを示す変数iの値を「1」に
する (ステップS51)。
When the attribute check unit 19 receives the contents of the check target portion, the item name, and the data record to be currently processed from the check target portion acquisition unit 18, as shown in the flow chart of FIG. The value of the variable i indicating the number of the data record from the beginning among the data records stored in the check target record storage file 4 is set to "1" (step S51).

【0068】その後、属性チェック部19は、パラメー
タ展開テーブル16から比較対象を取得し、それに基づ
いてチェック対象部分取得部18から渡されたチェック
対象部分の内容の内の1つをチェックする (ステップS
52)。例えば、パラメータ展開テーブル16中の比較
対象の内容が図5に示すようにNUMEである場合は、
属性チェック部19は、チェック対象部分の内容に不正
十進が存在するか否かをチェックする。
After that, the attribute check unit 19 acquires the comparison target from the parameter expansion table 16 and checks one of the contents of the check target portion passed from the check target portion acquisition unit 18 based on it (step S
52). For example, when the content of the comparison target in the parameter expansion table 16 is NUME as shown in FIG.
The attribute check unit 19 checks whether the content of the check target portion includes illegal decimal.

【0069】そして、チェック対象データレコード中の
チェック対象部分の内容にエラーがあると判断した場合
(ステップS53がYES)は、属性チェック部19
は、その内容とその部分に対応する基準データレコード
の項目名とを内部に保持した後(ステップS54)、チ
ェック対象部分取得部18から渡された内容の内の次の
内容についてのチェックを行なう (ステップS52)。
また、内容にエラーがない場合 (ステップS53がN
O)は、チェック対象部分取得部18から渡された内容
の内の次の内容についてチェックを行なう (ステップS
52)。
When it is determined that there is an error in the content of the check target portion in the check target data record
(Step S53 is YES) is attribute check section 19
Holds the contents and the item name of the reference data record corresponding to that part internally (step S54), and then checks the next contents of the contents passed from the check target part acquisition unit 18. (Step S52).
If there is no error in the content (step S53 returns N
O) checks the next content out of the content passed from the check target portion acquiring unit 18 (step S).
52).

【0070】そして、チェック対象部分取得部18から
渡されたチェック対象部分の内容全てについて上記した
処理を行なうと (ステップS55がYES)、属性チェ
ック部19は、エラーのあった部分に対応する基準デー
タレコードの内容,項目名を保持しているか否かを判断
する (ステップS56)。
When the above-described processing is performed on all the contents of the check target portion passed from the check target portion acquisition unit 18 (YES in step S55), the attribute check unit 19 sets the reference corresponding to the errored portion. It is determined whether the contents and the item names of the data record are held (step S56).

【0071】そして、保持していないと判断した場合
(ステップS56がNO)は、パラメータ展開テーブル
16から渡された現在処理対象にしているデータレコー
ドを結果出力制御部20に渡す (ステップS61)。
When it is determined that the data is not stored
In (NO in step S56), the data record currently processed, which is passed from the parameter expansion table 16, is passed to the result output control unit 20 (step S61).

【0072】また、保持していると判断した場合 (ステ
ップS56がYES)は、保持している内容,項目名及
び変数iの値(エラーのあったデータレコードの相対番
号)を概要情報として結果出力制御部20に渡し (ステ
ップS57)、次いで、保持している内容,項目名をク
リアする (ステップS58)。更に、属性チェック部1
9は、パラメータ展開テーブル16の動作フラグを参照
し、エラーのあった内容の初期化が指示されているか否
かを判断する (ステップS59)。即ち、動作フラグが
C或いはCSの場合は、初期化が指示されていると判断
する。
If it is determined that the data is held (YES in step S56), the held contents, the item name, and the value of the variable i (the relative number of the erroneous data record) are used as the summary information as a result. The information is passed to the output control unit 20 (step S57), and the held contents and item names are cleared (step S58). Further, an attribute check unit 1
No. 9 refers to the operation flag of the parameter expansion table 16 and determines whether or not initialization of the contents having an error is instructed (step S59). That is, when the operation flag is C or CS, it is determined that initialization is instructed.

【0073】そして、初期化が指示されていないと判断
した場合 (ステップS59がNO)は、エラーのあった
データレコードをそのまま結果出力制御部20に渡し
(ステップS61)、初期化が指示されていると判断し
た場合は、現在処理対象にしているデータレコード中の
エラーのあった部分の内容を属性エラーのない内容に初
期化(例えば、オール0)して初期化後のデータレコー
ドを結果出力制御部20に渡す (ステップS60)。
If it is determined that the initialization has not been instructed (NO in step S59), the data record having the error is passed to the result output control unit 20 as it is.
(Step S61) If it is determined that the initialization is instructed, the contents of the errored portion of the data record currently processed are initialized to the contents having no attribute error (for example, all 0). Then, the initialized data record is passed to the result output control unit 20 (step S60).

【0074】その後、属性チェック部19は、待ち状態
となり、結果出力制御部20から次のチェック結果が要
求されるのを待つ (ステップS62)。
After that, the attribute check unit 19 enters a waiting state and waits for a next check result from the result output control unit 20 (step S62).

【0075】結果出力制御部20は、概要情報或いはデ
ータレコードが渡されると、図12の流れ図に示すよう
に、概要情報が渡されたのか、データレコードが渡され
たのかを判断する (ステップS71)。
When the summary information or the data record is passed, the result output control section 20 determines whether the summary information or the data record has been passed, as shown in the flowchart of FIG. 12 (step S71). ).

【0076】そして、概要情報が渡されたと判断した場
合は、結果出力制御部20は、パラメータ展開テーブル
16を参照して概要情報フラグが「1」になっているか
否かを判断し (ステップS72)、「0」になっている
と判断した場合は属性チェック部19からデータレコー
ドが渡されるのを待ち (ステップS74)、「1」にな
っていると判断した場合は概要情報を出力装置5に出力
した後 (ステップS73)、属性チェック部19からデ
ータレコードが渡されるのを待つ (ステップS74)。
When it is determined that the summary information has been passed, the result output control unit 20 determines whether or not the summary information flag is “1” with reference to the parameter expansion table 16 (step S72). If it is determined that the value is "0", the process waits until a data record is passed from the attribute check unit 19 (step S74). If it is determined that the value is "1", the summary information is output to the output device 5. (Step S73), and waits for a data record to be passed from the attribute check unit 19 (step S74).

【0077】そして、属性チェック部19からデータレ
コードが渡されると、結果出力制御部20は、そのデー
タレコードを出力データファイル6に出力した後 (ステ
ップS75)、属性チェック部19に次のチェック結果
を要求する (ステップS76)。
When the data record is passed from the attribute check unit 19, the result output control unit 20 outputs the data record to the output data file 6 (step S75), and then the attribute check unit 19 receives the next check result. Is requested (step S76).

【0078】また、ステップS71に於いてデータレコ
ードが渡されたと判断した場合は、結果出力制御部20
は、パラメータ展開テーブル16の動作フラグを参照
し、エラーの無いデータレコードも出力することが指示
されているか否かを判断する (ステップS78)。即
ち、動作フラグが「C」か「0」の場合は、エラーの無
いデータレコードも出力することが指示されていると判
断する。そして、エラーの無いデータレコードも出力す
ることが指示されていると判断した場合は、ステップS
75の処理を行ない、そうでない場合はステップS76
の処理を行なう。
If it is determined in step S71 that the data record has been passed, the result output control unit 20
Refers to the operation flag in the parameter expansion table 16 and determines whether or not it is instructed to output a data record having no error (step S78). That is, when the operation flag is “C” or “0”, it is determined that an instruction to output a data record having no error is given. If it is determined that the output of the data record having no error is instructed, step S
75 is executed, otherwise step S76.
Is processed.

【0079】属性チェック部19は、結果出力制御部2
0から次のチェック結果が要求されると(図11,ステ
ップS62)、チェック対象部分取得部18に対して次
のデータレコードについての情報を要求する (ステップ
S63)。
The attribute check unit 19 is used by the result output control unit 2
When the next check result is requested from 0 (FIG. 11, step S62), the check target part acquisition unit 18 is requested to obtain information about the next data record (step S63).

【0080】チェック対象部分取得部18は、属性チェ
ック部19から次のデータレコードについての情報が要
求されると(図10,ステップS43)、データ読み込
み部17に対して次データレコードの読み込みを要求す
る (ステップS44)。
When the information about the next data record is requested from the attribute check unit 19 (step S43 in FIG. 10), the check target part obtaining unit 18 requests the data reading unit 17 to read the next data record. Yes (step S44).

【0081】データ読み込み部17は、チェック対象部
分取得部18から次データレコードの読み込み要求があ
ると(図9,ステップS34)、前述したと同様の処理
を行なう(ステップS31〜S34)。
When there is a read request for the next data record from the check target acquisition unit 18 (step S34 in FIG. 9), the data reading unit 17 performs the same processing as described above (steps S31 to S34).

【0082】データ読み込み部17で上記した処理が行
なわれることにより、チェック対象部分取得部18に
は、データ読み込み部17からデータレコードが1つ渡
される。チェック対象部分取得部18は、データ読み込
み部17からデータレコードが渡されると (図10,ス
テップS45)、前述したと同様の処理を行なう (ステ
ップS41〜S44)。
When the above-described processing is performed by the data reading unit 17, one data record is passed from the data reading unit 17 to the check target part obtaining unit 18. When the data record is passed from the data reading unit 17 (FIG. 10, step S45), the check target part obtaining unit 18 performs the same processing as described above (steps S41 to S44).

【0083】チェック対象部分取得部18で上記した処
理が行なわれることにより、属性チェック部19には、
チェック対象部分の内容,項目名及び現在処理対象にし
ているデータレコードが渡される。属性チェック部19
は、チェック対象部分取得部18からチェック対象部分
の内容,項目名及び現在処理対象にしているデータレコ
ードが渡されると(図11,ステップS64)、現在処
理対象にしているデータレコードの相対番号を示す変数
iの値を+1した後 (ステップS65)、前述したと同
様の処理を行なう (ステップS52〜S63)。
By performing the above-described processing in the check target part obtaining unit 18, the attribute checking unit 19
The contents of the part to be checked, the item name, and the data record currently being processed are passed. Attribute check unit 19
When the contents of the check target portion, the item name, and the data record currently processed are passed from the check target portion acquisition unit 18 (FIG. 11, step S64), the relative number of the data record currently processed is given. After incrementing the value of the indicated variable i by 1 (step S65), the same processing as described above is performed (steps S52 to S63).

【0084】属性チェック部19で上記した処理が行な
われることにより、現在処理対象にしているデータレコ
ードにエラーがある場合は、チェック結果として概要情
報とデータレコードとが結果出力制御部20に渡され、
エラーがない場合はチェック結果としてデータレコード
が結果出力制御部20に渡される。結果出力制御部20
は、属性チェック部19からチェック結果が渡されると
(図12,ステップS77)、前述したと同様の処理
(ステップS71〜S76)を行なう。
When the above-described processing is performed by the attribute check unit 19, if there is an error in the data record currently being processed, the summary information and the data record are passed to the result output control unit 20 as a check result. ,
If there is no error, the data record is passed to the result output control unit 20 as a check result. Result output control unit 20
When the check result is passed from the attribute check unit 19 (FIG. 12, step S77), the same processing as described above is performed.
(Steps S71 to S76) are performed.

【0085】以下、データ読み込み部17,チェック対
象部分取得部18,属性チェック部19,結果出力制御
部20は、前述したと同様の処理を繰り返し行なう。
Thereafter, the data reading unit 17, the check target part obtaining unit 18, the attribute checking unit 19, and the result output control unit 20 repeat the same processing as described above.

【0086】そして、データ読み込み部17がチェック
対象レコード格納ファイル4の終わりを検出すると (図
9,ステップS32がYES)、データ読み込み部17
からチェック対象部分取得部18に対して終了通知が行
なわれ(図9,ステップS35)、データ読み込み部1
7はその処理を終了する。
When the data reading unit 17 detects the end of the check target record storage file 4 (FIG. 9, step S32 is YES), the data reading unit 17
Notifies the check target portion acquisition unit 18 of the end (FIG. 9, step S35), and the data reading unit 1
7 ends the processing.

【0087】また、チェック対象部分取得部18は、デ
ータ読み込み部17から終了通知を受けると(図10,
ステップS45)、属性チェック部19に対して終了通
知を行なった後 (ステップS46)、その処理を終了
し、属性チェック部19は、チェック対象部分取得部1
8から終了通知を受けると(図11,ステップS6
4)、結果出力制御部20に対して終了通知を行なった
後 (ステップS66)、その処理を終了する。また、結
果出力制御部20は、属性チェック部19から終了通知
を受けると(図12,ステップS77)、その処理を終
了する。
Further, the check target portion acquisition unit 18 receives the end notification from the data reading unit 17 (FIG. 10,
(Step S45) After notifying the attribute check unit 19 of the end (Step S46), the process is ended, and the attribute check unit 19 checks the part to be checked 1
When the end notification is received from 8 (step S6 in FIG. 11).
4) After notifying the result output control unit 20 of the end (step S66), the process ends. Further, upon receiving the end notification from the attribute checking unit 19 (FIG. 12, step S77), the result output control unit 20 ends the processing.

【0088】尚、チェック動作指定パラメータ記述3の
内容によってデータチェック装置1に種々の動作を行な
わせることができるが、例えば、システムAで作成され
たデータレコードの内、属性エラーの無かったデータレ
コードはそのまま、属性エラーのあったデータレコード
は属性エラーが検出された部分の内容を初期化した後、
チェック対象レコード格納ファイル4に出力させるよう
にすることにより、システムAで作成されたデータレコ
ードに、システムBに於いてデータ例外を発生させる部
分があって、システムAで作成されたデータレコードの
ままでは、システムBのデータレコード処理に関する機
能のテスト等を行なうことができない場合であっても、
チェック対象レコード格納ファイル4を利用してシステ
ムBのデータレコード処理に関する機能のテスト等を行
なうことが可能になる。
Various operations can be performed by the data check device 1 depending on the contents of the check operation designation parameter description 3. For example, among data records created by the system A, data records having no attribute error As is, the data record with the attribute error is initialized after the content of the part where the attribute error is detected,
By outputting the data to the check target record storage file 4, the data record created in the system A has a portion that causes a data exception in the system B, and the data record created in the system A remains unchanged. Then, even if it is not possible to perform a test of a function related to the data record processing of the system B,
By using the check target record storage file 4, it is possible to perform a test or the like of a function related to the data record processing of the system B.

【0089】[0089]

【発明の効果】以上説明したように本発明は、基準デー
タレコードの構造を示すレコード構造定義情報と、チェ
ックする項目の属性を指定するチェック動作指定パラメ
ータ記述3に基づいて、チェック対象データレコード中
の、属性チェックを行なうレコード内位置を求め、その
レコード内位置に基づいてチェック対象データレコード
の属性チェックを行なうようにしたものであるので、利
用者に負担をかけることなく、データレコード中の特定
の属性についてのみ属性チェックを行なうことができる
効果がある。
As described above, the present invention is based on the record structure definition information indicating the structure of the reference data record and the check operation specification parameter description 3 for specifying the attribute of the item to be checked. Of the data record for which the attribute check is to be performed, and the attribute check of the data record to be checked is performed based on the position in the record, so that the identification in the data record can be performed without burdening the user. There is an effect that the attribute check can be performed only for the attribute.

【0090】また、本発明は、属性エラーがないチェッ
ク対象データレコードはそのまま出力データファイルに
出力し、属性エラーがあるデータレコードは属性エラー
のあった部分の内容を属性エラーの無い内容に変更した
データレコードを出力データファイルに出力するように
したものであるので、或るシステムで作成されたデータ
レコードが、他のシステムに於いて属性エラーとなる部
分を含んでいる場合に於いても、上記或るシステムで作
成されたデータレコードから上記他のシステムでテスト
等に於いて利用可能なデータレコードを作成することが
可能になるという効果がある。
Further, according to the present invention, the check target data record having no attribute error is output to the output data file as it is, and the content of the data record having the attribute error is changed to the content having no attribute error. Since the data record is output to the output data file, even if the data record created in one system includes a part that causes an attribute error in another system, There is an effect that it becomes possible to create a data record that can be used in a test or the like in the other system from a data record created in a certain system.

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

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

【図2】レコード構造定義情報2の一例を示す図であ
る。
FIG. 2 is a diagram showing an example of record structure definition information 2.

【図3】レコード構造定義展開テーブル13の内容例を
示す図である。
FIG. 3 is a diagram showing an example of the contents of a record structure definition expansion table 13;

【図4】チェック動作指定パラメータ記述3の一例を示
す図である。
FIG. 4 is a diagram showing an example of a check operation designation parameter description 3.

【図5】パラメータ展開テーブル16の内容例を示す図
である。
FIG. 5 is a diagram showing an example of the contents of a parameter expansion table 16;

【図6】レコード構造解析部12の処理例を示す流れ図
である。
FIG. 6 is a flowchart showing a processing example of a record structure analysis unit 12;

【図7】パラメータ解析部15の処理例を示す流れ図で
ある。
7 is a flowchart showing a processing example of a parameter analysis unit 15. FIG.

【図8】パラメータ解析部15の処理例を示す流れ図で
ある。
FIG. 8 is a flowchart showing a processing example of a parameter analysis unit 15;

【図9】データ読み込み部17の処理例を示す流れ図で
ある。
FIG. 9 is a flowchart showing a processing example of the data reading unit 17.

【図10】チェック対象部分取得部18の処理例を示す
流れ図である。
FIG. 10 is a flowchart showing a processing example of a check target portion acquisition unit 18.

【図11】属性チェック部19の処理例を示す流れ図で
ある。
FIG. 11 is a flowchart showing a processing example of an attribute check unit 19;

【図12】結果出力制御部20の処理例を示す流れ図で
ある。
FIG. 12 is a flowchart illustrating a processing example of a result output control unit 20;

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

1…データチェック装置 11…レコード構造入力部 12…レコード構造解析部 13…レコード構造定義展開テーブル 14…パラメータ入力部 15…パラメータ解析部 16…パラメータ展開テーブル 17…データ読み込み部 18…チェック対象部分取得部 19…属性チェック部 20…結果出力制御部 2…レコード構造定義情報 3…チェック動作指定パラメータ記述 4…チェック対象レコード格納ファイル 5…出力装置 6…出力データファイル 7…表示装置 8…入力装置 DESCRIPTION OF SYMBOLS 1 ... Data check device 11 ... Record structure input part 12 ... Record structure analysis part 13 ... Record structure definition expansion table 14 ... Parameter input part 15 ... Parameter analysis part 16 ... Parameter expansion table 17 ... Data reading part 18 ... Acquisition of check target part Unit 19: Attribute check unit 20: Result output control unit 2: Record structure definition information 3: Check operation specification parameter description 4: Check target record storage file 5: Output device 6: Output data file 7: Display device 8: Input device

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 基準データレコードの構造を示すレコー
ド構造定義情報に基づいて前記基準データレコード中の
各項目の属性,開始位置及び項目長を示すレコード構造
定義展開情報を作成するレコード構造解析部と、 チェック動作パラメータ記述で指定されたチェック属性
と前記レコード構造解析部で作成したレコード構造定義
展開情報とに基づいて、チェック対象データレコード中
のチェックを行なうレコード内位置を求めるパラメータ
解析部と、 前記チェック対象データレコードが格納されているファ
イルからデータレコードを1レコードずつ読み込むデー
タ読み込み部と、 該データ読み込み部が読み込んだデータレコードの内容
の内、前記パラメータ解析部が求めたレコード内位置の
内容を取得するチェック対象部分取得部と、 該チェック対象部分取得部が取得した内容に対して属性
チェックを行なう属性チェック部とを備えたことを特徴
とするデータチェック装置。
1. A record structure analysis unit for creating record structure definition expansion information indicating an attribute, a start position and an item length of each item in the reference data record based on record structure definition information indicating the structure of the reference data record. A parameter analysis unit that obtains an in-record position to be checked in the data record to be checked based on the check attribute specified by the check operation parameter description and the record structure definition expansion information created by the record structure analysis unit; The data reading unit that reads data records one by one from the file in which the data record to be checked is stored, and the contents of the record positions obtained by the parameter analysis unit among the contents of the data records read by the data reading unit The check target part acquisition unit to be acquired and the check Tsu data check device characterized by comprising an attribute check unit for performing attribute checks the contents of click target partial acquisition unit has acquired.
【請求項2】 前記属性チェック部で属性エラーが検出
された部分を含むチェック対象データレコードの相対番
号,前記属性エラーが検出された部分に対応する前記基
準データレコードの項目名及び前記属性エラーが検出さ
れた部分の内容を出力する結果出力制御部を備えたこと
を特徴とする請求項1記載のデータチェック装置。
2. The relative number of a data record to be checked including a part where an attribute error is detected by the attribute check unit, the item name of the reference data record corresponding to the part where the attribute error is detected, and the attribute error. 2. The data check device according to claim 1, further comprising a result output control unit that outputs the content of the detected part.
【請求項3】 前記結果出力制御部は、前記属性チェッ
ク部で属性エラーが検出されなかったチェック対象デー
タレコードについては該データレコードをそのまま出力
データファイルに出力し、前記属性チェック部で属性エ
ラーが検出されたチェック対象データレコードについて
は属性エラーが検出された部分の内容を属性エラーのな
い内容に変更した後、前記出力データファイルに出力す
ることを特徴とする請求項2記載のデータチェック装
置。
3. The result output control unit outputs the data record as it is to the output data file for a data record to be checked for which no attribute error has been detected by the attribute check unit. 3. The data check device according to claim 2, wherein the detected data record to be checked is changed to the content without the attribute error in the portion where the attribute error is detected, and then output to the output data file.
JP6193733A 1994-07-26 1994-07-26 Data check device Expired - Fee Related JP2616451B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6193733A JP2616451B2 (en) 1994-07-26 1994-07-26 Data check device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6193733A JP2616451B2 (en) 1994-07-26 1994-07-26 Data check device

Publications (2)

Publication Number Publication Date
JPH0844605A true JPH0844605A (en) 1996-02-16
JP2616451B2 JP2616451B2 (en) 1997-06-04

Family

ID=16312909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6193733A Expired - Fee Related JP2616451B2 (en) 1994-07-26 1994-07-26 Data check device

Country Status (1)

Country Link
JP (1) JP2616451B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013033305A (en) * 2011-07-29 2013-02-14 Fujitsu Ltd Data arrangement change program, data arrangement change method and data arrangement change device
JP5355784B2 (en) * 2010-04-16 2013-11-27 三菱電機株式会社 Data access method and data access apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5355784B2 (en) * 2010-04-16 2013-11-27 三菱電機株式会社 Data access method and data access apparatus
JP2013033305A (en) * 2011-07-29 2013-02-14 Fujitsu Ltd Data arrangement change program, data arrangement change method and data arrangement change device

Also Published As

Publication number Publication date
JP2616451B2 (en) 1997-06-04

Similar Documents

Publication Publication Date Title
US4949253A (en) Method and apparatus for automatically generating program
CA2137981C (en) Method and system for presenting alternatives for selection using adaptive learning
US5033008A (en) Dynamic selection of logical element data format as a document is created or modified
JPH06139117A (en) History device
JP2616451B2 (en) Data check device
US6606616B1 (en) Modified action rules
JPH10301933A (en) Document processor, its method and recording medium
JP3329476B2 (en) Kana-Kanji conversion device
JP2000148738A (en) Device and method for mathematical expression input and display, and recording medium where mathematical input and display program is recorded
JPH0240764A (en) Document processing
JPH10134049A (en) Document preparation device and input method therefor
JPH04367946A (en) Debug information output system
JP2003345781A (en) Device and method for editing structuring data, and program
JPH0449421A (en) File editing system
JPH11282599A (en) Display method and device for change of file contents and medium recording display program
JPH07160542A (en) Method for storing, reproducing and displaying picture trace data
JPH05341983A (en) Information processing system
JPH0554034A (en) Data synthesizing system
JPH01200446A (en) Data processor
JPH02165332A (en) Procedure correction processing system
JPH08339413A (en) Data entry device
JP2002108852A (en) Device and method for converting roman letter
KR20010004509A (en) Searching method for programmed source codes
JPH04263329A (en) Knowledge correction back-up system
JPH04284538A (en) Compile list display controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees