JP4603401B2 - Data conversion system and data conversion program - Google Patents

Data conversion system and data conversion program Download PDF

Info

Publication number
JP4603401B2
JP4603401B2 JP2005099719A JP2005099719A JP4603401B2 JP 4603401 B2 JP4603401 B2 JP 4603401B2 JP 2005099719 A JP2005099719 A JP 2005099719A JP 2005099719 A JP2005099719 A JP 2005099719A JP 4603401 B2 JP4603401 B2 JP 4603401B2
Authority
JP
Japan
Prior art keywords
data
conversion
storage unit
unit
memory file
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.)
Expired - Fee Related
Application number
JP2005099719A
Other languages
Japanese (ja)
Other versions
JP2006277642A (en
Inventor
康弘 矢野
諭 大島
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.)
Nomura Research Institute Ltd
Original Assignee
Nomura Research Institute 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 Nomura Research Institute Ltd filed Critical Nomura Research Institute Ltd
Priority to JP2005099719A priority Critical patent/JP4603401B2/en
Publication of JP2006277642A publication Critical patent/JP2006277642A/en
Application granted granted Critical
Publication of JP4603401B2 publication Critical patent/JP4603401B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

この発明はデータ変換システム及びデータ変換プログラムに係り、特に、本来的な情報処理の前処理として、対象となるデータの構成を必要な形式に変換する技術に関する。   The present invention relates to a data conversion system and a data conversion program, and more particularly, to a technique for converting a configuration of target data into a necessary format as a pre-process for essential information processing.

情報処理の分野においては、データの加工や照合、登録といった本来的な処理の前段階において、対象となるデータに対してデータ項目の並び替えや補充、削除、結合等の変換処理を施し、後続処理の効率化を図ることが行われる。
例えば、下記の特許文献1には、入金予定情報と入金情報との照合処理の前処理として、顧客名称や通貨の統一、あるいは欠落項目の補充等を実行することにより、データ照合処理の自動化を実現する自動照合装置が開示されている。
特開2000−285188
In the field of information processing, data processing such as data item rearrangement, replenishment, deletion, and combination is performed on the target data before the original processing such as data processing, collation, and registration, and the subsequent Processing efficiency is improved.
For example, in Patent Document 1 below, data collation processing is automated by executing, for example, unification of customer names and currency or supplementation of missing items as preprocessing for collation processing between payment schedule information and payment information. An automatic verification device that realizes the above is disclosed.
JP 2000-285188 A

図10は、このようなデータ変換処理を実現するための、従来の一般的なシステム構成を示すブロック図である。
この場合、通信ネットワーク等を介して所定のデータ項目を備えた入力データ60をシステム62が受信すると、データ変換処理部64が変換ルール記憶部66からデータ項目毎に規定された変換ルールを読み出し、これに従ってデータベースサーバ68から必要なデータを取得し、あるいはデータ項目の結合や削除等の加工を施し、出力データ70として後続のシステムに送信する。
FIG. 10 is a block diagram showing a conventional general system configuration for realizing such data conversion processing.
In this case, when the system 62 receives the input data 60 having a predetermined data item via a communication network or the like, the data conversion processing unit 64 reads the conversion rule defined for each data item from the conversion rule storage unit 66, In accordance with this, necessary data is acquired from the database server 68, or data items are combined and deleted, and processed as output data 70 to the subsequent system.

図11は、この従来のデータ変換システム62を用いてデータ項目の補充等の変換処理を行う際の要領を示す模式図であり、銘柄コード、ファンドコード、証券会社コード等のデータ項目を有する入力データに対し、銘柄名称、ファンド名称、証券会社名称等のデータ項目を補充して出力データを生成する様子が描かれている。
この場合、データ変換処理部64は、入力データの銘柄コードや証券会社コード等を参照元データとしてデータベースサーバ68に送信し、各コードに関連づけられた名称を取得した後、これを出力データの該当項目に埋め込んでいる。
この図が示すように、データ変換システム62は入力データから出力データを生成するに当たり、補充すべきデータ項目毎にデータベースサーバ68への参照を繰り返しており、1件の入力データを処理するために5回もデータベースへの問合せを行っている。
一般に、情報処理において最も時間を要するのはデータベースへの問合せに伴う待ち時間であるため、補充すべきデータ項目の数及び対象となる入力データのレコード件数が増加するにつれて、変換処理に膨大な時間が必要となる。
FIG. 11 is a schematic diagram showing the points when performing conversion processing such as replenishment of data items using the conventional data conversion system 62. The input having data items such as brand code, fund code, and securities company code. The data is supplemented with data items such as brand name, fund name, and securities company name, and output data is generated.
In this case, the data conversion processing unit 64 transmits the stock code or securities company code of the input data to the database server 68 as reference source data, obtains the name associated with each code, and then obtains the name corresponding to the output data. Embedded in the item.
As shown in this figure, in generating output data from input data, the data conversion system 62 repeatedly refers to the database server 68 for each data item to be supplemented, and processes one piece of input data. The database has been inquired five times.
In general, information processing takes the most time to wait for a query to the database. Therefore, as the number of data items to be replenished and the number of records of target input data increases, the conversion process takes a huge amount of time. Is required.

もちろん、特定のデータ形式及びハードウェア構成に的を絞った専用システムを用いるのであれば、ソースコードレベルで様々な効率化手法を講じることにより、全体的な処理の高速化を図ることが可能となる。
例えば、参照元となるデータを所定件分まとめてデータベースサーバに送信し、補充が必要なデータを一度に取得することで、データベースサーバへのアクセス回数を減らし、全体の処理時間を短縮化することも可能である。
Of course, if a dedicated system focused on a specific data format and hardware configuration is used, it is possible to speed up the overall processing by taking various efficiency methods at the source code level. Become.
For example, by sending a predetermined amount of reference source data to the database server and acquiring the data that needs to be replenished at a time, the number of accesses to the database server can be reduced and the overall processing time can be reduced. Is also possible.

しかしながら、専用システムの場合には上記のような処理の高速化の利点が得られる反面、その運用において柔軟性に欠けるという問題がある。
すなわち、上記のようにシステムの動作がプログラムレベルで規定されることとなると、データ項目の構成に変更が生じたり、参照先のデータベースに変更が生じた場合にはソースコードの記述を修正して実行ファイルを生成し直す必要があり、現場の要求に応じてその動作を即座に改変できないという事態が生じる。
However, in the case of a dedicated system, the above-described advantage of speeding up the processing can be obtained, but there is a problem that the operation is not flexible.
In other words, if the system operation is specified at the program level as described above, the source code description should be modified if the data item configuration changes or the reference database changes. It is necessary to regenerate the executable file, and a situation occurs in which the operation cannot be immediately modified according to the request of the site.

この発明は、データ変換処理に係る従来の上記問題を解決するために案出されたものであり、柔軟性に優れた汎用的な処理を前提としながらも、高速なデータ変換処理を可能とする技術の実現を目的としている。   The present invention has been devised in order to solve the above-mentioned conventional problems relating to data conversion processing, and enables high-speed data conversion processing while assuming general-purpose processing with excellent flexibility. It aims to realize technology.

