JPH03282843A - File conversion program system referring to rule file - Google Patents

File conversion program system referring to rule file

Info

Publication number
JPH03282843A
JPH03282843A JP2084047A JP8404790A JPH03282843A JP H03282843 A JPH03282843 A JP H03282843A JP 2084047 A JP2084047 A JP 2084047A JP 8404790 A JP8404790 A JP 8404790A JP H03282843 A JPH03282843 A JP H03282843A
Authority
JP
Japan
Prior art keywords
file
conversion
item
creation means
identifiers
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
JP2084047A
Other languages
Japanese (ja)
Inventor
Mitsumasa Abe
阿部 光正
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 JP2084047A priority Critical patent/JPH03282843A/en
Publication of JPH03282843A publication Critical patent/JPH03282843A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reduce the man-hour of file conversion program generation by referring to a rule file, where relations of record identifiers and items between a file before conversion and that after conversion are described, to convert the file which has plural records consisting of fixed-length identifiers and fixed- length items. CONSTITUTION:A conversion item file generating means 1, an item file generating means 2, a rule file generating means 3, and a conversion program means 4 are provided. When a user who will convert the file form describes data to the conversion item file generating means 1, the item file generating means 2, and the rule file generating means 3, identifiers and items described in the conversion item file generating means 1 are converted in accordance with correspondence relations to identifiers and items described in the item file generating means 1 which are contents of the rule file generating means 3. Thus, the man- hour of program remodeling for file form conversion is reduced.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、複数のレコードからなる所定形式のファイル
を別形式のファイルに変換するファイル変換プログラム
方式に関し、特に、固定長の識別子および項目から上述
の各レコードか構成されているファイルを変換するファ
イル変換プログラム方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a file conversion program method for converting a file in a predetermined format consisting of a plurality of records into a file in a different format, and in particular, The present invention relates to a file conversion program method for converting a file composed of the above-mentioned records.

[従来の技術] 従来、所定形式のファイルを別形式のファイルに変換す
るプログラムは、その内部に変換後のファイル形式か組
込まれたものが使用されていた。変換を行なう際には、
組込まれたファイル形式にしたがって変換前のファイル
のデータを収容するものであった。
[Prior Art] Conventionally, a program for converting a file in a predetermined format into a file in another format has used a program in which the converted file format is incorporated. When performing the conversion,
It accommodated the file data before conversion according to the built-in file format.

[発明が解決しようとする課題] 上述した従来のファイル変換プログラム方式は、その内
部に変換後のファイル形式を組込むため、ファイル形式
を変換する毎に変換プログラム全体を改造しなければな
らず、手間がかかるという欠点がある。
[Problems to be Solved by the Invention] The conventional file conversion program method described above incorporates the converted file format internally, so the entire conversion program must be modified every time the file format is converted, which is time-consuming. The disadvantage is that it takes a lot of time.

また、識別子および項目が固定長のものである場合には
、変換プログラム内に組込むファイル形式は、識別子お
よび項目が複数組合わされた最大固定長にて構成する必
要があり、上記欠点が大きなものになるとともに、記憶
装置への負担も大きなものとなっていた。
In addition, if the identifiers and items are of fixed length, the file format to be included in the conversion program must be composed of multiple combinations of identifiers and items with a maximum fixed length, which makes the above disadvantages even more significant. At the same time, the burden on storage devices has also increased.

本発明は、ファイル形式を変更する際のプログラムの改
造工数を削減することのできるファイル変換プログラム
方式を実現することを目的とする。
An object of the present invention is to realize a file conversion program method that can reduce the number of man-hours required to modify a program when changing a file format.

