JPH01280831A - Assisting method for standardization of intra-program data name - Google Patents

Assisting method for standardization of intra-program data name

Info

Publication number
JPH01280831A
JPH01280831A JP63109005A JP10900588A JPH01280831A JP H01280831 A JPH01280831 A JP H01280831A JP 63109005 A JP63109005 A JP 63109005A JP 10900588 A JP10900588 A JP 10900588A JP H01280831 A JPH01280831 A JP H01280831A
Authority
JP
Japan
Prior art keywords
data
standard
name
program
standard data
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
JP63109005A
Other languages
Japanese (ja)
Inventor
Ichiro Naito
一郎 内藤
Takahiko Kobayashi
隆彦 小林
Hiroyuki Maezawa
前澤 裕行
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.)
Hitachi Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Hitachi Ltd, Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP63109005A priority Critical patent/JPH01280831A/en
Publication of JPH01280831A publication Critical patent/JPH01280831A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the efficiency of a software maintenance job by defining only high-order standard data serving as high-order data converting destination of the high-order one of substitute object data if detected among plural standard data as the standard data name and/or designating the standard data name of the converting destination via a user. CONSTITUTION:A standard file/record information input part 1 inputs previously information storing the standard data structure of each file and the standard name and attribute of each data contained in said data structure, etc., and stores these information in a standard file/record information storing part 20. A means is added for an operator to decide the standard data of his/her own designation as a candidate of the standard data in case plural candidates are available as the standard data having its position, length and attribute coincident with the object data. Then another means is added to define only the standard data having the same position and the same number of digits as the object data as a candidate of the converting destination data among the low-order rank data belonging to the standard one of the high-order data of the converting destination as long as this standard can be decided in terms of the data structure. Thus at least one of said two additional means is used so that the efficiency is improved for a software maintenance job.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,ソフトウェアの生産性向上に係り。[Detailed description of the invention] [Industrial application field] The present invention relates to improving software productivity.

特にソフトウェアの保守作業の効率化に好適な、プログ
ラム内データ名称標準化支援方法に関する。
In particular, the present invention relates to a method for supporting the standardization of data names within a program, which is suitable for increasing the efficiency of software maintenance work.

〔従来の技術〕[Conventional technology]

ソフトウェア、特に事務処理用ソフトウェアは、ファイ
ルからファイル、或いはファイルからプリンタ等へのデ
ータの受は渡しを行なう多数のプログラムより構成され
る。又、各ファイルは一般に複数のプログラムにより参
照更新が行なわれる。
Software, particularly office processing software, is comprised of a large number of programs that receive and pass data from file to file or from file to printer, etc. Further, each file is generally referenced and updated by a plurality of programs.

このようなソフトウェアにおいては、ソフトウェアの主
な内容が、入力ファイル内のデータを出力ファイルやプ
リンタ等へ受けわたすことである。
The main content of such software is to pass data in an input file to an output file, printer, or the like.

このため、プログラムを保守する際に必要となる、プロ
グラムの意味を理解する作業では、特に、データの意味
を理解することが重要である。また保守作業において、
ファイルに含まれるデータの、桁数や型などの属性を変
更する場合、同じ、データを使用する複数のプログラム
を修正する必要があるので、変更対象のデータがどのプ
ログラムで使用されているかを見つけ出す作業も重要で
ある。
For this reason, it is especially important to understand the meaning of data in the work of understanding the meaning of a program, which is necessary when maintaining a program. Also, in maintenance work,
When changing attributes such as the number of digits or type of data contained in a file, it is necessary to modify multiple programs that use the same data, so find out which program uses the data to be changed. Work is also important.

もしファイル内のデータが、それを使用するプログラム
によって別々の名称をつけられていれば、これらのプロ
グラムの保守作業を行なう人間は。
If data in a file is named differently by the programs that use it, the people who maintain those programs.

データの意味を理解することが難かしく、また、1つの
データがどのプログラムで使用されているかを見つける
のも難しい。以上は手作業だけでプログラム内容を理解
するとして説明したが、もし複数のプログラムを解析し
て、各データ名称に対し、そのデータ名称を使用してい
るプログラムを児つけだす支援ツールが存在したとして
も、ある一つのデータを各プログラムが別々の名称によ
り使用していれば、ツールにより、そのデータを使用す
るプログラムをすべて見つけ出すことは困雅である。
It is difficult to understand the meaning of data, and it is also difficult to find out which program uses a piece of data. The above explanation assumes that the program content is understood only manually, but what if there was a support tool that could analyze multiple programs and find out, for each data name, the program that uses that data name? However, if each program uses a piece of data under a different name, it is difficult to find all the programs that use that data using a tool.

この問題を解決する1つの方法は、対象とするファイル
に含まオbる各データに対し、それぞれ標準名称を定め
、そのファイルを使用する各プログラム内の該データの
名称をt塾名称に置換することである。
One way to solve this problem is to define a standard name for each piece of data included in the target file, and replace the name of the data in each program that uses that file with the school name. That's true.