上記の目的を達成するため、請求項1に記載したデータ変換システムは、複数の入力データが格納された入力データ記憶部と、一括処理をすべき入力データのレコード件数を予め設定しておく基本設定記憶部と、入力データに基づいて所定形式の出力データを生成するために必要な処理の内容を規定した変換ルールを、出力データのデータ項目単位で格納しておく変換ルール記憶と、変換処理の完了したデータを格納するための出力データ記憶部と、上記基本設定記憶部を参照して一度に取り込むべきレコードの件数を取得した上で、上記入力データ記憶部からこの件数分のレコードを抽出し、第1のメモリファイルに格納する対象データ取込部と、上記変換ルール記憶部から変換ルールをデータ項目単位で読み出すと共に、第1のメモリファイルに格納された対応データ項目の全レコードに係るデータに基づいて当該変換ルールに規定された処理を実行し、結果データを第2のメモリファイルの該当箇所に一括して格納する変換処理部と、第2のメモリファイルに必要なデータ項目に係るデータが揃った時点で、各データを上記出力データ記憶部に移動させる変換データ登録部とを備えたデータ変換システムであって、上記対象データ取込部、変換処理部及び変換データ登録部は、上記入力データ記憶部に格納された全レコードについて上記の処理を繰り返すものであり、さらに、上記変換ルールの一つとして、入力データの特定のデータ項目のに基づいてデータベースから関連データを逐次取得するための要求SQL文格納されている場合に、上記変換処理部は、(1) 当該要求SQL文を編集し、一括SQL発行テーブルにセットされた複数件数分の参照元データに対応した結果データの一括送信を要求する内容の一括SQL文を自動生成する処理と、(2)第1のメモリファイルに格納された該当データ項目に係る全レコード分の値を抽出し、参照元データとして一括SQL発行テーブルにセットする処理と、(3)上記の一括SQL文を該当のデータベースに送信し、対応する結果データの送信を要求する処理と、(4)データベースから送信された各結果データと各参照元データとを比較し、参照元データと結果データとが一対一で対応する場合には当該結果データを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが複数存在する場合には所定のルールに従って選択された一の結果データのみを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが存在しない場合にはデータの欠落を示すコードを第2のメモリファイルの該当箇所に記述する処理と、を実行することを特徴としている。 In order to achieve the above object, a data conversion system according to claim 1 is a basic configuration in which an input data storage unit storing a plurality of input data and a record number of input data to be collectively processed are set in advance. a setting storage unit, a conversion rule, the conversion rule storing unit for storing the data item unit of output data defining the content of the processing required to generate the output data in a predetermined format based on the input data, converted After obtaining the number of records to be imported at one time with reference to the basic setting storage unit and the output data storage unit for storing the processed data, the number of records from the input data storage unit is obtained. extracted, and the target data acquisition unit to be stored in the first memory file, reads out the conversion rule from the transformation rule storage unit in the data item basis, the first memory Executes the process defined in the conversion rule based on data relating to all the records of the corresponding data items stored in Airu, a conversion processing unit for storing collectively the results data in the appropriate place in the second memory file A data conversion system including a conversion data registration unit that moves each data to the output data storage unit when the data related to the necessary data items is collected in the second memory file. The import unit, the conversion processing unit, and the conversion data registration unit repeat the above processing for all the records stored in the input data storage unit. Further, as one of the conversion rules , specific data of the input data When a request SQL statement for sequentially acquiring related data from the database based on the value of the item is stored , the conversion processing unit: (1) the request S Editing the QL statement and automatically generating a batch SQL statement with a content requesting batch transmission of result data corresponding to multiple reference source data set in the batch SQL issue table; (2) First extracting the value of for all records relating to the data item of which is stored in a memory file, a process of setting the batch SQL issuance table as reference source data, (3) transmits the above bulk SQL statements to the appropriate database , Processing to request transmission of the corresponding result data, and (4) when each result data sent from the database is compared with each reference source data, and when the reference source data and the result data correspond one-to-one The result data is stored in the corresponding location of the second memory file, and when there are a plurality of result data for the reference source data, only one result data selected according to a predetermined rule is stored in the second memory file. Stored in the corresponding portion of the Le, if the result data for the reference original data does not exist is characterized by executing the a process described in the appropriate place in the second memory file a code indicating the missing data.

また、請求項2に記載したデータ変換プログラムは、コンピュータを、複数の入力データが格納された入力データ記憶部、一括処理をすべき入力データのレコード件数を予め設定しておく基本設定記憶部、入力データに基づいて所定形式の出力データを生成するために必要な処理の内容を規定した変換ルールを、出力データのデータ項目単位で格納しておく変換ルール記憶変換処理の完了したデータを格納するための出力データ記憶部、上記基本設定記憶部を参照して一度に取り込むべきレコードの件数を取得した上で、上記入力データ記憶部からこの件数分のレコードを抽出し、第1のメモリファイルに格納する対象データ取込部上記変換ルール記憶部から変換ルールをデータ項目単位で読み出すと共に、第1のメモリファイルに格納された対応データ項目の全レコードに係るデータに基づいて当該変換ルールに規定された処理を実行し、結果データを第2のメモリファイルの該当箇所に一括して格納する変換処理部第2のメモリファイルに必要なデータ項目に係るデータが揃った時点で、各データを上記出力データ記憶部に移動させる変換データ登録部として機能させるデータ変換プログラムであって、上記対象データ取込部、変換処理部及び変換データ登録部は、上記入力データ記憶部に格納された全レコードについて上記の処理を繰り返すものであり、さらに、上記変換ルールの一つとして、入力データの特定のデータ項目のに基づいてデータベースから関連データを逐次取得するための要求SQL文格納されている場合に、上記変換処理部は、(1) 当該要求SQL文を編集し、一括SQL発行テーブルにセットされた複数件数分の参照元データに対応した結果データの一括送信を要求する内容の一括SQL文を自動生成する処理と、(2)第1のメモリファイルに格納された該当データ項目に係る全レコード分の値を抽出し、参照元データとして一括SQL発行テーブルにセットする処理と、(3)上記の一括SQL文を該当のデータベースに送信し、対応する結果データの送信を要求する処理と、(4)データベースから送信された各結果データと各参照元データとを比較し、参照元データと結果データとが一対一で対応する場合には当該結果データを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが複数存在する場合には所定のルールに従って選択された一の結果データのみを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが存在しない場合にはデータの欠落を示すコードを第2のメモリファイルの該当箇所に記述する処理と、を実行することを特徴としている。

According to a second aspect of the present invention, there is provided a data conversion program comprising: an input data storage unit storing a plurality of input data; a basic setting storage unit for presetting the number of records of input data to be collectively processed; the conversion rule that defines the contents of the processing required to generate the output data in a predetermined format based on the input data, conversion rule storage unit for storing the data item unit of output data, the completed data conversion process After obtaining the number of records to be fetched at one time with reference to the output data storage unit for storing and the basic setting storage unit, this number of records are extracted from the input data storage unit , and the first memory target data acquisition unit for storing a file, it reads out the conversion rule from the transformation rule storage unit in the data item basis, rank in the first memory file Has been based on the data relating to all the records of the corresponding data item to execute a process defined in the conversion rule, the result conversion unit which stores the data simultaneously to the corresponding portion of the second memory file, the second A data conversion program for functioning as a conversion data registration unit that moves each data to the output data storage unit when data relating to necessary data items is stored in the memory file, the target data capturing unit, the conversion process The conversion data registration unit repeats the above processing for all records stored in the input data storage unit, and further, based on the value of a specific data item of the input data as one of the conversion rules. If the request SQL statement to sequentially retrieve related data from the database Te is stored, the conversion processing unit, the (1) the request SQL statements Condensed, and the process of automatically generating a batch SQL statement content requesting collective transmission result data corresponding to the reference source data of a plurality number of items that are set collectively SQL issuance table, (2) the first memory file extracting the value of for all records of the corresponding stored data items, the process of setting the batch SQL issuance table as reference source data, and transmits the (3) above bulk SQL statements to the appropriate database, the corresponding (4) Compare each result data sent from the database with each reference source data, and if the reference source data and the result data correspond one-to-one, the result data Is stored in the corresponding location of the second memory file, and when there are a plurality of result data for the reference source data, only one result data selected according to a predetermined rule is stored in the second memory file. Stored to those locations, if the result data for the reference original data does not exist is characterized by executing the a process described in the appropriate place in the second memory file a code indicating the missing data.

