JPH0358146A - File exchange system between different kinds of computer systems - Google Patents

File exchange system between different kinds of computer systems

Info

Publication number
JPH0358146A
JPH0358146A JP1194988A JP19498889A JPH0358146A JP H0358146 A JPH0358146 A JP H0358146A JP 1194988 A JP1194988 A JP 1194988A JP 19498889 A JP19498889 A JP 19498889A JP H0358146 A JPH0358146 A JP H0358146A
Authority
JP
Japan
Prior art keywords
record
file
information
pattern
data items
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1194988A
Other languages
Japanese (ja)
Inventor
Fumito Okayasu
岡安 文人
Hiroshi Somemiya
染宮 弘志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1194988A priority Critical patent/JPH0358146A/en
Publication of JPH0358146A publication Critical patent/JPH0358146A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To considerably reduce the description volume of parameters by indicating the combination of patterns constituting each record in accordance with the kind of record by a parameter at the time of converting data file. CONSTITUTION:A file 1 where information is registered with a record as the unit and a parameter 2 which can be defined as one pattern of one data item or a series of data item groups with respect to the record and can arbitrarily indicate the attribute change to data items are inputted, and pattern information related to an exchange object file and attribute change information of data items are outputted to a file by information matching. A parameter 6 indicating the combination of patterns constituting the record discriminated by a key out of patterns defined in a first step 3 is read in and is expanded in a memory, and a record stored in a file 4 is read and a pattern definition file 5 is referred to change data items. Thus, already prepared pattern information is used though a record of a new kind is added.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コード体系の異なる異機種コンピュータシス
テム間でのファイル交換方式に関する.〔従来の技術〕 従来の異機種コンピュータシステム間ファイル交換方式
は、交換対象ファイルに格納されているレコードの種類
ごとに、それを構成するデータ項目のレコード内での並
びや1つ1つのデータ項目についてのデータ形式・桁数
などの属性情報および変換後のデータ属性などを固定的
にパラメータで指示していた。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file exchange method between heterogeneous computer systems with different code systems. [Prior Art] Conventional file exchange methods between heterogeneous computer systems involve arranging the data items constituting each type of record stored in the file to be exchanged, and determining the arrangement of each data item in the record. Attribute information such as data format and number of digits, and data attributes after conversion were specified using fixed parameters.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の異機種コンピュータシステム間ファイル
交換方式では、新しい種類のレコードが交換対象ファイ
ルに追加された場合には、その都度そのレコードに関す
る情報をすべてパラメータで指示する必要があった. 一般に、業務処理されるデータファイルは、複数の種類
のレコードを同時に格納しているが、それらのレコード
は全く異なるレコード形式であることはまれで、それら
異なる種類のレコードを通して見ると、一連のデータ項
目群(例えば、レコード共通制御部など)が現われるこ
とが多い.本発明は、それら一連の同じデータ項目群に
関する情報をパターンとしてあらかじめファイルに登録
しておき、実際のデータファイル交換時には、レコード
の種類ごとにそれを構戒するパターンの組み合わせをパ
ラメータで指示することを可能にし、たとえば新しい種
類のレコードが追加された様な場合でも、極力既存のパ
ターン情報を流用できるようにすることを目的にしてい
る。これにより従来の方法に比べパラメータの記述量が
大幅に減らすことが可能となる。
In the conventional file exchange method between heterogeneous computer systems described above, every time a new type of record was added to the file to be exchanged, it was necessary to specify all information about that record using parameters. Generally, data files for business processing store multiple types of records at the same time, but these records are rarely in completely different record formats, and when viewed through these different types of records, a series of data A group of items (for example, record common control section, etc.) often appears. The present invention is capable of registering information regarding a series of the same data item group in a file in advance as a pattern, and at the time of actual data file exchange, specifying a combination of patterns for each type of record using parameters. The aim is to make it possible to reuse existing pattern information as much as possible even when a new type of record is added, for example. This makes it possible to significantly reduce the amount of parameter description compared to conventional methods.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の異機種コンピュータシステム間ファイル交換方
式は、交換対象ファイルに格納されている1つあるいは
複数の種類の形式を有するレコードに関し、該レコード
ごとにそれを構成するデータ項目のレコード内での並び
や属性を表わす情報があらかじめ登録されているファイ
ルと、前記レコードについて1つのデータ項目あるいは
一連のデータ項目群の1つのパターとして定義でき、か
つそれぞれのデータ項目に対し任意の属性変換指示がで
きるパラメータとを入力し、それらの情報を突合するこ
とにより、前記交換対象ファイルに関するパターン情報
と、データ項目の属性変換情報とをファイルに出力する
第1ステップと、前記交換対象ファイルと、前記第1ス
テップで出力されたファイルと、前記交換対象ファイル
に格納されている1つあるいは複数の種類の形式を有す
るレコードに関し、該レコードを構戒する第1ステップ
であらかじめ定義されたパター情報を指示するパラメー
タとを入力し、それらの情報を突合し前記第1ステップ
の入力パラメータで指示された通りにデータ項目属性変
換を行ない、結果をファイルに出力する第2ステップと
を有している。
The method for exchanging files between heterogeneous computer systems of the present invention relates to records having one or more types of formats stored in a file to be exchanged, and the arrangement of data items constituting each record within the record. A file in which information representing attributes is registered in advance, and a parameter that can be defined as one data item or one pattern of a series of data items for the record, and can instruct arbitrary attribute conversion for each data item. a first step of outputting pattern information regarding the exchange target file and attribute conversion information of data items to a file by inputting and comparing the information; and a first step of outputting the exchange target file and the first step. With respect to the file outputted in and the record having one or more types of formats stored in the file to be exchanged, a parameter indicating pattern information predefined in the first step of checking the record. and a second step of inputting the information, comparing the information, converting data item attributes as instructed by the input parameters of the first step, and outputting the results to a file.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する. 第1図は本発明の機能楕戒図である. コピー原文集1は、交換対象ファイルに格納されている
すべての種類のレコードに関して、そのレコード内での
データ項目の並びや1つ1つのデータ項目のデータ形式
・桁数などの属性情報がレコード単位にソース形式であ
らかじめ登録されているファイルである。
Next, the present invention will be explained in detail with reference to the drawings. Figure 1 is a functional ellipse diagram of the present invention. Copy source text collection 1 contains attribute information such as the arrangement of data items within the record and the data format and number of digits of each data item for all types of records stored in the file to be exchanged. This is a file that has been registered in source format in advance.