[N題を解決するための手段] 本発明の規則ファイルを参照するファイル変換プロクラ
ム方式は 固定長の識別子および項目より構成された複数のレコー
ドから成るファイルについて、その形式を変換する際の
ファイル変換プロクラム方式において、 変換前のファイルを構成するレコードのうち、変換され
るレコードを構成する識別子および項目とか記述される
変換項目ファイル作成手段と、変換後のファイルを構成
するレコードのうち、変換されたレコードを構成する識
別子および項目とが記述される項目ファイル作成手段と
、変換項目ファイル作成手段に記述された各識別子およ
び各項目と項目ファイル作成手段に記述された各識別子
および各項目との対応関係がそれぞれ記述される規則フ
ァイル作成手段と、規則ファイル作成手段に記述された
各対応関係に応じてそれぞれ異なる複数の変換プログラ
ムを内蔵し、変換項目ファイル作成手段に記述されてい
る識別子および項目について、規則ファイル作成手段の
記述内容か示す対応関係に対して設けられた変換プログ
ラムにより変換を行なう変換プログラム作成手段とを具
備する。
[Means for Solving Problem N] The file conversion program method that refers to a rule file of the present invention is a file conversion program for converting the format of a file consisting of a plurality of records consisting of fixed-length identifiers and items. In the program method, there is a conversion item file creation means that describes the identifiers and items that make up the records to be converted among the records that make up the file before conversion, and An item file creation means in which identifiers and items constituting a record are written, and a correspondence relationship between each identifier and each item written in the conversion item file creation means and each identifier and each item described in the item file creation means. It includes a rule file creation means in which are each written, and a plurality of conversion programs that are different depending on each correspondence described in the rule file creation means, and for the identifiers and items described in the conversion item file creation means, A conversion program creation means is provided which performs conversion using a conversion program provided for the correspondence indicated by the description content of the rule file creation means.

[作 用] ファイル形式の変換を行なう利用者か変換項目ファイル
作成手段、項目ファイル作成手段および規則ファイル作
成手段に対して記述を行なうと、変換項目ファイル作成
手段に記述されている識別子および項目は、規則ファイ
ル作成手段の記述内容である項目ファイル作成手段に記
述された識別子および項目との対応関係に応じて変換さ
れる。
[Function] When a user converting a file format writes a description to the conversion item file creation means, item file creation means, and rule file creation means, the identifiers and items described in the conversion item file creation means are , is converted according to the correspondence between the identifier and the item described in the item file creation means, which is the description content of the rule file creation means.

[実施例] 次に、本発明の実施例について図面を参照して説明する
[Example] Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の規則ファイルを参照するファイル変換
プログラム方式の一実施例の構成を示す図である。
FIG. 1 is a diagram showing the configuration of an embodiment of a file conversion program system that refers to a rule file according to the present invention.

本実施例は、変換項目ファイル作成手段1、項目ファイ
ル作成手段2、規則ファイル作成手段3および上記各作
成手段の作成結果に応してファイル変換プログラムを作
成するファイル変換プログラム作成手段4から構成され
ている。
This embodiment is comprised of a conversion item file creation means 1, an item file creation means 2, a rule file creation means 3, and a file conversion program creation means 4 for creating a file conversion program according to the creation results of each of the above creation means. ing.

上記各作成手段について説明する。Each of the above creation means will be explained.

変換項目ファイル1には、変換前のファイルを構成する
レコードのうち、変換されるレコードを示す識別子と該
レコードの内容である項目とが第2図に示すように利用
者により記述される。図中、*印が付けられているもの
は識別子を示し、無印のものは項目を示すものである。
In the conversion item file 1, an identifier indicating a record to be converted among the records constituting the file before conversion and an item representing the contents of the record are written by the user as shown in FIG. In the figure, items marked with * indicate identifiers, and items without marks indicate items.

このことは、続く第3図および第4図に関しても同様で
ある。
This also applies to the subsequent FIGS. 3 and 4.

項目ファイル作成手段2には、変換後のファイルを構成
するレコードのうち、変換されるレコードの識別子およ
び項目とが第3図に示すように利用者により記述される
In the item file creation means 2, the identifier and item of the record to be converted among the records constituting the converted file are written by the user as shown in FIG.

規則ファイル作成手段3には、変換項目ファイル作成手
段1に記述される識別子および項目と項目ファイル作成
手段2に記述される識別子および項目との関係が第4図
に示すように利用者により記述される。ここで、第4図
中に示されている内容について説明すると、識別子Aお
よびその項目と識別子Zおよびその項目とがそれぞれ1
対1の対応関係とされている。識別子Bと識別子X、Y
とは1対多の対応関係とされ、それらの項目の関係も同
様である。識別子C,Dと識別子Wとは多対1の対応関
係とされ、それらの項目の関係も同様である。識別子E
および識別子Fは、いずれか一方が識別子Vと対応する
もので、それらの項目の関係も同様とされている。
In the rule file creation means 3, the relationship between the identifiers and items described in the conversion item file creation means 1 and the identifiers and items described in the item file creation means 2 is written by the user as shown in FIG. Ru. Here, to explain the contents shown in FIG. 4, the identifier A and its item and the identifier Z and its item are each 1.
It is said that there is a one-to-one correspondence relationship. Identifier B and identifiers X and Y
is a one-to-many correspondence relationship, and the relationship between these items is also the same. The identifiers C and D and the identifier W have a many-to-one correspondence relationship, and the relationship between these items is also the same. identifier E
and identifier F, one of which corresponds to identifier V, and the relationship between these items is also the same.

ファイル変換プログラム作成手段4は、変更前の識別子
および項目と変更後の識別子および項目との関係(1対
1.1対多、多対1、いずれか−方対1等)に応じて用
意された複数の興なる変換プログラムを内蔵するもので
、変換項目作成ファイル1に記述されている変更前の各
識別子および項目について、規則ファイル作成手段3の
記述内容を参照して変更後の各識別子および項目との関
係を確認し、各関係に応じて用意された変換プログラム
によるファイル変換プログラムを作成する。したがって
、ファイル形式を変換しようとする利用者が、変換項目
ファイル作成手段1、項目ファイル作成手段2および規
則ファイル作成手段3の内容を記述すると変換項目ファ
イル作成手段1に記述されている識別子および項目は、
規則ファイル作成手段3に記述された対応関係に対して
ファイル変換プログラム作成手段4に用意された変換プ
ログラムにより項目ファイル作成手段2に記述された内
容に変更される。
The file conversion program creation means 4 is prepared according to the relationship between the identifier and item before the change and the identifier and item after the change (1:1, 1:many, many:1, any-way:1, etc.). It incorporates a plurality of different conversion programs, and for each identifier and item before change described in the conversion item creation file 1, each identifier and item after change is created by referring to the contents written in the rule file creation means 3. Check the relationships with the items and create a file conversion program using a conversion program prepared according to each relationship. Therefore, when a user who wants to convert a file format writes the contents of the conversion item file creation means 1, item file creation means 2, and rule file creation means 3, the identifier and item described in the conversion item file creation means 1 are teeth,
The correspondence relationship described in the rule file creation means 3 is changed to the contents described in the item file creation means 2 by the conversion program prepared in the file conversion program creation means 4.

