JP2001184190A - Format converter and its method - Google Patents

Format converter and its method

Info

Publication number
JP2001184190A
JP2001184190A JP36674799A JP36674799A JP2001184190A JP 2001184190 A JP2001184190 A JP 2001184190A JP 36674799 A JP36674799 A JP 36674799A JP 36674799 A JP36674799 A JP 36674799A JP 2001184190 A JP2001184190 A JP 2001184190A
Authority
JP
Japan
Prior art keywords
conversion
data
format
source data
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.)
Pending
Application number
JP36674799A
Other languages
Japanese (ja)
Inventor
Eiji Iwata
英士 岩田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP36674799A priority Critical patent/JP2001184190A/en
Publication of JP2001184190A publication Critical patent/JP2001184190A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To solve a problem that existing data to be fetched changes since processing is performed by predetermining items of applicable converting origin data and its converting method in the case of generating each item of converting destination data and when a format of the existing data to be fetched and a format of data to be used in the present system are changed, the items of the applicable converting origin data and its converting method are modified or created again in accordance with the format. SOLUTION: This format converter consists of a converting method parameter file 102 in which an output order of the converting destination data, a format converting method, an input order of the converting origin data, etc., are enumerated, converting origin data 101, converting destination data 103, an alarm log file 104 and a format conversion processing part 105 to which plural external conversion processing modules 106 are connected.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はフォーマット変換装
置及び方法、特に他システムで作成された既存のデータ
をヘルプデスクシステムに取り込む際に、自システムで
利用できる形にフォーマット変換を行うのに好適なフォ
ーマット変換装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a format conversion apparatus and method, and more particularly to a method for converting existing data created by another system into a format usable by the own system when importing the data into a help desk system. The present invention relates to a format conversion apparatus and method.

【0002】[0002]

【従来の技術】従来、ヘルプデスクシステムにおいて、
他システムで作成された、既存の顧客データや問い合せ
データを自システムに取り込む場合がある。その場合に
は、それら既存データのフォーマットは、それらのデー
タを作成した部門や、作成した他システム等によって千
差万別であった。そのため、従来のヘルプデスクシステ
ムでは、既存データを自システムで使用できる形式にフ
ォーマット変換を行った後、データを取り込んでいた。
2. Description of the Related Art Conventionally, in a help desk system,
There is a case where existing customer data or inquiry data created by another system is imported into the own system. In that case, the format of the existing data varies widely depending on the department that created the data, the created other system, and the like. For this reason, in the conventional help desk system, the existing data is converted into a format that can be used by the own system, and then the data is imported.

【0003】従来のヘルプデスクシステムで使用してい
る、フォーマット変換装置の1例をのブロック図を図6
に、その処理フローチャートを図7に示す。以下に、こ
れら図6および図7を参照して従来のフォーマット変換
装置を簡単に説明する。
FIG. 6 is a block diagram showing an example of a format conversion apparatus used in a conventional help desk system.
FIG. 7 shows a flowchart of the processing. Hereinafter, a conventional format conversion apparatus will be briefly described with reference to FIGS.

【0004】図6に示すフォーマット変換装置は、変換
元データ601、変換処理部602および変換先データ
603を有する。ここで、変換元データ601は、他の
システムで作成された変換元データである。また、フォ
−マット変換処理部602は、変換元データ601のフ
ォーマット変換を行う。更に、変換先データ603は、
フォ−マット変換処理部602により変換され、自シス
テムで使用する変換先データを示す。
[0006] The format conversion apparatus shown in FIG. 6 has conversion source data 601, a conversion processing unit 602, and conversion destination data 603. Here, the conversion source data 601 is conversion source data created by another system. The format conversion processing unit 602 converts the format of the conversion source data 601. Further, the conversion destination data 603 is
The conversion destination data converted by the format conversion processing unit 602 and used in the own system is shown.

【0005】次に、図7のフローチャートを参照する
と、ステップ701において、フォーマット変換処理6
02は、部変換元データ601のデータ入力件数分ルー
プを開始する。次のステップ702で、変換元データ6
01の1件分のデータを読み込む。ステップ703で変
換先データ603の出力項目数分ループを開始する。ス
テップ704にて出力する変換先データ603に該当す
る項目のデータを予め決められた方法で、変換元データ
601から抽出して変換処理を選択する。ステップ70
5の変換処理を行う。ここで、ステップ704およびス
テップ705を、変換先データ603の出力項目数分繰
り返したら、ステップ705で変換先データを変換先デ
ータ603として出力する。その後、ステップ706で
変換先データ603の出力項目数のループ終了を判定す
る。次に、ステップ707で、変換先データ603を出
力する。更に、ステップ708で変換元データ601の
入力件数分のループ終了を判定して処理を終了する。
Next, referring to the flowchart of FIG. 7, in step 701, the format conversion processing 6
02 starts a loop for the number of data input of the copy source data 601. In the next step 702, the conversion source data 6
01 is read. In step 703, a loop is started for the number of output items of the conversion destination data 603. In step 704, data of an item corresponding to the conversion destination data 603 to be output is extracted from the conversion source data 601 by a predetermined method, and a conversion process is selected. Step 70
5 is performed. Here, after Steps 704 and 705 are repeated for the number of output items of the conversion destination data 603, the conversion destination data is output as the conversion destination data 603 in Step 705. After that, in step 706, it is determined whether the loop of the number of output items of the conversion destination data 603 has ended. Next, in step 707, the conversion destination data 603 is output. Further, in step 708, the loop ends for the number of input cases of the conversion source data 601 are determined, and the processing is ended.