パラメータ2は、1つのデータ項目あるいは一連のデー
タ項目群の1つのパターン(パターンの考え方について
は、第2図をもとに後述)として、必要なパターンの種
類だけ定義できる指示パラメータであり、コピー原文集
1に登録されているどのレコードのどのライン番号から
どのライン番号までを1パターンとするのかという情報
や、項目属性の変換の必要性のあるデータ項目について
は、その変換情報を指定できる様になっている。
Parameter 2 is an instruction parameter that allows you to define only the type of pattern you need as one data item or one pattern of a series of data items (the idea of patterns will be explained later based on Figure 2). Information on which line number to which line number of which record registered in the original collection 1 should be considered as one pattern, and conversion information for data items that require conversion of item attributes can be specified. It has become.

第1ステップ3は、コピー原文集1とパラメータ2とを
入力し、パラメータ2の指示内容に従って、コピー原文
集1を参照しながらパターン定義ファイル5にパターン
定義情報を出力する。
In the first step 3, copy original text collection 1 and parameter 2 are input, and according to the instruction content of parameter 2, pattern definition information is output to pattern definition file 5 while referring to copy original text collection 1.

すなわち、第1ステップ3は、まずパラメータ2を入力
し、そこで指示されているパターン対象レコード名およ
びパターン対象項目範囲を得る。
That is, in the first step 3, first, parameter 2 is input, and the pattern target record name and pattern target item range specified therein are obtained.

パターン対象項目範囲は、コピー原文集1にレコード単
位にデータ項目属性情報がソース形式で登録されている
それぞれのレコードの先頭行を上行目とする相対行番号
でどの行からどの行までという様に指示されている。
The pattern target item range is a relative line number from which line to which line, starting from the first line of each record in which data item attribute information is registered in the source format for each record in copy source text collection 1. Directed.