請求項1のデータ変換システム及び請求項2のデータ変換プログラムにあっては、入力データに対し1件単位で変換処理を行うのではなく、ある程度まとまった件数単位で処理がなされ、データベースへの照会も同件数単位で実行されるため問合わせの回数を大幅に低減することができ、変換処理全体の高速化を実現することができる。
また、データベースから送信された複数件数分の結果データをそのまま出力データとして採用するのではなく、参照元データと突き合わせて整合化させる機能を備えているため、誤ったデータ列が形成されることを未然に防止することができる。
さらに、各データ項目に係る変換ルールが外部データの形で供給されるため、これらの記述を変更することによって柔軟に変換処理の対象や動作を変更することが可能となる。
しかも、データベースに問合せを行う際には複数のデータを一括して取得するためのSQL文が自動生成されるため、現場のオペレータは従来の逐次処理の場合と同様の手軽さで変換ルールを定義することが可能となる。
In the data conversion system according to claim 1 and the data conversion program according to claim 2, the input data is not subjected to conversion processing in units of cases, but is processed in units of a certain number of cases, and the database is inquired. Since it is executed in units of the same number, the number of inquiries can be greatly reduced, and the overall conversion process can be speeded up.
In addition, the result data sent from the database is not directly adopted as output data, but has a function to match and match the reference source data, so that an incorrect data string is formed. It can be prevented in advance.
Furthermore, since conversion rules relating to each data item are supplied in the form of external data, it is possible to flexibly change the object and operation of conversion processing by changing these descriptions.
Moreover, when querying the database, SQL statements for acquiring multiple data at once are automatically generated, so operators in the field can define conversion rules with the same ease as in conventional sequential processing. It becomes possible to do.

図1は、この発明に係るデータ変換システムが組み込まれた約定管理システムの全体構成を示すブロック図であり、銀行等の金融機関内に配置された約定管理システム10は、受信データ変換システム12と、データ照合システム14と、送信データ変換システム16とを備えている。   FIG. 1 is a block diagram showing the overall configuration of a contract management system in which a data conversion system according to the present invention is incorporated. A contract management system 10 arranged in a financial institution such as a bank is composed of a received data conversion system 12 and A data collation system 14 and a transmission data conversion system 16 are provided.

この約定管理システム10は、銀行内ネットワーク18やSWIFTネット19、各種データ交換サービスネット20等の通信網を介して銀行内資産運用部署、海外証券会社、海外機関投資家、国内証券会社、国内機関投資家等の取引サーバ22から送信された取引報告書データ及び運用指図書データ間の照合を行い、約定成立が確認できたデータ(照合済み約定データ)を銀行内ネットワーク23を介して銀行内勘定系システム24に受け渡す役割を果たすものである。   This contract management system 10 is connected to bank asset management departments, overseas securities firms, overseas institutional investors, domestic securities firms, domestic institutions via communication networks such as the bank network 18, SWIFT network 19, and various data exchange service networks 20. The transaction report data sent from the transaction server 22 such as the investor and the operation instruction data are collated, and the data (confirmed agreement data) that has been confirmed to be fulfilled is confirmed in the bank via the bank network 23. It plays a role of passing to the system 24.

取引報告書データと運用指図書データとの照合処理自体はデータ照合システム14において実行されるのであるが、その前処理として、受信データ変換システム12において各取引サーバ22から送信されたデータを標準フォーマットのデータ形式に変換する処理が実行される。
すなわち、各取引サーバ22から送信される取引報告書データや運用指図書データはそれぞれ独自のフォーマットを備えており、そのままでは相互に照合不可能であったり、後続の処理に繋げられない事態が生じるため、受信データ変換システム12において事前に汎用的な標準フォーマットに一旦統一される。
具体的には、以下の変換処理が実行される。
(1) 各受信データのデータ項目の並びを標準の並びに変換する。
(2) 各受信データのデータコードを標準的なデータコードに変換する(例えば、銘柄コードを外部コードから社内コードに変換する)。
(3) 各受信データに存在しないデータ項目が標準フォーマットにおいて要求されている場合に、不足しているデータ項目を外部のデータベース等から補充する。
The verification process itself between the transaction report data and the operation instruction data is executed in the data verification system 14, but as a pre-processing, the data sent from each transaction server 22 in the received data conversion system 12 is a standard format. The process of converting to the data format is executed.
That is, the transaction report data and operation instruction data transmitted from each transaction server 22 have their own formats, and cannot be compared with each other as they are, or may not be connected to subsequent processing. Therefore, the received data conversion system 12 is once unified into a general-purpose standard format in advance.
Specifically, the following conversion process is executed.
(1) Convert the order of data items of each received data into a standard sequence.
(2) The data code of each received data is converted into a standard data code (for example, the stock code is converted from an external code to an in-house code).
(3) When a data item that does not exist in each received data is requested in the standard format, the missing data item is supplemented from an external database or the like.

このように、受信データ変換システム12において各受信データが標準フォーマットに予め統一されるため、データ照合システム14における照合処理は極めて効率的に実行可能となる。
データ照合システム14における照合が完了した取引データ(運用指図書データ及び取引報告書データの組合せ)は、上記のように銀行内勘定系システム24に送信され、そこにおいて様々な処理に利用されるのであるが、その前に送信データ変換システム16において、標準フォーマットから銀行内勘定系システム24が要求する独自フォーマットに再度変換される。
In this way, since each received data is unified in advance in the standard format in the received data conversion system 12, the matching process in the data matching system 14 can be executed very efficiently.
Transaction data (combination of operation instruction data and transaction report data) that has been verified in the data verification system 14 is transmitted to the bank account system 24 as described above, and is used for various processes there. Before that, the transmission data conversion system 16 converts the data from the standard format back to the original format required by the bank account system 24.

この発明に係るデータ変換システムは、このような約定管理システム10における受信データ変換システム12及び送信データ変換システム16として好適に利用できる。
図2に示すように、このデータ変換システム30は、対象データ取込部32と、変換処理部34と、変換データ登録部36と、入力データ記憶部38と、基本設定記憶部40と、変換ルール記憶部42と、出力データ記憶部44と、第1のメモリファイル46と、第2のメモリファイル48と、一括SQL発行テーブル50とを備えている。
The data conversion system according to the present invention can be suitably used as the reception data conversion system 12 and the transmission data conversion system 16 in such a contract management system 10.
As shown in FIG. 2, the data conversion system 30 includes a target data capture unit 32, a conversion processing unit 34, a conversion data registration unit 36, an input data storage unit 38, a basic setting storage unit 40, a conversion A rule storage unit 42, an output data storage unit 44, a first memory file 46, a second memory file 48, and a batch SQL issue table 50 are provided.

上記対象データ取込部32、変換処理部34及び変換データ登録部36は、システム30を構成するコンピュータのCPUが、OS及び専用のアプリケーションプログラムに従って必要な処理を実行することによって実現される。
また、入力データ記憶部38、基本設定記憶部40、変換ルール記憶部42及び出力データ記憶部44は、同コンピュータのハードディスク内に設けられており、第1のメモリファイル46、第2のメモリファイル48及び一括SQL発行テーブル50は、同コンピュータの内部メモリ内に設定される。
The target data capturing unit 32, the conversion processing unit 34, and the conversion data registration unit 36 are realized by the CPU of the computer constituting the system 30 executing necessary processes according to the OS and a dedicated application program.
The input data storage unit 38, the basic setting storage unit 40, the conversion rule storage unit 42, and the output data storage unit 44 are provided in the hard disk of the computer, and the first memory file 46, the second memory file 48 and the batch SQL issue table 50 are set in the internal memory of the computer.

上記入力データ記憶部38内の所定のディレクトリには、外部の取引サーバ22から送信された取引データ等が入力データとして蓄積されている。
また、基本設定記憶部40には、一括処理をすべき入力データのレコード数が予め設定されている。
さらに、変換ルール記憶部42には、入力データに対する変換処理の内容が出力データのデータ項目単位で規定されている。
In a predetermined directory in the input data storage unit 38, transaction data and the like transmitted from the external transaction server 22 are stored as input data.
In the basic setting storage unit 40, the number of records of input data to be collectively processed is set in advance.
Further, the conversion rule storage unit 42 defines the contents of conversion processing for input data in units of data items of output data.