【0006】また、フォーマット変換に関する先行技術
として特開平6−274312号公報に「汎用データ変
換装置」が開示されている。この従来技術では、変換元
データ又は変換先データの各行中の先端位置と終端位置
を示す位置指定領域および情報をキーワードとして保持
するキーワード指定領域および情報を追加情報として保
持する追加情報指定領域を含むデータ変換の内容を示す
情報を保持する変換テーブルを持っている。そして、変
換テーブルの位置指定領域の情報に基づいて、次の技術
を開示している。即ち、変換元データから変換先データ
を生成する技術。変換テーブルのキーワード指定領域の
情報と一致するデータを変換元データから捜し、一致す
る場合にそのキーワードに割り当てられた変換処理を実
施して、変換元データから変換先データを生成する技
術。そして、変換テーブルの追加情報領域に追加情報が
存在するときには、その追加情報を変換元データの内容
とは無関係に変換先データとして生成する技術である。
As a prior art relating to format conversion, Japanese Patent Application Laid-Open No. 6-274412 discloses a "general-purpose data converter". In this conventional technique, a position designation area indicating the leading end position and the end position in each row of the conversion source data or the conversion destination data, a keyword designation area holding information as a keyword, and an additional information designation area holding information as additional information are included. It has a conversion table that holds information indicating the contents of data conversion. Then, the following technology is disclosed based on the information of the position designation area of the conversion table. That is, a technique for generating conversion destination data from conversion source data. A technique for searching for data that matches information in a keyword specification area of a conversion table from conversion source data, and when matching, performs conversion processing assigned to the keyword to generate conversion destination data from the conversion source data. Then, when additional information exists in the additional information area of the conversion table, the additional information is generated as conversion destination data regardless of the content of the conversion source data.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述し
た従来のフォーマット変換装置にあっては、次の如き課
題を有する。即ち、変換先データの各項目を生成するに
際して、該当する変換元データの項目およびその変換方
法を予め決めて処理を行っているために、取り込むべき
既存データが変われば、そのフォーマットに合わせて、
該当する変換元データの項目およびその変換方法を修正
するか又は作成し直さなければならない。また、取り込
む既存データのフォーマットや、自システムで使用する
データのフォーマットが変更になった場合にも、同様に
修正しなければならない。
However, the above-mentioned conventional format conversion apparatus has the following problems. That is, when each item of the conversion destination data is generated, the corresponding conversion source data item and its conversion method are determined in advance, and the processing is performed.
The corresponding source data item and its conversion method must be modified or recreated. Further, when the format of existing data to be taken in or the format of data used in the own system is changed, the format must be similarly corrected.

【0008】また、上述した特開平6−274312号
の「汎用データ変換装置」には、変換元データ又は変換
先データの各行中の先端位置と終端位置を示す位置指定
領域を含むデータ変換の内容を示す情報を保持する変換
テーブルを持ち、変換テーブルの位置指定領域の情報に
基づいて変換元データから変換先データを生成する技術
が開示されている。例えば変換元データの内容によって
変換方法を決定するような場合には、判断する変換元デ
ータの位置、判断する値等のパラメータが必要になる。
しかし、この従来技術では、変換テーブル内にキーワー
ド定義領域、変換元データ定義領域、変換先データ定義
領域の記述部分しかなく、これらのパラメータを定義で
きないため、このようなパラメータを伴うフォ−マット
変換できない。
[0008] The above-mentioned "general-purpose data converter" disclosed in JP-A-6-274312 includes a content of data conversion including a position designation area indicating a leading position and a trailing position in each line of conversion source data or conversion destination data. There is disclosed a technology which has a conversion table holding information indicating the conversion destination data from the conversion source data based on the information of the position designation area of the conversion table. For example, when the conversion method is determined based on the content of the conversion source data, parameters such as the position of the conversion source data to be determined and the value to be determined are required.
However, according to this conventional technique, only the keyword definition area, the conversion source data definition area, and the conversion destination data definition area are described in the conversion table, and these parameters cannot be defined. Can not.