従来この作業を支援する方法の1つとして,データ名称
を標準化すべきファイルについて、構成するデータのデ
ータ構造や、各データの標準名称および長さなどの属性
を指定する情報(以下標準ファイルレコード情報とよぶ
)を定め、このファイルを使用している各プログラムに
ついて、プログラム内の該ファイルの定義部(各データ
のデータ構造や、データ名称や、長さなどの属性を含む
)と、標準ファイルレコード情報を比較して、該ファイ
ル内のデータの名称対応表を作り、この表にもとづきプ
ログラム内で使用している該ファイルのデータの名称を
標準名称に置換する方法が存在した。この方法はたとえ
ばrbit」1 9 8 2年9月臨時増刊号−「ソフ
トウエア評価技法−検査・検定・保守・コスト積算」の
P176に述べられている。
Conventionally, one method to support this work is to use information (hereinafter referred to as standard file record information) that specifies attributes such as the data structure of the constituent data and the standard name and length of each data for files whose data names should be standardized. For each program that uses this file, the definition part of the file in the program (including the data structure of each data, data name, attributes such as length), and the standard file record. There is a method of comparing information, creating a name correspondence table of data in the file, and replacing the name of the data of the file used in the program with a standard name based on this table. This method is described, for example, on page 176 of "RBIT" September 1982 Special Issue - "Software Evaluation Techniques - Inspection, Certification, Maintenance, Cost Estimation".

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術において、元のプログラム内の各データの
名称の変換先となる対応データの決定は、もとのデータ
の、レコード内の先頭からの相対位置が等しい(あるい
は更にデータの長さや属性が等しい)データを、対応す
る標準ファイルレコード情報の内から見つけ出す方法に
よって行なわれる。
In the above-mentioned conventional technology, the corresponding data to which the name of each data in the original program is converted is determined when the relative positions of the original data from the beginning of the record are the same (or the length and attributes of the data are (equivalent) data within the corresponding standard file record information.

しかし、標7pjファイル・レコード情報において1つ
のファイル・レコードの同じフィールドがそれぞれ別々
の名称をもつ複数のデータとして定義されている(即ち
、再定義されている)場合、元のプログラムのあるデー
タ名称を、どのようなデータ名称に置換するかは一般に
一定には決定できない。たとえば最初に見つかった置換
先データ名称を採用する等の方法を採用して置換した場
合。
However, in the standard 7pj file record information, if the same field of one file record is defined as multiple pieces of data with different names (i.e., redefined), the data name with the original program In general, it cannot be determined in a certain way what data name to replace. For example, when replacing data using a method such as using the first replacement data name found.

物理的には正しいが、意味の異なるデータ名称に置換さ
れる場合が生じ、従って、変換されたプログラムは一応
正し、く実行できるとしても、プログラムは理解しにく
くなり、プログラムの保守が難しくなる。
There are cases where data names are replaced with data names that are physically correct but have different meanings, and therefore, even if the converted program is correct and can be executed properly, the program becomes difficult to understand and difficult to maintain. .

本発明の目的は、プログラム内のデータ名称に対し、置
換すべき標準データ名称候補が複数ある場合、意図する
標準名称に効率的に変換することを支援することにある
An object of the present invention is to support efficient conversion of a data name in a program to an intended standard name when there are multiple standard data name candidates to be replaced.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、前記、変換対象プログラム内の変換対象フ
ァイル内の各データに対し、変換先の標準名称を定める
対応表を作成するために、従来の方法である対象データ
のレコード内相対位置、データの長さ、属性が一致する
標準データを見つける手段に加え、(1)一致する標準
データの候補が複数存在する場合、変換作業従事者が指
定した標準データを、変換先データと定める手段、(2
)−致する標準データの候補が複数存在する場合、元の
プログラムの変更対象ファイル・レコードのデータ構造
の中の該データの上位のデータを得、そのデータが変換
された先の標準データを見つけ、その標準データのデー
タ構造の中、の低位に属する標準データの中から変換先
標準データを定める手段、の2つの手段の内少なくとも
1つの手段を用いることにより達成される。
The above purpose is to create a correspondence table that determines the standard name of the conversion destination for each data in the file to be converted in the program to be converted. In addition to means for finding standard data that matches the length and attributes of 2
) - If there are multiple matching standard data candidates, obtain the data above the data in the data structure of the file record to be changed in the original program, and find the standard data to which that data has been converted. This is achieved by using at least one of the following two methods: , a means for determining the conversion destination standard data from among standard data belonging to a lower level in the data structure of the standard data.

〔作用〕[Effect]

変換対象データに対し、置換先の標準ファイル・レコー
ド内に相対レコード内のデータの位置やデータ長を等し
くする、変換対象の標準データの候補が複数ある場合、
一般には第1の手段すなわち、作業者に複数の標準デー
タの候補の中から、変換先の標準データ名を選択・指定
する手段、により意図する標準データ名称に変換するこ
とが可能になる。
If there are multiple candidates for standard data to be converted, the position and data length of the data in the relative record will be the same in the standard file record to be replaced.
In general, conversion to the intended standard data name is made possible by the first means, that is, the means by which the operator selects and specifies the standard data name to be converted from among a plurality of standard data candidates.

また、変換対象ファイル・レコードのデータ構造上、上
位に位置するデータに対して、変換先標準データの候補
が複数あれば、該上位データに従属する各下位データの
変換先標準データの候補はそれぞれ複数発生する場合が
多く、この場合、いちいち第1の手段により変換先標準
名称を指定する方法は作業量が多くなる。しかしデータ
構造上上位のデータの変換先の標準データが決定できれ
ば、第2の手段により、上位データの変換先の標準デー
タに属する下位データの中にある、データの位置・桁数
を同じくする標準データのみを変換先データの候補とす
ればよいので、変換先データの候補が複数生じる可能性
は少なくなる。
In addition, if there are multiple conversion destination standard data candidates for data located at a higher level in the data structure of the file/record to be converted, the conversion destination standard data candidates for each lower level data subordinate to the higher level data will be different. In many cases, a plurality of conversion destination standard names occur, and in this case, the method of specifying the conversion destination standard name one by one using the first method requires a large amount of work. However, if the standard data to which the higher-order data is converted can be determined in terms of data structure, the second method is used to create a standard that matches the position and number of digits of data in the lower-order data that belongs to the standard data to which the higher-order data is converted. Since it is sufficient to select only the data as conversion destination data candidates, the possibility that multiple conversion destination data candidates will occur is reduced.

従がって前記第1の手段のみを用いることによる、変換
先データの指定抛作数の減少を計ることが出来、効率よ
く、対象プログラム内のデータ名称を変換することが出
来る。
Therefore, by using only the first means, it is possible to reduce the number of specified operations for conversion destination data, and it is possible to efficiently convert data names in the target program.

〔実施例〕〔Example〕

