JPH11272524A - Data converter and storage medium - Google Patents

Data converter and storage medium

Info

Publication number
JPH11272524A
JPH11272524A JP10070016A JP7001698A JPH11272524A JP H11272524 A JPH11272524 A JP H11272524A JP 10070016 A JP10070016 A JP 10070016A JP 7001698 A JP7001698 A JP 7001698A JP H11272524 A JPH11272524 A JP H11272524A
Authority
JP
Japan
Prior art keywords
conversion
data
data structure
file
database
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
JP10070016A
Other languages
Japanese (ja)
Inventor
Kuniaki Ikematsu
州映 池松
Katsumoto Tamura
勝基 田村
Yuuki Nakajo
有規 中條
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP10070016A priority Critical patent/JPH11272524A/en
Publication of JPH11272524A publication Critical patent/JPH11272524A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a processing device regarding new data transfer which contributes to accuracy and swiftness and to provide a new program storage medium for storing a program which realizes the program in the preparation of transfer application needed for the data transfer such as a data base. SOLUTION: This device is equipped with a conversion specifications definition means 101 in which the data structure of a first file and the data structure of a second file are inputted in a table format and the conditions of conversion regarding an arbitrary data structure are inputted and a conversion means which makes the data of the first file of a converter origin the data structure of the second file on the basis of the contents defined by the conversion specifications definition means 101 and converts them into data satisfying the conversion conditions. Thus, it is possible to confirm a complicated conversion processing description in a list of the table format and the change and the correction are made easier.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データベース間の
データ移行のための、アプリケーション作成を効率的か
つ、正確に行うための編集方法及び、処理装置に関す
る。データウェアハウスやデータベースを中心とした、
一般的分野での基幹系システムまたは、情報系システム
と呼ばれるシステムにおいて、新規にデータベースを構
築するケースで、旧データ資産を新データベースへ、デ
ータ移行させる必要が生じる。このような分野で正確
で、迅速に移行処理が遂行できることが望まれる。
[0001] 1. Field of the Invention [0002] The present invention relates to an editing method and a processing apparatus for efficiently and accurately creating an application for transferring data between databases. Focusing on data warehouses and databases,
In a system called a backbone system or an information system in a general field, when a new database is constructed, it is necessary to transfer data from an old data asset to a new database. It is desired that the transfer process can be performed accurately and quickly in such a field.

【0002】[0002]

【従来の技術】従来のデータ移行に関する処理装置で
は、新規に作成するデータベースへのデータ移行に関し
て、移行先のそれぞれのデータ構造に対して、データ移
行変換処理のための、アプリケーションを最初から全て
作成しなければならず、試行錯誤の繰り返しや、データ
項目やデータ構造の、元データ項目と先データ項目の対
応誤りなど、かなり正確性や迅速性にかけるところがあ
った。
2. Description of the Related Art In a conventional data migration processing apparatus, for data migration to a newly created database, all applications for data migration conversion processing are created from the beginning for each data structure at the migration destination. In some cases, the accuracy and speed of the process must be considerably increased due to repeated trial and error, errors in the correspondence between the source data items and the destination data items in the data items and data structures, and the like.

【0003】[0003]

【発明が解決しようとする課題】このように、データ移
行のためのアプリケーションを作成するとき、移行アプ
リケーション作成者が、移行元及び、移行先データベー
スの情報を基に、最初から移行アプリケーションを作成
する場合、変換処理内容によっては、処理ロジックの複
雑化や、処理記述の膨大化が生じ、記述ミスや生産性の
面から問題が多発することが予想されるといった問題が
あった。
As described above, when creating an application for data migration, the migration application creator creates the migration application from the beginning based on the information of the source and destination databases. In this case, depending on the content of the conversion process, there is a problem that the processing logic becomes complicated and the process description becomes enormous, and a problem is expected to occur frequently in terms of description error and productivity.

【0004】本発明は、かかる事情に鑑みてなされたも
のであって、データベースなどのデータ移行に必要とな
る、移行アプリケーション作成において、正確性や、迅
速性に貢献する新たなデータ移行に関する処理装置の提
供と、それを実現するプログラムを記憶する新たなプロ
グラム記憶媒体の提供とを目的とする。
The present invention has been made in view of the above circumstances, and is a processing apparatus for new data migration that contributes to accuracy and speed in creating a migration application required for data migration of a database or the like. And a new program storage medium for storing a program for realizing the same.

【0005】[0005]