【0009】更に、変換テーブル内で変換方法を指定で
きるとはいえ、データ変換処理部に予め組み込まれてい
ない変換方法は指定できない。そのために、データ変換
処理部が完成した後、規定された新たな変換方法でフォ
−マット変換する必要があるデータを取り込もうとした
場合には、データ変換処理部に新たな変換処理を追加す
るという修正を行わなければならない。
Further, although a conversion method can be specified in the conversion table, a conversion method not previously incorporated in the data conversion processing unit cannot be specified. For this reason, after the data conversion processing unit is completed, if data that needs to be format-converted by a specified new conversion method is to be fetched, a new conversion process is added to the data conversion processing unit. Modifications must be made.

【0010】[0010]

【発明の目的】従って、本発明の目的は、他システムで
作成された既存のデータをシステムに取り込む場合に、
それら既存データのフォーマットが千差万別であって
も、取り込み処理を行う毎に、フォーマット変換処理を
修正や再作成しなくてもフォーマット変換を行えるよう
にするフォーマット変換装置を提供することである。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a system in which existing data created by another system is imported.
It is an object of the present invention to provide a format conversion device that can perform format conversion without modifying or recreating the format conversion process every time the import process is performed, even if the formats of the existing data are different. .

【0011】また、既存データのフォーマットに変更が
あった場合、自システムで保存しているデータのフォー
マットが変更になった場合又は新たな変換処理が必要と
なった場合にも、フォーマット変換処理を修正すること
なくフォーマット変換を行えるようにするフォーマット
変換装置を提供することである。
The format conversion process is also performed when the format of the existing data is changed, when the format of the data stored in the own system is changed, or when a new conversion process is required. An object of the present invention is to provide a format conversion device which enables format conversion without modification.

【0012】[0012]

【課題を解決するための手段】本発明のフォーマット変
換装置は、変換先データの出力順位、フォーマット変換
方法、変換元データ入力順位を1組として列挙した変換
方法パラメータファイルと、この変換方法パラメータフ
ァイルおよび変換元データを読み込み、この読み込んだ
変換元データから変換方法パラメータファイルに記述さ
れた変換元データの入力順位に従ってデータ項目を抽出
し、対応したフォーマット変換方法に従って変換を行う
と共に変換先データの出力順位に従って、出力するフォ
ーマット変換処理部とを備える。
According to the present invention, there is provided a format conversion apparatus comprising: a conversion method parameter file in which the output order of conversion destination data, a format conversion method, and a conversion source data input order are listed as one set; And reads the conversion source data, extracts data items from the read conversion source data according to the input order of the conversion source data described in the conversion method parameter file, performs conversion according to the corresponding format conversion method, and outputs the conversion destination data. A format conversion processing unit that outputs the data according to the order.

【0013】本発明の好適実施形態例によると、変換方
法パラメータファイルは、変換元データの項目毎のデー
タ形式、桁数等を含み、フォーマット変換処理部はデー
タ形式および桁数等に基づいて変換元データの正当性を
検証し、不正と判断した場合には外部に通知し、当該デ
ータの処理をせず次のデータ処理に移行する。また、フ
ォーマット変換処理部には、外部変換処理モジュールが
接続され、変換方法パラメータファイルのフォーマット
変換方法により外部変換モジュールを呼び出し可能にす
る。更に、この外部変換モジュールは、複数個設けられ
ると共に必要に応じて追加可能にする。また、フォーマ
ット変換処理部にアラームログファイルが接続され、不
正データが検出された場合に、エラー処理してアラーム
データの書き込みを行う。
According to a preferred embodiment of the present invention, the conversion method parameter file includes the data format, the number of digits, and the like for each item of the conversion source data, and the format conversion processing unit performs conversion based on the data format, the number of digits, and the like. The validity of the original data is verified, and if it is determined that the data is invalid, the data is notified to the outside, and the processing proceeds to the next data processing without processing the data. An external conversion processing module is connected to the format conversion processing unit, and the external conversion module can be called by the format conversion method of the conversion method parameter file. Further, a plurality of external conversion modules are provided and can be added as needed. Further, when an alarm log file is connected to the format conversion processing unit and illegal data is detected, error processing is performed and alarm data is written.

【0014】[0014]

【発明の実施の形態】次に、本発明におけるフォーマッ
ト変換装置及び方法の好適実施形態例の構成および動作
を、添付図を参照して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the structure and operation of a preferred embodiment of a format conversion apparatus and method according to the present invention will be described in detail with reference to the accompanying drawings.