以下、本発明の実施例を図を用いて説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の第1の実施例を実行するデータ処理装
置を機能ブロック図の形式で表現したものである。第2
図は本実施例のハードウェア環境を示す図である。第1
図の1−は予め各ファイルの標準となるデータ構造や、
その中の各データの標準名称や属性などを記憶した情報
(標準ファイル・レコード情報)を入力装置より入力し
て、標準ファイル・レコード情報蓄積部20に蓄積する
FIG. 1 is a functional block diagram representation of a data processing device that implements a first embodiment of the present invention. Second
The figure is a diagram showing the hardware environment of this embodiment. 1st
1- in the diagram shows the standard data structure of each file in advance,
Information (standard file/record information) storing standard names, attributes, etc. of each data therein is inputted from an input device and stored in the standard file/record information storage section 20.

標準ファイル・レコード情報蓄積部20に蓄積される標
準ファイル・レコード情報を表形式で表現した一例を第
3図に示す。第3図に示される情報は以下の内容を示す
。即ち本ファイルのファイル名はr DENPYO−F
ILE Jであり、そのファイルレコードは、「伝票デ
ータ」、「伝票番号j等の標準データ名をもつデータに
より構成される。レベルはデータの構造を示し、0ルベ
ルのデータは02レベルのデータを含み、02レベルの
データは03レベルのデータを含む。本例では「伝票番
号」データは、「伝票番号」、「売上内容」。
FIG. 3 shows an example of standard file/record information stored in the standard file/record information storage section 20 expressed in a table format. The information shown in FIG. 3 shows the following contents. In other words, the file name of this file is rDENPYO-F
ILE J, and its file records are composed of data with standard data names such as "slip data" and "slip number j." The level indicates the structure of the data, and data at level 0 corresponds to data at level 02. 02 level data includes 03 level data.In this example, the "slip number" data is "slip number" and "sales details."

「入金内容」のデータより構成され、「売上内容」デー
タは「売上数量」、「売上単位」、「売上金額」を含む
。再定義欄の「R」は該データが、そ・  れ以前のレ
ベルを同じくするデータと同じ物理的位置をもつことを
示す。本例では、「入金内容データ」は同じ02レベル
の「売上内容」データが再定義される。即ち物理的には
同じであり、レコード中では同一の位14にあることを
示す。「相対位置」は各データのレコードの先頭からの
相対位t4をバイト数であられしたものである。「長さ
」は各データの長さをバイト数であられしたものである
。第3図の例では「売上内容」と「入金内容」の2つの
データは同じ相対位置と長さをもつ。またそれぞれに従
属するデータ(例えば「売上価」と「入金数量」)も同
じ位置、長さをもつ。属性欄は各データの型(数値2文
字など)や桁数を示す。たとえば「伝票番号」データの
9(6)の「9」は数値項目であることを示し「6」は
6桁あることを示す。
It is composed of "deposit details" data, and "sales details" data includes "sales quantity", "sales unit", and "sales amount". "R" in the redefinition column indicates that the data has the same physical location as the previous data at the same level. In this example, the "deposit content data" is redefined as the same 02 level "sales content" data. That is, they are physically the same and are located in the same position 14 in the record. The "relative position" is the relative position t4 of each data from the beginning of the record in bytes. "Length" is the length of each data in bytes. In the example shown in FIG. 3, the two pieces of data "sales details" and "deposit details" have the same relative position and length. Furthermore, data subordinate to each (for example, "sales price" and "deposit quantity") have the same position and length. The attribute column indicates the type of each data (such as a two-character numerical value) and the number of digits. For example, "9" in 9 (6) of "slip number" data indicates that it is a numerical item, and "6" indicates that there are six digits.

第1図の既存ソースプログラム蓄積部2は、その中のデ
ータ名称を変換しようとするソースプログラムを蓄積す
る。既存ソースプログラム蓄積部2に蓄積されるC0B
OLソースプログラムの例を第4図に示す。
The existing source program storage unit 2 shown in FIG. 1 stores source programs whose data names are to be converted. C0B stored in the existing source program storage section 2
An example of an OL source program is shown in FIG.

第1図のファイル・レコード情報抽出部3は、収部ソー
スプロダラム蓄積部2内のソースプログラムを入力し、
その内の各ファイルに記述されたレコードの定義情報を
抽出し、含まれる各データの相対位置や長さを計算して
、既存ファイル・レコード情報を作成し、既存ファイル
レコード情報蓄積部4に蓄積する。
The file/record information extraction unit 3 in FIG. 1 inputs the source program in the source program storage unit 2, and
Extracts the definition information of records written in each file, calculates the relative position and length of each data included, creates existing file record information, and stores it in the existing file record information storage section 4. do.

第4図のソースプログラム内の11で示した部分のファ
イルレコード定義情報より、作成した既存ファイルレコ
ード仕様情報を第3図と同様な表形式で表現した例を第
5図に示す。「ファイル名」。
FIG. 5 shows an example in which existing file record specification information created from the file record definition information in the portion indicated by 11 in the source program in FIG. 4 is expressed in a table format similar to that in FIG. 3. "file name".

「再定義」、「相対位置」、「長さ」、「属性」の各欄
の内容は第3図と同じである。「データ名」は既存プロ
グラム内に記述された、標準化されない、従来のデータ
名称を示す。
The contents of the "Redefinition", "Relative Position", "Length", and "Attribute" columns are the same as in FIG. 3. "Data name" indicates a conventional, non-standardized data name written in an existing program.

第1図の5は、既存ファイルレコード情報蓄積部4に蓄
積された各既存ファイル・レコード情報に対し、対応す
る変換先の標準ファイルレコード情報を標準ファイル・
レコード情報蓄積部20の中から見つけ、その情報をも
とに、該既存ファイル・レコード情報に含まれる各デー
タに対し、該標準ファイル・レコード情報の、中から、
変換先の標準データ名称を見つけ、既存データ名称と共
にデータ対応表蓄積部6内のデータ対応表に登録する。
Reference numeral 5 in FIG.
Found in the record information storage unit 20, and based on that information, from among the standard file record information, for each data included in the existing file record information,
The standard data name to be converted is found and registered in the data correspondence table in the data correspondence table storage section 6 along with the existing data name.