つぎに、図3のフローチャートに従い、このデータ変換システム30における処理手順を説明する。
まず、対象データ取込部32が起動し、基本設定記憶部40を参照して一度に取り込むべきレコードの件数を取得する(S10)。
例えば、基本設定記憶部40に一括処理の単位として「300件」が設定されていた場合、対象データ取込部32は入力データ記憶部38の特定ディレクトリから300件のレコードをまとめて抽出し、第1のメモリファイル46に格納する(S12)。
図4はこの場合のイメージを示すものであり、第1のメモリファイル46に項目1〜項目nを備えたREC 1〜REC 300のレコードがセットされた状態が描かれている。
Next, a processing procedure in the data conversion system 30 will be described with reference to the flowchart of FIG.
First, the target data capturing unit 32 is activated, and acquires the number of records to be captured at one time with reference to the basic setting storage unit 40 (S10).
For example, when “300 cases” is set as a unit of batch processing in the basic setting storage unit 40, the target data fetching unit 32 extracts 300 records collectively from a specific directory in the input data storage unit 38, The data is stored in the first memory file 46 (S12).
FIG. 4 shows an image in this case, and shows a state in which records of REC 1 to REC 300 having items 1 to n are set in the first memory file 46.

つぎに変換処理部34が起動し、変換ルール記憶部42に格納された変換ルールをデータ項目単位で読み出して内容を解析すると共に(S14)、その内容に従って必要な処理を実行する。
ここで、例えば入力データの項目1に記述された銘柄コードをキーとして外部のデータベースから対応する銘柄名称を取得すべき旨のルールが変換ルール記憶部42に規定されている場合(S16)、変換処理部34はまず変換ルール自体を一括処理に対応したものに編集する。
すなわち、変換ルール記憶部42内に格納された変換ルール(要求SQL文)はレコードを逐次的に変換処理することを要求する内容であるため、変換処理部34はこれを編集し、一括SQL発行テーブル50に格納された各銘柄コードに対応する銘柄名称をデータベースサーバから一度に取得するためのSQL文(一括SQL発行テーブルとのJOIN型SQL文)を自動生成する(S18)。
Next, the conversion processing unit 34 is activated, reads the conversion rules stored in the conversion rule storage unit 42 in units of data items, analyzes the contents (S14), and executes necessary processes according to the contents.
Here, for example, when the rule that the corresponding brand name should be acquired from an external database is defined in the conversion rule storage unit 42 using the brand code described in the item 1 of the input data as a key (S16), the conversion The processing unit 34 first edits the conversion rule itself into one that supports batch processing.
In other words, the conversion rule (request SQL statement) stored in the conversion rule storage unit 42 is a content that requires the records to be converted sequentially, so the conversion processing unit 34 edits this and issues a batch SQL. An SQL statement (JOIN-type SQL statement with a batch SQL issue table) for acquiring the issue names corresponding to the issue codes stored in the table 50 at a time from the database server is automatically generated (S18).

つぎに変換処理部34は、第1のメモリファイル46から300件分の銘柄コードを抽出し、一括SQL発行テーブル50に格納する(S20)。
つぎに変換処理部34は、編集後のSQL文をデータベースサーバ52に送信し、対応データの一括送信を要求する(S22)。
これを受けたデータベースサーバ52は、編集後SQL文に従い一括SQL発行テーブル50に格納された各銘柄コードに対応する銘柄名称を銘柄データベースから抽出し、変換処理部34に送信する。
なお、上記の一括SQL発行方式については、後に詳細に説明する。
Next, the conversion processing unit 34 extracts 300 brand codes from the first memory file 46 and stores them in the batch SQL issue table 50 (S20).
Next, the conversion processing unit 34 transmits the edited SQL sentence to the database server 52 and requests batch transmission of corresponding data (S22).
Receiving this, the database server 52 extracts the brand name corresponding to each brand code stored in the batch SQL issue table 50 in accordance with the edited SQL statement from the brand database, and transmits it to the conversion processing unit 34.
The batch SQL issue method will be described in detail later.

つぎに変換処理部34は、データベースサーバ52から送信された各データに対し、整合化処理を実行する(S24)。
すなわち、データベースサーバ52から送信された各データは、必ずしも一括SQL発行テーブル50に格納された参照元データ(銘柄コード)と一対一で対応しているとは限らず、データの欠落や重複が生じている可能性がある。
例えば、300件分の銘柄コードに対してデータベースサーバ52から300件分の銘柄名称が送信されたとしても、実際には同一の銘柄コードに対して複数の銘柄名称が返されたり、ある銘柄コードに対しては対応の銘柄名称が送信されない場合もあり、単純に件数が一致すれば事足りるという問題ではない。
これらの不整合はデータベースサーバ52側の不備等によって生じるものであるが、このままの状態で参照元の銘柄コードに形式的に連結させると誤ったデータ列が形成されてしまうため、所定のルールに従い取得データの適否を判定し、必要な修正を施した上で第2のメモリファイル48に格納する仕組みを備えている(S26)。
Next, the conversion processing unit 34 executes a matching process on each data transmitted from the database server 52 (S24).
That is, each data transmitted from the database server 52 does not necessarily correspond one-to-one with the reference source data (stock code) stored in the collective SQL issuing table 50, and data loss or duplication occurs. There is a possibility.
For example, even if 300 brand names are sent from the database server 52 to 300 brand codes, multiple brand names are actually returned for the same brand code, In some cases, the corresponding brand name may not be transmitted, and it is not a problem that it is sufficient if the numbers match.
These inconsistencies are caused by deficiencies on the database server 52 side. However, if they are formally linked to the reference source code in this state, an incorrect data string is formed. A mechanism is provided for determining whether or not the acquired data is appropriate, making necessary corrections, and storing it in the second memory file 48 (S26).

図5はこの整合化処理の一例を示すものであり、同図(a)に示すように、データベースサーバ52から参照元レコード番号1について結果−1のデータが返された場合、参照元データと参照結果データとの一対一の対応関係が認められるため、同図(b)に示すように、変換処理部34はこの結果−1をそのまま第2のメモリファイル48の新項目2として格納する。
これに対し、参照元レコード番号5については、結果−2と結果−3が重複して返されたため、所定のルールに従って何れか一つの結果データのみが採用される。ここでは、先頭の結果データを採用するというルールに従い、変換処理部34は結果−2を第2のメモリファイル48上に新項目2として格納する。
また、参照元レコード2〜4については結果データが返されず、該当データが欠落していることが明らかであるため、変換処理部34は参照元データ2〜4についてはデータ欠落を意味する「null」を第2のメモリファイル48に格納する。
FIG. 5 shows an example of this matching processing. As shown in FIG. 5A, when data of result-1 is returned for the reference source record number 1 from the database server 52, the reference source data and Since a one-to-one correspondence with the reference result data is recognized, the conversion processing unit 34 stores the result −1 as it is as the new item 2 of the second memory file 48 as shown in FIG.
On the other hand, for reference source record number 5, since result-2 and result-3 are returned in duplicate, only one result data is adopted according to a predetermined rule. Here, the conversion processing unit 34 stores the result-2 as the new item 2 on the second memory file 48 in accordance with the rule of adopting the top result data.
Further, since the result data is not returned for the reference source records 2 to 4 and it is clear that the corresponding data is missing, the conversion processing unit 34 means that the reference source data 2 to 4 are missing data. “null” is stored in the second memory file 48.

以上のようにして一つの項目について300件分の処理が完了すると、次のデータ項目について再び300件単位で変換処理が繰り返される(S28、S14〜S26)。
そして、第2のメモリファイル48上に必要なデータ項目に係るデータが300件分揃った時点で、変換データ登録部36はこれらを出力データ記憶部44に格納する(S30)。
続いて、対象データ取込部32によって次の対象レコードが入力データ記憶部38から300件分取り込まれ、必要な変換処理が繰り返される(S32、S12〜S30)。
When the processing for 300 items is completed for one item as described above, the conversion processing is repeated again in units of 300 for the next data item (S28, S14 to S26).
Then, at the time when 300 pieces of data related to the necessary data items are collected on the second memory file 48, the conversion data registration unit 36 stores these in the output data storage unit 44 (S30).
Subsequently, the target data fetching unit 32 fetches 300 next target records from the input data storage unit 38, and the necessary conversion process is repeated (S32, S12 to S30).