【0015】図1は、本発明によるフォーマット変換装
置の好適実施形態例のブロック図である。図1のフォー
マット変換装置の処理フローチャートを図2に示す。ま
た、図3は、本発明で使用する変換方法パラメータファ
イルの1例を示す。図4は、変換元データの1例を示
す。また、図5は、変換先データの1例を示す。
FIG. 1 is a block diagram of a preferred embodiment of a format conversion apparatus according to the present invention. FIG. 2 shows a processing flowchart of the format conversion apparatus of FIG. FIG. 3 shows an example of a conversion method parameter file used in the present invention. FIG. 4 shows an example of the conversion source data. FIG. 5 shows an example of the conversion destination data.

【0016】先ず、図1のフォーマット変換装置は、フ
ォーマット変換処理部105およびこのフォーマット変
換処理部105に接続された変換元データ101、変換
方法パラメータファイル102、変換先データ103、
アラームログファイル104および複数の外部変換処理
モジュール106より構成される。ここで、変換元デー
タ101は、他のシステムで作成されたデータである。
変換方法パラメータファイル102は、変換方法などを
記述した変換方法パラメータファイルである。変換先デ
ータ103は、自システムで使用するデータである。ア
ラームログファイル104は、変換元データ101に不
正なデータを発見した場合に、その結果を保存するファ
イルである。フォーマット変換処理部105は、フォー
マット変換を行うフォーマット変換処理部である。ま
た、外部変換処理モジュール106は、フォーマット変
換部105の内部で処理できない変換処理を行う場合に
呼び出す外部変換処理モジュール群である。
First, the format conversion apparatus shown in FIG. 1 includes a format conversion processing unit 105 and conversion source data 101, a conversion method parameter file 102, conversion destination data 103 connected to the format conversion processing unit 105,
It comprises an alarm log file 104 and a plurality of external conversion processing modules 106. Here, the conversion source data 101 is data created by another system.
The conversion method parameter file 102 is a conversion method parameter file that describes a conversion method and the like. The conversion destination data 103 is data used in the own system. The alarm log file 104 is a file for storing the result of detecting invalid data in the conversion source data 101. The format conversion processing unit 105 is a format conversion processing unit that performs format conversion. The external conversion processing module 106 is a group of external conversion processing modules that are called when performing conversion processing that cannot be performed inside the format conversion unit 105.

【0017】次に、図3の変換方法パラメータファイル
の例では、変換先データの項目並びの中の何番目に出力
すべきデータかを示す変換先データ出力順位を示す変換
先データ出力順位301、該当するデータに対して行う
フォーマット変換処理を指定するフォーマット変換方法
302、変換元データの項目並びの中の何番目のデータ
を変換するかを示す変換元データ入力順位303、変換
元データのデータ形式304、その桁数305および3
つのパラメータ306、307および308を有する。
この形式に合わないデータが入力された場合には、エラ
ーとする。ここで、パラメータ306乃至308は、フ
ォーマット変換方法302で示された変換を行うために
必要なパラメータを示す。尚、この例におけるフォーマ
ット変換方法302に記された値に対応する具体的な変
換方法およびデータ形式304に記された記号の意味は
図中に示す。
Next, in the example of the conversion method parameter file shown in FIG. 3, the conversion destination data output order 301 indicating the order of the data to be output in the item list of the conversion destination data, A format conversion method 302 for designating a format conversion process to be performed on the corresponding data, a conversion source data input order 303 indicating the number of data to be converted in the conversion source data item list, and a data format of the conversion source data 304, its number of digits 305 and 3
It has three parameters 306, 307 and 308.
If data that does not conform to this format is input, an error will occur. Here, the parameters 306 to 308 indicate parameters necessary for performing the conversion shown in the format conversion method 302. The specific conversion method corresponding to the value described in the format conversion method 302 in this example and the meaning of the symbols described in the data format 304 are shown in the figure.

【0018】次に、図1および図2を参照して本発明に
よるフォーマット変換装置の好適実施形態例の全体動作
を詳細に説明する。先ず、ステップ201において、フ
ォーマット変換処理部105は、変換方法パラメータフ
ァイル102を読み込み内部に保存する。ステップ20
2で、変換元データ101のデータ件数分ループを開始
する。次に、ステップ203において、変換元データ1
01の1件分を読み込み、ステップ204で変換方法パ
ラメータファイル102に指示されている変換方法の件
数分ループを開始する。ステップ205で、図3に示す
変換元データ入力順位303で指定されたデータが、デ
ータ形式304および桁数305に指定された通りのデ
ータであるかチェックする。ステップ206で、そのチ
ェック結果を判断し、不正なデータであると判断した場
合には、ステップ207で、エラー処理としてアラーム
ログファイル104へアラームデータの書き込みを行
う。このとき、変換元データ入力順位303、データ形
式304および桁数305が指定されていない場合に
は、チェックを行わず正常なデータであると判断して処
理を継続する。
Next, the overall operation of the preferred embodiment of the format converter according to the present invention will be described in detail with reference to FIGS. First, in step 201, the format conversion processing unit 105 reads the conversion method parameter file 102 and stores it inside. Step 20
In step 2, a loop is started for the number of data items of the conversion source data 101. Next, in step 203, the conversion source data 1
In step 204, a loop is started for the number of conversion methods specified in the conversion method parameter file 102. In step 205, it is checked whether the data specified by the conversion source data input order 303 shown in FIG. 3 is the data specified by the data format 304 and the number of digits 305. In step 206, the result of the check is determined, and if it is determined that the data is invalid, in step 207, alarm data is written to the alarm log file 104 as error processing. At this time, if the conversion source data input order 303, the data format 304, and the number of digits 305 are not specified, the process is continued without checking and judging that the data is normal.