本実施例では、この変換先標準データ名称の決定を次の
規則により行なう。
In this embodiment, the conversion target standard data name is determined according to the following rules.

(1)対象とする既存データと位置・長さ・属性の一致
する標準データを見つける。
(1) Find standard data that matches the target existing data in position, length, and attributes.

もし該当する標準データが唯一であればこの名称を変換
先データ名称とする。
If the corresponding standard data is the only one, use this name as the conversion destination data name.

(2)対象とする既存データと位置・長さ・属性が一致
する標準データが複数児つかった場合、次の手順でこの
複数の変換先標準データ候補の中から、変換先標準デー
タを1つ決定する。
(2) If multiple standard data that match the target existing data in position, length, and attributes are used, select one conversion destination standard data from among these multiple conversion destination standard data candidates using the following procedure. decide.

(a)既存ファイル・レコード情報内のデータのデータ
構造において、該既存データの1つ上位に位置する既存
データを見つける。
(a) Find existing data located one level above the existing data in the data structure of the data in the existing file record information.

(b) (a)で見つかった上位既存データに対する変
換先の標準データを見つける(この上位既存データに対
する変換先標準データは既に決定されている)。
(b) Find the conversion destination standard data for the higher-level existing data found in (a) (the conversion destination standard data for this higher-level existing data has already been determined).