さらに、データ項目属性変換指示があればそれも同時に
得る。データ項目属性変換は、属性変換対象データ項目
を特定する上記相対行番号と属性変換キーワードのベア
で指示されている。
Furthermore, if there is a data item attribute conversion instruction, it is also obtained at the same time. Data item attribute conversion is instructed by the relative line number that specifies the data item to be converted and the bare attribute conversion keyword.

この様に、1パターン定義に必要な情報がパラメータ2
の指示内容から得られるので、第1ステップ3はこの情
報をもとにコピー原文集1を参照する。つまり、第1ス
テップ3はバラ−メータ2で指示されたレコード名をキ
ーとしてコピー原文集1を参照し、そのレコードに関す
るソース定義情報を得、さらにパターン対象項目範囲を
示す先頭行番号からその範囲の項目定義情報を抽出し、
さらに、データ項目属性変換指示がある場合にはその情
報も加味し、パターン定義情報を作戒し、パターン定義
ファイル5にそのパターン定義情報を出力する。なお、
パターン定義ファイル5に出力されたパターンには、そ
の識別子として現在パターン定義ファイル5に登録され
ているパターンの数に1を加えた番号が付与される. パラメータ2で指示されているパターン定義の数だけ上
記処理を繰り返すことにより、パターン定義ファイル5
に必要なパターンを必要な種類だけ登録することができ
る。
In this way, the information necessary for one pattern definition is the parameter 2.
The first step 3 refers to the copy original collection 1 based on this information. In other words, the first step 3 is to refer to the copy source text collection 1 using the record name specified by the parameter 2 as a key, obtain the source definition information regarding that record, and then select the range from the first line number indicating the pattern target item range. Extract the item definition information of
Furthermore, if there is a data item attribute conversion instruction, that information is also taken into account, the pattern definition information is modified, and the pattern definition information is output to the pattern definition file 5. In addition,
A number obtained by adding 1 to the number of patterns currently registered in the pattern definition file 5 is assigned to the pattern output to the pattern definition file 5 as its identifier. By repeating the above process for the number of pattern definitions specified by parameter 2, pattern definition file 5 is created.
You can register only the required types of patterns.

次に、ファイル4は交換対象のファイルであり、1つあ
るいは複数の種類のレコードが格納されており、それら
のレコード情報はコピー原文集1にあらかじめ登録され
ている。
Next, file 4 is a file to be exchanged, and stores one or more types of records, and the record information is registered in advance in copy original text collection 1.

パラメータ6は、ファイル4に格納されているレコード
の種類を識別するためのキー情報と、そのキーで識別さ
れたレコードが前記第1ステップ3で定義したどのパタ
ーンの組み合わせから構戒されているのかを指示するパ
ラメータである.すなわち、第2ステップ7は、まず、
パラメータ6をすべて読み込み、その指示情報をメモリ
に展開する。次に、ファイル4に格納されているレーコ
ードを先頭から1件読み、そのレコードの種類を識別す
るデータ項目の値と、前記メモリに展開した情報とを照
合し、今読んだレコードのパターン構戒情報を得る. 次に、そのパターン構成情報の中のパターン番号(これ
は、第1ステップ3で割り当て済)をキーとして、パタ
ーン定義ファイル5の参照し、そのパターンのデータ項
目の並びや項目属性などの詳細情報を得、その内容に従
ってデータ項目の変換を行なう。
Parameter 6 includes key information for identifying the type of record stored in file 4, and which pattern combination defined in the first step 3 is used to identify the record identified by that key. This is a parameter that indicates. That is, in the second step 7, first,
All parameters 6 are read and the instruction information is expanded into memory. Next, one record code stored in file 4 is read from the beginning, and the value of the data item that identifies the type of record is compared with the information developed in the memory, and the pattern of the record just read is determined. get information. Next, the pattern definition file 5 is referenced using the pattern number in the pattern configuration information (already assigned in the first step 3) as a key, and detailed information such as the data item arrangement and item attributes of the pattern is and converts the data item according to its contents.