【課題を解決するための手段】上記課題は、第1のファ
イルのデータ構造と、第2のファイルのデータ構造を、
表形式で入力させ、かつ、任意のデータ構造について変
換の条件を入力させる、変換仕様定義手段と、変換元の
第1のファイルのデータを、前記変換仕様定義手段で定
義した内容に基づいて、第2のファイルのデータ構造と
し、かつ、前記変換条件を満たしたデータに変換する変
換手段を備えることで解決される。
The object of the present invention is to provide a data structure of a first file and a data structure of a second file.
A conversion specification defining means for inputting in the form of a table and inputting a conversion condition for an arbitrary data structure, and data of the first file of the conversion source, based on the contents defined by the conversion specification defining means, This problem is solved by providing a data structure of the second file and having a conversion unit that converts the data into data satisfying the conversion condition.

【0006】[0006]

【発明の実施の形態】データベース移行を行う場合に大
きく分けて、アプリケーションの移行と、データの移行
がある。本発明は、データの移行を行うための変換仕様
の定義及び、その定義に基づく変換プログラムの自動生
成を行うものである。以下、データベースを適用する一
般的なシステムにおいて、新規にデータベース移行を行
う場合に、適用した実施の形態に従って本発明を詳細に
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Database migration is roughly divided into application migration and data migration. The present invention defines a conversion specification for performing data migration and automatically generates a conversion program based on the definition. Hereinafter, the present invention will be described in detail according to an applied embodiment when a new database is migrated in a general system to which a database is applied.

【0007】図1に、データベース移行のための応用プ
ログラム自動生成を実行する、本発明の適用される移行
データ変換仕様記述と、その処理装置(以降、処理装置
と略す)のシステム構成を図示する。この図に示す処理
装置10は、移行元データベースのデータ構造が蓄積さ
れている元データ構造解析ファイル30と、移行先デー
タベースのデータ構造が蓄積されている先データ構造フ
ァイル40を取り込んで、並列に画面表示を行い、元デ
ータと先データの変換仕様を定義する元データ先データ
変換仕様定義手段101と、その定義情報を蓄積する変
換仕様テーブル102と、定義された変換仕様を解析す
る変換仕様定義解析部103と、その解析結果に基づき
変換プログラムを自動生成するアプリケーション生成部
104及び、生成されたアプリケーションが出力される
成果物105から構成されている。
FIG. 1 shows a migration data conversion specification description to which the present invention is applied for automatically generating an application program for database migration, and a system configuration of a processing device (hereinafter abbreviated as a processing device). . The processing apparatus 10 shown in FIG. 1 takes in an original data structure analysis file 30 in which the data structure of the migration source database is stored and a destination data structure file 40 in which the data structure of the migration destination database is stored, and performs parallel processing. Original data / destination data conversion specification definition means 101 for displaying a screen and defining conversion specifications for source data and destination data, a conversion specification table 102 for storing the definition information, and a conversion specification definition for analyzing the defined conversion specification The analysis unit 103 includes an analysis unit 103, an application generation unit 104 that automatically generates a conversion program based on the analysis result, and a product 105 to which the generated application is output.

【0008】ここで、図中の作業者端末20は、図中の
元データ先データ変換仕様定義手段101の備える表示
装置並びに、キーボードである。この元データ先データ
変換仕様定義手段101は、収集仕様定義画面(図6)
と、コードテーブル定義画面(図7)と、コードテーブ
ル(図8)と、項目収集テーブル(図9)及び、作業者
端末20から構成されていて、元データ構造ファイル
と、先データ構造ファイルの内容を読み込んで,データ
項目単位に、並列に対応させて収集仕様定義画面(図
6)に表示し、作業者端末20から、変換仕様を定義さ
せることにより、移行のためのデータ構造変換仕様を、
確定させるものである。
Here, the worker terminal 20 in the figure is a display device and a keyboard provided in the original data destination data conversion specification defining means 101 in the figure. The original data destination data conversion specification definition means 101 is a collection specification definition screen (FIG. 6).
, A code table definition screen (FIG. 7), a code table (FIG. 8), an item collection table (FIG. 9), and an operator terminal 20, and include a source data structure file and a destination data structure file. The contents are read and displayed in the collection specification definition screen (FIG. 6) in parallel with each data item, and the conversion specification is defined from the worker terminal 20, whereby the data structure conversion specification for migration is defined. ,
It is to be decided.