(C) [準ファイルレコード情報に属するデータのデ
ータ構造において、変換先標準データ候補の中に(b)
で見つかった上位標準データの下位に位置するものがな
いか調べる。もし存在し、しかも唯一であれば、これを
、対象既存データの変換先の!:4準データと決定する
(C) [In the data structure of data belonging to semi-file record information, (b)
Check to see if there is anything below the upper standard data found in . If it exists and is the only one, use this as the destination for converting the target existing data! :4 is determined as semi-data.

(3) (2)で、変換先標準データが決定できなかっ
た場合、見つけられている、複数の置換先標準データ候
補を、置換先データ候補表示部7により、複数の置換先
標準データ名候補をディスプレイなどの表示装置に表示
し、利用者はこの中から、置換先標準データを決定して
、キーボードなどの入力装置より入力する。
(3) If the conversion destination standard data cannot be determined in (2), the replacement destination standard data name candidates are displayed using the replacement destination data candidate display section 7. is displayed on a display device such as a display, and the user determines the replacement standard data from among these and inputs it using an input device such as a keyboard.

置換先データ指定部8は入力された指定情報にもとづき
、置換先標79データを定め、データ対応表作成部5は
、この標準データ名を元のデータ名と共に、データ対応
表蓄積部8内のデータ対応表に登録する。
The replacement destination data designation unit 8 determines the replacement target 79 data based on the input specification information, and the data correspondence table creation unit 5 stores this standard data name together with the original data name in the data correspondence table storage unit 8. Register in the data correspondence table.

第5図に例示した既存ファイルレコード情報を第3図で
例示した標準ファイルレコード情報と対応づけて、第5
図に示される各既存データに対する変換先の標準データ
名称を規定したデータ対応表を作成する例を以下に示す
The existing file record information illustrated in FIG. 5 is associated with the standard file record information illustrated in FIG.
An example of creating a data correspondence table that defines standard data names to be converted to each existing data shown in the figure is shown below.

本実施例では、第3図と第5図のファイルレコード情報
の対応付けは、それぞれの情報内のファイル名が共にr
DENPYo −FILEJで一致していることにより
判定する。
In this embodiment, the correspondence between the file record information in FIGS. 3 and 5 is such that the file names in each information are both r.
Determination is made based on the match between DENPYo and FILEJ.

第5図に示した既存データrD−RECJ及びrD−N
○」と相対位置、長さ、属性が等しい標準データは第3
図の例では、それぞれ、「伝票データ」、「伝票番号」
しか存在しないので、これらを直ちに既存データと共に
変換先標準データ名称としてデータ対応表に登録するこ
とが出来る。
Existing data rD-RECJ and rD-N shown in FIG.
Standard data with the same relative position, length, and attributes as “○” is the third
In the example in the figure, "slip data" and "slip number"
Since only existing data exists, these can be immediately registered in the data correspondence table as conversion destination standard data names along with existing data.

次に、第5図の既存データrD−CONTENTSJと
位置・長さ・属性が等しい標準データは第3図には「売
上内容」と「入金内容」の2つがある。「売上内容」と
「入金内容」の上位データは共に、「伝票データ」であ
るので先に述べた(2)、(b)の規則により、いずれ
かをrD−CONTENTSJの置換先データと直ちに
決定することはできず5表示装置に2つの変換先標準デ
ータ名称を表示し、この中から、利用者に選択させる。
Next, there are two types of standard data in FIG. 3 that have the same position, length, and attributes as the existing data rD-CONTENTSJ in FIG. 5: "sales content" and "deposit content." Since the higher-level data of "sales details" and "deposit details" are both "slip data," either one is immediately determined as the replacement data for rD-CONTENTSJ according to the rules (2) and (b) mentioned above. Therefore, two conversion destination standard data names are displayed on the display device 5, and the user is asked to select one of them.

第6図にその表示・選択画面の例を示す。本例では変換
元データ名称としてrD −C0NTENTS Jが表
示され(12)、変換先データ名候補として「売上内容
」と「入金内容」が候補番号と共に表示されている(1
3)。本例では利用者はこの表示を兄て、変換先標準デ
ータ名を「入金内容」と決定し、その番号「1」を入力
している。これにより「入金内容」がrD−CONTE
NTSJの変換先標準データとしてデータ対応表に登録
される。
FIG. 6 shows an example of the display/selection screen. In this example, rD-C0NTENTS J is displayed as the conversion source data name (12), and “sales details” and “deposit details” are displayed as conversion destination data name candidates along with candidate numbers (1
3). In this example, the user takes note of this display, determines the conversion destination standard data name as "deposit details", and inputs its number "1". As a result, the "deposit details" will be changed to rD-CONTE.
It is registered in the data correspondence table as NTSJ conversion standard data.

次に第5図の既存データru−3UURYOUJと位置
・長さ・属性が等しい第4図の標準データには、「売上
数量」と「入金数量」の2つがある。この場合「売上数
量」の上位データは「売上内容」、「入金数量」の上位
データは「入金内容」であり異なる。この内、「売上内
容」データは、rU −5UURYOU Jの上位デー
タであるrD −C0NTENTSJの変換先標準デー
タと決定されている。従って先の(2)、(a)の規則
により、ru −5UURYOUJの置換先標準データ
は「売上数量」と決定し、データ対応表に登録する。
Next, there are two types of standard data in FIG. 4 that have the same position, length, and attributes as the existing data ru-3UURYOUJ in FIG. 5: "sales quantity" and "deposit quantity." In this case, the upper data of "sales quantity" is "sales details" and the upper data of "deposit quantity" is "deposit details", which are different. Of these, the "sales content" data is determined to be the standard data to be converted to rD-C0NTENTSJ, which is higher-order data of rU-5UURYOU J. Therefore, according to the rules (2) and (a) above, the replacement standard data for ru-5UURYOUJ is determined to be "sales quantity" and is registered in the data correspondence table.

第5図の既存データrU−TANKAJ 、rU−KI
NGAKUJに関しても、rU−3UURYOUJ 、
と同様、複数の変換先標準データ名称の候補が存在する
が、これらも(2)、(a)の規則によりそれぞれ「売
上単価」、「売上金額」を変換先標準データとして決定
し、データ対応表に登録する。
Existing data rU-TANKAJ, rU-KI in Figure 5
Regarding NGAKUJ, rU-3UURYOUJ,
Similar to , there are multiple conversion destination standard data name candidates, but these also determine the "sales unit price" and "sales amount" as the conversion destination standard data according to the rules (2) and (a), respectively, and perform data correspondence. Register in the table.

第7図に、第5図の既存ファイルレコード情報を第3図
のJR準ラフアイルレコード情報対応づけて作成した、
第5図の各既存データに対する変換先標準データを示す
データ対応表を表形式で示す。
Figure 7 is created by associating the existing file record information in Figure 5 with the JR semi-rough air record information in Figure 3.
A data correspondence table showing conversion destination standard data for each existing data in FIG. 5 is shown in a table format.

第1図のプログラム内データ名置換部9は、既存ソース
プログラム蓄積部2に蓄積された既存ソー入プログラム
を入力し、その内のファイルレコードデータ名称と、デ
ータ対応表蓄積部6内のデータ対応表の指定に従って、
標準データ名称に置換し、これにより作成された新ソー
スプログラムを新ソースプログラム蓄積部10に出力す
る。この標準データ名称への置換は、既存プログラム内
の既存ファイルレコードデータを定義している部分だけ
でなく、そのデータを使用している箇所について全て行
なう。
The intra-program data name replacement section 9 in FIG. As specified in the table,
The new source program created using the standard data name is output to the new source program storage section 10. This replacement with the standard data name is performed not only in the part defining the existing file record data in the existing program, but also in all parts where the data is used.

第8図に、第4図に例示したプログラムを、第7図に示
したデータ対応表に従って変換して作成した新プログラ
ムの例を示す。図に示されるように第4図のrDENP
YO−FILEJの各データの定義部分(11)に含ま
れる各データの名称は第7図に示すように、第7図のデ
ータ対応表の指定に従って、標準データ名称に置換され
る。例えばrD−RECJは「伝票データ」に、rD−
N○」は「伝票番号」に置換されている。また第4図の
手続き部(PROCEDURDIVISION)内の文
18内の参照データ名rD−NOJは第8図の文19内
では「伝票番号」に置換され、第4図の文21内の参照
データ名rU−TANKAJは第8図の文22内では「
売上単価Jに置換されている。このプログラム内データ
名置換部9の処理は、たとえば公知のテキストマツチン
グ技術で可能である。
FIG. 8 shows an example of a new program created by converting the program shown in FIG. 4 according to the data correspondence table shown in FIG. rDENP in Figure 4 as shown in Figure 4.
As shown in FIG. 7, the names of each data included in the definition part (11) of each data of YO-FILEJ are replaced with standard data names according to the specifications in the data correspondence table of FIG. For example, rD-RECJ is "slip data", rD-RECJ is
"N○" has been replaced with "slip number". Also, the reference data name rD-NOJ in statement 18 in the procedure division (PROCEDURDIVISION) in FIG. 4 is replaced with "slip number" in statement 19 in FIG. 8, and the reference data name in statement 21 in FIG. rU-TANKAJ is “
It has been replaced with sales unit price J. The processing of the in-program data name replacement section 9 can be performed using, for example, a known text matching technique.

第9図に本実施例の概略フローチャートを示す。FIG. 9 shows a schematic flowchart of this embodiment.

処理101は第1図のB準ファイルレコード情報入力部
1によって入力装置より1つのJMQファイルレコード
情報を入力して標準ファイル情報蓄積部20に蓄積し、
すべての標準ファイルレコード情報を入力していない場
合は再び処理101を、全ての標準ファイルレコード情
報を入力した場合は処理103以下を行なう(処理1o
2)。処理103はファイルレコード情報抽出部3によ
って既存ソースプログラム蓄積部3内の1つのプログラ
ム内の1つのファイルのファイルレコード情報を抽出し
て既存ファイルレコード情報蓄積部4に蓄積し、処理1
04は該プログラムの全ファイルのファイルレコード情
報を抽出したかを判断し、まで抽出していないものがあ
れば再び処理103を行ない、該プログラムの全てのフ
ァイルレコード情報を抽出すれば処理105以下を行な
う。処理105はデータ対応表作成部5によって、1つ
の既存ファイルの1つのデータに対する置換先候補を検
出する。処理106は候補が複数かを判定し、複数の場
合、処理107は、置換先データ候補表示部7により、
置換先候補を表示装置に表示し、処理108は、置換先
データ指定部8により入力装置より置換先データを得る
。処理109は得られたデータをデータ対応表蓄積部6
内のデータ対応表に登録する。処理110は該既存ファ
イルレコード情報内の全データの処理が完了したかを判
定し、もし終了していなければ、次のデータについて再
び処理105〜109を行なう。該既存ファイルレコー
ド情報の全データの処理が完了すれば、処理111によ
り全ファイルの既存ファイルレコード情報の処理が完了
したかを判定し。
Process 101 inputs one JMQ file record information from the input device by the B semi-file record information input unit 1 in FIG. 1 and stores it in the standard file information storage unit 20.
If all standard file record information has not been input, process 101 is performed again; if all standard file record information has been input, process 103 and subsequent steps are performed (process 1o).
2). In process 103, the file record information extraction unit 3 extracts the file record information of one file in one program in the existing source program storage unit 3 and stores it in the existing file record information storage unit 4.
04 judges whether the file record information of all files of the program has been extracted, and if there is any file that has not yet been extracted, performs the process 103 again, and if all the file record information of the program has been extracted, the process 105 and subsequent steps are performed. Let's do it. In process 105, the data correspondence table creation unit 5 detects replacement destination candidates for one piece of data in one existing file. A process 106 determines whether there are multiple candidates, and if there are multiple candidates, a process 107 causes the replacement destination data candidate display unit 7 to
The replacement destination candidates are displayed on the display device, and in step 108, the replacement destination data specifying unit 8 obtains replacement destination data from the input device. Process 109 stores the obtained data in the data correspondence table storage unit 6.
Register in the data correspondence table within. Process 110 determines whether processing of all data in the existing file record information has been completed, and if not, processes 105 to 109 are performed again for the next data. When the processing of all the data of the existing file record information is completed, it is determined in step 111 whether the processing of the existing file record information of all the files is completed.

もし完了していなければ、次のファイルの既存ファイル
レコード情報について処理105〜110を行なう。全
既存ファイルレコード情報に関し、データ対応表への登
録が完了すれば、処理112はプログラム内データ名称
置換部9により、該既存プログラム内のデータ名称の置
換を、データ対応表を用いて行ない、新ソースプログラ
ム置換部10に登録する。処理113は既存ソースプロ
グラム蓄積部内の全既存ソースプログラムについて、処
理を完了したかを判断し、もし完了しなければ次の既存
プログラムに対し、処理103〜112の処理を行なう
、全既存プログラムの処理が完了すれば、処理は終了す
る。
If not completed, processes 105 to 110 are performed for the existing file record information of the next file. When the registration of all existing file record information in the data correspondence table is completed, in process 112, the in-program data name replacement unit 9 replaces the data name in the existing program using the data correspondence table, and creates a new file. It is registered in the source program replacement unit 10. Process 113 is a process for all existing programs in which it is determined whether processing has been completed for all existing source programs in the existing source program storage unit, and if not completed, processes 103 to 112 are performed for the next existing program. Once completed, the process ends.

以上の第1の実施例では、置換対象データに対し、標準
ファイル・レコード情報の中に置換先標準データ名称の
候補は少なくとも1つは検出できるとして、説明したが
、見つからない場合も考えられる。
In the first embodiment described above, it has been explained that at least one candidate for the replacement destination standard data name can be detected in the standard file record information for the replacement target data, but there may be cases where the replacement destination standard data name candidate is not found.

これに対処するには、第1図のデータ対応表作成部5に
おいて、前記の変換先標準データ名称の決定の際に、も
し対象とする既存データと位置。
To deal with this, the data correspondence table creation unit 5 of FIG.

長さ、属性が一致するデータが見つからなければ、前記
のデータ名称対応表(第7図参照)に、該変換対象デー
タ名のみを登録し、対応する変換先標準データ名称は登
録しないようにするステップを加え、更にプログラム内
データ名置換部9において、既存ソースプログラム内に
該データが見つかれば、そのデータ名は置換せず、エラ
ーメツセージをプリンタ等に出力するようにするステッ
プを加える方法が存在する。この場合、利用者は、前記
標準ファイルレコード情報を変更するか、あるいは既存
ソースプログラム内の該データの属性を変更して、再び
本データ処理装置を再実行し、正しく、プログラム内の
データ名称を標準データに変換する。
If data with matching length and attributes is not found, register only the conversion target data name in the data name correspondence table (see Figure 7), and do not register the corresponding conversion destination standard data name. There is a method of adding a step and further adding a step in which, in the in-program data name replacement section 9, if the data is found in the existing source program, the data name is not replaced and an error message is output to a printer etc. do. In this case, the user must change the standard file record information or change the attributes of the data in the existing source program and re-execute the data processing device to correctly name the data in the program. Convert to standard data.

また、第1の実施例では、データ対応表作成部5におい
て、既存データと相対位置・長さ・属性のすべてが一致
する標準データのみを置換先標準データの候補として採
用したが、属性や長さの多少異なるものも候補として採
用する方法も存在する。
In addition, in the first embodiment, the data correspondence table creation unit 5 adopted only standard data that matches the existing data in relative position, length, and attributes as candidates for replacement standard data. There is also a method of employing items with slightly different values as candidates.

この場合、前記データ対応表にワーニング情報欄を加え
、属性や長さが多少異なるものが置換先データ名称とし
てデータ対応表に登録される場合には、ワーニング情報
欄に必要情報を登録し、プログラム内データ名置換部9
では、該データの置換時には、データ対応表のワーニン
グ情報内の情報にもとづきメツセージをプリンタ等に出
力するようにしてもよい。
In this case, a warning information column is added to the data correspondence table, and if something with slightly different attributes or length is registered in the data correspondence table as a replacement data name, the necessary information is registered in the warning information column and the program Internal data name replacement part 9
Then, when replacing the data, a message may be output to a printer or the like based on the information in the warning information of the data correspondence table.

この場合も、既存ソースプログラムや標準ファイルレコ
ード情報の修正による再実行が場合により必要となる。
In this case as well, it may be necessary to re-execute the program by modifying the existing source program or standard file record information.

また、第1の実施例における、データ対応表作成部5に
おける前記既存データに対する変換先標準データの決定
規則は、(1)相対位置2桁数・属性の信報、(2)デ
ータ構造の情報、(3)利用者の指定情報、の優先順位
に各情報を利用したが、この順序を変えた実施例も考え
られる。たとえば、データ構造の情報により変換先標準
候補を絞りこみ、この中から相対位置・桁数等が一致す
る標準データをさがしてもよい。
Further, in the first embodiment, the rules for determining the standard data to be converted to the existing data in the data correspondence table creation unit 5 are as follows: (1) 2-digit relative position/attribute information; (2) data structure information. , (3) User specified information, each piece of information is used for the priority order, but it is also possible to consider an embodiment in which this order is changed. For example, the conversion destination standard candidates may be narrowed down based on data structure information, and standard data with matching relative position, number of digits, etc. may be searched among them.

更に、第1の実施例では、変換先標準データ名称が決定
できない場合に、利用者が変換先標準データ名称を対話
方式で指定したが、予め、変換先標準データ候補が複数
生じる既存データに対しては、変換先標準データ名称を
指定して1本データ処理装置を実行する方法も存在する
。この場合は、指定された標準データ名称を第1とする
優先順位と採用してもよい。
Furthermore, in the first embodiment, when the conversion destination standard data name cannot be determined, the user specifies the conversion destination standard data name in an interactive manner. Alternatively, there is a method of specifying a conversion destination standard data name and executing one data processing device. In this case, the designated standard data name may be given the first priority.

以上にのべた、種々の変形実施例は第1の実施例より容
易に類推できるものであり、詳細にわたる説明は省略す
る。
The various modified embodiments described above can be easily inferred from the first embodiment, and detailed explanations will be omitted.

〔発明の効果〕〔Effect of the invention〕

以上述べたように、本発明によればプログラム内のデー
タ名称を標準のデータ名称に置換する際の誤りと手間を
削減することが出来るので、プログラムの標準化が容易
になり、ソフトウェアの保守作業を効率化することが出
来る。
As described above, according to the present invention, it is possible to reduce errors and labor when replacing data names in a program with standard data names, thereby facilitating standardization of programs and reducing software maintenance work. It can be made more efficient.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を説明するための機能ブロッ
ク図、第2図は本発明のハードウェア環境を示すブロッ
ク図、第3図は標準ファイル・レコード情報の一例を表
形式で表現した説明図、第4図は既存ソースプログラム
の一例を示す説明図、第5図は、既存ソースプログラム
から抽出した既存ファイル・レコード情報の一例を表形
式で表現した説明図、第6図は、変換先データ名称候補
の表示例を示すディスプレイ画面図、第7図はデータ対
応表の一例を表形式で表現した説明図、第8図は、デー
タ名を置換した新プログラムの一例を示した説明図、第
9図は本発明の一実施例の処理フローチャートである。 1・・・標準ファイル・レコード情報入力部、2・・・
既存ソースプログラム蓄積部、3・・・ファイル・レコ
ード情報抽象部、4・・・既存ファイル・レコード情報
蓄積部、5・・・データ対応表作成部、6・・・データ
対応表蓄積部、7・・・置換先データ候補表示部、8・
・・置換先データ指定部、9・・・プログラム名データ
名置換部、10・・・新ソースプログラム蓄積部、芽 
)図 弄 Z圀 弄3図 弄 4 図 # 5 図 1図 革q 図
Figure 1 is a functional block diagram for explaining one embodiment of the present invention, Figure 2 is a block diagram showing the hardware environment of the present invention, and Figure 3 represents an example of standard file record information in table format. FIG. 4 is an explanatory diagram showing an example of an existing source program. FIG. 5 is an explanatory diagram showing an example of existing file/record information extracted from an existing source program in a table format. FIG. A display screen diagram showing a display example of conversion destination data name candidates, Figure 7 is an explanatory diagram showing an example of a data correspondence table in table format, and Figure 8 is an explanation showing an example of a new program in which data names are replaced. 9 are processing flowcharts of an embodiment of the present invention. 1...Standard file/record information input section, 2...
Existing source program storage section, 3... File/record information abstraction section, 4... Existing file/record information storage section, 5... Data correspondence table creation section, 6... Data correspondence table accumulation section, 7 ...Replacement destination data candidate display section, 8.
...Replacement destination data specification part, 9...Program name data name replacement part, 10...New source program storage part, bud
) figure play Z circle play 3 figure play 4 figure # 5 figure 1 figure leather q figure