上記においては、あるデータ項目のデータに基づいて対応するデータをデータベースサーバ52から補充する例を説明したが、データ項目によってはそのまま第2のメモリファイル48の所定項目に当てはめることや(単純移送)、異なるデータ項目のデータ同士を結合させること(文字列結合)が変換ルールとして規定されており、データベースサーバ52に照会する必要がない場合もある。
このような場合、変換処理部34は多数の参照元データを一括SQL発行テーブル50に格納したりSQL文を編集することなく、またデータベースサーバ52に照会することもなく、必要な加工処理を施した後に対応データを第2のメモリファイル48上の必要な位置に格納すれば足りる(S34)。
例えば図4に示すように、入力データの項目1に該当する「銘柄コード」は、変換後もそのまま項目1として維持されるため、変換処理部34はこれらのデータを第1のメモリファイル46の項目1から第2のメモリファイル48の新項目1にそのままコピーする。
この場合でも、まとまった件数単位で一括処理できるため、1件のレコード単位で処理する場合に比べ高速化が図れる。
In the above, an example in which the corresponding data is replenished from the database server 52 based on the data of a certain data item has been described. However, depending on the data item, it can be applied to a predetermined item in the second memory file 48 as it is (simple transfer) In addition, there is a case where it is not necessary to make an inquiry to the database server 52 because the conversion rule is to combine data of different data items (character string combination).
In such a case, the conversion processing unit 34 performs the necessary processing without storing a large number of reference source data in the batch SQL issue table 50, editing the SQL statement, or querying the database server 52. After that, it is sufficient to store the corresponding data at a necessary position on the second memory file 48 (S34).
For example, as shown in FIG. 4, since the “brand code” corresponding to the item 1 of the input data is maintained as the item 1 as it is after the conversion, the conversion processing unit 34 stores these data in the first memory file 46. The item 1 is copied as it is to the new item 1 of the second memory file 48.
Even in this case, since batch processing can be performed in a unit of the number of cases, the processing speed can be increased as compared with the case of processing in units of one record.

ここで、上記した一括SQL発行処理方式の具体例について説明する。
図6は、変換ルールの編集例を示すものであり、極めて簡素な要求SQL文に基づき、比較的複雑な一括SQL文が生成される様子が描かれている。
図7のフローチャートに示すように、まず変換処理部34は、要求SQL文にORDER及びUNIONが存在するか否かを検査する(S40)。ORDER及びUNIONの有無によって、後述の通り一括SQL文の編集内容が異なるため、予め存在チェックを行っておくものである。
Here, a specific example of the batch SQL issue processing method described above will be described.
FIG. 6 shows an example of editing a conversion rule, and shows a state in which a relatively complicated batch SQL statement is generated based on an extremely simple request SQL statement.
As shown in the flowchart of FIG. 7, first, the conversion processing unit 34 checks whether or not ORDER and UNION exist in the request SQL statement (S40). Since the editing contents of the batch SQL statement differ depending on the presence or absence of ORDER and UNION as described later, the existence check is performed in advance.

つぎに変換処理部34は、要求SQL文から所定のキーワードを検索し(S42)、各キーワードに合わせて一括SQL文を編集すると共に、一括SQL発行テーブルのホスト配列編集を実行する(S46)。
以下に、各キーワードに係る編集内容を説明する。
Next, the conversion processing unit 34 searches for a predetermined keyword from the request SQL sentence (S42), edits the batch SQL sentence according to each keyword, and executes host array editing of the batch SQL issue table (S46).
Below, the edit content concerning each keyword is demonstrated.

まず、キーワードが「SELECT」の場合、直後に「W_PACK_SQL. SQL_RECORD_NO,」を編集する(図6の(1))。ここで「W_PACK_SQL」は一括SQL発行テーブルのことであり、一括SQL発行時の取得カラムに第1のメモリファイル46のレコード番号を追加する内容となる。ただし、WHERE条件内でのSELECT文(サブクエリ)の場合、上記の編集は行われない。
また、キーワードが「FROM」の場合、直後に「W_PACK_SQL,」を編集することにより、一括SQL発行テーブルとのJOIN型SQL文となされる(図6(2))。ただし、WHERE条件内でのSELECT文(サブクエリ)の場合、上記の編集は行われない。
キーワードが「WHERE」の場合、直後に「W_PACK_SQL. CUST_NO=:V1 AND W_PACK_SQL. WORK_ID=:V2 AND W_PACK_SQL.JOBLIST_ID=:V3 AND W_PACK_SQL.RULE_NO=:V4 AND(」を編集する(図6の(3))。ここで、V1〜V4は一括SQL発行テーブルの抽出条件キーを指定するものである。ただし、WHERE条件内でのSELECT文(サブクエリ)の場合、上記の編集は行われない。
キーワードが「;[n];」の場合、nに対応した項目値を第1のメモリファイル46から取得して一括SQL発行テーブルのホスト配列エリアに編集する。この際、「;[n];」(項目番号)を対応する一括SQL発行テーブルのカラム名に置き換えて一括SQL文に編集する(図6の(4))。
First, when the keyword is “SELECT”, “W_PACK_SQL.SQL_RECORD_NO,” is edited immediately ((1) in FIG. 6). Here, “W_PACK_SQL” is a batch SQL issue table, and is the content of adding the record number of the first memory file 46 to the acquisition column at the time of batch SQL issue. However, in the case of a SELECT statement (subquery) within the WHERE condition, the above editing is not performed.
Also, when the keyword is “FROM”, “W_PACK_SQL,” is edited immediately after that to make a JOIN type SQL statement with the batch SQL issue table (FIG. 6 (2)). However, in the case of a SELECT statement (subquery) within the WHERE condition, the above editing is not performed.
If the keyword is “WHERE”, immediately edit “W_PACK_SQL. CUST_NO =: V1 AND W_PACK_SQL.WORK_ID =: V2 AND W_PACK_SQL.JOBLIST_ID =: V3 AND W_PACK_SQL.RULE_NO =: V4 AND (” ((3 Here, V1 to V4 specify the extraction condition key of the batch SQL issue table, but the above editing is not performed in the case of a SELECT statement (subquery) within the WHERE condition.
When the keyword is “; [n];”, the item value corresponding to n is acquired from the first memory file 46 and edited in the host array area of the batch SQL issue table. At this time, “; [n];” (item number) is replaced with the column name of the corresponding batch SQL issue table and edited into a batch SQL statement ((4) in FIG. 6).

つぎに、予め検査しておいた「ORDER」、「UNION」の存在有無の組合せに応じて編集後SQL文の末尾に下記の編集を行う。
(1)要求SQL文に「ORDER」及び「UNION」の何れも存在しない場合
編集後SQL文の末尾に「)ORDR BY W_PACK_SQL. SQL_RECORD_NO」を編集する(図6(5))。
(2)要求SQL文に「ORDER」がなく「UNION」のみが存在する場合
処理無し(UNIONが存在する場合には取得カラムの順序が保証されるためORDER編集は不要となる)。
(3)要求SQL文に「ORDER」のみが存在し「UNION」がない場合
編集後SQL文の末尾に「)ORDR BY W_PACK_SQL. RECORD_NO, TBL-A. ITEM-1,…」を編集する。「TBL-A. ITEM-1,…」は、指定されたORDER条件をそのまま展開することを意味している(ASC, DESC展開もそのまま展開)。
(4)要求SQL文に「ORDER」及び「UNION」の両者が存在する場合
編集後SQL文の末尾に「)ORDR BY W_PACK_SQL. RECORD_NO, ITEM-1,…」を編集する。「ITEM-1,…」は、指定されたORDER条件をそのまま展開することを意味している(ASC, DESC展開もそのまま展開)。
Next, the following editing is performed at the end of the edited SQL sentence according to the combination of the presence / absence of “ORDER” and “UNION” checked in advance.
(1) When neither “ORDER” nor “UNION” exists in the request SQL statement Edit “) ORDR BY W_PACK_SQL.SQL_RECORD_NO” at the end of the edited SQL statement (FIG. 6 (5)).
(2) When there is no "ORDER" in the request SQL statement and only "UNION" exists No processing (If there is a UNION, the order of the acquisition columns is guaranteed, so ORDER editing is not necessary).
(3) When only "ORDER" exists in the request SQL statement and "UNION" does not exist Edit ") ORDR BY W_PACK_SQL. RECORD_NO, TBL-A. ITEM-1, ..." at the end of the edited SQL statement. "TBL-A. ITEM-1, ..." means that the specified ORDER condition is expanded as it is (ASC, DESC expansion is also expanded as it is).
(4) When both "ORDER" and "UNION" exist in the request SQL statement Edit ") ORDR BY W_PACK_SQL. RECORD_NO, ITEM-1, ..." at the end of the edited SQL statement. “ITEM-1,...” Means that the specified ORDER condition is expanded as it is (ASC and DESC expansion are also expanded as they are).