今処理しているレコードに関し、すべてのパターンにつ
いて上記処理を繰返す.1つのレコードの処理が終了し
たら、その結果をファイル8に出力する.これをファイ
ル4に格納されているすべてのレコードについて繰り返
し行なうことにより、ファイル8にデータ形式変換後の
交換ファイルが出来上がる。
Repeat the above process for all patterns for the record currently being processed. When processing of one record is completed, output the result to file 8. By repeating this process for all records stored in file 4, an exchange file after data format conversion is created in file 8.

第2図はパターンの考え方を表わしている。Figure 2 represents the idea of patterns.

レコード9は、ある1つのレコード形式を示しており、
そのレコードは先頭から順にa,b,c,d,e,f,
gの7つのデータ項目から楕或されていることを表わし
ている。一方、レコード10は、レコード9とは別の形
式のレコードであり、先頭から順にa,b,c,f,g
,d,eの7つのデータ項目から構成されていることを
表わしている. ここで、レコード9とレコード10を構成するデータ項
目同士で同じ英小文字(レコード9のaとレコード10
のaなど)で示されるデータ項目が同じ属性(データ形
式・桁など)をもっているとすれば、aとbとCを一連
のデータ項目群としてそれをたとえばパターン番号1、
同様にdとeをパターン番号2、fとgをパターン番号
3と定義する.こうすることにより、レコード9はパタ
ーン番号1と2と3、レコード10はパターン番号1と
3と2からそれぞれ構戒されると表現できる. 〔発明の効果〕 以上説明したように、本発明によれば、交換対象ファイ
ルに格納されているレコードに関する情報は、あらかじ
め用意されているコピー原文集を入力とすることで、た
とえば1つ1つのデータ項目属性などを詳細にパラメー
タで記述する必要がなくなり、また、異なる種類のレコ
ード間によく現われる一連のデータ項目群をパターンと
してあらかじめ定義しておけるので、新しい種類のレコ
ードが発生した場合などに、既存のパターン定義情報を
流用が可能になり、結果としてパラメータの記述量を減
らすことができるという効果がある。
Record 9 shows one record format,
The records are a, b, c, d, e, f,
This indicates that the seven data items of g are omitted. On the other hand, record 10 is a record in a different format from record 9, and is ordered from the beginning as a, b, c, f, g.
, d, and e. Here, the data items that make up records 9 and 10 have the same lowercase letters (a in record 9 and a in record 10).
If the data items indicated by a) have the same attributes (data format, digits, etc.), consider a, b, and C as a series of data item groups, and use pattern number 1, pattern number 1, etc.
Similarly, define d and e as pattern number 2, and f and g as pattern number 3. By doing this, it can be expressed that record 9 is determined by pattern numbers 1, 2, and 3, and record 10 is determined by pattern numbers 1, 3, and 2, respectively. [Effects of the Invention] As explained above, according to the present invention, information regarding records stored in a file to be exchanged can be acquired one by one by inputting a collection of copy original texts prepared in advance. It is no longer necessary to describe data item attributes in detail using parameters, and a series of data items that often appear between records of different types can be defined in advance as a pattern, so when a new type of record occurs, etc. , it becomes possible to reuse existing pattern definition information, and as a result, the amount of parameter description can be reduced.

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

第1図は本発明の一実施例の機能楕戒図、第2図はパタ
ーンの考え方を説明するための図である。 1・・・コピー原文集、2・・・パラメータ、3・・・
第1ステップ、4・・・ファイル、5・・・パターン定
義ファイル、6・・・パラメータ、7・・・第2ステッ
プ、8・・・ファイル。
FIG. 1 is a functional elliptical diagram of an embodiment of the present invention, and FIG. 2 is a diagram for explaining the concept of patterns. 1... Copy original text collection, 2... Parameters, 3...
1st step, 4... file, 5... pattern definition file, 6... parameter, 7... second step, 8... file.

Claims (1)