Claims (1)

【特許請求の範囲】 1、プログラム内で使用しているデータ名称を、標準の
データ名称に変換するために、ファイル等の構造化され
たデータ(以下レコードとよぶ)単位に含まれるデータ
の標準名称および桁数などの属性を定義した情報(以下
標準レコード情報という)と、プログラムとを入力し、
プログラム内の、標準レコード情報と対応するレコード
に含まれる各データに対して変換先の標準データ名称を
定めた変換情報を作成する情報処理において、上記プロ
グラム内のある変換対象データに対し、標準レコード情
報内に、変換先標準データ名称の候補が複数存在する場
合、 (1)複数となる標準データの中に、その上位の標準デ
ータが置換対象データの上位データの変換先となるもの
が、ただ一つ有れば、その名称を標準データ名称として
採用する手段と、(2)利用者が変換先標準データ名称
指定する手段のうち、少なくとも一つを有してなること
を特徴とするプログラム内データ名称標準化支援方法。 2、該プログラムの内に含まれる、前記該レコード内デ
ータ名称の各使用箇所を、前記、変換情報に定められた
、変換先標準データ名称に置換して新プログラムを作成
する手段を加えたことを特徴とする請求項第1項記載の
プログラム内データ名称標準化支援方法。 3、前記プログラム内のレコードに含まれる各データに
対する変換先標準データを定めて変換情報を作成する際
に、各データのレコード内相対位置と等しい相対位置を
もつ前記標準レコード情報内の標準データを見つけ、そ
の名称を該データの変換先標準データ名称の候補とする
ことを特徴とする、請求項第1項記載のプログラム内デ
ータ名称標準化支援方法。 4、前記各データの変換先標準データ名称の候補は、レ
コード内相対位置だけでなく、データの長さが一致する
標準データを見つけ、そのデータ名称とすることを特徴
とする請求項第3項記載のプログラム内データ名称標準
化支援方法。 5、前記各データの変換先標準データ名称の候補を見つ
けるため、データの型(数字、文字等)の一致するもの
に候補を絞るステップを加えたことを特徴とする請求項
第3項乃至第4項記載のプログラム内データ名称標準化
支援方法。 6、前記利用者が変換先標準データ名称を指定する手段
は、前記データの変換先標準データ名称の候補をディス
プレイなどの表示端末に表示し、その中から利用者がキ
ーボードなどの入力装置より入力することにより行なう
ことを特徴とする請求項第1項記載のプログラム内デー
タ名称標準化支援方法。
[Claims] 1. Standardization of data included in units of structured data (hereinafter referred to as records) such as files, in order to convert data names used within a program into standard data names. Enter information that defines attributes such as name and number of digits (hereinafter referred to as standard record information) and the program.
In information processing that creates conversion information that specifies the standard data name of the conversion destination for each data included in the record that corresponds to standard record information in the program, a standard record is created for certain conversion target data in the program. If there are multiple candidates for conversion destination standard data names in the information, (1) Among the multiple standard data, there is only one whose upper standard data is the conversion destination of the upper data of the replacement target data. (2) means for the user to specify the name of the standard data to be converted; Data name standardization support method. 2. Adding a means to create a new program by replacing each usage part of the data name in the record included in the program with the conversion destination standard data name specified in the conversion information. 2. A method for supporting standardization of data names within a program according to claim 1. 3. When creating conversion information by determining the conversion destination standard data for each data included in the record in the program, select the standard data in the standard record information that has a relative position equal to the relative position in the record of each data. 2. The method for supporting standardization of data names within a program according to claim 1, wherein the name is found and the name is selected as a candidate for a standard data name to which the data is converted. 4. As a candidate for the standard data name to which each data is converted, find standard data that matches not only the relative position within the record but also the length of the data, and use that data name as the candidate. The data name standardization support method in the program described. 5. In order to find candidates for standard data names to which each of the data is to be converted, the method further includes the step of narrowing down the candidates to those that match the data type (numbers, characters, etc.). The standardization support method for data names within a program described in Section 4. 6. The means for the user to designate the conversion destination standard data name is to display candidates for the conversion destination standard data name of the data on a display terminal such as a display, and allow the user to input the candidates from among them using an input device such as a keyboard. 2. The method for supporting standardization of data names within a program according to claim 1, wherein the method is carried out by:
JP63109005A 1988-05-06 1988-05-06 Assisting method for standardization of intra-program data name Pending JPH01280831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63109005A JPH01280831A (en) 1988-05-06 1988-05-06 Assisting method for standardization of intra-program data name

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63109005A JPH01280831A (en) 1988-05-06 1988-05-06 Assisting method for standardization of intra-program data name