全てのキーワードに関して上記の編集処理が完了すると(S44)、一括SQL発行テーブルのホスト配列が、一括SQL発行テーブルに一括挿入される(S48)。
図8は、項目2の変数値が第1のメモリファイル46から一括SQL発行テーブルのホスト配列エリアにおけるITEM01にセットされ、それが一括SQL発行テーブル50に一括挿入されるイメージが描かれている。
この際、項目番号と一括SQL発行テーブル50のカラム名との対比表58がメモリ上に作成される。
When the above editing process is completed for all keywords (S44), the host array of the batch SQL issue table is batch inserted into the batch SQL issue table (S48).
FIG. 8 shows an image in which the variable value of item 2 is set from the first memory file 46 to ITEM01 in the host array area of the batch SQL issue table, and is collectively inserted into the batch SQL issue table 50.
At this time, a comparison table 58 between the item numbers and the column names of the batch SQL issue table 50 is created on the memory.

最後に、一括SQL文が一括FETCHによってデータベースサーバ52に発行され、その結果が第2のメモリファイル48に格納される(S50)。
図9は、この一括SQL文の発行から結果取得までの処理手順を示すフローチャートである。
S64の「OPEN CURSOR文」発行時に、一括SQL発行テーブルの抽出キーが指定される。
以下に、OPEN CURSOR文の具体例を示す。
「EXEC SQL
OPEN CUR01 USING :CUST-NO, :WORK-ID, :JOBLIST-ID, :RULE-NO
END-EXEC」
これは、一括SQL発行テーブルの抽出条件キーをセットして実行することを意味している(V1〜V4の実値を指定)。
Finally, a batch SQL statement is issued to the database server 52 by batch FETCH, and the result is stored in the second memory file 48 (S50).
FIG. 9 is a flowchart showing a processing procedure from issuance of the batch SQL statement to acquisition of the result.
When issuing the "OPEN CURSOR statement" in S64, the extraction key for the batch SQL issue table is specified.
A specific example of an OPEN CURSOR statement is shown below.
"EXEC SQL
OPEN CUR01 USING: CUST-NO,: WORK-ID,: JOBLIST-ID,: RULE-NO
END-EXEC "
This means that the extraction condition key of the batch SQL issue table is set and executed (the actual value of V1 to V4 is specified).

このデータ変換システム30にあっては、入力データについて1件単位で変換処理を行うのではなく、ある程度まとまった件数単位でデータベースサーバ52への照会が実行されるため、問合わせの回数を大幅に低減することができ、その分変換処理の高速化を実現することができる。
例えば、図11に示したデータ変換例の場合、従来の逐次変換方式によれば300件のレコードを変換するに際しデータベースサーバに対し合計1,500回(300件×5回)の照会が必要となるが、この発明による一括変換方式であれば僅か5回で済む計算となる。
この一括変換処理の対象となるレコードの件数は、コンピュータに搭載されたメモリ容量と対象となる入力データのデータ量との兼ね合いで決定され、予め基本設定記憶部40内に設定される。
In this data conversion system 30, the input data is not subjected to conversion processing on a case-by-case basis, but queries to the database server 52 are executed in a certain number of cases, so the number of inquiries is greatly increased. It is possible to reduce the speed of the conversion process.
For example, in the case of the data conversion example shown in FIG. 11, according to the conventional sequential conversion method, a total of 1,500 times (300 times × 5 times) is required for the database server when converting 300 records. In the case of the batch conversion method according to the present invention, the calculation is only required 5 times.
The number of records to be subjected to the batch conversion process is determined in consideration of the memory capacity installed in the computer and the data amount of the target input data, and is set in the basic setting storage unit 40 in advance.

このデータ変換システム30の場合、上記のように一度に変換処理すべきレコードの件数、及び各データ項目に係る変換ルールが外部データの形でシステムに与えられるため、これらの記述を変更することによって簡単に処理対象や動作を変更することが可能となる。
しかも、データベースに問合せを行う際には複数のデータを一括して取得するためのSQL文が自動生成されるため、現場のオペレータは従来の逐次処理の場合と同様の手軽さで変換ルール(要求SQL文)を定義することが可能となる。
さらに、データベースサーバ52から送信された複数件数分のデータについて自動的に整合化する機能を備えているため、誤ったデータ列が形成されることを未然に防止できる。
In the case of this data conversion system 30, since the number of records to be converted at a time as described above and the conversion rules related to each data item are given to the system in the form of external data, by changing these descriptions It is possible to easily change the processing target and operation.
In addition, when querying the database, SQL statements for acquiring multiple data at once are automatically generated, so operators in the field can use conversion rules (requests as easily as in conventional sequential processing). SQL statement) can be defined.
Furthermore, since a function for automatically aligning a plurality of pieces of data transmitted from the database server 52 is provided, it is possible to prevent an erroneous data string from being formed.

上記においては、このデータ変換システム30を約定管理システム10の受信データ変換システム12に適用した例を説明したが、送信データ変換システム16に適用することも可能である。
この場合、変換対象となる入力データはデータ照合システム14から出力された照合済の標準データであり、変換後の出力データは銀行内勘定系システム24が要求する独自フォーマットのデータとなる。
これを実現するためには、変換ルール記憶部42に標準データを変換するためのルールを出力データのデータ項目単位で登録しておけばよい。
また、このデータ変換システム30は、変換ルール記憶部42の変換ルール及び基本設定記憶部40の設定値を書き換えることにより、約定管理システム10以外のシステムにおいても適用可能である。
In the above, the example in which the data conversion system 30 is applied to the reception data conversion system 12 of the contract management system 10 has been described. However, the data conversion system 30 can also be applied to the transmission data conversion system 16.
In this case, the input data to be converted is the collated standard data output from the data collation system 14, and the converted output data is data in a unique format required by the bank account system 24.
In order to realize this, a rule for converting standard data may be registered in the conversion rule storage unit 42 for each data item of output data.
The data conversion system 30 can also be applied to systems other than the contract management system 10 by rewriting the conversion rules in the conversion rule storage unit 42 and the setting values in the basic setting storage unit 40.