【特許請求の範囲】 交換対象ファイルに格納されている1つあるいは複数の
種類の形式を有するレコードに関し、該レコードごとに
それを構成するデータ項目のレコード内での並びや属性
を表わす情報があらかじめ登録されているファイルと、
前記レコードについて1つのデータ項目あるいは一連の
データ項目群の1つのパターとして定義でき、かつそれ
ぞれのデータ項目に対し任意の属性変換指示ができるパ
ラメータとを入力し、それらの情報を突合することによ
り、前記交換対象ファイルに関するパターン情報と、デ
ータ項目の属性変換情報とをファイルに出力する第1ス
テップと、 前記交換対象ファイルと、前記第1ステップで出力され
たファイルと、前記交換対象ファイルに格納されている
1つあるいは複数の種類の形式を有するレコードに関し
、該レコードを構成する第1ステップであらかじめ定義
されたパター情報を指示するパラメータとを入力し、そ
れらの情報を突合させることにより、前記第1ステップ
の入力パラメータで指示された通りにデータ項目属性変
換を行ない結果をファイルに出力する第2ステップから
成ることを特徴とする異機種コンピュータシステム間フ
ァイル交換方式。
[Claims] Regarding records having one or more types of formats stored in the file to be exchanged, information indicating the arrangement and attributes of the data items constituting each record in the record is provided in advance. Registered files and
By inputting parameters that can be defined as one data item or one pattern of a series of data items for the record, and allowing arbitrary attribute conversion instructions for each data item, and comparing the information, a first step of outputting pattern information regarding the exchange target file and attribute conversion information of data items to a file; With respect to a record having one or more types of formats, by inputting a parameter indicating the putter information predefined in the first step of configuring the record and comparing the information, A file exchange method between heterogeneous computer systems, comprising a second step of converting data item attributes as instructed by input parameters in the first step and outputting the results to a file.
JP1194988A 1989-07-26 1989-07-26 File exchange system between different kinds of computer systems Pending JPH0358146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1194988A JPH0358146A (en) 1989-07-26 1989-07-26 File exchange system between different kinds of computer systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1194988A JPH0358146A (en) 1989-07-26 1989-07-26 File exchange system between different kinds of computer systems

Publications (1)

Publication Number Publication Date
JPH0358146A true JPH0358146A (en) 1991-03-13

Family

ID=16333675

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1194988A Pending JPH0358146A (en) 1989-07-26 1989-07-26 File exchange system between different kinds of computer systems

Country Status (1)

Country Link
JP (1) JPH0358146A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06231017A (en) * 1993-02-03 1994-08-19 Nec Corp Data file converter
JPH0751602A (en) * 1993-08-20 1995-02-28 Fujita Kogei Kk Jig for electrostatic coating

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06231017A (en) * 1993-02-03 1994-08-19 Nec Corp Data file converter
JPH0751602A (en) * 1993-08-20 1995-02-28 Fujita Kogei Kk Jig for electrostatic coating

Similar Documents

Publication Publication Date Title
CA2669479C (en) Generating end-user presentations from structured data
CN111752542B (en) Database query interface engine based on XML template
US6925462B2 (en) Database management system, and query method and query execution program in the database management system
US5909570A (en) Template mapping system for data translation
US7921359B2 (en) Computer-implemented system and method for tagged and rectangular data processing
CA2223953A1 (en) Transformation of marked up documents
US6405189B1 (en) Method and apparatus for amplifying design information into software products
JPH0358146A (en) File exchange system between different kinds of computer systems
JP3660390B2 (en) Term dictionary management device
JP2002202973A (en) Structured document management device
EP0585813A2 (en) Data processing apparatus for carrying out process by combining objects
JPH0619756A (en) EDI format conversion method
JP4681338B2 (en) Database migration method
JP2000250930A (en) Structured document search system
JPH09101886A (en) Automatic extraction / reuse device for program parts
JPH05134856A (en) Program automatic generation method
JP3424473B2 (en) Data processing system
JPH0895975A (en) Preparation method for logically structured document
JPH11272524A (en) Data conversion device and storage medium
JP3047400B2 (en) Data processing device
JPH0457151A (en) Insert processing method for structured document
JPH03257584A (en) Item check system
JPS63268050A (en) Continuous converting device for multiple file
JPH03141427A (en) How to create standard record specification information
JPH07262061A (en) Comparison device based on data definition information