Publications (1)

Publication Number Publication Date
JPH01280831A true JPH01280831A (en) 1989-11-13

Family

ID=14499153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63109005A Pending JPH01280831A (en) 1988-05-06 1988-05-06 Assisting method for standardization of intra-program data name

Country Status (1)

Country Link
JP (1) JPH01280831A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02278426A (en) * 1989-04-20 1990-11-14 Toshiba Corp Automatic program generating device
JPH03294925A (en) * 1990-04-12 1991-12-26 Hitachi Ltd Software standardizing method
JPH06187136A (en) * 1992-12-17 1994-07-08 Hitachi Ltd Sofware standardizing method
JPH0764779A (en) * 1993-08-25 1995-03-10 Nec Corp Interactive correcting editor for japanizing data item name and device for japanizing data item name with the editor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02278426A (en) * 1989-04-20 1990-11-14 Toshiba Corp Automatic program generating device
JPH03294925A (en) * 1990-04-12 1991-12-26 Hitachi Ltd Software standardizing method
JPH06187136A (en) * 1992-12-17 1994-07-08 Hitachi Ltd Sofware standardizing method
JPH0764779A (en) * 1993-08-25 1995-03-10 Nec Corp Interactive correcting editor for japanizing data item name and device for japanizing data item name with the editor