上記においては、対象データ取込部32が、変換対象となる入力データをシステム30のローカルディスク内に設けられた入力データ記憶部38から取り込む例を説明したが、この発明はこれに限定されるものではない。
例えば、対象データ取込部32は、リモートマシンの所定のディレクトリに生成されたファイルをFTPにより監視・検知する機能を用い、他のコンピュータのディスクから所定件数分のレコードを抽出し、第1のメモリファイル46に格納することも可能である。
あるいは、対象データ取込部32は、MQ(メッセージキューイングシステム)で伝送されたキュー内メッセージを監視・検知する機能を用い、このキュー領域から所定件数分のレコードを抽出し、第1のメモリファイル46に格納することも可能である。
In the above, the example in which the target data capturing unit 32 captures input data to be converted from the input data storage unit 38 provided in the local disk of the system 30 has been described, but the present invention is limited to this. It is not a thing.
For example, the target data fetching unit 32 uses a function of monitoring and detecting a file generated in a predetermined directory of the remote machine by FTP, extracts a predetermined number of records from the disk of another computer, and extracts the first record It can also be stored in the memory file 46.
Alternatively, the target data capturing unit 32 uses a function for monitoring and detecting in-queue messages transmitted by the MQ (message queuing system), extracts a predetermined number of records from the queue area, and uses the first memory. It can also be stored in the file 46.

この発明に係るデータ変換システムが組み込まれた約定管理システムの全体構成を示す模式図である。It is a mimetic diagram showing the whole contract management system composition in which the data conversion system concerning this invention was built. このデータ変換システムの機能構成を示すブロック図である。It is a block diagram which shows the function structure of this data conversion system. このデータ変換システムにおける処理手順を示すフローチャートである。It is a flowchart which shows the process sequence in this data conversion system. 第1のメモリファイル及び第2のメモリファイルにおけるデータ格納のイメージを示す模式図である。It is a schematic diagram which shows the image of the data storage in a 1st memory file and a 2nd memory file. 整合化処理の具体例を示す模式図である。It is a schematic diagram which shows the specific example of a matching process. 変換ルールの自動編集例を示す説明図である。It is explanatory drawing which shows the example of automatic editing of a conversion rule. 一括SQL発行処理の詳細について説明するフローチャートである。It is a flowchart explaining the detail of batch SQL issue processing. 参照元データを一括SQL発行テーブルに一括挿入する際のイメージを示す模式図である。It is a schematic diagram which shows the image at the time of batch-inserting reference source data into a batch SQL issue table. 一括SQL文の発行から結果取得までの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence from issue of a batch SQL sentence to acquisition of a result. 従来のデータ変換処理システムの構成を示すブロック図である。It is a block diagram which shows the structure of the conventional data conversion processing system. 従来のデータ変換システムにおける変換処理の要領を示す概念図である。It is a conceptual diagram which shows the point of the conversion process in the conventional data conversion system.

符号の説明Explanation of symbols

10 約定管理システム
12 受信データ変換システム
14 データ照合システム
16 送信データ変換システム
18 銀行内ネットワーク
19 SWIFTネット
20 各種データ交換サービスネット
22 取引サーバ
23 銀行内ネットワーク
24 銀行内勘定系システム
30 データ変換システム
32 対象データ取込部
34 変換処理部
36 変換データ登録部
38 入力データ記憶部
40 基本設定記憶部
42 変換ルール記憶部
44 出力データ記憶部
46 第1のメモリファイル
48 第2のメモリファイル
50 一括SQL発行テーブル
52 データベースサーバ
58 項目番号と一括SQL発行テーブルのカラム名との対比表
10 Contract management system
12 Received data conversion system
14 Data verification system
16 Transmission data conversion system
18 Bank network
19 SWIFT Net
20 Various data exchange service nets
22 Trading server
23 Bank network
24 Bank account system
30 Data conversion system
32 Target data import section
34 Conversion processor
36 Conversion data register
38 Input data storage
40 Basic setting memory
42 Conversion rule storage
44 Output data storage
46 First memory file
48 Second memory file
50 Bulk SQL issue table
52 Database server
58 Comparison table between item number and column name of batch SQL issue table

Claims (2)