【0019】次に、ステップ206で正常なデータであ
ると判断した場合には、ステップ208に進み、図3に
示すフォーマット変換方法302から変換処理が内部処
理で行えるのか又は外部変換処理モジュール群106を
呼び出す必要があるのかを判断する。内部処理により変
換処理が行えると判断した場合には、ステップ211に
て、図3の「フォーマット変換方法」から処理方法を選
択する。ステップ212で、変換元データ101と図3
のパラメータ306乃至308を使用して、適切な変換
処理を呼び出す。
Next, when it is determined in step 206 that the data is normal, the process proceeds to step 208, where the format conversion method 302 shown in FIG. To determine if it is necessary to call When it is determined that the conversion processing can be performed by the internal processing, in step 211, a processing method is selected from the “format conversion method” in FIG. In step 212, the conversion source data 101 and FIG.
Using the parameters 306 to 308 of FIG.

【0020】次に、図3の変換方法パラメータファイル
の3行目の処理を例にとって説明する。フォーマット変
換方法302より変換方法3番の処理を行うべきことが
分かるので、その指示に従って内部処理により読み込ん
だ変換元データ101から、変換元データ入力順位30
3が示す4番目の項目を抽出する。そのデータを全角カ
タカナに変換して、変換先データ103の変換先データ
順位301が示す3番目の項目としてセットする。
Next, the processing in the third line of the conversion method parameter file in FIG. 3 will be described as an example. Since it is understood from the format conversion method 302 that the process of the conversion method 3 should be performed, the conversion source data input order 30
The fourth item indicated by 3 is extracted. The data is converted to full-width katakana and set as the third item indicated by the conversion destination data rank 301 of the conversion destination data 103.

【0021】ステップ208で、外部変換処理モジュー
ル106を呼び出す必要があると判断した場合には、ス
テップ209にて、図3のフォーマット変換方法302
から呼び出すべき外部変換処理モジュール106を判断
する。ステップ210で、変換元データ101と図3の
パラメータ306乃至308を使用して、適切な外部変
換処理モジュール106を呼び出す。
If it is determined in step 208 that the external conversion processing module 106 needs to be called, in step 209, the format conversion method 302 shown in FIG.
The external conversion processing module 106 to be called from is determined. In step 210, the appropriate external conversion processing module 106 is called using the conversion source data 101 and the parameters 306 to 308 in FIG.

【0022】次に、図3に示す変換方法パラメータファ
イルの4行目の処理を例にとって説明する。フォーマッ
ト変換方法302より変換方法「HENKAN1」という外部
変換処理モジュール106を呼び出す必要があることが
分かるので、その指示に従って読み込んだ変換元データ
101とパラメータ306乃至308を指定して、「HE
NKAN1」モジュールを呼び出す。「HENKAN1」モジュー
ルは、渡された変換元データ101とパラメータ306
乃至308を使用して、「パラメータ(1)306が示
す順位の変換元データの値がパラメータ(2)307で
示す値なら、変換元データ101にパラメータ(3)が
示す順位の変換元データ101の値をマージしてセット
する」という処理を行って、処理結果を返す。値を返さ
れたフォーマット変換処理部105は、その値を変換先
データ101の変換先データ順位301が示す4番目の
項目としてセットする。
Next, the processing in the fourth line of the conversion method parameter file shown in FIG. 3 will be described as an example. Since it is known from the format conversion method 302 that the external conversion processing module 106 called the conversion method “HENKAN1” needs to be called, the conversion source data 101 and the parameters 306 to 308 read according to the instruction are designated, and
Call the "NKAN1" module. The “HENKAN1” module includes the passed conversion source data 101 and the parameter 306.
If the value of the conversion source data in the order indicated by the parameter (1) 306 is the value indicated by the parameter (2) 307, the conversion source data 101 in the order indicated by the parameter (3) is used. Merge and set the value of "." And return the processing result. The format conversion processing unit 105 that has returned the value sets the value as the fourth item indicated by the conversion destination data rank 301 of the conversion destination data 101.