[発明の効果コ 以上説明したように本発明は、固定長の識別子と固定長
の項目で構成されている複数のレコードからなるファイ
ルに対し、変換前および変換後の各ファイルに属するレ
コードの識別子および項目の関係を記述した規則ファイ
ルを参照して変換を行なうことにより、ファイル変換プ
ログラムを作成する工数を削減することができ、ファイ
ル仕様の変更に伴う手間を削減することができる効果が
ある。
[Effects of the Invention] As explained above, the present invention provides for a file consisting of a plurality of records each consisting of a fixed-length identifier and a fixed-length item, the identifier of the record belonging to each file before and after conversion. By performing conversion by referring to a rule file that describes the relationship between files and items, it is possible to reduce the number of man-hours required to create a file conversion program, and it is also possible to reduce the time and effort associated with changing file specifications.

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

第1図は本発明の一実施例の構成を示す図、第2図、第
3図および第4図はそれぞれ第1図中の変換項目ファイ
ル作成手段1、項目ファイル作成手段2および規則ファ
イル作成手段3の記述内容を示す図である。 1・・・変換項目ファイル作成手段、 2・・・項目ファイル作成手段、 3・・・規則ファイル作成手段、 4・・・ファイル変換プログラム作成手段。
FIG. 1 is a diagram showing the configuration of an embodiment of the present invention, and FIGS. 2, 3, and 4 are respectively the conversion item file creation means 1, item file creation means 2, and rule file creation in FIG. 1. FIG. 7 is a diagram showing the description content of means 3; 1... Conversion item file creation means, 2... Item file creation means, 3... Rule file creation means, 4... File conversion program creation means.

Claims (1)

【特許請求の範囲】 1、固定長の識別子および項目より構成された複数のレ
コードから成るファイルについてその形式を変換する際
のファイル変換プログラム方式において、 変換前のファイルを構成するレコードのうち、変換され
るレコードを構成する識別子および項目とが記述される
変換項目ファイル作成手段と、変換後のファイルを構成
するレコードのうち、変換されたレコードを構成する識
別子および項目とが記述される項目ファイル作成手段と
、 前記変換項目ファイル作成手段に記述された各識別子お
よび各項目と項目ファイル作成手段に記述された各識別
子および各項目との対応関係がそれぞれ記述される規則
ファイル作成手段と、前記規則ファイル作成手段に記述
された各対応関係に応じてそれぞれ異なる複数の変換プ
ログラムを内蔵し、前記変換項目ファイル作成手段に記
述されている識別子および項目について、前記規則ファ
イル作成手段の記述内容が示す対応関係に対して設けら
れた変換プログラムにより変換を行なう変換プログラム
作成手段とを具備することを特徴とする規則ファイルを
参照するファイル変換プログラム方式。
[Claims] 1. In a file conversion program method for converting the format of a file consisting of a plurality of records composed of fixed-length identifiers and items, the converted means for creating a conversion item file in which identifiers and items constituting records to be converted are written; and creation of an item file in which identifiers and items constituting converted records among records forming the converted file are described. means, a rule file creation means in which a correspondence relationship between each identifier and each item written in the conversion item file creation means and each identifier and each item written in the item file creation means is described, and the rule file A plurality of different conversion programs are built-in according to each correspondence described in the creation means, and the correspondence indicated by the description contents of the rule file creation means is included for the identifiers and items described in the conversion item file creation means. 1. A file conversion program method that refers to a rule file, comprising: conversion program creation means that performs conversion using a conversion program provided for a file.
JP2084047A 1990-03-30 1990-03-30 File conversion program system referring to rule file Pending JPH03282843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2084047A JPH03282843A (en) 1990-03-30 1990-03-30 File conversion program system referring to rule file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2084047A JPH03282843A (en) 1990-03-30 1990-03-30 File conversion program system referring to rule file

Publications (1)

Publication Number Publication Date
JPH03282843A true JPH03282843A (en) 1991-12-13

Family

ID=13819589

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2084047A Pending JPH03282843A (en) 1990-03-30 1990-03-30 File conversion program system referring to rule file

Country Status (1)

Country Link
JP (1) JPH03282843A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664794B2 (en) 2000-02-14 2010-02-16 Nice Systems Ltd. Content-based storage management

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664794B2 (en) 2000-02-14 2010-02-16 Nice Systems Ltd. Content-based storage management
US8195616B2 (en) 2000-02-14 2012-06-05 Nice Systems Ltd. Content-based storage management

Similar Documents

Publication Publication Date Title
CN108269295A (en) The method and device that a kind of lantern slide subject color is intelligently quoted
JP3861044B2 (en) Conversion method of chained join table to tree structure and conversion program
JPH03282843A (en) File conversion program system referring to rule file
JP4706402B2 (en) Information system
JPS63118928A (en) Crt displaying and slip print outputting system
JPH0362128A (en) Output system for data contents
JPS6113616B2 (en)
JP2771368B2 (en) Form design method
JPH06175818A (en) Data converter
JP2002183654A (en) Csv data converter and method of document data
JPS61177532A (en) Area control system
JPH02260047A (en) File converting device
JPH03230261A (en) Time point information control system
JPH0488443A (en) System generation information control method for message transfer
JPH03252721A (en) Page developing system for slip print data
JPH04160635A (en) Program generation system for slip output
JPH04178735A (en) State transition table converter
JPH01220038A (en) Interactive rule base editing device
JPH04104340A (en) Code conversion system by conversion master file
JPH07248840A (en) Charging data interchanging method between different kinds of operating systems
JPH05151331A (en) Data generating system
JPS62107349A (en) File converting system
JP2004005290A (en) Multiple applications setting method
JPH05257653A (en) Communication parameter file generation system
JPH05181727A (en) Data base integrating processor