Similar Documents

Publication Publication Date Title
US5930806A (en) Method and system for data migration from network database to relational database
US5819086A (en) Computer system for creating semantic object models from existing relational database schemas
JPH01280831A (en) Assisting method for standardization of intra-program data name
JP2008269515A (en) Method for dynamically generating image layout by parameter
EP1526466B1 (en) Composite record identifier generator
JPH1097417A (en) Program assembling device and storage medium
JP3195067B2 (en) Report output system
JP2702986B2 (en) How to replace data in a program
US7065741B2 (en) Method of designing organizational information processing and operational system based upon information providers and information consumers
JPH06251073A (en) Data distribution device
JP2798147B2 (en) Database input / output method and input / output device
JPH11272524A (en) Data converter and storage medium
JP2629604B2 (en) Management book making device
JP2653882B2 (en) Database system
JPH04172529A (en) Automatic program generating system by data oriented software parts
JPH08272804A (en) Item data inquiry system in information display system
JPH024024A (en) Menu data processing system
JPH06131164A (en) Software standardizing method
JPH10283318A (en) Method for displaying processing task selection screen and client data base
JP2922536B2 (en) Logic circuit diagram processing apparatus and logic circuit diagram display method
JPH0314170A (en) Business form generating device
JPH03141427A (en) Preparation of information on standard record specifications
JPH10232773A (en) Job model preparing method utilizing reverse information
JPH08221264A (en) Supporting system for preparing program
JPH07262165A (en) Aggregating method for two-dimensional data