【0023】その後、同様にステップ204乃至212
を変換方法パラメータファイル102に指示されている
変換方法の件数分繰り返したら、ステップ213乃至2
16へ進む。即ち、ステップ213で、変換先データの
出力項目数ループ終了を判断する。ステップ214で、
変換処理の終わったデータを適切な順並び替え、変換先
データ1件分作成する。ステップ215で、変換先デー
タ103として出力する。また、ステップ216で変換
元データの入力件数ループ終了を判断する。同様に、ス
テップ202乃至216を変換元データ101の件数分
繰り返したら処理を終了する。
Thereafter, steps 204 to 212 are similarly performed.
Are repeated for the number of conversion methods instructed in the conversion method parameter file 102, and
Proceed to 16. That is, in step 213, the end of the output item number loop of the conversion destination data is determined. In step 214,
The data after the conversion processing is rearranged in an appropriate order, and one conversion destination data is created. In step 215, the data is output as the conversion destination data 103. Further, in step 216, it is determined whether the loop of the number of input items of the conversion source data has ended. Similarly, when steps 202 to 216 are repeated as many times as the number of the conversion source data 101, the process ends.

【0024】尚、図4に示す変換元データフォーマット
の例では、ユーザID、パスワード、氏名、ふりがな、
住所、電話番号、会社名、会社住所、会社電話番号およ
びユーザ種別を含む。また、図5に示す変換先データフ
ォーマットの例では、ユーザID、氏名、ふりがな、住
所、電話番号、登録日時、ユーザ種別およびパスワード
を含んでいる。これらデータフォ−マットは、例示に過
ぎず、必要に応じて自由に変更可能である。
In the example of the conversion source data format shown in FIG. 4, a user ID, a password, a name,
Includes address, phone number, company name, company address, company phone number and user type. Further, the example of the conversion destination data format shown in FIG. 5 includes a user ID, a name, a phonetic word, an address, a telephone number, a registration date and time, a user type, and a password. These data formats are merely examples, and can be freely changed as needed.

【0025】以上、本発明によるフォ−マット変換装置
の好適実施形態例の構成および動作を詳述した。しか
し、斯かる実施形態例は、本発明の単なる例示に過ぎ
ず、何ら本発明を限定するものではないことに留意する
べきである。本発明の要旨を逸脱することなく、特定用
途に応じて種々の変形変更が可能であることが当業者に
は容易に理解できよう。
The configuration and operation of the preferred embodiment of the format conversion apparatus according to the present invention have been described above in detail. However, it should be noted that such embodiments are merely examples of the present invention and do not limit the present invention in any way. It will be readily apparent to those skilled in the art that various modifications can be made in accordance with the particular application without departing from the spirit of the invention.

【0026】[0026]

【発明の効果】以上の説明から明らかな如く、本発明の
フォーマット変換装置によれば、変換先データの出力順
位、変換処理を行うために必要な変換パラメータを含
み、既存のフォーマット変換装置が持たない変換方法の
場合には、その変換処理を実行する外部モジュールを指
定することを含んでいる。フォーマット変換方法、変換
元データの入力順位およびそのデータのデータ形式や桁
数等を1組として列挙した変換方法パラメータファイル
と、この変換方法パラメータファイルと変換元データを
読み込み、読み込んだ変換元データから前述変換方法パ
ラメータファイルに記述された変換元データの入力順位
に従ってデータ項目を抽出し、変換元データのデータ形
式、桁数等に基づいて変換元データの正当性を検証し、
不正と判断した場合はそれを外部に通知すると共に、そ
のデータを処理せず次のデータ処理に移行する機能と、
フォーマット変換を行う場合に、変換方法パラメータフ
ァイルに記述されたフォーマット変換方法および変換パ
ラメータに対応したフォーマット変換を行う機能と、フ
ォーマット変換方法として外部モジュールが指令されて
いた場合に、その外部モジュールを呼び出して変換処理
を行う機能を有する。
As is clear from the above description, according to the format conversion apparatus of the present invention, the output format of the conversion destination data and the conversion parameters necessary for performing the conversion processing are included in the existing format conversion apparatus. In the case of no conversion method, this involves designating an external module to execute the conversion process. A conversion method parameter file in which the format conversion method, the input order of the conversion source data, the data format and the number of digits of the data are listed as one set, the conversion method parameter file and the conversion source data are read, and the read conversion source data is read. Extract the data items according to the input order of the conversion source data described in the conversion method parameter file, verify the validity of the conversion source data based on the data format, the number of digits, etc. of the conversion source data,
A function to notify the outsider if it is determined to be invalid, to proceed to the next data processing without processing the data,
When performing format conversion, the function to perform format conversion corresponding to the format conversion method and conversion parameters described in the conversion method parameter file, and when an external module is specified as the format conversion method, call the external module And performs a conversion process.