複数の入力データが格納された入力データ記憶部と、
一括処理をすべき入力データのレコード件数を予め設定しておく基本設定記憶部と、
入力データに基づいて所定形式の出力データを生成するために必要な処理の内容を規定した変換ルールを、出力データのデータ項目単位で格納しておく変換ルール記憶と、
変換処理の完了したデータを格納するための出力データ記憶部と、
上記基本設定記憶部を参照して一度に取り込むべきレコードの件数を取得した上で、上記入力データ記憶部からこの件数分のレコードを抽出し、第1のメモリファイルに格納する対象データ取込部と、
上記変換ルール記憶部から変換ルールをデータ項目単位で読み出すと共に、第1のメモリファイルに格納された対応データ項目の全レコードに係るデータに基づいて当該変換ルールに規定された処理を実行し、結果データを第2のメモリファイルの該当箇所に一括して格納する変換処理部と、
第2のメモリファイルに必要なデータ項目に係るデータが揃った時点で、各データを上記出力データ記憶部に移動させる変換データ登録部とを備えたデータ変換システムであって、
上記対象データ取込部、変換処理部及び変換データ登録部は、上記入力データ記憶部に格納された全レコードについて上記の処理を繰り返し、
さらに、上記変換ルールの一つとして、入力データの特定のデータ項目のに基づいてデータベースから関連データを逐次取得するための要求SQL文格納されている場合に、上記変換処理部は、
(1) 当該要求SQL文を編集し、一括SQL発行テーブルにセットされた複数件数分の参照元データに対応した結果データの一括送信を要求する内容の一括SQL文を自動生成する処理と、
(2) 第1のメモリファイルに格納された該当データ項目に係る全レコード分の値を抽出し、参照元データとして一括SQL発行テーブルにセットする処理と、
(3) 上記の一括SQL文を該当のデータベースに送信し、対応する結果データの送信を要求する処理と、
(4) データベースから送信された各結果データと各参照元データとを比較し、参照元データと結果データとが一対一で対応する場合には当該結果データを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが複数存在する場合には所定のルールに従って選択された一の結果データのみを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが存在しない場合にはデータの欠落を示すコードを第2のメモリファイルの該当箇所に記述する処理と、
を実行することを特徴とするデータ変換システム。
An input data storage unit storing a plurality of input data ;
A basic setting storage unit for presetting the number of records of input data to be collectively processed;
The conversion rule that defines the contents of the processing required to generate the output data in a predetermined format based on the input data, and the conversion rule storing unit for storing the data item unit of output data,
An output data storage unit for storing the converted data,
The target data fetching unit that acquires the number of records to be fetched at one time with reference to the basic setting storage unit, extracts the records for the number of records from the input data storage unit, and stores it in the first memory file When,
The conversion rule from the transformation rule storage unit reads the data item unit executes a process defined in the conversion rule based on data relating to all the records of the corresponding data items stored in the first memory file, the result A conversion processing unit that collectively stores data in corresponding portions of the second memory file;
A data conversion system comprising a conversion data registration unit that moves each data to the output data storage unit when the data related to the necessary data items is prepared in the second memory file,
The target data capturing unit, the conversion processing unit, and the conversion data registration unit repeat the above processing for all records stored in the input data storage unit,
Furthermore, as one of the conversion rules , when a request SQL statement for sequentially acquiring related data from the database based on the value of a specific data item of the input data is stored , the conversion processing unit,
(1) Edit the request SQL statement and automatically generate a batch SQL statement with a content requesting batch transmission of result data corresponding to multiple reference source data set in the batch SQL issue table;
(2) a process of extracting a value of for all records relating to the corresponding data items stored in the first memory file, is set to batch SQL issuance table as reference source data,
(3) Sending the above batch SQL statement to the corresponding database and requesting transmission of the corresponding result data ;
(4) Each result data transmitted from the database is compared with each reference source data. When the reference source data and the result data correspond one-to-one, the result data is stored in the corresponding location of the second memory file. When there are a plurality of result data for the reference source data, only one result data selected according to a predetermined rule is stored in the corresponding portion of the second memory file, and there is no result data for the reference source data In some cases, a process for describing a code indicating data loss in a corresponding portion of the second memory file ;
The data conversion system characterized by performing .
コンピュータを、
複数の入力データが格納された入力データ記憶部、
一括処理をすべき入力データのレコード件数を予め設定しておく基本設定記憶部、
入力データに基づいて所定形式の出力データを生成するために必要な処理の内容を規定した変換ルールを、出力データのデータ項目単位で格納しておく変換ルール記憶
変換処理の完了したデータを格納するための出力データ記憶部、
上記基本設定記憶部を参照して一度に取り込むべきレコードの件数を取得した上で、上記入力データ記憶部からこの件数分のレコードを抽出し、第1のメモリファイルに格納する対象データ取込部
上記変換ルール記憶部から変換ルールをデータ項目単位で読み出すと共に、第1のメモリファイルに格納された対応データ項目の全レコードに係るデータに基づいて当該変換ルールに規定された処理を実行し、結果データを第2のメモリファイルの該当箇所に一括して格納する変換処理部
第2のメモリファイルに必要なデータ項目に係るデータが揃った時点で、各データを上記出力データ記憶部に移動させる変換データ登録部として機能させるデータ変換プログラムであって、
上記対象データ取込部、変換処理部及び変換データ登録部は、上記入力データ記憶部に格納された全レコードについて上記の処理を繰り返し、
さらに、上記変換ルールの一つとして、入力データの特定のデータ項目のに基づいてデータベースから関連データを逐次取得するための要求SQL文格納されている場合に、上記変換処理部は、
(1) 当該要求SQL文を編集し、一括SQL発行テーブルにセットされた複数件数分の参照元データに対応した結果データの一括送信を要求する内容の一括SQL文を自動生成する処理と、
(2) 第1のメモリファイルに格納された該当データ項目に係る全レコード分の値を抽出し、参照元データとして一括SQL発行テーブルにセットする処理と、
(3) 上記の一括SQL文を該当のデータベースに送信し、対応する結果データの送信を要求する処理と、
(4) データベースから送信された各結果データと各参照元データとを比較し、参照元データと結果データとが一対一で対応する場合には当該結果データを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが複数存在する場合には所定のルールに従って選択された一の結果データのみを第2のメモリファイルの該当箇所に格納し、参照元データに対する結果データが存在しない場合にはデータの欠落を示すコードを第2のメモリファイルの該当箇所に記述する処理と、
を実行することを特徴とするデータ変換プログラム。
Computer
An input data storage unit storing a plurality of input data ;
A basic setting storage unit that presets the number of records of input data to be batch processed,
Conversion rule storing unit for storing the data item unit of conversion rules, output data defining the content of the processing required to generate the output data in a predetermined format based on the input data,
An output data storage unit for storing the converted data,
The target data fetching unit that acquires the number of records to be fetched at one time with reference to the basic setting storage unit, extracts the records for the number of records from the input data storage unit, and stores it in the first memory file ,
The conversion rule from the transformation rule storage unit reads the data item unit executes a process defined in the conversion rule based on data relating to all the records of the corresponding data items stored in the first memory file, the result A conversion processing unit that collectively stores data in corresponding portions of the second memory file;
A data conversion program that functions as a conversion data registration unit that moves each data to the output data storage unit when the data related to the necessary data items is prepared in the second memory file,
The target data capturing unit, the conversion processing unit, and the conversion data registration unit repeat the above processing for all records stored in the input data storage unit,
Furthermore, as one of the conversion rules , when a request SQL statement for sequentially acquiring related data from the database based on the value of a specific data item of the input data is stored , the conversion processing unit,
(1) Edit the request SQL statement and automatically generate a batch SQL statement with a content requesting batch transmission of result data corresponding to multiple reference source data set in the batch SQL issue table;
(2) a process of extracting a value of for all records relating to the corresponding data items stored in the first memory file, is set to batch SQL issuance table as reference source data,
(3) Sending the above batch SQL statement to the corresponding database and requesting transmission of the corresponding result data ;
(4) Each result data transmitted from the database is compared with each reference source data. When the reference source data and the result data correspond one-to-one, the result data is stored in the corresponding location of the second memory file. When there are a plurality of result data for the reference source data, only one result data selected according to a predetermined rule is stored in the corresponding portion of the second memory file, and there is no result data for the reference source data In some cases, a process for describing a code indicating data loss in a corresponding portion of the second memory file ;
The data conversion program characterized by performing this .
JP2005099719A 2005-03-30 2005-03-30 Data conversion system and data conversion program Expired - Fee Related JP4603401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005099719A JP4603401B2 (en) 2005-03-30 2005-03-30 Data conversion system and data conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005099719A JP4603401B2 (en) 2005-03-30 2005-03-30 Data conversion system and data conversion program

Publications (2)

Publication Number Publication Date
JP2006277642A JP2006277642A (en) 2006-10-12
JP4603401B2 true JP4603401B2 (en) 2010-12-22

Family

ID=37212297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005099719A Expired - Fee Related JP4603401B2 (en) 2005-03-30 2005-03-30 Data conversion system and data conversion program

Country Status (1)

Country Link
JP (1) JP4603401B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750608A (en) * 2012-05-22 2012-10-24 山西优府信息技术开发有限公司 Batch registering system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011053891A (en) * 2009-09-01 2011-03-17 Toshiba Corp Method and program for storing communication data in relational database
CN104778200A (en) * 2015-01-13 2015-07-15 东莞中山大学研究院 Heterogeneous processing big data retrieval method combining historical data
WO2023021863A1 (en) * 2021-08-19 2023-02-23 株式会社Yuimedi Conversion system, conversion program, and conversion method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000076288A (en) * 1998-09-01 2000-03-14 Oki Electric Ind Co Ltd Database management system
JP2000285188A (en) * 1999-03-31 2000-10-13 Nkk Corp Automatic collating device and storage medium recording program therefor
JP2005011049A (en) * 2003-06-19 2005-01-13 Nec Soft Ltd Database integration device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2798118B2 (en) * 1995-03-29 1998-09-17 日本電気株式会社 Database query statement creation device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000076288A (en) * 1998-09-01 2000-03-14 Oki Electric Ind Co Ltd Database management system
JP2000285188A (en) * 1999-03-31 2000-10-13 Nkk Corp Automatic collating device and storage medium recording program therefor
JP2005011049A (en) * 2003-06-19 2005-01-13 Nec Soft Ltd Database integration device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750608A (en) * 2012-05-22 2012-10-24 山西优府信息技术开发有限公司 Batch registering system

Also Published As

Publication number Publication date
JP2006277642A (en) 2006-10-12

Similar Documents

Publication Publication Date Title
US11593369B2 (en) Managing data queries
CN1811757B (en) System and method for locating pages on the world wide web and for locating documents from a network of computers
US9116955B2 (en) Managing data queries
CN111400408A (en) Data synchronization method, device, equipment and storage medium
CN106126648B (en) It is a kind of based on the distributed merchandise news crawler method redo log
US20010018686A1 (en) Database processing method and apparatus using handle
CN105144080A (en) System for metadata management
US8661022B2 (en) Database management method and system
US10089313B2 (en) Conversion of data integration system files
US7444344B2 (en) Method to increase subscription scalability
CN105550206B (en) The edition control method and device of structured query sentence
JP2004110219A (en) Data processing system and join processing method
CN111046041B (en) Data processing method and device, storage medium and processor
JP4603401B2 (en) Data conversion system and data conversion program
CN103353901A (en) Orderly table data management method and system based on Hadoop distributed file system (HDFS)
CN116016628A (en) API gateway buried point analysis method and device
US9092338B1 (en) Multi-level caching event lookup
JP5096775B2 (en) Data processing system
CN116501761A (en) Query optimization method, device and storage medium
US11442758B2 (en) Integration flow execution renew
CN112099827B (en) Control method and device for automatic updating of plug-in browser
CN113625967A (en) Data storage method, data query method and server
JP2000235514A (en) Method and system for retrieving information and recording medium recording information retrieval processing program
US10839028B2 (en) System for querying web pages using a real time entity authentication engine
JP2009122995A (en) Management system and management method of related process record

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070920

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100518

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100716

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100928

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101001

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131008

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees