JPS62107349A - File converting system - Google Patents

File converting system

Info

Publication number
JPS62107349A
JPS62107349A JP60248497A JP24849785A JPS62107349A JP S62107349 A JPS62107349 A JP S62107349A JP 60248497 A JP60248497 A JP 60248497A JP 24849785 A JP24849785 A JP 24849785A JP S62107349 A JPS62107349 A JP S62107349A
Authority
JP
Japan
Prior art keywords
conversion
input
file
processing part
output
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
JP60248497A
Other languages
Japanese (ja)
Inventor
Shigenobu Suzuki
重信 鈴木
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 JP60248497A priority Critical patent/JPS62107349A/en
Publication of JPS62107349A publication Critical patent/JPS62107349A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make work for generating a program at every concrete conversion example unnecessary by storing in advance information of a conversion format of a file in a conversion table. CONSTITUTION:A conversion control part 4 fetches converting information by one piece each from a conversion table storage part 3 having a conversion table in which several groups of an input column position (a), an input column number (b), and delimiter information (c) are arranged, and sends (a) and (b), and (c) to an input processing part 2 and an output processing part 5, respectively. Whenever (a) and (b) are received through a transmission line 10, the processing part 2 sends the contents of a designated position in an input buffer to the processing part 5. The processing part 5 puts in the contents of a data which is sent, by delimiting them by said (c). When the data comes not to be sent through the transmission line 10, the contents of an output buffer are written in an output file.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ファイル変換方式、特に、ある用途に適した
ファイルの形式を別の用途に適したファイルの形式に変
換するファイル変換方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file conversion method, and particularly to a file conversion method for converting a file format suitable for one use into a file format suitable for another use.

〔従来の技術〕[Conventional technology]

従来のファイル変換方式は個々の具体例毎にプログラム
を作成することで対処していた。
Conventional file conversion methods deal with this by creating a program for each specific example.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このため、上述した従来のファイル変換方式では、個々
の変換の具体例毎にプログラムを作成せねばならず、プ
ログラムの作成コストが大きくなるという欠点があった
Therefore, in the conventional file conversion method described above, a program must be created for each specific example of conversion, which has the disadvantage of increasing the cost of creating the program.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のファイル変換方式は、入力処理部および出力処
理部と、変換テーブル記憶部と変換制御部とを含んで構
成される。
The file conversion method of the present invention includes an input processing section, an output processing section, a conversion table storage section, and a conversion control section.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示すプa2り図である。FIG. 1 is a diagram showing an embodiment of the present invention.

