JP2001022715A - Data format conversion mechanism and conversion method under multi-platform environment - Google Patents
Data format conversion mechanism and conversion method under multi-platform environmentInfo
- Publication number
- JP2001022715A JP2001022715A JP11198326A JP19832699A JP2001022715A JP 2001022715 A JP2001022715 A JP 2001022715A JP 11198326 A JP11198326 A JP 11198326A JP 19832699 A JP19832699 A JP 19832699A JP 2001022715 A JP2001022715 A JP 2001022715A
- Authority
- JP
- Japan
- Prior art keywords
- data
- record
- data format
- mainframe
- 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.)
- Pending
Links
Landscapes
- Multi Processors (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】
【課題】 メインフレームのデータ形式をもつデータを
オープンシステムのデータ形式をもつデータに変換する
変換処理を高速化し、ホストコンピュータの負荷を軽減
する。
【解決手段】 ディスクサブシステム9の中間ファイル
6は、ホストコンピュータ1及び2によって共用される
ファイルであり、メインフレームのデータ形式をもつフ
ァイルである。オープンファイル7はオープンシステム
のデータ形式をもつファイルである。チャネルアダプタ
11のデータ変換機構12,13は、ハードウェアによ
りデータ形式の変換をする機構である。データ変換機構
12は、中間ファイル6を読み込み、オープンファイル
7のデータ形式に変換してホストコンピュータ2へ転送
する。またデータ変換機構13は、オープンファイル7
を読み込み、中間ファイル6のデータ形式に変換してホ
ストコンピュータ2へ転送する。
(57) [Summary] [PROBLEMS] To speed up conversion processing for converting data having a mainframe data format into data having an open system data format, and reduce the load on a host computer. An intermediate file of a disk subsystem is a file shared by host computers and has a mainframe data format. The open file 7 is a file having an open system data format. The data conversion mechanisms 12 and 13 of the channel adapter 11 are mechanisms for converting a data format by hardware. The data conversion mechanism 12 reads the intermediate file 6, converts it into the data format of the open file 7, and transfers it to the host computer 2. In addition, the data conversion mechanism 13 stores the open file 7
Is read, converted into the data format of the intermediate file 6, and transferred to the host computer 2.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、メインフレームシ
ステムとオープンシステムとが共存するマルチプラット
フォーム環境下において、メインフレームのデータ形式
をもつデータとオープンシステムのデータ形式をもつデ
ータとの間でデータ形式の変換をする変換機構に係わ
り、特にハードウェア制御により高速の変換を実現する
データ形式変換機構に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data format between data having a mainframe data format and data having an open system data format in a multi-platform environment where a mainframe system and an open system coexist. More particularly, the present invention relates to a data format conversion mechanism that realizes high-speed conversion by hardware control.
【0002】[0002]
【従来の技術】従来マルチプラットフォーム環境下にお
いて、メインフレームのデータ形式をもつデータとオー
プンシステムのデータ形式をもつデータとの間でデータ
形式の変換をする場合、オープンシステム側のソフトウ
ェアにより、データ形式の変換を行っている。2. Description of the Related Art Conventionally, in a multi-platform environment, when a data format is converted between data having a mainframe data format and data having an open system data format, the data format is converted by software on the open system side. Has been converted.
【0003】図8は、ホストコンピュータ1,2とディ
スクサブシステム4から成るマルチプラットフォーム環
境のシステムの構成図である。1はメインフレーム側の
ホストコンピュータである。2はオープンシステム側の
ホストコンピュータであり、ソフトウェアのコード変換
機能3を有している。ディスクサブシステム4の記憶デ
バイスは、メインフレーム用のデータベース5、中間フ
ァイル6、オープンファイル7及びオープンシステム用
のデータベース8を格納している。中間ファイル6は、
ホストコンピュータ1及びホストコンピュータ2によっ
て共用され、メインフレームのデータ形式をもつファイ
ルである。オープンファイル7は、UNIXファイルな
どオープンシステムのデータ形式をもつファイルであ
る。(注)UNIXはX/Open社の米国及びその他
の国における登録商標である。FIG. 8 is a configuration diagram of a system in a multi-platform environment including host computers 1 and 2 and a disk subsystem 4. Reference numeral 1 denotes a host computer on the mainframe side. Reference numeral 2 denotes a host computer on the open system side, which has a code conversion function 3 of software. The storage device of the disk subsystem 4 stores a mainframe database 5, an intermediate file 6, an open file 7, and an open system database 8. Intermediate file 6 is
This file is shared by the host computer 1 and the host computer 2 and has a mainframe data format. The open file 7 is a file having an open system data format such as a UNIX file. (Note) UNIX is a registered trademark of X / Open in the United States and other countries.
【0004】メインフレームデータをオープンシステム
データに変換する場合、まずホストコンピュータ1のユ
ーティリティは、データベース5上のデータを読み込ん
で中間ファイル6に書き込む。次にホストコンピュータ
2のコード変換機能3は、中間ファイル6を読み込んで
オープンシステムのデータ形式のデータに変換した後、
オープンファイル7に書き込む。次にホストコンピュー
タ2のユーティリティは、オープンファイル7を読み込
んでそのデータをデータベース8にロードする。オープ
ンシステムデータをメインフレームデータに変換する場
合には上記と逆の手順により、実行される。すなわちコ
ード変換機能3は、オープンファイル7を読み込んでメ
インフレームのデータ形式のデータに変換した後、中間
ファイル6に書き込む。When converting mainframe data into open system data, first, a utility of the host computer 1 reads data in the database 5 and writes it in the intermediate file 6. Next, the code conversion function 3 of the host computer 2 reads the intermediate file 6 and converts it into data in the open system data format.
Write to open file 7. Next, the utility of the host computer 2 reads the open file 7 and loads the data into the database 8. When the open system data is converted to the mainframe data, the conversion is performed in the reverse procedure. That is, the code conversion function 3 reads the open file 7, converts it into data in the data format of the mainframe, and then writes it into the intermediate file 6.
【0005】[0005]
【発明が解決しようとする課題】上記従来技術によれ
ば、中間ファイル6とオープンファイル7との間のデー
タ変換をホストコンピュータ2のソフトウェアによって
実行するため、高速化できず、ホストコンピュータ2の
かなりの負荷となっている。According to the above-mentioned prior art, since the data conversion between the intermediate file 6 and the open file 7 is executed by the software of the host computer 2, the speed cannot be increased, and the host computer 2 is considerably slow. Load.
【0006】本発明の目的は、上記データ形式の変換を
高速化するとともにオープンシステム側コンピュータの
負荷を軽減することにある。An object of the present invention is to speed up the conversion of the data format and reduce the load on the computer on the open system side.
【0007】[0007]
【課題を解決するための手段】本発明は、データ形式の
変換機能をホストコンピュータから切り離したハードウ
ェアによって実現し、ホストコンピュータの負荷を軽減
する。According to the present invention, a data format conversion function is realized by hardware separated from a host computer, thereby reducing the load on the host computer.
【0008】[0008]
【発明の実施の形態】以下本発明の実施形態について図
面を用いて説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0009】図1は、本実施形態のディスクサブシステ
ム9の構成図である。ディスクサブシステム9には、メ
インフレームのホストコンピュータ1及びオープンシス
テムのホストコンピュータ2が接続されている。メイン
フレーム用のチャネルアダプタ10は、ホストコンピュ
ータ1のチャネルインタフェースを有し、ホストコンピ
ュータ1と記憶デバイス間のデータ転送を制御する。オ
ープンシステム用のチャネルアダプタ11は、ホストコ
ンピュータ2のチャネルインタフェースを有し、ホスト
コンピュータ2と記憶デバイス間のデータ転送を制御す
る。FIG. 1 is a configuration diagram of the disk subsystem 9 of the present embodiment. The disk subsystem 9 is connected to a mainframe host computer 1 and an open system host computer 2. The mainframe channel adapter 10 has a channel interface of the host computer 1 and controls data transfer between the host computer 1 and a storage device. The open system channel adapter 11 has a channel interface of the host computer 2 and controls data transfer between the host computer 2 and a storage device.
【0010】記憶デバイスは、磁気ディスクドライブ、
光ディスクドライブなどを含み、ホストコンピュータ
1,2からはボリュームとして認識される。メインフレ
ーム用のデータベース5は、ホストコンピュータ1から
のみアクセス可能なボリューム上に格納されるデータベ
ースである。オープンシステム用のデータベース8は、
ホストコンピュータ2からのみアクセス可能なボリュー
ム上に格納されるデータベースである。オープンファイ
ル7は、UNIXファイルなどであり、ホストコンピュ
ータ2からのみアクセス可能なボリューム上に格納され
るシーケンシャルファイルである。中間ファイル6は、
ホストコンピュータ1及びホストコンピュータ2で共用
するボリューム上に格納され、ホストコンピュータ1,
2双方からアクセス可能なシーケンシャルファイルであ
り、メインフレームシステムのレコード形式を有する。
ホストコンピュータ1のデータベース管理システムが提
供するユーティリティは、データベース5のデータを読
み込んで中間ファイル6を出力し、また中間ファイル6
を読み込んでそのデータをデータベース5へロードす
る。ホストコンピュータ2のデータベース管理システム
が提供するユーティリティは、データベース8のデータ
を読み込んでオープンファイル7を出力し、またオープ
ンファイル7を読み込んでそのデータをデータベース8
にロードする。[0010] The storage device is a magnetic disk drive,
It includes an optical disk drive and the like, and is recognized as a volume by the host computers 1 and 2. The mainframe database 5 is a database stored on a volume accessible only from the host computer 1. Database 8 for open systems
This is a database stored on a volume accessible only from the host computer 2. The open file 7 is a UNIX file or the like, and is a sequential file stored on a volume accessible only from the host computer 2. Intermediate file 6 is
Stored on a volume shared by the host computer 1 and the host computer 2,
2 is a sequential file accessible from both sides, and has a mainframe system record format.
The utility provided by the database management system of the host computer 1 reads the data of the database 5 and outputs the intermediate file 6,
And loads the data into the database 5. The utility provided by the database management system of the host computer 2 reads the data of the database 8 and outputs the open file 7, and reads the open file 7 and stores the data in the database 8
To load.
【0011】チャネルアダプタ11は、データ変換機構
12及びデータ変換機構13のハードウェア機構を有す
る。データ変換機構12は、メインフレームのデータ形
式を有する中間ファイル6を読み込み、オープンシステ
ムのデータ形式をもつデータに変換してホストコンピュ
ータ2へ転送する。ホストコンピュータ2は、このデー
タをオープンファイル7に書き込む。データ変換機構1
3は、オープンファイル7のデータを読み込んだホスト
コンピュータ2からそのデータを受信し、メインフレー
ムのデータ形式をもつデータに変換して中間ファイル6
に格納する。The channel adapter 11 has a data conversion mechanism 12 and a hardware mechanism of the data conversion mechanism 13. The data conversion mechanism 12 reads the intermediate file 6 having the data format of the mainframe, converts the data into data having the data format of the open system, and transfers the data to the host computer 2. The host computer 2 writes this data in the open file 7. Data conversion mechanism 1
3 receives the data of the open file 7 from the host computer 2 which has read the data, converts the data into data having a mainframe data format, and converts the data into an intermediate file 6.
To be stored.
【0012】ディスクサブシステム9のうちチャネルア
ダプタ10及びチャネルアダプタ11はディスク制御装
置(DKC)に実装され、データベース5、中間ファイ
ル6、オープンファイル7及びデータベース8はディス
ク装置(DKU)に格納される情報である。In the disk subsystem 9, the channel adapter 10 and the channel adapter 11 are mounted on a disk controller (DKC), and the database 5, the intermediate file 6, the open file 7, and the database 8 are stored in the disk unit (DKU). Information.
【0013】メインフレームシステムとオープンシステ
ムではレコードのデータ形式が異なり、また使用される
キャラクタコードが異なる。図2(a)はメインフレー
ムシステムのレコード形式を示す図、図2(b)はオー
プンシステムのレコード形式を示す図である。メインフ
レームシステムではレコードの先頭にレコード長を付加
しており、またキャラクタデータはEBCDICを採用
している。一方オープンシステムでは、Carriage Retur
n (CR) またはLine Feed (LF) コードを挿入することに
よってレコード境界を示しており、またキャラクタデー
タはASCIIコードを使用している。他データはバイ
ナリデータ、16進データなどキャラクタデータ以外の
データを示す。メインフレームとオープンシステム間で
データを交換するためには、レコード形式変換とキャラ
クタコード変換の両方を実行する必要がある。またキャ
ラクタコードの変換をするために、あらかじめキャラク
タデータの先頭位置(バイト位置)とデータ長が指定さ
れなければならない。The mainframe system and the open system use different record data formats and use different character codes. FIG. 2A is a diagram showing a record format of a mainframe system, and FIG. 2B is a diagram showing a record format of an open system. In the mainframe system, a record length is added to the beginning of a record, and EBCDIC is used for character data. On the other hand, in the open system, Carriage Retur
Record boundaries are indicated by inserting n (CR) or Line Feed (LF) codes, and character data uses ASCII codes. Other data indicates data other than character data such as binary data and hexadecimal data. In order to exchange data between the mainframe and the open system, it is necessary to perform both record format conversion and character code conversion. In order to convert the character code, the head position (byte position) and the data length of the character data must be specified in advance.
【0014】図3は、メインフレームデータをオープン
システムデータに変換するデータ変換機構12のハード
ウェア構成を示す図である。入力バッファ18は、中間
ファイル6から入力されたデータを格納し、レコードの
先頭に格納されているレコード長を抽出する。バイト数
演算回路16は、入力バッファ18から出力されるデー
タのバイト数を計数し、抽出したレコード長と比較す
る。CR/LF生成回路17は、レコード境界に達した
とき生成したCR/LFを出力する。キャラクタ検出回
路34は、入力バッファ18に入力されるデータがキャ
ラクタデータであることを検出する。EBCDIC−A
SCIIキャラクタ変換回路19は、キャラクタデータ
を1バイトずつASCIIコードに変換して出力する。
出力バッファ20は、レコードの最後にCR/LFを付
加した後、データを出力する。FIG. 3 is a diagram showing a hardware configuration of the data conversion mechanism 12 for converting mainframe data into open system data. The input buffer 18 stores the data input from the intermediate file 6, and extracts the record length stored at the head of the record. The byte number calculation circuit 16 counts the number of bytes of the data output from the input buffer 18 and compares it with the extracted record length. The CR / LF generation circuit 17 outputs the generated CR / LF when the record boundary is reached. The character detection circuit 34 detects that the data input to the input buffer 18 is character data. EBCDIC-A
The SCII character conversion circuit 19 converts the character data into ASCII codes on a byte-by-byte basis and outputs them.
The output buffer 20 outputs data after adding CR / LF to the end of the record.
【0015】メインフレームデータをオープンシステム
データに変換する手順は次の通りである。チャネルアダ
プタ11は、ホストコンピュータ2から中間ファイル6
に関するリードコマンドを受け取る。このコマンドには
レコード中のキャラクタデータが存在する先頭位置とデ
ータ長が設定されている。チャネルアダプタ11は、こ
のコマンドに従って中間ファイル6から読み込んだデー
タを入力バッファ18に入力する。入力バッファ18
は、レコードの先頭に付加されているレコード長を抽出
してバイト数演算回路16に渡す。バイト数演算回路1
6は、レコード長に続くデータ入力を検出しそのバイト
数を計数し、このレコード長と比較する。キャラクタ検
出回路34は、レコード長に続いて入力されるデータバ
イトを検出し、キャラクタデータのデータ長だけオン信
号を出力する。この結果、入力バッファ18中のキャラ
クタデータ以外の他データは直接、出力バツファ20に
転送され、キャラクタデータについては直接出力が抑止
され1バイトずつEBCDIC−ASCIIキャラクタ
変換回路19に入力される。EBCDIC−ASCII
キャラクタ変換回路19は、入力されたキャラクタのコ
ードをASCIIコードに変換して出力する。レコード
境界に達したときバイト数演算回路16がオン信号を出
力するので、CR/LF生成回路17がCR/LFを出
力し、出力バッファ20がレコードにCR/LFを付加
してホストコンピュータ2へ転送する。ホストコンピュ
ータ2は、形式変換されたレコードをオープンファイル
7にライトする。The procedure for converting mainframe data into open system data is as follows. The channel adapter 11 transmits the intermediate file 6 from the host computer 2.
Receive a read command for In this command, the head position where the character data in the record exists and the data length are set. The channel adapter 11 inputs the data read from the intermediate file 6 to the input buffer 18 according to this command. Input buffer 18
Extracts the record length added to the head of the record and passes it to the byte number calculation circuit 16. Byte number calculation circuit 1
No. 6 detects the data input following the record length, counts the number of bytes, and compares it with the record length. The character detection circuit 34 detects a data byte input following the record length, and outputs an ON signal for the data length of the character data. As a result, data other than the character data in the input buffer 18 is directly transferred to the output buffer 20, and the output of the character data is directly suppressed and input to the EBCDIC-ASCII character conversion circuit 19 byte by byte. EBCDIC-ASCII
The character conversion circuit 19 converts the input character code into an ASCII code and outputs it. When the record boundary is reached, the byte count calculation circuit 16 outputs an ON signal, so that the CR / LF generation circuit 17 outputs CR / LF, and the output buffer 20 adds CR / LF to the record and sends it to the host computer 2. Forward. The host computer 2 writes the converted record in the open file 7.
【0016】図4は、オープンシステムデータをメイン
フレームデータに変換するデータ変換機構13のハード
ウェア構成を示す図である。入力バッファ22は、ホス
トコンピュータ2から入力されたデータを格納する。キ
ャラクタ検出回路34は、データ変換機構12のキャラ
クタ検出回路34と同じである。CR/LF検出回路3
5は、入力バッファ22に入力されるデータを1バイト
ずつCR/LFと比較し、CR/LFを検出したときC
R/LF検出信号を出力し、CR/LF以外のデータバ
イトのときバイト数カウントアップ信号を出力する。A
SCII−EBCDICキャラクタ変換回路23は、キ
ャラクタデータを1バイトずつEBCDICに変換して
出力する。レコード長演算回路21は、CR/LF検出
回路35が出力するバイト数カウントアップ信号に従っ
て入力バッファ22から出力されるデータのバイト数を
計数し、CR/LF検出によってレコード境界に達した
とき計数したバイト数をレコード長として出力する。出
力バッファ24は、入力バッファ22又はASCII−
EBCDICキャラクタ変換回路23から出力されるデ
ータを受け取り、レコード境界に達したときレコードの
先頭にレコード長を付加した後、データを出力する。FIG. 4 is a diagram showing a hardware configuration of the data conversion mechanism 13 for converting open system data into mainframe data. The input buffer 22 stores data input from the host computer 2. The character detection circuit 34 is the same as the character detection circuit 34 of the data conversion mechanism 12. CR / LF detection circuit 3
5 compares the data input to the input buffer 22 byte by byte with CR / LF, and detects CR / LF when C / LF is detected.
It outputs an R / LF detection signal and outputs a byte count up signal for data bytes other than CR / LF. A
The SCII-EBCDIC character conversion circuit 23 converts the character data into EBCDIC one byte at a time and outputs it. The record length calculation circuit 21 counts the number of bytes of data output from the input buffer 22 in accordance with the byte count up signal output from the CR / LF detection circuit 35, and counts when a record boundary is reached by CR / LF detection. Output the number of bytes as the record length. The output buffer 24 is the input buffer 22 or the ASCII-
The data output from the EBCDIC character conversion circuit 23 is received, and when a record boundary is reached, the data is output after adding a record length to the beginning of the record.
【0017】オープンシステムデータをメインフレーム
データに変換する手順は次の通りである。チャネルアダ
プタ11は、ホストコンピュータ2から中間ファイル6
へのライトコマンドを受け取る。このコマンドにはレコ
ード中のキャラクタデータが存在する先頭位置とデータ
長が設定されている。チャネルアダプタ11は、このコ
マンドに従ってホストコンピュータ2から受け取ったデ
ータを入力バッファ22に入力する。CR/LF検出回
路35は、入力バッファ22に入力されたデータについ
て1バイトずつCR/LFを探索し、データバイトがC
R/LFでなければバイト数カウントアップ信号をオン
にする。レコード長演算回路21は、バイト数カウント
アップ信号を計数する。キャラクタ検出回路34は、入
力バッファ22に入力されるデータバイトを検出し、キ
ャラクタデータのデータ長だけオン信号を出力する。こ
の結果、入力バッファ22中のキャラクタデータ以外の
他データは直接、出力バッファ24に転送され、キャラ
クタデータについては直接出力が抑止され1バイトずつ
ASCII−EBCDICキャラクタ変換回路23に入
力される。ASCII−EBCDICキャラクタ変換回
路23は、入力されたキャラクタのコードをEBCDI
Cに変換して出力する。CR/LF検出回路35がCR
/LFを検出したとき、CR/LF検出信号をオンに
し、レコード長演算回路21は計数したバイト数をレコ
ード長として出力する。これによってデータ変換機構1
3は、レコードの先頭にレコード長を付加し、出力バッ
ファ24に格納された1レコード分のデータを中間ファ
イル6に出力する。The procedure for converting open system data into mainframe data is as follows. The channel adapter 11 transmits the intermediate file 6 from the host computer 2.
Receive a write command to In this command, the head position where the character data in the record exists and the data length are set. The channel adapter 11 inputs the data received from the host computer 2 to the input buffer 22 according to this command. The CR / LF detection circuit 35 searches the data input to the input buffer 22 for CR / LF one byte at a time,
If it is not R / LF, the byte count up signal is turned on. The record length calculation circuit 21 counts the byte count up signal. The character detection circuit 34 detects a data byte input to the input buffer 22, and outputs an ON signal for the data length of the character data. As a result, data other than the character data in the input buffer 22 is directly transferred to the output buffer 24, the output of the character data is directly suppressed, and the character data is input to the ASCII-EBCDIC character conversion circuit 23 byte by byte. The ASCII-EBCDIC character conversion circuit 23 converts the code of the input character into an EBCDI
Convert to C and output. CR / LF detection circuit 35
When / LF is detected, the CR / LF detection signal is turned on, and the record length calculation circuit 21 outputs the counted number of bytes as the record length. Thereby, the data conversion mechanism 1
Reference numeral 3 adds a record length to the beginning of the record, and outputs one record of data stored in the output buffer 24 to the intermediate file 6.
【0018】図5は、CR/LF検出回路35のハード
ウェア構成を示す図である。入力バッファ22から読み
込んだ1バイトの入力データ25とCR/LFコード2
6とを比較回路27によって比較する。両者が一致すれ
ばレコード境界到達を示すため、CR/LF検出信号を
出力する。両者が一致しなければ、バイト数カウントア
ップ信号を出力する。FIG. 5 is a diagram showing a hardware configuration of the CR / LF detection circuit 35. 1-byte input data 25 read from input buffer 22 and CR / LF code 2
6 is compared by a comparison circuit 27. If they match, a CR / LF detection signal is output to indicate that the record boundary has been reached. If they do not match, a byte count up signal is output.
【0019】図6は、EBCDIC−ASCIIキャラ
クタ変換回路19のハードウェア構成を示す図である。
EBCDIC−ASCIIキャラクタ変換回路19は、
1バイトのEBCDICを入力すると、アドレス変換回
路33によって、入力されたEBCDICをコード変換
テーブル30が搭載されるメモリのアドレスに変換し、
コード変換テーブル30からそのアドレスによってアク
セスされる1バイトのASCIIコードを読み出して出
力する。FIG. 6 is a diagram showing a hardware configuration of the EBCDIC-ASCII character conversion circuit 19.
The EBCDIC-ASCII character conversion circuit 19
When 1-byte EBCDIC is input, the input EBCDIC is converted by an address conversion circuit 33 into an address of a memory in which the code conversion table 30 is mounted.
A one-byte ASCII code accessed by the address is read from the code conversion table 30 and output.
【0020】図7は、ASCII−EBCDICキャラ
クタ変換回路23のハードウェア構成を示す図である。
ASCII−EBCDICキャラクタ変換回路23は、
1バイトのASCIIコードを入力すると、アドレス変
換回路33によって、入力されたASCIIコードをコ
ード変換テーブル31が搭載されるメモリのアドレスに
変換し、コード変換テーブル31からそのアドレスによ
ってアクセスされる1バイトのEBCDICを読み出し
て出力する。FIG. 7 is a diagram showing a hardware configuration of the ASCII-EBCDIC character conversion circuit 23.
The ASCII-EBCDIC character conversion circuit 23
When a one-byte ASCII code is input, the input ASCII code is converted by an address conversion circuit 33 into an address of a memory in which the code conversion table 31 is mounted. Reads and outputs EBCDIC.
【0021】なお上記実施形態はチャネルアダプタ11
にデータ変換機構12及びデータ変換機構13を設け、
中間ファイル6がメインフレームのレコード形式のデー
タを有し、オープンファイル7がオープンシステムのレ
コード形式のデータを有するものとしたが、チャネルア
ダプタ10にデータ変換機構12及びデータ変換機構1
3を設け、オープンファイル7の代わりにメインフレー
ムのレコード形式のデータを格納するファイルを設け、
中間ファイル6がオープンシステムのレコード形式のデ
ータを有するものとしても本発明を実施できる。またデ
ータ変換機構12及びデータ変換機構13をチャネルア
ダプタ10又はチャネルアダプタ11から独立したディ
スクサブシステム9の構成モジュールとしても支障はな
い。In the above embodiment, the channel adapter 11
Provided with a data conversion mechanism 12 and a data conversion mechanism 13,
The intermediate file 6 has data in the mainframe record format, and the open file 7 has data in the open system record format.
3, a file for storing mainframe record format data is provided in place of the open file 7,
The present invention can be implemented even when the intermediate file 6 has data in the open system record format. Further, there is no problem even if the data conversion mechanism 12 and the data conversion mechanism 13 are configured as components of the disk subsystem 9 independent of the channel adapter 10 or the channel adapter 11.
【0022】またホストコンピュータ2と従来のディス
クサブシステム4のオープンシステム用のチャネルアダ
プタとの間にデータ変換機構12およびデータ変換機構
13を内蔵する装置を介入させ、この装置によって上記
データ形式変換を行ってもよい。この変換装置とホスト
コンピュータ2とはホストコンピュータ2のチャネルイ
ンタフェースによって接続され、ディスクサブシステム
4のチャネルアダプタとは同じホストコンピュータ2の
チャネルインタフェースによって接続される。ホストコ
ンピュータ2が変換装置に中間ファイル6とオープンフ
ァイル7を指定してデータ変換指令を発行すると、メイ
ンフレームからオープンシステムへのデータ変換指令の
場合には、変換装置はデータ変換機構12を起動し、中
間ファイル6から読み込んだレコードの形式を変換して
オープンファイル7に書き込む。オープンシステムから
メインフレームへのデータ変換指令の場合には、変換装
置はデータ変換機構13を起動し、オープンファイル7
から読み込んだレコードの形式を変換して中間ファイル
6に書き込む。Further, a device incorporating a data conversion mechanism 12 and a data conversion mechanism 13 is interposed between the host computer 2 and a channel adapter for the open system of the conventional disk subsystem 4, and the data format conversion is performed by this device. May go. This converter and the host computer 2 are connected by a channel interface of the host computer 2, and the channel adapter of the disk subsystem 4 is connected by the same channel interface of the host computer 2. When the host computer 2 issues a data conversion command by designating the intermediate file 6 and the open file 7 to the converter, in the case of a data conversion command from the mainframe to the open system, the converter starts the data conversion mechanism 12. The format of the record read from the intermediate file 6 is converted and written into the open file 7. In the case of a data conversion command from the open system to the mainframe, the conversion device activates the data conversion mechanism 13 and the open file 7
The format of the record read from is converted and written to the intermediate file 6.
【0023】[0023]
【発明の効果】以上述べたように本発明によれば、メイ
ンフレームのデータ形式をもつデータとオープンシステ
ムのデータ形式をもつデータとのデータ形式の変換をハ
ードウェアで実行するので、データ形式変換機構に入力
されるデータはほぼデータストリームの転送速度に近い
速度で変換され、上記データ形式の変換を高速化できる
とともに、ホストコンピュータの負荷を軽減することが
できる。As described above, according to the present invention, data format conversion between data having a mainframe data format and data having an open system data format is executed by hardware. The data input to the mechanism is converted at a speed substantially close to the transfer speed of the data stream, so that the conversion of the data format can be speeded up and the load on the host computer can be reduced.
【図1】実施形態のディスクサブシステムの構成図であ
る。FIG. 1 is a configuration diagram of a disk subsystem according to an embodiment.
【図2】メインフレームとオープンシステムのデータ形
式を示す図である。FIG. 2 is a diagram showing data formats of a mainframe and an open system.
【図3】実施形態のメインフレームデータをオープンシ
ステムデータに変換する機構の構成を示す図である。FIG. 3 is a diagram illustrating a configuration of a mechanism for converting mainframe data into open system data according to the embodiment;
【図4】実施形態のオープンシステムデータをメインフ
レームデータに変換する機構の構成を示す図である。FIG. 4 is a diagram illustrating a configuration of a mechanism that converts open system data into mainframe data according to the embodiment;
【図5】実施形態のCR/LF検出機構35の内部構成
を示す図である。FIG. 5 is a diagram showing an internal configuration of a CR / LF detection mechanism 35 of the embodiment.
【図6】EBCDIC−ASCIIキャラクタ変換回路
19の構成図である。FIG. 6 is a configuration diagram of an EBCDIC-ASCII character conversion circuit 19;
【図7】ASCII−EBCDICキャラクタ変換回路
23の構成図である。FIG. 7 is a configuration diagram of an ASCII-EBCDIC character conversion circuit 23;
【図8】従来のデータ形式変換を説明する図である。FIG. 8 is a diagram illustrating a conventional data format conversion.
1:ホストコンピュータ(メインフレーム)、2:ホス
トコンピュータ(オープン)、6:中間ファイル、7:
オープンファイル、10:チャネルアダプタ(メインフ
レーム)、11:チャネルアダプタ(オープン)、1
2:データ変換機構、13:データ変換機構1: host computer (mainframe), 2: host computer (open), 6: intermediate file, 7:
Open file, 10: channel adapter (mainframe), 11: channel adapter (open), 1
2: Data conversion mechanism, 13: Data conversion mechanism
Claims (5)
とオープンシステムのデータ形式をもつデータとの間で
データ形式の変換をする変換機構であって、メインフレ
ームデータをオープンシステムデータに変換する第1の
変換機構と、オープンシステムデータをメインフレーム
データに変換する第2の変換機構とを有し、 第1の変換機構は、メインフレームデータを入力してレ
コードの先頭のレコード長を検出し、レコード長に続く
入力バイト数を計数してレコード境界を検出する手段
と、キャラクタデータ以外の入力データはそのまま転送
出力し、キャラクタデータを検出したとき、そのままの
出力を抑止し、1バイトずつコード変換した後に出力す
る手段と、レコード境界が検出されたときレコードの末
尾にCR/LFコードを付加する手段とを有し、 第2の変換機構は、オープンシステムデータを入力して
レコード末尾のCR/LFコードを検出するまで入力レ
コード長を計数してレコード境界を検出する手段と、キ
ャラクタデータ以外の入力データはそのまま出力バッフ
ァに蓄積し、キャラクタデータを検出したとき、そのま
まの出力を抑止し、1バイトずつコード変換した後に出
力バツファに蓄積する手段と、レコード境界が検出され
たとき出力バツファ中のレコードの先頭にレコード長を
付加して該レコードを出力する手段とを有することを特
徴とするデータ形式変換機構。1. A conversion mechanism for converting a data format between data having a data format of a mainframe and data having a data format of an open system, comprising: a first mechanism for converting mainframe data into open system data; And a second conversion mechanism for converting the open system data into mainframe data. The first conversion mechanism receives the mainframe data, detects the head record length of the record, A means for counting the number of input bytes following the length to detect a record boundary, and input data other than character data is transferred and output as it is, and when character data is detected, the output is suppressed as it is and code conversion is performed byte by byte. Means for outputting later, and adding a CR / LF code to the end of the record when a record boundary is detected Means for inputting open system data, counting input record length until a CR / LF code at the end of the record is detected, and detecting a record boundary; Means for directly storing the input data in the output buffer and, when character data is detected, suppressing the output as it is, converting the code one byte at a time and storing it in the output buffer, and means for storing the output buffer when a record boundary is detected. Means for adding the record length to the beginning of the record and outputting the record.
することを特徴とするディスクサブシステム。2. A disk subsystem incorporating the data format conversion mechanism according to claim 1.
ルとオープンシステムのデータ形式をもつファイルとの
一方のファイル上のデータを読み込み、データ形式の変
換をした後に他方のファイル上にデータを書き込むこと
を特徴とする請求項1記載のデータ形式変換機構。3. A method of reading data on one of a file having a data format of a mainframe and a file having a data format of an open system, converting the data format, and writing the data on the other file. 2. The data format conversion mechanism according to claim 1, wherein:
とオープンシステムのデータ形式をもつデータとの間で
データ形式の変換をする方法であって、 メインフレームのデータ形式をもつデータを変換する際
には、メインフレームデータを入力してレコードの先頭
のレコード長を検出し、レコード長に続く入力バイト数
を計数してレコード境界を検出し、キャラクタデータ以
外の入力データはそのまま転送出力し、キャラクタデー
タを検出したとき、そのままの出力を抑止し、1バイト
ずつコード変換した後に出力し、レコード境界が検出さ
れたときレコードの末尾にCR/LFコードを付加し、 オープンシステムのデータ形式をもつデータを変換する
際には、オープンシステムデータを入力してレコード末
尾のCR/LFコードを検出するまで入力レコード長を
計数してレコード境界を検出し、キャラクタデータ以外
の入力データはそのまま出力バッファに蓄積し、キャラ
クタデータを検出したとき、そのままの出力を抑止し、
1バイトずつコード変換した後に出力バッファに蓄積
し、レコード境界が検出されたとき出力バッファ中のレ
コードの先頭にレコード長を付加して該レコードを出力
することを特徴とするデータ形式変換方法。4. A method of converting a data format between data having a mainframe data format and data having an open system data format, the method comprising: converting data having a mainframe data format. Detects the record length at the beginning of a record by inputting mainframe data, counts the number of input bytes following the record length, detects record boundaries, transfers and outputs input data other than character data as is, Is detected, the output is suppressed as it is, the code is converted one byte at a time and output. When a record boundary is detected, a CR / LF code is added to the end of the record, and the data having the open system data format is added. When converting, input the open system data and detect the CR / LF code at the end of the record. Counts the input record length detecting a record boundary to the input data other than character data is stored in it an output buffer, upon detection of the character data, to suppress the raw output,
A data format conversion method comprising: converting a code one byte at a time, accumulating the result in an output buffer, and adding a record length to the beginning of the record in the output buffer when a record boundary is detected, and outputting the record.
ルとオープンシステムのデータ形式をもつファイルとの
一方のファイル上のデータを読み込み、データ形式の変
換をした後に他方のファイル上にデータを書き込むこと
を特徴とする請求項4記載のデータ形式変換方法。5. A method of reading data on one of a file having a data format of a mainframe and a file having a data format of an open system, converting the data format, and writing the data on the other file. 5. The data format conversion method according to claim 4, wherein:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11198326A JP2001022715A (en) | 1999-07-13 | 1999-07-13 | Data format conversion mechanism and conversion method under multi-platform environment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11198326A JP2001022715A (en) | 1999-07-13 | 1999-07-13 | Data format conversion mechanism and conversion method under multi-platform environment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001022715A true JP2001022715A (en) | 2001-01-26 |
Family
ID=16389257
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11198326A Pending JP2001022715A (en) | 1999-07-13 | 1999-07-13 | Data format conversion mechanism and conversion method under multi-platform environment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001022715A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004185520A (en) * | 2002-12-06 | 2004-07-02 | Hitachi Ltd | Data conversion system |
| US7100039B2 (en) | 2003-08-07 | 2006-08-29 | International Business Machines Corporation | Systems and methods for a bootstrap mechanism for software execution |
| US7191197B2 (en) | 2002-05-22 | 2007-03-13 | Hitachi, Ltd. | Method and apparatus for detecting and transferring data of different formats |
| US7197554B2 (en) | 2002-05-21 | 2007-03-27 | Hitachi, Ltd. | Data linkage method and system |
| US7346904B2 (en) | 2003-08-07 | 2008-03-18 | International Business Machines Corporation | Systems and methods for packaging files having automatic conversion across platforms |
| US9053239B2 (en) | 2003-08-07 | 2015-06-09 | International Business Machines Corporation | Systems and methods for synchronizing software execution across data processing systems and platforms |
| KR101856486B1 (en) * | 2017-04-17 | 2018-05-11 | 주식회사 티맥스 소프트 | Method for bi-direction calling between open system and mainframe system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6476139A (en) * | 1987-09-17 | 1989-03-22 | Fujitsu Ltd | Data transfer system for input/output controller |
| JPH09325905A (en) * | 1996-06-04 | 1997-12-16 | Hitachi Ltd | Storage controller |
| JPH10222410A (en) * | 1997-02-06 | 1998-08-21 | Hitachi Ltd | Data processing method in coupling device |
| JPH11102260A (en) * | 1997-09-29 | 1999-04-13 | Hitachi Ltd | Storage subsystem |
-
1999
- 1999-07-13 JP JP11198326A patent/JP2001022715A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6476139A (en) * | 1987-09-17 | 1989-03-22 | Fujitsu Ltd | Data transfer system for input/output controller |
| JPH09325905A (en) * | 1996-06-04 | 1997-12-16 | Hitachi Ltd | Storage controller |
| JPH10222410A (en) * | 1997-02-06 | 1998-08-21 | Hitachi Ltd | Data processing method in coupling device |
| JPH11102260A (en) * | 1997-09-29 | 1999-04-13 | Hitachi Ltd | Storage subsystem |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7197554B2 (en) | 2002-05-21 | 2007-03-27 | Hitachi, Ltd. | Data linkage method and system |
| US7191197B2 (en) | 2002-05-22 | 2007-03-13 | Hitachi, Ltd. | Method and apparatus for detecting and transferring data of different formats |
| JP2004185520A (en) * | 2002-12-06 | 2004-07-02 | Hitachi Ltd | Data conversion system |
| US7100039B2 (en) | 2003-08-07 | 2006-08-29 | International Business Machines Corporation | Systems and methods for a bootstrap mechanism for software execution |
| US7346904B2 (en) | 2003-08-07 | 2008-03-18 | International Business Machines Corporation | Systems and methods for packaging files having automatic conversion across platforms |
| US8141074B2 (en) | 2003-08-07 | 2012-03-20 | International Business Machines Corporation | Packaging files having automatic conversion across platforms |
| US9053239B2 (en) | 2003-08-07 | 2015-06-09 | International Business Machines Corporation | Systems and methods for synchronizing software execution across data processing systems and platforms |
| KR101856486B1 (en) * | 2017-04-17 | 2018-05-11 | 주식회사 티맥스 소프트 | Method for bi-direction calling between open system and mainframe system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3697395B2 (en) | Method and apparatus for storing different data structures | |
| JP2001022715A (en) | Data format conversion mechanism and conversion method under multi-platform environment | |
| US20020004845A1 (en) | Computer, computer system, and data transfer method | |
| US4949303A (en) | Information retrieval control system with input and output buffers | |
| JPH0250499B2 (en) | ||
| EP0690382A2 (en) | Computer system with a multiplexed address bus and pipelined write operations | |
| JP2003085017A (en) | Data assurance system | |
| JP3133991B2 (en) | Data transfer method and data transfer system | |
| JPH1063617A (en) | Serial communication device | |
| KR940001108B1 (en) | Interface system of optical disc drive | |
| JP2000181644A (en) | Image processing apparatus, control method thereof, printing apparatus and recording medium | |
| JPH05128050A (en) | Data retrieval control method in electronic computer system | |
| KR910002437Y1 (en) | Recording logic circuit of magnetic tape data | |
| JPS6083451A (en) | Synchronous data buffering system | |
| JP2530020B2 (en) | Search method | |
| JPS61153879A (en) | Magnetic disk controller | |
| JPS63271519A (en) | data storage device | |
| JPS6016400U (en) | First-in, first-out buffer malfunction detection circuit | |
| JP2643903B2 (en) | File device | |
| JPH02166513A (en) | Printing control device | |
| JPH06259374A (en) | Input/output bus controller | |
| JPH0619972A (en) | Host computer centralized control document system | |
| JPH04344513A (en) | Input/output interface device for computer | |
| JPS63179644A (en) | Line control processing method | |
| JPS6194167A (en) | Peripheral controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20040427 |