【0009】例えば、そのまま型/桁数の変更がないデ
ータ項目については、「代入」という文字を収集仕様定
義画面(図6)上の変換方式欄に定義し、6桁から8桁
への桁数変換が伴うものは、「コード」という文字を変
換方式欄に定義し、かつ、コードテーブル名欄にテーブ
ル名を定義しておく。また、代入やコードで対応出来な
いような変換を要求するデータ項目については、「関
数」という文字を変換方式欄に定義し、変換式欄に、C
OBOLプロシジャを記述する。その際、標準提供され
る予約語(図16)を使用して、COBOLプロシジャ
の記述ができる。
For example, for a data item whose type / number of digits is not changed as it is, the character "assignment" is defined in the conversion method column on the collection specification definition screen (FIG. 6), and the digit from 6 to 8 is set. If the number conversion is involved, the character "code" is defined in the conversion method column, and the table name is defined in the code table name column. For data items that require conversion that cannot be handled by substitution or code, the characters “function” are defined in the conversion method column, and C
Describes the OBOL procedure. At this time, the COBOL procedure can be described using reserved words (FIG. 16) provided as standard.

【0010】次に、変換仕様定義解析部103は、元デ
ータ先データ変換仕様定義手段101の、収集仕様定義
画面(図6)の変換方式欄に「関数」または、「コー
ド」と定義されたデータ項目に対して、解析処理を行
う。「関数」の場合は、収集仕様定義画面(図6)で定
義されたCOBOLプロシジャを解析して、COBOL
ステートメントを生成し、関数処理の作業領域に保存す
る。また、「コード」の場合は、任意の時点で、図示し
ない収集仕様定義画面(図6)上のプルダウンメニュー
から、コードテーブル定義画面(図7)を選択し表示さ
せて、例えば、コードテーブル名単位に、6→8桁数変
換の場合は、元データの項目値と、それに対応する返値
の定義を行う。
Next, the conversion specification definition analysis unit 103 defines “function” or “code” in the conversion method column of the collection specification definition screen (FIG. 6) of the original data destination data conversion specification definition means 101. Perform analysis on the data items. In the case of “function”, the COBOL procedure defined on the collection specification definition screen (FIG. 6) is analyzed, and COBOL is analyzed.
Generate a statement and save it in the work area for function processing. In the case of "code", at any time, a code table definition screen (FIG. 7) is selected and displayed from a pull-down menu on a collection specification definition screen (FIG. 6) (not shown). In the case of 6 → 8 digit conversion in units, the item value of the original data and the corresponding return value are defined.

【0011】また、範囲の解釈を行って変換する場合
は、範囲上限/下限の定義と、範囲の解釈方法の定義及
び、変換式と返値をコードテーブル定義画面(図7)上
の、それぞれ該当する部分に定義する。変換仕様が確定
された段階で、項目仕様定義画面(図6)の内容及び、
解析後生成された変換式が項目収集テーブル(図9)
へ、コードテーブル定義画面(図7)の内容がコードテ
ーブル(図8)へ、それぞれ蓄積される。
When the range is interpreted and converted, the definition of the range upper / lower limit, the definition of the range interpretation method, and the conversion formula and the return value are respectively defined on the code table definition screen (FIG. 7). Define it in the relevant part. When the conversion specifications are determined, the contents of the item specification definition screen (FIG. 6) and
The conversion formula generated after analysis is the item collection table (Fig. 9)
The contents of the code table definition screen (FIG. 7) are stored in the code table (FIG. 8).

【0012】このように、画面を見ながらデータ項目毎
に、変換仕様を定義していき、最後のデータ項目まで、
順次定義していくことにより、データベース移行のアプ
リケーション生成のためのロジック情報が蓄積されるこ
とになる。前記の、各種テーブルの関連図を、図5に示
す。次に、アプリケーション生成部104は、前記変換
仕様定義解析部103で作成された、項目収集テーブル
(図9)と、コードテーブル(図8)を参照して、変換
方式に基づいて、変換プログラムのステートメントを展
開する。
As described above, the conversion specification is defined for each data item while looking at the screen, and until the last data item,
By sequentially defining, logic information for generating an application for database migration is accumulated. FIG. 5 shows a related diagram of the various tables. Next, the application generation unit 104 refers to the item collection table (FIG. 9) and the code table (FIG. 8) created by the conversion specification definition analysis unit 103, and converts the conversion program based on the conversion method. Expand the statement.

【0013】変換方式が「代入」の場合は、そのまま元
データ項目を先データ項目として、変換するステートメ
ントを展開する。変換方式が「関数」の場合は、項目収
集テーブル(図9)内の、収集のロジック欄に記述され
ているCOBOLステートメントをそのまま展開する。
変換方式が「コードテーブル」の場合は、範囲指定の有
無によって処理が分かれる。範囲指定有の場合は、コー
ドテーブル(図8)上の範囲条件や、返値を参照して、
変換ロジックを生成し、範囲条件を満足するステートメ
ントを展開する。範囲指定無の場合は、コードテーブル
(図8)上の返値や元項目の値及び、変換式を参照し
て、ステートメントを展開する。
If the conversion method is "assignment", the source data item is used as the destination data item and the statement to be converted is expanded. When the conversion method is “function”, the COBOL statement described in the collection logic column in the item collection table (FIG. 9) is directly expanded.
When the conversion method is “code table”, the processing is divided depending on whether or not a range is specified. If the range is specified, refer to the range condition and return value on the code table (Fig. 8),
Generate conversion logic and expand statements that satisfy the range condition. If no range is specified, the statement is expanded with reference to the return value, the value of the original item, and the conversion formula on the code table (FIG. 8).

【0014】図2、図3、図4に、本発明の処理装置1
0の実行する処理フローの一実施例を図示する。次に、
この処理フローに従って、本発明について詳細に説明す
る。処理装置10は、変換実行指示に従って起動される
と、図2の処理フローに示すように、先ず最初に、ステ
ップ01で、元データ構造解析ファイル30と、先デー
タ構造定義ファイル40を読み込む。
FIGS. 2, 3 and 4 show a processing apparatus 1 according to the present invention.
0 illustrates an example of a process flow executed by the CPU. next,
The present invention will be described in detail according to this processing flow. When started up in accordance with the conversion execution instruction, the processing device 10 first reads the source data structure analysis file 30 and the destination data structure definition file 40 in step 01 as shown in the processing flow of FIG.

【0015】続いて、ステップ02で、それぞれのデー
タ構造を、収集仕様定義画面(図6)上に収集先テーブ
ルのデータ項目名と、元レコードの元項目名を並列に対
応させて表示する。ステップ03で、表示された内容を
作業者が見て、画面上の先頭行から、元データ構造と、
先データ構造の組み合わせ毎に、変換方式を決定して、
作業者端末20から入力する。
Subsequently, in step 02, the respective data structures are displayed on the collection specification definition screen (FIG. 6) in such a manner that the data item names of the collection destination table and the original item names of the original record are associated in parallel. In step 03, the operator looks at the displayed contents, and from the first line on the screen,
Determine the conversion method for each combination of destination data structures,
Input from the operator terminal 20.

【0016】例えば、単に、代入するだけの場合は、画
面上の変換方式欄に「代入」と入力するだけで良い。ま
た、変換条件を直接定義したい場合は、画面上の変換方
式欄に「関数」と入力して、同じ行の変換式欄に図6に
示すような、COBOLプロシジャを入力する。このプ
ロシジャ入力にあたっては、通常、処理装置10が標準
に用意してある予約語(図16)を使用して定義する。
また、元データ項目のデータ内容によって、変換仕様を
決定させたい場合は、画面上の変換方式欄に「コードテ
ーブル」と入力して、同じ行のコードテーブル名欄に、
任意のコードテーブル名を入力する。
For example, in the case of simply substituting, it is only necessary to input "substitution" in the conversion method column on the screen. When it is desired to directly define the conversion condition, "function" is input in the conversion method column on the screen, and the COBOL procedure as shown in FIG. 6 is input in the conversion expression column on the same line. In this procedure input, the processing device 10 is generally defined using a reserved word (FIG. 16) prepared as a standard.
Also, if you want to determine the conversion specifications based on the data content of the original data item, enter "code table" in the conversion method column on the screen, and in the code table name column on the same line,
Enter any code table name.

【0017】続いて、図3のステップ04で、ステップ
03で入力された変換方式を判定する。「関数」が入力
された場合は、ステップ05で、ステップ03で入力さ
れた、COBOLプロシジャを展開して、COBOLス
テートメントを生成する。例えば、図13に示すよう
に、予約語(図16)を用いて入力されたプロシジャ、
即ち、元項目の最初の1バイトが9であれば、19を先
頭に追加したものを変換先へ挿入するといった定義内容
を、解析してCOBOLステートメントに展開する訳で
ある。
Subsequently, in step 04 of FIG. 3, the conversion method input in step 03 is determined. When the "function" is input, in step 05, the COBOL procedure input in step 03 is expanded to generate a COBOL statement. For example, as shown in FIG. 13, a procedure input using reserved words (FIG. 16),
That is, if the first 1 byte of the original item is 9, the definition contents such as inserting the one with 19 added at the head into the conversion destination are analyzed and expanded into the COBOL statement.

【0018】また、「コードテーブル」が入力された場
合は、ステップ06で、コードテーブル定義画面(図
7)を表示する。表示されたコードテーブル画面上に、
ステップ07で、変換プログラム生成にあたって必要と
する項目(返値、項目値、変換式、範囲、範囲小、範囲
大、範囲解釈の各欄)を、テーブル名単位に入力する。
尚、範囲指定や値変換を定義するとき、同一テーブル名
で複数行定義できる。
If a "code table" is input, a code table definition screen (FIG. 7) is displayed at step 06. On the displayed code table screen,
In step 07, the items (return value, item value, conversion formula, range, small range, large range, and range interpretation fields) required for generating the conversion program are input for each table name.
When defining a range specification or a value conversion, a plurality of rows can be defined with the same table name.

【0019】コードテーブルは、元データの内容によっ
て変換仕様を決定したいといった要求を解決する機能を
提供する。次に、ステップ08で、収集仕様定義画面
(図6)上に表示される、変換処理の対象となるデータ
項目の最終行まで、変換仕様定義を継続する。全て入力
が終了した段階で、収集仕様定義画面上の保存キーがク
リックされると、ステップ09で、収集仕様画面上に定
義された内容が項目収集テーブル(図9)に保存され
る。その際、同時に、関数処理の作業領域の内容も保存
される。
The code table provides a function for resolving a request to determine a conversion specification according to the contents of the original data. Next, in step 08, the conversion specification definition is continued up to the last line of the data item to be converted, which is displayed on the collection specification definition screen (FIG. 6). If the save key on the collection specification definition screen is clicked at the stage where all the inputs have been completed, the contents defined on the collection specification screen are stored in the item collection table (FIG. 9) in step 09. At this time, the contents of the work area for the function processing are also saved.

【0020】また、コードテーブル定義画面上の保存キ
ーをクリックすることにより、画面内容がコードテーブ
ル(図8)に保存される。以上の処理が終了した時点
で、変換プログラム生成のための情報が準備されたこと
になる。続いて、図4のステップ10から以降の処理
で、変換プログラムの自動生成の処理が行われる。図4
のステップ10では、項目収集テーブル(図9)上の変
換方式欄を、参照して、代入か、関数か、コードテーブ
ルかを判定して、それぞれの処理へ振り分ける。「代
入」の場合は、ステップ11で、元項目を先項目へその
まま転送するステートメントを生成して、図10と図1
1に示す生成アプリケーション雛型の説明図の中の、収
集仕様の展開処理の箇所(図11)に展開する。
By clicking a save key on the code table definition screen, the contents of the screen are stored in the code table (FIG. 8). When the above processing is completed, the information for generating the conversion program has been prepared. Subsequently, in the processing from step 10 in FIG. 4 onward, processing for automatically generating a conversion program is performed. FIG.
In step 10 of, the conversion method column on the item collection table (FIG. 9) is referred to to determine whether it is an assignment, a function, or a code table, and is assigned to each processing. In the case of "assignment", in step 11, a statement for transferring the source item to the destination item as it is is generated, and FIG.
In the explanatory diagram of the generated application template shown in FIG.

【0021】その際の一実施例を、図12に示す。「関
数」の場合は、ステップ12で、項目収集テーブル(図
9)の、収集のロジック欄に展開されているCOBOL
ステートメントを、そのまま、前記の生成アプリケーシ
ョン雛型の収集仕様の展開処理の箇所(図11)に展開
する。その際の一実施例を、図13に示す。「コードテ
ーブル」の場合は、ステップ13で、コードテーブル
(図8)の、値の範囲欄のチエック有無、すなわち、範
囲指定の有無を、判定してそれぞれの処理に振り分け
る。範囲指定有りの場合は、ステップ14で、コードテ
ーブル上の、範囲の最小値と、範囲の最大値と、範囲の
解釈を、参照して、比較のロジックのステートメントを
生成し、かつ、コードテーブル上の返値を、先項目へ転
送するステートメントを生成する。
FIG. 12 shows an embodiment at that time. In the case of "function", in step 12, COBOL expanded in the collection logic column of the item collection table (FIG. 9)
The statement is developed as it is in the place (FIG. 11) of the processing for expanding the collection specification of the generated application template. One embodiment at that time is shown in FIG. In the case of the "code table", in step 13, the presence / absence of a check in the value range column of the code table (FIG. 8), that is, the presence / absence of a range designation is determined and assigned to each process. If the range is specified, a comparison logic statement is generated in step 14 by referring to the minimum value of the range, the maximum value of the range, and the interpretation of the range on the code table. Generate a statement that transfers the above return value to the previous item.

【0022】その際の一実施例を、図15に示す。図1
5において、90年以上の場合は”90年度”を、先項
目へ転送するステートメントを生成する。同様に、80
年以上、90年未満の場合は、”80年度”を、先項目
へ転送するステートメントを生成する。このように、テ
ーブル上の定義条件を解釈して、変換プログラムを展開
するわけである。生成されたプログラムは、前記の生成
アプリケーション雛型の収集仕様の展開処理の箇所(図
11)に展開する。範囲指定無しの場合は、コードテー
ブル(図8)上の、元項目の値を参照して、比較のロジ
ックのステートメントを生成し、返値を先項目へ転送す
るステートメントを併せて生成する。
FIG. 15 shows an embodiment in that case. FIG.
In step 5, a statement for transferring "90" to the preceding item is generated if the period is 90 years or longer. Similarly, 80
If it is not less than 90 years and less than 90 years, a statement to transfer "80" to the preceding item is generated. In this way, the conversion conditions are expanded by interpreting the definition conditions on the table. The generated program is developed at a place (FIG. 11) where the above-mentioned generated application template collection specification is developed. If no range is specified, a statement of comparison logic is generated with reference to the value of the source item on the code table (FIG. 8), and a statement for transferring the return value to the destination item is also generated.

【0023】その際の一実施例を、図14に示す。図に
示すように、例えば、元項目の値が、0の場合は”あ”
を返し、1の場合は”い”を返すといった変換プログラ
ムを自動生成するわけである。生成されたプログラム
は、前記の生成アプリケーション雛型の収集仕様の展開
処理の箇所(図11)に展開する。以上の処理を、項目
収集テーブルの最終まで、繰り返し実行することによ
り、変換プログラムが完成する。
FIG. 14 shows an embodiment in that case. As shown in the figure, for example, when the value of the original item is 0, “A”
Is returned, and in the case of 1, a conversion program that returns "Yes" is automatically generated. The generated program is developed at a place (FIG. 11) where the above-mentioned generated application template collection specification is developed. The conversion program is completed by repeatedly executing the above processing until the end of the item collection table.

【0024】このようにして、処理装置10は、例え
ば、データベースなどのファイルを移行する際に、膨大
なデータ項目一つ一つの構造を考慮して、変換仕様を組
み立てることが、間違いやすく、移行品質が悪い点を考
慮して、元データ構造と、先データ構造を並列表示し、
作業者が、画面を見ながら変換仕様を定義できること
と、テーブルを使用して、データ内容によって変換仕様
を自動展開し、変換プログラムを生成することで、品質
の高い変換プログラムが生成されるわけである。
In this way, the processing device 10 can easily assemble the conversion specifications in consideration of the structure of each of the enormous data items when transferring a file such as a database. In consideration of the poor quality, the source data structure and the destination data structure are displayed in parallel,
An operator can define conversion specifications while looking at the screen, and automatically develops conversion specifications based on data contents using a table and generates a conversion program, thereby generating a high-quality conversion program. is there.

【0025】図示実施例に従って本発明を詳細に説明し
たが、本発明はこれに限定されるものではない。例え
ば、実施例ではデータベースを意識したファイル構造へ
の適用例に従って本発明を説明したが、本発明は、その
適用がデータベースに限られるものではない。あらゆる
ファイル移行に適用されるものである。
Although the present invention has been described in detail with reference to the illustrated embodiments, the present invention is not limited thereto. For example, in the embodiments, the present invention has been described in accordance with an application example to a file structure in consideration of a database. However, the present invention is not limited to a database. Applies to any file migration.

【0026】[0026]

【発明の効果】以上説明したように、本発明では、独自
の定義装置により、複雑な変換処理記述を、一覧表形式
で確認でき、変更修正が画面上で容易に行える。さら
に、記述方式によっては、元データの編集結果を基に、
更に判断処理を行う機能を有するので、高度な変換処理
記述が可能である。これらの機能を駆使したデータ移行
変換アプリケーションの自動生成により、移行処理の品
質確保と生産性向上を実現する。
As described above, according to the present invention, a complicated conversion processing description can be confirmed in a list format by an original definition device, and changes and corrections can be easily made on a screen. Furthermore, depending on the description method, based on the editing result of the original data,
Further, since it has a function of performing a judgment process, an advanced conversion process description can be made. By automatically generating a data migration conversion application that makes full use of these functions, it is possible to ensure the quality of migration processing and improve productivity.

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

【図1】本発明のシステム構成図である。FIG. 1 is a system configuration diagram of the present invention.

【図2】本発明の処理装置の実行する処理フローの一実
施例(その1)である。
FIG. 2 is an embodiment (part 1) of a processing flow executed by the processing apparatus of the present invention.

【図3】本発明の処理装置の実行する処理フローの一実
施例(その2)である。
FIG. 3 is an embodiment (part 2) of a processing flow executed by the processing apparatus of the present invention.

【図4】本発明の処理装置の実行する処理フローの一実
施例(その3)である。
FIG. 4 is an embodiment (part 3) of a processing flow executed by the processing apparatus of the present invention.

【図5】変換仕様テーブルの相互関連を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing the correlation between conversion specification tables.