【0027】従って、他システムで作成された既存のデ
ータをヘルプデスクシステムに取り込む場合に、それら
既存データのフォーマットが千差万別であっても、取り
込み処理を行う毎に、また既存データのフォーマットに
変更があった場合や、自システムで保存しているデータ
のフォーマットが変更になった場合でも、フォーマット
変換パラメータファイルを修正するのみで、フォーマッ
ト変換処理を修正や再作成しなくてもフォーマット変換
を行えるようになる。また、新たなフォーマット変換処
理が必要となった場合でも、その変換方法に対応した外
部変換処理モジュールのみを追加してフォーマット変換
パラメータファイルの修正を行うのみで、フォーマット
変換処理部を修正することなくフォーマット変換を行え
るようなるという実用上の顕著な効果が得られる。
Therefore, when importing existing data created by another system into the help desk system, even if the format of the existing data varies widely, every time the import process is performed, the format of the existing data is changed. If there is a change in the file format or the format of the data stored in the local system is changed, simply change the format conversion parameter file without having to modify or recreate the format conversion process. Can be performed. Also, even when a new format conversion process is required, only the external conversion processing module corresponding to the conversion method is added and the format conversion parameter file is corrected, without modifying the format conversion processing unit. A remarkable practical effect that the format conversion can be performed is obtained.

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

【図1】本発明によるフォーマット変換装置の好適実施
形態例の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a preferred embodiment of a format conversion apparatus according to the present invention.

【図2】図1に示す本発明によるフォーマット変換装置
の処理動作を説明するフローチャートである。
FIG. 2 is a flowchart illustrating a processing operation of the format conversion apparatus according to the present invention shown in FIG.

【図3】図1に示す本発明によるフォーマット変換装置
の変換方法パラメータファイルの1例である。
FIG. 3 is an example of a conversion method parameter file of the format conversion apparatus according to the present invention shown in FIG. 1;

【図4】図1に示す本発明によるフォーマット変換装置
の変換元データの1例である。
FIG. 4 is an example of conversion source data of the format conversion apparatus according to the present invention shown in FIG. 1;

【図5】図1に示す本発明によるフォーマット変換装置
の変換先データの1例である。
FIG. 5 is an example of conversion destination data of the format conversion apparatus according to the present invention shown in FIG. 1;

【図6】従来のフォーマット変換装置の構成を示すブロ
ック図である。
FIG. 6 is a block diagram showing a configuration of a conventional format conversion device.

【図7】図6に示す従来のフォーマット変換装置の処理
動作を示すフローチャートである。
FIG. 7 is a flowchart showing a processing operation of the conventional format conversion apparatus shown in FIG.

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

101 変換元データ 102 変換方法パラメータファイル 103 変換先データ 104 アラームログファイル 105 フォーマット変換処理部 106 外部変換処理モジュール群 301 変換先データ出力順位 302 フォーマット変換方法 303 変換元データ入力順位 304 データ形式 305 桁数 Reference Signs List 101 conversion source data 102 conversion method parameter file 103 conversion destination data 104 alarm log file 105 format conversion processing unit 106 external conversion processing module group 301 conversion destination data output order 302 format conversion method 303 conversion source data input order 304 data format 305 number of digits

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】変換先データの出力順位、フォーマット変
換方法、変換元データ入力順位を1組として列挙した変
換方法パラメータファイルと、該変換方法パラメータフ
ァイルおよび前記変換元データを読み込み、該読み込ん
だ変換元データから前記変換方法パラメータファイルに
記述された変換元データの入力順位に従ってデータ項目
を抽出し、対応したフォーマット変換方法に従って変換
を行うと共に、変換先データの出力順位に従って出力す
るフォーマット変換処理部とを備えることを特徴とする
フォーマット変換装置。
1. A conversion method parameter file in which an output order, a format conversion method, and a conversion source data input order of conversion destination data are listed as one set, and the conversion method parameter file and the conversion source data are read. A format conversion processing unit that extracts data items from the original data according to the input order of the conversion source data described in the conversion method parameter file, performs conversion according to the corresponding format conversion method, and outputs according to the output order of the conversion destination data; A format conversion device comprising:
【請求項2】前記変換方法パラメータファイルは、前記
変換元データの項目毎のデータ形式、桁数等を含み、前
記フォーマット変換処理部は前記データ形式および桁数
等に基づいて前記変換元データの正当性を検証し、不正
と判断した場合には、外部に通知し、当該データを処理
せず次のデータ処理に移行することを特徴とする請求項
1に記載のフォーマット変換装置。
2. The conversion method parameter file includes a data format, a number of digits, and the like for each item of the conversion source data, and the format conversion processing unit performs conversion of the conversion source data based on the data format, the number of digits, and the like. 2. The format conversion apparatus according to claim 1, wherein the format conversion apparatus verifies the validity and, when determined to be invalid, notifies the outside and shifts to the next data processing without processing the data.
【請求項3】前記フォ−マット変換処理部には、外部変
換処理モジュールが接続され、前記変換方法パラメータ
ファイルの前記フォーマット変換方法により前記外部変
換処理モジュールを呼び出し可能にすることを特徴とす
る請求項1又は2に記載のフォーマット変換装置。
3. An external conversion processing module is connected to the format conversion processing unit, and the external conversion processing module can be called by the format conversion method of the conversion method parameter file. Item 3. The format conversion device according to item 1 or 2.
【請求項4】前記外部変換処理モジュールは、複数個設
けると共に必要に応じて追加可能にすることを特徴とす
る請求項3に記載のフォーマット変換装置。
4. The format conversion apparatus according to claim 3, wherein a plurality of said external conversion processing modules are provided and can be added as needed.
【請求項5】前記フォーマット変換部にはアラームログ
ファイルが接続され、不正データが検出された場合に、
エラー処理してアラームデータの書き込みを行うことを
特徴とする請求項1乃至4のいずれかに記載のフォーマ
ット変換装置。
5. An alarm log file is connected to the format conversion unit, and when illegal data is detected,
5. The format conversion apparatus according to claim 1, wherein error data is written by performing error processing.
【請求項6】変換先データの出力順位、フォーマット変
換方法、変換元データ入力順位を1組として列挙した変
換方法パラメータファイルと、該変換方法パラメータフ
ァイルおよび前記変換元データを読み込み、該読み込ん
だ変換元データから前記変換方法パラメータファイルに
記述された変換元データの入力順位に従ってデータ項目
を抽出し、対応したフォーマット変換方法に従って変換
を行うと共に、変換先データの出力順位に従って出力す
ることを特徴とするフォーマット変換方法。
6. A conversion method parameter file in which the output order of conversion destination data, the format conversion method, and the input order of conversion source data are listed as a set, and the conversion method parameter file and the conversion source data are read. Data items are extracted from the original data in accordance with the input order of the conversion source data described in the conversion method parameter file, converted according to the corresponding format conversion method, and output according to the output order of the conversion destination data. Format conversion method.
JP36674799A 1999-12-24 1999-12-24 Format converter and its method Pending JP2001184190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36674799A JP2001184190A (en) 1999-12-24 1999-12-24 Format converter and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36674799A JP2001184190A (en) 1999-12-24 1999-12-24 Format converter and its method

Publications (1)

Publication Number Publication Date
JP2001184190A true JP2001184190A (en) 2001-07-06

Family

ID=18487571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36674799A Pending JP2001184190A (en) 1999-12-24 1999-12-24 Format converter and its method

Country Status (1)

Country Link
JP (1) JP2001184190A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013531321A (en) * 2010-07-20 2013-08-01 中▲興▼通▲訊▼股▲フン▼有限公司 Database backup data restoration method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013531321A (en) * 2010-07-20 2013-08-01 中▲興▼通▲訊▼股▲フン▼有限公司 Database backup data restoration method and apparatus

Similar Documents

Publication Publication Date Title
EP1678629B1 (en) Extensible framework for handling different mark up language parsers and generators in a computing device
JPH07191840A (en) Automatic program generator
JP2013008395A (en) Display system and method for acceptance state
JP2007128123A (en) Influential range extraction system
JP2001184190A (en) Format converter and its method
CN114417834A (en) Text processing method and device, electronic equipment and readable storage medium
JP2002342078A (en) Program development system and method
CN117688025B (en) SQL dynamic assembly method and device based on JDBC protocol
CN117009319B (en) Database operation method, system and storage medium based on large language model
CN111949716B (en) Formatted data output field processing method, computer device and storage medium
JP2002269136A (en) Document retrieval system and program
JP3021697B2 (en) Exception handling in programming languages
JP4847210B2 (en) Input conversion learning program, input conversion learning method, and input conversion learning device
JP3149422B2 (en) Link processing method
JP2004252708A (en) Object value setting method and program
JP2002150207A (en) Automatic input system
JPH08286927A (en) Assembler processing system
JPH07129446A (en) Data base access method
JP2001005666A (en) Remote procedure execution system
JP3830579B2 (en) Information analysis / editing system
CN116166270A (en) XAML file correction method, XAML file correction device, computer equipment and storage medium
JP2001195287A (en) Method for sharing data base
CN118036058A (en) Database access control method, system and medium based on trusted execution environment
CN114998038A (en) Abnormal policy processing method and system
US20060277480A1 (en) Facilitating communication between user interface components that transmit information in incompatible formats

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050930

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060301