JPH0619756A - EDI format conversion method - Google Patents
EDI format conversion methodInfo
- Publication number
- JPH0619756A JPH0619756A JP4170758A JP17075892A JPH0619756A JP H0619756 A JPH0619756 A JP H0619756A JP 4170758 A JP4170758 A JP 4170758A JP 17075892 A JP17075892 A JP 17075892A JP H0619756 A JPH0619756 A JP H0619756A
- Authority
- JP
- Japan
- Prior art keywords
- data
- user
- edi
- specific
- format conversion
- 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.)
- Withdrawn
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】
【目的】 射影処理の条件設定等の変更を行うだけで、
ユーザ固有データベースの項目レイアウトを自由に変更
できるEDIフォーマット変換方法の提供を目的として
いる。
【構成】 ユーザ固有データベース11より読み出された
ユーザ固有データまたは受信したEDI標準データをR
DB疑似テーブル13、26上に表構造のかたちで導出する
データ導出部12、25と、RDB疑似テーブル13、26より
予め条件指定された列を出力テーブル15および更新テー
ブル28上に抜き出して射影を行うデータ抽出部14、27
と、出力テーブル15に保持された表構造の各行のデータ
をフォーマット変換後のEDI標準データとして外部送
信し、更新テーブル28に保持された表構造の各行のデー
タをフォーマット変換後の更新用ユーザ固有データとし
て処理する。
(57) [Summary] [Purpose] Just by changing the condition settings for projection processing,
It is an object of the present invention to provide an EDI format conversion method capable of freely changing the item layout of a user-specific database. [Configuration] User-specific data read from the user-specific database 11 or received EDI standard data is stored in R
Data derivation units 12 and 25 for deriving in a table structure on the DB pseudo tables 13 and 26, and columns pre-specified from the RDB pseudo tables 13 and 26 are extracted on the output table 15 and the update table 28 to project the projections. Data extractor 14, 27
And the data of each row of the table structure held in the output table 15 is externally transmitted as EDI standard data after the format conversion, and the data of each row of the table structure held in the update table 28 is unique to the update user after the format conversion. Process as data.
Description
【0001】[0001]
【産業上の利用分野】本発明は、ネットワークを通じて
接続されたコンピュータ間のデータ伝送において、ED
I標準データとユーザ固有データとの間でのフォーマッ
ト変換を行うEDIフォーマット変換方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to ED in data transmission between computers connected through a network.
The present invention relates to an EDI format conversion method for performing format conversion between standard data and user-specific data.
【0002】[0002]
【従来の技術】従来から、異機種コンピュータ間や異業
種ユーザ間におけるデータ伝送を円滑に行うためのビジ
ネスプロトコルとして、幾つものEDI(Electronic D
ata Interchange)ルールが制定されている。このEDI
ルールに従って標準化されたデータをここでEDI標準
データと呼ぶ。こうしたEDI方式を導入する場合、ユ
ーザの所有するデータベース(ユーザ固有データベー
ス)内のデータとEDI標準データとの間で相互にフォ
ーマット変換を行うトランスレータが各コンピュータに
おいて不可欠な要素となる。2. Description of the Related Art Conventionally, several EDI (Electronic D) have been used as a business protocol for smoothly transmitting data between computers of different models or between users of different industries.
ata Interchange) rules have been established. This EDI
The data standardized according to the rules is referred to as EDI standard data here. When such an EDI method is introduced, a translator that performs format conversion between data in a database owned by the user (user-specific database) and EDI standard data is an essential element in each computer.
【0003】しかしながら、ユーザ固有データベースの
項目レイアウトはユーザによって様々であり、ユーザ毎
にトランスレータを変更しなければならない場合が多
い。また同じユーザでも伝送業務ごとに違ったトランス
レータを作成する必要もある。さらに、ユーザ間の伝送
業務処理に変更があったり、EDIルールの変更・強化
がなされた場合にもトランスレータの修正を行なわなけ
ればならない。However, the item layout of the user-specific database varies from user to user, and it is often necessary to change the translator for each user. It is also necessary for the same user to create a different translator for each transmission task. Further, the translator must be modified when the transmission work process between users is changed or the EDI rule is changed or strengthened.
【0004】このようにトランスレータは頻繁に変更、
修正される宿命を有している。ところが、トランスレー
タを修正するためには、ごく簡単な修正であってもソー
スプログラムを変更しなければならず、その作業に多大
な手間を要すると言う問題を抱えていた。Thus, the translator changes frequently,
Has a fate to be modified. However, in order to correct the translator, the source program had to be changed even with a very simple correction, and there was a problem that the work required a great deal of work.
【0005】[0005]
【発明が解決しようとする課題】このように、従来、ユ
ーザ固有データからEDI標準データ、またはEDI標
準データからユーザ固有データへのフォーマット変換を
行うためのトランスレータの修正はソースプログラムの
変更を要するため、その修正作業に時間がかかると言う
問題があった。As described above, conventionally, the modification of the translator for performing the format conversion from the user-specific data to the EDI standard data or from the EDI standard data to the user-specific data requires the change of the source program. , There was a problem that the correction work takes time.
【0006】本発明はこのような課題を解決するための
もので、射影処理の条件設定等を変更するだけで、ユー
ザ固有データベースの項目レイアウトを自由に設定、変
更することのできるEDIフォーマット変換方法の提供
を目的としている。The present invention is intended to solve such a problem, and an EDI format conversion method capable of freely setting and changing the item layout of a user-specific database only by changing the condition setting of the projection processing and the like. The purpose is to provide.
【0007】[0007]
【課題を解決するための手段】第1の発明のEDIフォ
ーマット変換方法は上記した目的を達成するために、ユ
ーザ固有データをEDI標準データのフォーマットに変
換する方法において、ユーザ固有データベースよりユー
ザ固有データを読み出す工程と、読み出された前記ユー
ザ固有データをリレーショナルデータベースを疑似した
第1のテーブル上に表構造のかたちで導出する工程と、
前記第1のテーブルに保持された表構造の中から、予め
指定された条件に従い前記EDI標準データを構成する
項目に対応する列を抜き出して第2のテーブル上に射影
する工程と、前記第2のテーブルに保持された表構造の
各行のデータをフォーマット変換後のEDI標準データ
として外部送信する工程とを有している。In order to achieve the above-mentioned object, the EDI format conversion method of the first invention is a method for converting user-specific data into an EDI standard data format. And a step of deriving the read user-specific data in the form of a table structure on a first table simulating a relational database,
Extracting a column corresponding to an item constituting the EDI standard data from the table structure held in the first table according to a predesignated condition and projecting the column onto the second table; The step of externally transmitting the data of each row of the table structure held in the table as EDI standard data after format conversion.
【0008】第2の発明のEDIフォーマット変換方法
は上記した目的を達成するために、EDI標準データを
ユーザ固有データのフォーマットに変換する方法におい
て、EDI標準データを受信する工程と、受信したED
I標準データをリレーショナルデータベースを疑似した
第1のテーブル上に表構造のかたちで導出する工程と、
前記第1のテーブルに保持された表構造の中から、予め
指定された条件に従い前記ユーザ固有データを構成する
項目に対応する列を抜き出して第2のテーブル上に射影
する工程と、前記第2のテーブルに保持された表構造の
各行のデータをフォーマット変換後のユーザ固有データ
として出力する工程とを有している。In order to achieve the above object, the EDI format conversion method of the second invention is a method of converting EDI standard data into a format of user-specific data, the step of receiving the EDI standard data, and the received ED.
A step of deriving I standard data in the form of a table structure on a first table simulating a relational database;
Extracting a column corresponding to an item constituting the user-specific data from a table structure held in the first table according to a predesignated condition and projecting the column onto the second table; And outputting the data of each row of the table structure held in the table as user-specific data after format conversion.
【0009】[0009]
【作用】すなわち、第1の発明では、ユーザ固有データ
ベースより読出されたユーザ固有データをリレーショナ
ルデータベースを疑似した第1のテーブル上に表構造の
かたちで導出することによって、ユーザ固有データをデ
ータ構造の変換に耐え得る形式に置き換える。次に第1
のテーブルより、EDI標準データを構成する項目に対
応する列を抜き出して新たな表構造を第2のテーブル上
に射影する。射影を行う列を検索するための条件は予め
ユーザによってSQL(Structured QueryLanguage)文
で与えられる。次に第2のテーブルに保持された表構造
の各行のデータをフォーマット変換後のEDI標準デー
タとして外部送信する。In other words, in the first invention, the user-specific data read from the user-specific database is derived in the form of a table structure on the first table simulating the relational database, so that the user-specific data can be stored in the data structure. Replace with a format that can be converted. Then the first
Columns corresponding to the items that make up the EDI standard data are extracted from the table (1) and a new table structure is projected on the second table. The condition for retrieving the column to be projected is given by the user in advance by an SQL (Structured Query Language) statement. Next, the data of each row of the table structure held in the second table is externally transmitted as EDI standard data after format conversion.
【0010】第2の発明では、EDI標準データを外部
より受信すると、受信したEDI標準データをリレーシ
ョナルデータベースを疑似した第1のテーブル上に表構
造のかたちで導出することにより、該EDI標準データ
をデータ構造の変換に耐え得る形式に置き換える。次に
第1のテーブルより、ユーザ固有データを構成する項目
に対応する列を抜き出して新たな表構造を第2のテーブ
ル上に射影する。射影を行う列を検索するための条件は
予めユーザによってSQL文で与えられる。次に第2の
テーブルに保持された表構造の各行のデータをフォーマ
ット変換後のユーザ固有データとして出力する。In the second invention, when the EDI standard data is received from the outside, the received EDI standard data is derived in the form of a table structure on the first table simulating the relational database, so that the EDI standard data is obtained. Replace with a format that can withstand data structure conversion. Next, the columns corresponding to the items forming the user-specific data are extracted from the first table, and the new table structure is projected on the second table. The condition for searching the column to be projected is given in advance by the user as an SQL statement. Next, the data in each row of the table structure held in the second table is output as the format-converted user-specific data.
【0011】このように本発明のEDIフォーマット変
換方法では、リレーショナルデータベースを対象とする
基本的機能である射影処理を用いて、ユーザ固有データ
とEDI標準データとの間でのフォーマット変換を行
う。したがって、射影処理の条件設定等を変更するだけ
で、ユーザ固有データベースの項目レイアウトを自由に
設定、変更することができる。As described above, according to the EDI format conversion method of the present invention, the format conversion between the user-specific data and the EDI standard data is performed by using the projection processing which is a basic function for the relational database. Therefore, the item layout of the user-specific database can be freely set and changed only by changing the condition setting of the projection process.
【0012】[0012]
【実施例】以下、本発明の実施例を図面を参照しなから
説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0013】図1は本発明に係る一実施例のEDIフォ
ーマット変換方法を採用したデータ伝送システムの構成
を説明するためのブロック図である。FIG. 1 is a block diagram for explaining the configuration of a data transmission system adopting an EDI format conversion method according to an embodiment of the present invention.
【0014】同図において、10、20はネットワーク
30を通じて接続されたコンピュータである。各コンピ
ュータ10、20にはそれぞれ、ユーザ自身がレコード
単位の項目(フィールド)レイアウトを定義したデータ
ベースであるユーザ固有データベース11、21が接続
されている。ここで10のコンピュータを送信側、20
のコンピュータを受信側として各コンピュータ10、2
0の構成を説明する。送信側のコンピュータ10におい
て、12はユーザ固有データベース11より読み出され
たユーザ固有データであるトランザクションデータを、
リレーショナルデータベース(以下、RDBと呼ぶ。)
の射影機能を用いてRDB疑似テーブル13上に導出す
るデータ導出部である。14はRDB疑似テーブル13
の表構造から予めユーザにより条件指定された列(カラ
ム)を抜き出してEDI標準データのフォーマットに対
応する新たな表構造を出力テーブル15上に射影するデ
ータ抽出部である。16はユーザ固有データとEDI標
準データとのコード体系が異なる場合、出力テーブル1
5に保持されたデータをEDI標準データのコード体系
に変換するコード変換部である。17は出力テーブル1
5の表構造から行(ロウ)単位で読み出したデータをE
DI標準データとしてネットワーク30に送信する送信
処理部である。In the figure, 10 and 20 are computers connected through a network 30. Connected to each of the computers 10 and 20 are user-specific databases 11 and 21, which are databases in which the user defines the record (item) layout in record units. Where 10 computers are senders, 20
Each computer 10, 2 as the receiving side
The configuration of 0 will be described. In the computer 10 on the transmitting side, 12 is transaction data, which is user-specific data read from the user-specific database 11,
Relational database (hereinafter referred to as RDB)
It is a data derivation unit that derives on the RDB pseudo table 13 using the projection function of. 14 is an RDB pseudo table 13
Is a data extraction unit that extracts columns (conditions) specified in advance by the user from the table structure of FIG. 3 and projects a new table structure corresponding to the format of the EDI standard data on the output table 15. 16 is the output table 1 when the user-specific data and the EDI standard data have different code systems.
5 is a code conversion unit for converting the data held in No. 5 into the code system of EDI standard data. 17 is the output table 1
The data read in row units from the table structure of 5 is E
It is a transmission processing unit that transmits to the network 30 as DI standard data.
【0015】一方、受信側のコンピュータ20におい
て、22はコンピュータ10が送信したEDI標準デー
タをネットワーク30より受信する受信処理部である。
23は受信したEDI標準データをSQL(Structured
Query Language)参照が可能な正規化固定長データに変
換する変換部である。24は変換部23で得た正規化固
定長データを格納する正規化固定長ファイルである。2
5は正規化固定長ファイル24から読み出されたEDI
標準データを、RDBの射影機能を用いてRDB疑似テ
ーブル26上に導出するデータ導出部である。27はR
DB疑似テーブル26の表構造から予めユーザにより条
件指定された列(カラム)を抜き出して受信側のユーザ
固有データのフォーマットに対応する新たな表構造を更
新テーブル28上に射影するデータ抽出部である。29
はEDI標準データと受信側ユーザ固有データとのコー
ド体系が異なる場合、更新テーブル28に保持されたデ
ータを受信側ユーザ固有データのコード体系に変換する
コード変換部である。On the other hand, in the receiving-side computer 20, reference numeral 22 is a reception processing unit for receiving the EDI standard data transmitted by the computer 10 from the network 30.
Reference numeral 23 represents the received EDI standard data in SQL (Structured
Query Language) This is a conversion unit that converts normalized fixed length data that can be referenced. Reference numeral 24 is a normalized fixed-length file that stores the normalized fixed-length data obtained by the conversion unit 23. Two
5 is the EDI read from the normalized fixed length file 24
It is a data derivation unit that derives standard data on the RDB pseudo table 26 using the projection function of RDB. 27 is R
This is a data extraction unit that extracts columns (conditions) specified by the user in advance from the table structure of the DB pseudo table 26 and projects a new table structure corresponding to the format of the user-specific data on the receiving side onto the update table 28. . 29
Is a code conversion unit that converts the data held in the update table 28 into the code system of the receiving-side user-specific data when the EDI standard data and the receiving-side user-specific data have different code systems.
【0016】次に本実施例のデータ伝送システムの動作
を説明する。図2は送信側のコンピュータ10における
データ送信時の処理手順を示すフローチャートである。Next, the operation of the data transmission system of this embodiment will be described. FIG. 2 is a flowchart showing a processing procedure at the time of data transmission in the computer 10 on the transmission side.
【0017】まず送信側のコンピュータ10において、
ユーザ固有データベース11より更新用のトランザクシ
ョンデータを読み出し、これをデータ導出部12に渡す
(ステップ201)。データ導出部12は、ユーザ固有
データベース11内のデータ・ディクショナリの内容、
つまりトランザクションデータ(レコード)を構成する
項目(フィールド)の名称、数、サイズ等を基に、例え
ば図3に示すように、各項目にそれぞれ対応する複数の
列(カラム)C1、C2、C3、C4をRDB疑似テー
ブル13に設定し、RDBの射影機能を用いてRDB疑
似テーブル13の各列C1、C2、C3、C4にトラン
ザクションデータ中の対応する項目を割り付ける(ステ
ップ202)。First, in the computer 10 on the transmitting side,
The transaction data for updating is read from the user unique database 11 and passed to the data deriving unit 12 (step 201). The data deriving unit 12 determines the contents of the data dictionary in the user-specific database 11,
That is, based on the names, numbers, sizes, etc. of the items (fields) that make up the transaction data (record), for example, as shown in FIG. 3, a plurality of columns (columns) C1, C2, C3 corresponding to the respective items, C4 is set in the RDB pseudo table 13, and the corresponding item in the transaction data is assigned to each column C1, C2, C3, C4 of the RDB pseudo table 13 using the projection function of RDB (step 202).
【0018】次にデータ抽出部14は、例えば図4に示
すように、RDB疑似テーブル13の表構造の中から、
予めユーザにより条件指定された列C1、C3、C4を
抜き出して新たな表構造を出力テーブル15上に射影す
る(ステップ203)。なお、射影を行う列を検索する
ための条件は、EDI標準データのフォーマットに従っ
て予めユーザによってSQL文で与えられる。Next, the data extraction unit 14 selects from the table structure of the RDB pseudo table 13 as shown in FIG.
The columns C1, C3, and C4 that have been conditionally specified by the user are extracted and a new table structure is projected on the output table 15 (step 203). The condition for searching the column to be projected is given in advance by the user as an SQL statement according to the format of the EDI standard data.
【0019】ここでもしユーザ固有データとEDI標準
データとのコード体系が異なる場合(ステップ20
4)、コード変換部16は図5に示すように、出力テー
ブル15から内部のコード変換作業領域51にデータを
取り込み、ユーザ固有ローカルデータとEDI標準デー
タとのコード対応表(図示せず)を検索して、ユーザ固
有ローカルデータをEDI標準データのコード体系に変
換する(ステップ205)。 こうしてコード体系の変
換を行った後、出力テーブル15のデータを送信処理部
17によりネットワーク30に送信する(ステップ20
6)。全てのデータの送信を終えると(ステップ20
7)、コンピュータ10側の処理は終了する(ステップ
208)。If the code systems of the user-specific data and the EDI standard data are different (step 20).
4) As shown in FIG. 5, the code conversion unit 16 fetches the data from the output table 15 into the internal code conversion work area 51 and creates a code correspondence table (not shown) between the user-specific local data and the EDI standard data. It retrieves and converts the user-specific local data into the EDI standard data code system (step 205). After converting the code system in this way, the data of the output table 15 is transmitted to the network 30 by the transmission processing unit 17 (step 20).
6). When all data has been transmitted (step 20)
7), the process on the computer 10 side ends (step 208).
【0020】次に受信側のコンピュータ20の処理手順
を図6のフローチャートを参照しつつ説明する。Next, the processing procedure of the receiving side computer 20 will be described with reference to the flowchart of FIG.
【0021】コンピュータ20の受信処理部22にてE
DI標準データを受信すると(ステップ601)、変換
部23は受信したEDI標準データを正規化固定長デー
タに変換する。つまりEDI標準データを受信側での射
影処理に対応可能な項目ごとに分けて正規化し、かつ項
目ごとに固定長のデータに変換する(ステップ60
2)。この変換は、EDI標準データの受信に先立ちコ
ンピュータ10より転送されたEDI標準データの構造
情報(項目の属性を示す名称、数、サイズ)と、受信側
のユーザ固有データベース21に登録されたデータ・デ
ィクショナリの内容、例えば受信側ユーザ固有データの
属性を示す項目の名称、数、サイズとに基づいて行われ
る。そして変換後の正規化固定長データは正規化固定長
ファイル24に格納される(ステップ603)。In the reception processing section 22 of the computer 20, E
When the DI standard data is received (step 601), the conversion unit 23 converts the received EDI standard data into normalized fixed length data. That is, the EDI standard data is divided into items that are compatible with the projection process on the receiving side and normalized, and the items are converted into fixed length data (step 60).
2). This conversion is performed by converting the structure information (name, number, size indicating the attribute of the item) of the EDI standard data transferred from the computer 10 prior to the reception of the EDI standard data and the data registered in the user-specific database 21 on the receiving side. It is performed based on the contents of the dictionary, for example, the name, number, and size of items indicating the attributes of the receiving-side user-specific data. Then, the normalized fixed length data after conversion is stored in the normalized fixed length file 24 (step 603).
【0022】全ての転送データの正規化固定長ファイル
24への格納が終了すると(ステップ604)、データ
導出部25は、図7に示すように、正規化固定長ファイ
ル24に格納されたEDI標準データの各項目にそれぞ
れ対応する複数の列C5、C6、C7、C8をRDB疑
似テーブル26上に設定し、このRDB疑似テーブル2
6の各列C5、C6、C7、C8に、EDI標準データ
中の対応する項目のデータをそれぞれ割り付ける(ステ
ップ605)。When all the transfer data have been stored in the normalized fixed length file 24 (step 604), the data deriving unit 25 stores the EDI standard stored in the normalized fixed length file 24 as shown in FIG. A plurality of columns C5, C6, C7, C8 corresponding to respective items of data are set on the RDB pseudo table 26, and the RDB pseudo table 2
The data of the corresponding item in the EDI standard data is assigned to each of the columns C5, C6, C7, C8 of 6 (step 605).
【0023】次にデータ抽出部27は、図8に示すよう
に、RDB疑似テーブル26の表構造の中から、予めユ
ーザにより条件指定された列C5、C6、C7、C8を
抜き出して新たな表構造を更新テーブル28上に射影す
る(ステップ606)。なお、射影を行う列を検索する
ための条件は、EDI標準データのフォーマットに従っ
て予めユーザによってSQL文で与えられる。また、こ
のとき更新テーブル28上への列の設定は、受信側のユ
ーザ固有データベース21に登録されたデータ・ディク
ショナリの内容に基づく。Next, as shown in FIG. 8, the data extraction unit 27 extracts columns C5, C6, C7, C8 which are pre-specified by the user from the table structure of the RDB pseudo table 26 and creates a new table. The structure is projected on the update table 28 (step 606). The condition for searching the column to be projected is given in advance by the user as an SQL statement according to the format of the EDI standard data. At this time, the setting of the columns on the update table 28 is based on the contents of the data dictionary registered in the user-specific database 21 on the receiving side.
【0024】ここでもし受信側ユーザ固有データとED
I標準データとのコード体系が異なる場合(ステップ6
07)、コード変換部29は更新テーブル28からデー
タを取り込んで、内部の変換作業領域を用いてこのデー
タを受信側ユーザ固有データのコード体系に変換する
(ステップ608)。Here, if the receiving side user-specific data and the ED
I If the code system differs from the standard data (step 6)
07), the code conversion unit 29 takes in the data from the update table 28, and converts this data into the code system of the receiving side user unique data using the internal conversion work area (step 608).
【0025】こうしてコード体系の変換を行った後、更
新テーブル28のデータでユーザ固有データベース21
の該当するファイルを更新し(ステップ609)、受信
側コンピュータ20の処理を終了する(ステップ61
0)。After the conversion of the code system in this way, the data of the update table 28 is used for the user-specific database 21.
The corresponding file in step S609 is updated (step 609), and the processing of the receiving computer 20 ends (step 61).
0).
【0026】なお、本実施例では、送信側コンピュータ
10のデータ導出部12にて、ひとつのトランザクショ
ンデータをRDB模擬テーブル13上に導出する場合を
説明したが、複数のファイルから複数のトランザクショ
ンデータが読み出される場合は次のように処理を行う。In this embodiment, the case where one transaction data is derived on the RDB simulation table 13 by the data deriving unit 12 of the transmission side computer 10 has been described. When it is read, the processing is performed as follows.
【0027】すなわち、図9に示すように、データ導出
部12は、トランザクションデータの数に応じた複数の
RDB疑似テーブル13a、13b、…、13cを用意
し、それぞれのRDB疑似テーブル13a、13b、
…、13c上に各トランザクションデータの項目構造に
応じた複数の列C1〜C12を設定する。そして各RD
B疑似テーブル13a、13b、…、13cのそれぞれ
の列C1〜C12に各トランザクションデータの対応す
る項目を割り付ける。次に、データ抽出部14は、各R
DB疑似テーブル13a、13b、…、13cから予め
条件指定された列C1、C2、C8、C12を抜き出し
てこれらをひとつの出力テーブル15上に結合する。That is, as shown in FIG. 9, the data deriving unit 12 prepares a plurality of RDB pseudo tables 13a, 13b, ..., 13c according to the number of transaction data, and the respective RDB pseudo tables 13a, 13b,
..., a plurality of columns C1 to C12 corresponding to the item structure of each transaction data are set on 13c. And each RD
The corresponding items of each transaction data are assigned to the respective columns C1 to C12 of the B pseudo tables 13a, 13b, ..., 13c. Next, the data extraction unit 14 determines each R
.., 13c are extracted from the DB pseudo tables 13a, 13b, ..., 13c, and the columns C1, C2, C8, C12 specified in advance are extracted and combined into one output table 15.
【0028】さらにこの場合、受信側においては、図1
0に示すように、RDB疑似テーブル26から複数の更
新テーブル28a、28b、…に射影を行い、ユーザ固
有データベース21内の該当する複数のファイル21
a、21bを各更新テーブル28a、28bのデータで
更新する。Further, in this case, on the receiving side, as shown in FIG.
As shown in 0, the RDB pseudo table 26 is projected to the plurality of update tables 28a, 28b, ... And the plurality of corresponding files 21 in the user-specific database 21.
a and 21b are updated with the data of the update tables 28a and 28b.
【0029】かくして本実施例のEDIフォーマット変
換方法を採用したデータ伝送システムによれば、RDB
の機能である射影処理を用いて、ユーザ固有データとE
DI標準データとの間でのフォーマット変換を行うこと
ができる。したがって、ユーザはユーザ固有データベー
ス11、21の項目レイアウトを変更したとき、同時に
SQL文による射影処理の条件設定やユーザ固有データ
ベース11、21のデータ・ディクショナリの定義を変
更するだけで済む。Thus, according to the data transmission system employing the EDI format conversion method of this embodiment, the RDB
User-specific data and E
It is possible to perform format conversion with DI standard data. Therefore, when the user changes the item layout of the user-specific databases 11 and 21, at the same time, the user only has to change the condition setting of the projection process by the SQL statement and the definition of the data dictionary of the user-specific databases 11 and 21.
【0030】なお、本実施例では、コード体系の変換処
理を、RDB模擬テーブル13、26から出力テーブル
13、更新テーブル28への射影処理を行った後で施し
たが、RDB模擬テーブル13、26から出力テーブル
13、更新テーブル28への射影処理の途中で、つまり
出力テーブル13、更新テーブル28に射影データを転
送する前に施すようにしてもよい。In the present embodiment, the code system conversion processing is performed after the projection processing from the RDB simulation tables 13 and 26 to the output table 13 and the update table 28 is performed, but the RDB simulation tables 13 and 26 are performed. May be performed during the projection processing from the output table 13 to the update table 28, that is, before the projection data is transferred to the output table 13 and the update table 28.
【0031】また、本実施例では、コンピュータ10を
送信側、コンピュータ20を受信側として説明したが、
各コンピュータ10、20が図1における送信側と受信
側の構成を全て有したものであってもよいことは言うま
でもない。In this embodiment, the computer 10 is described as the transmitting side and the computer 20 is as the receiving side.
It goes without saying that each of the computers 10 and 20 may have all the configurations of the transmitting side and the receiving side in FIG.
【0032】[0032]
【発明の効果】以上説明したように本発明のEDIフォ
ーマット変換方法によれば、リレーショナルデータベー
スの機能である射影処理を用いて、ユーザ固有データと
EDI標準データとの間でのフォーマット変換を行うこ
とができる。したがって、ユーザは、射影処理の条件設
定等を変更するだけで、ユーザ固有データベースの項目
レイアウトを自由に設定、変更することができる。As described above, according to the EDI format conversion method of the present invention, the format conversion between user-specific data and EDI standard data is performed by using the projection processing which is a function of the relational database. You can Therefore, the user can freely set and change the item layout of the user-specific database simply by changing the condition setting of the projection process.
【図1】本発明に係る一実施例のEDIフォーマット変
換方法を採用したデータ伝送システムの構成を説明する
ためのブロック図である。FIG. 1 is a block diagram illustrating a configuration of a data transmission system that employs an EDI format conversion method according to an embodiment of the present invention.
【図2】図1のデータ伝送システムにおける送信側コン
ピュータの処理手順を示すフローチャートである。FIG. 2 is a flowchart showing a processing procedure of a transmitting side computer in the data transmission system of FIG.
【図3】図2における送信側コンピュータのデータ導出
処理を説明するための図である。FIG. 3 is a diagram for explaining a data derivation process of a sending computer in FIG.
【図4】図2における送信側コンピュータの射影処理を
説明するための図である。FIG. 4 is a diagram for explaining a projection process of a transmission side computer in FIG.
【図5】図2におけるユーザ固有データとEDI標準デ
ータとの間におけるコード体系の変換処理を説明するた
めの図である。5 is a diagram for explaining a conversion process of a code system between user-specific data and EDI standard data in FIG.
【図6】図1のデータ伝送システムにおける受信側コン
ピュータの処理手順を示すフローチャートである。6 is a flowchart showing a processing procedure of a receiving computer in the data transmission system of FIG.
【図7】図6における受信側コンピュータのデータ導出
処理を説明するための図である。FIG. 7 is a diagram for explaining the data derivation process of the receiving computer in FIG.
【図8】図6における受信側コンピュータの射影処理を
説明するための図である。FIG. 8 is a diagram for explaining the projection process of the receiving computer in FIG.
【図9】複数のトランザクションデータに対する送信側
コンピュータの導出処理および射影処理を示す図であ
る。FIG. 9 is a diagram showing a derivation process and a projection process of a sending computer for a plurality of transaction data.
【図10】複数のトランザクションデータに対する受信
側コンピュータの導出処理および射影処理を示す図であ
る。FIG. 10 is a diagram showing a derivation process and a projection process of a receiving computer for a plurality of transaction data.
10…送信側のコンピュータ、11…ユーザ固有データ
ベース、12…データ導出部、13…RDB疑似テーブ
ル、14…データ抽出部、15…出力テーブル、16…
コード変換部、17…送信処理部、20…受信側のコン
ピュータ、21…ユーザ固有データベース、22…受信
処理部、23…変換部、24…正規化固定長ファイル、
25…データ導出部、26…RDB疑似テーブル、27
…データ抽出部、28…更新テーブル、29…コード変
換部。10 ... Transmission side computer, 11 ... User specific database, 12 ... Data derivation unit, 13 ... RDB pseudo table, 14 ... Data extraction unit, 15 ... Output table, 16 ...
Code conversion unit, 17 ... Transmission processing unit, 20 ... Receiving side computer, 21 ... User unique database, 22 ... Reception processing unit, 23 ... Conversion unit, 24 ... Normalized fixed length file,
25 ... Data derivation unit, 26 ... RDB pseudo table, 27
... Data extraction unit, 28 ... Update table, 29 ... Code conversion unit.
Claims (3)
フォーマットに変換する方法において、 ユーザ固有データベースよりユーザ固有データを読み出
す工程と、 読み出された前記ユーザ固有データをリレーショナルデ
ータベースを疑似した第1のテーブル上に表構造のかた
ちで導出する工程と、 前記第1のテーブルに保持された表構造の中から、予め
指定された条件に従い前記EDI標準データを構成する
項目に対応する列を抜き出して第2のテーブル上に射影
する工程と、 前記第2のテーブルに保持された表構造の各行のデータ
をフォーマット変換後のEDI標準データとして外部送
信する工程とを有することを特徴とするEDIフォーマ
ット変換方法。1. A method for converting user-specific data into a format of EDI standard data, a step of reading the user-specific data from the user-specific database, and a first table simulating the read user-specific data in a relational database. The step of deriving in the form of a table structure above, and extracting the columns corresponding to the items constituting the EDI standard data from the table structure held in the first table according to a prespecified condition And a step of externally transmitting the data of each row of the table structure held in the second table as EDI standard data after format conversion.
フォーマットに変換する方法において、 EDI標準データを受信する工程と、 受信したEDI標準データをリレーショナルデータベー
スを疑似した第1のテーブル上に表構造のかたちで導出
する工程と、 前記第1のテーブルに保持された表構造の中から、予め
指定された条件に従い前記ユーザ固有データを構成する
項目に対応する列を抜き出して第2のテーブル上に射影
する工程と、 前記第2のテーブルに保持された表構造の各行のデータ
をフォーマット変換後のユーザ固有データとして出力す
る工程とを有することを特徴とするEDIフォーマット
変換方法。2. A method of converting EDI standard data into a format of user-specific data, a step of receiving EDI standard data, and a table structure of the received EDI standard data on a first table simulating a relational database. And the column structure corresponding to the items constituting the user-specific data is extracted from the table structure held in the first table according to a prespecified condition and projected onto the second table. An EDI format conversion method comprising: a step of outputting the data of each row of the table structure held in the second table as user-specific data after format conversion.
方法において、 受信したEDI標準データを正規化固定長データに変換
する工程を有することを特徴とするEDIフォーマット
変換方法。3. The EDI format conversion method according to claim 2, further comprising the step of converting the received EDI standard data into normalized fixed-length data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4170758A JPH0619756A (en) | 1992-06-29 | 1992-06-29 | EDI format conversion method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4170758A JPH0619756A (en) | 1992-06-29 | 1992-06-29 | EDI format conversion method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0619756A true JPH0619756A (en) | 1994-01-28 |
Family
ID=15910842
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4170758A Withdrawn JPH0619756A (en) | 1992-06-29 | 1992-06-29 | EDI format conversion method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0619756A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09319811A (en) * | 1996-05-30 | 1997-12-12 | Toshiba Corp | Electronic transaction slip converter |
| JPH11184943A (en) * | 1997-12-19 | 1999-07-09 | Fujitsu Ltd | Electronic transaction system and method, and storage medium storing control program for executing format conversion in electronic transaction |
| JP2001209562A (en) * | 2000-01-27 | 2001-08-03 | Hitachi Ltd | Conversion rule derivation system |
| JP2002351717A (en) * | 2001-05-29 | 2002-12-06 | Toshiba Corp | Data access system, data linkage system, data linkage program, and data linkage method |
| US7765197B2 (en) | 2006-01-27 | 2010-07-27 | Nec Corporation | System and method for producing data replica |
-
1992
- 1992-06-29 JP JP4170758A patent/JPH0619756A/en not_active Withdrawn
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09319811A (en) * | 1996-05-30 | 1997-12-12 | Toshiba Corp | Electronic transaction slip converter |
| JPH11184943A (en) * | 1997-12-19 | 1999-07-09 | Fujitsu Ltd | Electronic transaction system and method, and storage medium storing control program for executing format conversion in electronic transaction |
| JP2001209562A (en) * | 2000-01-27 | 2001-08-03 | Hitachi Ltd | Conversion rule derivation system |
| JP2002351717A (en) * | 2001-05-29 | 2002-12-06 | Toshiba Corp | Data access system, data linkage system, data linkage program, and data linkage method |
| US7765197B2 (en) | 2006-01-27 | 2010-07-27 | Nec Corporation | System and method for producing data replica |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5909570A (en) | Template mapping system for data translation | |
| US8019770B1 (en) | Dynamic rendering of content that includes query expressions | |
| US20210263948A1 (en) | Content transfer | |
| EP1121655B1 (en) | Accessing a hierarchical data store through an sql input | |
| US5778213A (en) | Multilingual storage and retrieval | |
| USRE48030E1 (en) | Computer-implemented system and method for tagged and rectangular data processing | |
| EP1225516A1 (en) | Storing data of an XML-document in a relational database | |
| US20030217071A1 (en) | Data processing method and system, program for realizing the method, and computer readable storage medium storing the program | |
| JPH0630066B2 (en) | Table type language translation method | |
| WO2021135103A1 (en) | Method and apparatus for semantic analysis, computer device, and storage medium | |
| US20040049495A1 (en) | System and method for automatically generating general queries | |
| US7437352B2 (en) | Data plotting extension for structured query language | |
| JPH0619756A (en) | EDI format conversion method | |
| WO2001018630A2 (en) | Xml dynamic content retrieval using style and content definition sheets | |
| JPH10143539A (en) | Information retrieval method and information retrieval system, recording medium recording information resource dictionary data, and recording medium recording information retrieval program | |
| JPH06131399A (en) | Database search method | |
| JP2000099542A (en) | Inquiry device for production results and database | |
| JPH0267682A (en) | database system | |
| JP2008152359A (en) | System infrastructure configuration development support system and support method | |
| JP2000122855A (en) | Data naming method and apparatus, recording medium | |
| JPH0573282A (en) | Program preparing system | |
| JP2000267909A (en) | Database system | |
| JP2003271649A (en) | Relational database query processing system and relational database query processing system | |
| CN121327028A (en) | Display method, device, equipment, medium and program product of index data | |
| JPH0546669A (en) | Hit ratio improvement system for data base retrieval system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19990831 |