【図6】収集仕様定義画面の説明図である。FIG. 6 is an explanatory diagram of a collection specification definition screen.

【図7】コードテーブル定義画面の説明図である。FIG. 7 is an explanatory diagram of a code table definition screen.

【図8】コードテーブルの説明図である。FIG. 8 is an explanatory diagram of a code table.

【図9】項目収集テーブルの説明図である。FIG. 9 is an explanatory diagram of an item collection table.

【図10】自動生成アプリケーション雛型の説明図(そ
の1)である。
FIG. 10 is an explanatory diagram (part 1) of an automatically generated application template.

【図11】自動生成アプリケーション雛型の説明図(そ
の2)である。
FIG. 11 is an explanatory diagram (part 2) of an automatically generated application template.

【図12】本発明が具備する機能による、変換仕様解析
とステートメント展開の、変換方式(代入)における一
実施例である。
FIG. 12 is an example of a conversion method (substitution) of conversion specification analysis and statement expansion by the functions of the present invention.

【図13】本発明が具備する機能による、変換仕様解析
とステートメント展開の、変換方式(関数)における一
実施例である。
FIG. 13 is an example of a conversion method (function) of conversion specification analysis and statement expansion by the functions of the present invention.

【図14】本発明が具備する機能による、変換仕様解析
とステートメント展開の、変換方式(コードテーブル
(値の返値))における一実施例である。
FIG. 14 is an example of a conversion method (code table (return value)) of conversion specification analysis and statement expansion by the functions of the present invention.

【図15】本発明が具備する機能による、変換仕様解析
とステートメント展開の、変換方式(コードテーブル
(範囲の返値))における一実施例である。
FIG. 15 is an example of a conversion method (code table (return value of range)) of conversion specification analysis and statement expansion by the functions of the present invention.

【図16】本発明の処理装置が具備する予約語の説明図
である。
FIG. 16 is an explanatory diagram of a reserved word included in the processing device of the present invention.

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

30 元データ構造解析ファイル 40 先データ構造解析ファイル 101 元データ先データ変換仕様定義手段 102 変換仕様テーブル 103 変換仕様定義解析部 104 アプリケーション生成部 105 成果物(アプリケーション) 30 original data structure analysis file 40 destination data structure analysis file 101 original data destination data conversion specification definition means 102 conversion specification table 103 conversion specification definition analysis unit 104 application generation unit 105 product (application)

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】第1のファイルのデータ構造と、第2のフ
ァイルのデータ構造を、表形式で入力させ、かつ、任意
のデータ構造について変換の条件を入力させる、変換仕
様定義手段と、 変換元の第1のファイルのデータを、前記変換仕様定義
手段で定義した内容に基づいて、第2のファイルのデー
タ構造とし、かつ、前記変換条件を満たしたデータに変
換する変換手段とを備えたことを特徴とするデータ変換
装置。
1. A conversion specification defining means for inputting a data structure of a first file and a data structure of a second file in a table format and inputting a conversion condition for an arbitrary data structure. Conversion means for converting the data of the original first file into a data structure of the second file based on the contents defined by the conversion specification definition means, and converting the data into data satisfying the conversion conditions. A data conversion device, characterized in that:
【請求項2】第1のデータベースのデータ構造と、第2
のデータベースのデータ構造を、表形式で入力させ、か
つ、任意のデータ構造について変換の条件を入力させ
る、変換仕様定義手段と、 変換元の第1のデータベースのデータを、前記変換仕様
定義手段で定義した内容に基づいて、第2のデータベー
スのデータ構造とし、かつ、前記変換条件を満たしたデ
ータに変換する変換手段とを備えたことを特徴とするデ
ータ変換装置。
2. A data structure of a first database, and a data structure of a second database.
A conversion specification defining means for inputting the data structure of the database in a table format and inputting a conversion condition for an arbitrary data structure; and A data conversion apparatus, comprising: a data structure of a second database based on the defined contents; and a conversion means for converting the data into data satisfying the conversion condition.
【請求項3】前記変換手段は、変換仕様定義手段で定義
した内容に基づいて、変換のためのソースプログラムを
生成することを特徴とする請求項1または2記載のデー
タ変換装置。
3. The data conversion device according to claim 1, wherein said conversion means generates a source program for conversion based on the contents defined by the conversion specification definition means.
【請求項4】前記変換仕様定義手段で、入力させる変換
条件を、変換すべきデータの範囲を設定させる欄を有す
ることを特徴とする請求項1または2記載のデータ変換
装置。
4. The data conversion apparatus according to claim 1, wherein said conversion specification defining means has a column for setting a range of data to be converted in a conversion condition to be input.
【請求項5】前記変換仕様定義手段で、入力させる変換
条件を、変換式として設定させる欄を有することを特徴
とする請求項1または2記載のデータ変換装置。
5. The data conversion apparatus according to claim 1, wherein said conversion specification defining means has a column for setting a conversion condition to be input as a conversion formula.
【請求項6】前記変換仕様定義手段で、入力させる変換
条件を、ソースプログラムとして設定させる欄を有する
ことを特徴とする請求項1または2記載のデータ変換装
置。
6. A data conversion apparatus according to claim 1, wherein said conversion specification defining means has a column for setting a conversion condition to be input as a source program.
【請求項7】コンピュータを動作させて、第1のファイ
ルまたはデータベースのデータ構造と、第2のファイル
またはデータベースのデータ構造を、表形式で入力さ
せ、かつ、任意のデータ構造について変換の条件を入力
させる、変換仕様定義手段と、 変換元の第1のファイルまたはデータベースのデータ構
造を、前記変換仕様定義手段で定義した内容に基づい
て、第2のファイルまたはデータベースのデータ構造と
し、かつ、前記変換条件を満たしたデータに変換させる
変換手段とを機能させるためのプログラムを格納したコ
ンピュータ読み込み可能な記憶媒体。
7. Operating a computer to input a data structure of a first file or a database and a data structure of a second file or a database in a table format, and to set conditions for conversion of an arbitrary data structure. A conversion specification defining means to be input; and a data structure of a first file or database as a conversion source is defined as a data structure of a second file or database based on the contents defined by the conversion specification defining means, and A computer-readable storage medium storing a program for causing a conversion unit that converts data to satisfy conversion conditions to function.
JP10070016A 1998-03-19 1998-03-19 Data converter and storage medium Pending JPH11272524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10070016A JPH11272524A (en) 1998-03-19 1998-03-19 Data converter and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10070016A JPH11272524A (en) 1998-03-19 1998-03-19 Data converter and storage medium