第1図に示すファイル変換方式は、固定形式ファイル(
フィールドの位置が固定的に決まっているもの)を可変
形式ファイル(フィールドはデリミタで区切られて任意
の長さで並んでいるもの)に変換するものである。
The file conversion method shown in Figure 1 uses fixed format files (
It converts files whose positions are fixed (fields are fixed) into variable format files (fields are separated by delimiters and arranged in arbitrary lengths).

入力処理部2は、入力ファイル1よりデータ転送路7を
通してルコードずつレコードを入力する。変換制御部4
はデータ転送路9を通して変換テーブル記憶部3よシ変
換情報を1つずつ取り出す。変換テーブルは第2図で示
されるように入力力ラム位置a1人カカラム数b/、デ
リミタ情報 ICの組がいくつか並んだものであるので
、変換情報は入力カラム位置a、入力カラム数す、デリ
ミタ情報Cの組である。変換制御部4は変換情報を1組
取り出すたびにデータ転送路8を通して入力カラム位置
aと入力カラム数すを入力処理部2ヘデータ転送路12
を通してデリミタ情報Cを出力処理部5へ送る。入力処
理部2は入力した各レコードに対してデータ転送路8よ
り入力カラム位置aと入力カラム数すを受は取るたびに
、入力バッファ中の指定された位置の内容をデータ転送
路工0を通して出力処理部5へ送る。出力処理部5はデ
ータ転送路10を通して送られてきた、データ内容を出
力バッファ中にデータ転送路12を通して送られてきた
デリミタ情報Cで区切りながら、つめ込んでいく。デー
タ転送路10を通してデータが送られてこなくなると出
力バッ7アの内容をデータ転送路11を通して出力ファ
イルに書き込む。
The input processing unit 2 inputs records from the input file 1 through the data transfer path 7 code by code. Conversion control unit 4
takes out the conversion information one by one from the conversion table storage unit 3 through the data transfer path 9. As shown in Fig. 2, the conversion table is made up of several sets of ICs lined up with input input ram position a, input column number b/, delimiter information, input column position a, input column number b, and delimiter information. This is a set of delimiter information C. Every time the conversion control unit 4 takes out a set of conversion information, it sends the input column position a and the input column number to the input processing unit 2 through the data transfer path 8 to the data transfer path 12.
The delimiter information C is sent to the output processing section 5 through. Each time the input processing unit 2 receives the input column position a and the input column number from the data transfer path 8 for each input record, it transfers the contents of the specified position in the input buffer through the data transfer path 0. It is sent to the output processing section 5. The output processing unit 5 stuffs the data contents sent through the data transfer path 10 into the output buffer while delimiting them with the delimiter information C sent through the data transfer path 12. When no data is sent through the data transfer path 10, the contents of the output buffer 7 are written to an output file through the data transfer path 11.

〔発明の効果〕〔Effect of the invention〕

本発明のファイル変換方式は、変換テーブルにファイル
の変換形式の情報を格納しておくことにより、個々の具
体的な変換例毎にプログラムを作成する作業を不要にで
きるという効果がある。
The file conversion method of the present invention has the effect of making it unnecessary to create a program for each specific conversion example by storing file conversion format information in a conversion table.

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

第1図は本発明の一実施例を示すブロック図、第2図は
第1図に示す変換テーブル記憶部に格納されている変換
テーブルの一例を示す平面図である。 l・・・・・・入力ファイル、2・・・・・・入力処理
部、3・・・・・・変換テーブル記憶部、4・・・・・
・変換制御部、5・−・・・・出力処理部、6・・・・
・・出力ファイル、7〜12・・・・・・データ転送路
、a・・・・・・入力カラム位置、b・・・・・・入力
カラム数、C・・・・・・デリミタ情報。 茅 1 閃 α、       g、     c。 第 2 図
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a plan view showing an example of a conversion table stored in the conversion table storage section shown in FIG. l...Input file, 2...Input processing unit, 3...Conversion table storage unit, 4...
・Conversion control unit, 5... Output processing unit, 6...
...Output file, 7 to 12...Data transfer path, a...Input column position, b...Number of input columns, C...Delimiter information. Kaya 1 Sen α, g, c. Figure 2

Claims (1)

【特許請求の範囲】[Claims] ファイルとの入出力を実行する入力処理部および出力処
理部と、ファイルの形式の変換情報を格納する変換テー
ブル記憶部と、変換作業を制御する変換制御部とを含む
ことを特徴とするファイル変換方式。
File conversion characterized by including an input processing unit and an output processing unit that execute input/output with a file, a conversion table storage unit that stores file format conversion information, and a conversion control unit that controls conversion work. method.
JP60248497A 1985-11-05 1985-11-05 File converting system Pending JPS62107349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60248497A JPS62107349A (en) 1985-11-05 1985-11-05 File converting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60248497A JPS62107349A (en) 1985-11-05 1985-11-05 File converting system

Publications (1)

Publication Number Publication Date
JPS62107349A true JPS62107349A (en) 1987-05-18

Family

ID=17179049

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60248497A Pending JPS62107349A (en) 1985-11-05 1985-11-05 File converting system

Country Status (1)

Country Link
JP (1) JPS62107349A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6489797A (en) * 1987-09-30 1989-04-04 Nec Corp Station data preparing system for accumulated program type electronic exchange

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6489797A (en) * 1987-09-30 1989-04-04 Nec Corp Station data preparing system for accumulated program type electronic exchange

Similar Documents

Publication Publication Date Title
JPS62107349A (en) File converting system
JPS60247732A (en) Data storage device
JPH0254373A (en) Control system for graphic processor
JPS6227836A (en) Storing system for document data
JPS6368945A (en) Double registering system for file
JPS6388632A (en) Printing data converting method
JPH01233614A (en) Document printing system
JPS59142844U (en) Barcode processing device
JP2895892B2 (en) Data processing device
JPS6312044A (en) Data managing system for electronic computer system
JPH0438549A (en) Network topology control system
JPH04178836A (en) Format editing processing system
JPS63118966A (en) Data transfer controller
JPS63213043A (en) File processing system for external memory
JPH0261762A (en) Data processing system
JPS63268050A (en) Continuous converting device for multiple file
JPH0259811A (en) Data input system using tablet device
JPH04260116A (en) Control system for magnetic disk device
JPH01100628A (en) Program coupling system
JPS63249274A (en) Graphic and picture data storage device
JPH02120947A (en) File input/output processing method for information processing system
JPH0319086A (en) State transition table converter
JPH02224112A (en) Unedited output system for internal data
JPH047770A (en) Communication processor
JPS62152074A (en) Control system for graphic display device