Publications (1)

Publication Number Publication Date
JPH11272524A true JPH11272524A (en) 1999-10-08

Family

ID=13419403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10070016A Pending JPH11272524A (en) 1998-03-19 1998-03-19 Data converter and storage medium

Country Status (1)

Country Link
JP (1) JPH11272524A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018037031A (en) * 2016-09-02 2018-03-08 東芝情報システム株式会社 Data migration program generation system and program for creating data migration program
JP6419275B1 (en) * 2017-09-04 2018-11-07 三菱電機株式会社 Data conversion system and data conversion program
JP2021140430A (en) * 2020-03-04 2021-09-16 九電ビジネスソリューションズ株式会社 Database migration method, database migration system, and database migration program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018037031A (en) * 2016-09-02 2018-03-08 東芝情報システム株式会社 Data migration program generation system and program for creating data migration program
JP6419275B1 (en) * 2017-09-04 2018-11-07 三菱電機株式会社 Data conversion system and data conversion program
JP2019045333A (en) * 2017-09-04 2019-03-22 三菱電機株式会社 Data conversion system and data conversion program
JP2021140430A (en) * 2020-03-04 2021-09-16 九電ビジネスソリューションズ株式会社 Database migration method, database migration system, and database migration program

Similar Documents

Publication Publication Date Title
US5347629A (en) Graphical user interface including updating of multiple panels using what you see is what you get (WYSIWYG) editor
JP2624753B2 (en) How to create higher-level specifications
JPS63181033A (en) Automatic program generating system
JP6370503B1 (en) Program creation device
JP3577400B2 (en) System design equipment and data warehouse design system
JP5747698B2 (en) Requirements management support device
JP3186117B2 (en) Automatic program generation system using data-centric software components
JP2004094487A (en) Support system for preparing document
US9098263B2 (en) Database application assembly and preparation
JPH11272524A (en) Data converter and storage medium
JPH06110733A (en) Test case generating device of program
JPH0619756A (en) Edi format conversion method
JPH1055339A (en) On-line business processing system
JP3345522B2 (en) Program development support device using data item parts
JP6817523B2 (en) Information processing device, control method of information processing device, and program
JP6331307B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP2003186670A (en) Automatic generation device, automatic generation method and automatic generation program for database access component
JPH01280831A (en) Assisting method for standardization of intra-program data name
JP4576872B2 (en) Information processing apparatus and program
JPH03141427A (en) Preparation of information on standard record specifications
JP2000194548A (en) Device and method for generating operation environment of software and recording medium
JP2669070B2 (en) Screen definition device
JPH0540612A (en) Computer prperty conversion processor
JPH0895768A (en) Automatic program generating method using data item component
JPH04199226A (en) Selecting and actuating method for tool

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040323

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040524

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050329