JPH04107751A - Method for shifting file environment from low-order system - Google Patents

Method for shifting file environment from low-order system

Info

Publication number
JPH04107751A
JPH04107751A JP2227140A JP22714090A JPH04107751A JP H04107751 A JPH04107751 A JP H04107751A JP 2227140 A JP2227140 A JP 2227140A JP 22714090 A JP22714090 A JP 22714090A JP H04107751 A JPH04107751 A JP H04107751A
Authority
JP
Japan
Prior art keywords
file
command
definition
information
environment
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
JP2227140A
Other languages
Japanese (ja)
Inventor
Masako Watabe
渡部 昌子
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2227140A priority Critical patent/JPH04107751A/en
Publication of JPH04107751A publication Critical patent/JPH04107751A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [概要] 下位システムから上位システムへRDBファイルを移行
する際におけるファイル環境の移行方法に関し、 下位システムから上位システムへのファイル環境の移行
を簡便に行うことを目的とし、下位システムからの資源
を上位システムに移入し、コマンドを入力し、上位シス
テムのライブラリ中のファイル定義体を検索し、検索し
たファイル定義体の情報を上位システムの情報テーブル
域へ展開し、ファイル定義体の情報の中の物理ファイル
名から上位システムのライブラリ中の物理ファイルを検
索し、検索したファイル情報を前記情報テーブル域へ展
開し、変換コマンドのパラメータに情報テーブルの情報
を設定し、制御言語プログラムとして出力し、前記制御
言語プログラムを翻訳・実行することにより上位システ
ム用のファイル環境を作成するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a file environment migration method when migrating an RDB file from a lower system to a higher system, the purpose of the present invention is to easily migrate the file environment from a lower system to a higher system. Transfer resources from the lower system to the higher system, enter a command, search for a file definition in the library of the higher system, expand the information of the searched file definition to the information table area of the higher system, and then write the file definition. Search for a physical file in the library of the upper system based on the physical file name in the body information, expand the searched file information to the information table area, set the information table information in the parameter of the conversion command, and use the control language The control language program is output as a program, and by translating and executing the control language program, a file environment for the host system is created.

[産業上の利用分野コ 本発明は−7:(iシステムから上位システムへRDB
ファイルを移行する際におけるファイル環境の移行方法
に関する。
[Industrial application field] This invention is -7: (RDB from i system to upper system
Concerning how to migrate the file environment when migrating files.

コンピュータシステムのデータ処理において、下位シス
テムで用いていたファイル環境(データベース等の物理
ファイルを含む)を上位システムに移行したい場合かあ
る。しかしなから、下位システムのファイルをそのまま
上位システムに移して上位システムを動作させようとし
ても上位システムではうまく動作しない。ファイルを検
索する検索ツール自体が異なっているため、制御のやり
かた 検索のしかた及び情報の持ちかたか異なるためで
ある。
In data processing of a computer system, there are cases where it is desired to migrate the file environment (including physical files such as databases) used in a lower system to an upper system. However, even if you try to move the files from the lower system to the higher system and make it work on the higher system, it will not work properly on the higher system. This is because the search tools used to search for files are different, and the way they are controlled, how they search, and how they hold information are also different.

[従来の技術] 第4図は従来のファイル環境の移行方法の説明図である
。10は下位システム、20は上位システムである。図
は下位システム10から上位システム20へのファイル
環境の移行を示している。
[Prior Art] FIG. 4 is an explanatory diagram of a conventional file environment migration method. 10 is a lower system, and 20 is an upper system. The figure shows the migration of the file environment from the lower system 10 to the higher system 20.

下位システム10には物理ファイル1とファイル定義体
2か含まれている。ここで、物理ファイルとはデータベ
ースの一種で、例えば住所1氏名。
The lower system 10 includes a physical file 1 and a file definition body 2. Here, the physical file is a type of database, for example, an address and a name.

電話番号等のデータより構成されるファイルである。こ
れに対し、論理ファイルとは、例えは氏名データをキー
にして他の住所、電話番号等を検索する時の検索条件等
か格納されたファイルである。
This is a file consisting of data such as telephone numbers. On the other hand, a logical file is a file that stores search conditions when searching for other addresses, telephone numbers, etc. using name data as a key, for example.

これら物理ファイルと論理ファイルを併せてRDBファ
イルという。ファイル定義体2は、物理ファイルと論理
ファイルとを関連づける情報が入った単位をいう。
These physical files and logical files are collectively called an RDB file. The file definition body 2 is a unit containing information that associates physical files and logical files.

下位システム10からのRDBファイルを移行する場合
、先ず上位システム20に下位システム10の資源を移
入し、仕分は作業を行う。その後、以下に示すような作
業を行っている。
When transferring an RDB file from the lower system 10, first, the resources of the lower system 10 are transferred to the upper system 20, and sorting is performed. After that, we performed the following tasks.

(1)下位システム10てのファイル定義体2の内容を
意識して移入したファイル定義体をファイル定義体変換
ツール11にかけ、ファイル定義体の変換コマンドを実
行し、ファイル定義体を上位システムのフォーマットに
合うように変換する(図の■)。
(1) Apply the file definition structure imported with the contents of file definition structure 2 in the lower system 10 in mind to the file definition structure conversion tool 11, execute the file definition conversion command, and convert the file definition structure into the format of the upper system. (■ in the figure).

(2)次に、ファイル定義体変換ツール11の出力結果
を確認した後、ファイル定義体作成ツール12を用いて
上位システム用のファイル定義体を作成する(図の■)
(2) Next, after checking the output result of the file definition conversion tool 11, create a file definition for the upper system using the file definition creation tool 12 (■ in the figure)
.

(3)次に、下位システム10てのRDBファイルの形
式を意識し、物理ファイル1である時には、物理ファイ
ル作成コマンドのパラメータを設定して実行して物理フ
ァイル14を作成する(図の■)。論理ファイルである
時には、論理ファイルの作成コマンドのパラメータを設
定して実行して論理ファイル15を作成する(図の■)
(3) Next, be aware of the format of the RDB file in the lower system 10, and if it is physical file 1, set the parameters of the physical file creation command and execute it to create physical file 14 (■ in the diagram) . If it is a logical file, set the parameters of the logical file creation command and execute it to create logical file 15 (■ in the diagram)
.

(4)前記■の処理により物理ファイル14か作成され
たら、その物理ファイル14に下位システム10から移
入したデータを格納する(図の■)。
(4) When the physical file 14 is created by the process of (■) above, the data imported from the lower system 10 is stored in the physical file 14 (■ in the figure).

資源が複数ある場合には、その資源毎に(1)〜(4)
の作業を行う。このようにして、下位システム10と全
く同し環境のRDBファイル環境か作成される。13は
作成された上位システム用ファイル定義体、14は物理
ファイル、]5は論理ファイルである。
If there are multiple resources, perform (1) to (4) for each resource.
perform the work. In this way, an RDB file environment that is exactly the same environment as the lower system 10 is created. 13 is a created file definition for the upper system, 14 is a physical file, and ]5 is a logical file.

[発明が解決しようとする課題] このような一連の作業は、オペレータによる手作業で行
われる。つまり、従来はオペレータか画面を見なからフ
ァイル定義体かとのように定義しであるかを確認してか
ら、上位システム20に合うように変更作業を行ってい
た。従って、従来方法は以下に示すような問題があった
[Problems to be Solved by the Invention] Such a series of operations is performed manually by an operator. In other words, in the past, the operator had to check the file definition without looking at the screen, and then make changes to match the host system 20. Therefore, the conventional method has the following problems.

■手作業によるものであるため、手順か多くミスを犯し
やすい。
■Since it is done manually, there are many steps and it is easy to make mistakes.

■ファイル定義体、ファイルの内容をオペレータは常に
意識しなから作業を行う必要かあるため、作業が面倒で
ある。
■Work is troublesome because the operator must always be aware of the contents of the file definition and file.

■移行対象資源が多くなればなるほど、膨大な工数を必
要とする。
■The more resources to be migrated, the more man-hours are required.

本発明はこのような課題に鑑みてなされたものであって
、下位システムから上位システムへのフアイル環境の移
行を簡便に行う二とかできる下位システムからのファイ
ル環境の移行方法を提供することを目的としている。
The present invention has been made in view of these problems, and an object of the present invention is to provide a method for migrating a file environment from a lower system to an upper system, which allows the file environment to be easily migrated from a lower system to a higher system. It is said that

[課題を解決するための手段] 第1図は本発明方法の原理を示すフローチャートである
。本発明は、 下位システムからの資源を上位システムに移入しくステ
ップ1)、 コマンドを入力しくステップ2)、 上位システムのライブラリ中のファイル定義体を検索し
、検索したファイル定義体の情報を上位システムの情報
テーブル域へ展開しくステップ3)ファイル定義体の情
報の中の物理ファイル名から上位システムのライブラリ
中の物理ファイルを検索し、検索したファイル情報を前
記情報テーブル域へ展開しくステップ4)、 変換コマンドのパラメータに情報テーブルの情報を設定
し、制御言語プログラムとして出力しくステップ5)、 前記制御言語ブロクラムを翻訳・実行することにより上
位システム用のファイル環境を作成する(ステップ6)
ようにしたことを特徴としている。
[Means for Solving the Problems] FIG. 1 is a flowchart showing the principle of the method of the present invention. In the present invention, in step 1), resources from a lower system are transferred to an upper system, in step 2), a command is input, a file definition is searched in the library of the upper system, and the information of the searched file definition is transferred to the upper system. Step 3) Search for a physical file in the library of the upper system from the physical file name in the file definition information, and expand the searched file information to the information table area.Step 4) Set the information in the information table as a parameter of the conversion command and output it as a control language program (Step 5), and create a file environment for the upper system by translating and executing the control language program (Step 6).
It is characterized by the fact that

[作用〕 コマンドを1つ入力し、そのコマンドを受けると下位シ
ステムから上位システムへの移行作業をコマンド内部で
処理させるようにした。これにより、オペレータはコマ
ンドを1つ入力するたけてすみ、下位システムから上位
システムへのファイル環境の移行を簡便に行うことがで
きる。また、本発明によれば制御言語プログラム出力方
式を採用しているので、その内用を変更する時に柔軟に
対応することかできる。
[Function] One command is input, and when that command is received, the migration work from the lower system to the higher system is processed within the command. As a result, the operator only needs to input one command, and the file environment can be easily migrated from the lower system to the higher system. Further, according to the present invention, since a control language program output method is adopted, it is possible to flexibly respond to changes in internal use.

[実施例コ 以下、図面を参照して本発明の実施例を詳細に説明する
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は本発明の動作を示す図である。以下、図面に沿
って説明する。
FIG. 2 is a diagram showing the operation of the present invention. The explanation will be given below along with the drawings.

(1)コマンドを入力する(図の■)。この時、コマン
ド入力時のパラメータとしてオペレータ(利用者)にフ
ァイル定義体名を指定してもらう。
(1) Enter the command (■ in the diagram). At this time, the operator (user) is asked to specify the file descriptor name as a parameter when inputting a command.

ここで、ファイル定義体名としては、単独のファイル定
義体名であっても、ファイル定義体名を総称したもので
あってもよい。
Here, the file definition name may be a single file definition name or a generic name of file definition names.

(2ンコマンドを入力すると、このコマンドはそのファ
イル定義体名を基に上位システムのライブラリ30中の
ファイル定義体名を検索する(図の■)。ファイル定義
体21は、図に示すように例えばAからMまて存在する
。これら定義体のうちからコマンドに対応した定義体名
を探す。この場合において、指定したファイル定義体名
が単一名であった場合には指定ファイル定義体を処理対
象とし、総称名指定時はライブラリ30中のすべてのフ
ァイル定義体を処理対象とする。
(When you enter the 2 command, this command searches for the file definition name in the library 30 of the upper system based on the file definition name (■ in the figure). For example, there are definition entities A to M. Search for the definition entity name that corresponds to the command from among these definition entities. In this case, if the specified file definition entity name is a single name, the specified file definition entity is When a generic name is specified, all file definition bodies in the library 30 are processed.

(3)ファイル定義体が検索できたら、そのファイル定
義体から次の情報を採取し、情報テーブル域40に展開
する(図の■)。採取される情報は、以下のとおりであ
る。
(3) Once the file definition is retrieved, the following information is collected from the file definition and expanded into the information table area 40 (■ in the figure). The information collected is as follows.

■ファイル定義体の種類 物理ファイル用 論理ファイル用 ■レコード長 ■ブロック化因数 ■物理ファイル名 (4)情報テーブル域40に上述したような情報が展開
されたら、そのうちの物理ファイル名からライブラリ3
0内の物理ファイル22を検索する(図の■)。図には
、物理ファイル1から物理ファイル6まての6個のファ
イルが存在している場合を示している。
■File definition type For physical files For logical files ■Record length ■Blocking factor ■Physical file name (4) When the information described above is expanded to the information table area 40, from the physical file name to the library 3
The physical file 22 within 0 is searched (■ in the figure). The figure shows a case where six files, physical file 1 to physical file 6, exist.

(5)物理ファイルが見つかったら、その物理ファイル
のファイルラベル22aから以下の情報を採取し、テー
ブル域に40に展開する(図の■)。
(5) When a physical file is found, the following information is collected from the file label 22a of the physical file and expanded to 40 in the table area (■ in the figure).

■データ領域内の論理レコード数 ■ブロック化因数 ■レコード長 (6)情報テーブル域40からの各種情報を展開し、各
コマンドのパラメータに設定する値を求める(図の■)
■Number of logical records in the data area ■Blocking factor ■Record length (6) Expand various information from the information table area 40 and find the values to be set in the parameters of each command (■ in the diagram)
.

(7)設定する値か求まったら、その値を基に各コマン
ドのパラメータの設定を行う(図の7>。
(7) Once you have determined the value to be set, set the parameters for each command based on that value (7 in the figure).

(8) 各コマンドのパラメータの設定によりコマンド
列となったものを、制御言語ブロクラムとして出力する
(図の■)。このようなシーケンスを繰り返すことによ
り制御言語ブロクラム50か作成される。
(8) Output the command string formed by setting the parameters of each command as a control language blockrum (■ in the figure). A control language blockrum 50 is created by repeating such a sequence.

なお、総称名指定の場合には(2)から(7)までを繰
り返し、1本の制御言語ブロクラムとして出力する。
In addition, in the case of specifying a generic name, steps (2) to (7) are repeated and output as one control language blockrum.

このように、本発明によれば(1)から(8)までのシ
ーケンスをコマンド内部で処理するため、オペレータは
コマンドを1個入力するたけてすむ。
As described above, according to the present invention, since the sequence from (1) to (8) is processed within the command, the operator only needs to input one command.

また、制御言語プログラム出力方式を採用しているので
、その内容を変更する時等、柔軟な対応か可能となる。
In addition, since a control language program output method is adopted, it is possible to respond flexibly when changing the contents.

第3図は本発明の全体の動作を示す図である。FIG. 3 is a diagram showing the overall operation of the present invention.

第2図、第4図と同一のものは、同一の符号を付して示
す。
Components that are the same as those in FIGS. 2 and 4 are designated by the same reference numerals.

(1)先ず、下位システム1(]中のRDB1yイル環
境を媒体に退避する。
(1) First, save the RDB1y environment in the lower system 1() to a medium.

(2)次に、下位システム1C]のRDBファイル環境
を、上位システム30の中のライブラリに移入する。こ
のようにして上位システム30に移入された移入資源を
31とする。
(2) Next, the RDB file environment of the lower system 1C is imported into the library in the higher system 30. Let 31 be the imported resources imported into the host system 30 in this way.

(3)資源の仕分けを行う。(3) Sort resources.

(4)資源の仕分けか終了したら、本コマンドを実行す
る。コマンド実行の詳細な手順は、第2図を用いて詳細
に説明したとおりである。この時、コマンド入力時のパ
ラメータとしてオペレータはファイル定義体名を指定す
るか、単一名指定であれば指定ファイル定義体を検索し
、総称名指定であれば、ライブラリ30中の全てのファ
イル定義体を順次処理する。
(4) After sorting the resources, execute this command. The detailed procedure for executing the command is as explained in detail using FIG. 2. At this time, the operator specifies the file descriptor name as a parameter when inputting the command, or if a single name is specified, the specified file descriptor is searched, or if a generic name is specified, all file definitions in the library 30 are searched. Process the body sequentially.

(5)本コマンドの実行結果として、環境設定用制御言
語プログラム32か作成される。
(5) As a result of executing this command, the environment setting control language program 32 is created.

(6)この環境設定用制御言語プログラム32を翻訳し
、環境設定用オブジェクトプログラム33か作成され、
この環境設定用オブジェクトプログラム33を実行する
ことにより、上位システム用のRDBファイル環境34
か構築される。この上位システム用のRDBファイル環
境34は、F位システム10と同一環境となる。
(6) This environment setting control language program 32 is translated, and an environment setting object program 33 is created.
By executing this environment setting object program 33, the RDB file environment 34 for the upper system is created.
Or constructed. This RDB file environment 34 for the upper system is the same environment as the F-rank system 10.

[発明の効果] 以上、詳細に説明したように、本発明によればコマンド
を1つ入力し、そのコマンドを受けると下位システムか
ら上位システムへの移行作業をコマンド内部で処理させ
るようにすることにより、オペレータはコマンドを1つ
入力するたけてすみ、下位システムから上位システムへ
のファイル環境の移行を簡便に行うことができる。また
、本発明によれば制御言語プログラム出力方式を採用し
ているので、その内用を変更する時に柔軟に対応するこ
とができる。
[Effects of the Invention] As described above in detail, according to the present invention, one command is input, and when that command is received, the migration work from the lower system to the higher system is processed within the command. This allows the operator to input just one command, making it easy to migrate the file environment from the lower system to the higher system. Further, according to the present invention, since a control language program output method is adopted, it is possible to flexibly respond to changes in internal use.

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

第1図は本発明方法の原理を示すフローチャ第2図は本
発明の動作を示す図、 第3図は本発明の全体の動作を示す図、第4図は従来の
ファイル環境の移行方法の説明図である。 第2図において、 2]はファイル定義体、 22は物理ファイル、 22aはファイルラベル、 30は上位システムのライブラリ、 40は情報テーブル域、 50は制御言語プログラムである。
Figure 1 is a flow chart showing the principle of the method of the present invention. Figure 2 is a diagram showing the operation of the present invention. Figure 3 is a diagram showing the overall operation of the present invention. Figure 4 is a diagram showing the conventional file environment migration method. It is an explanatory diagram. In FIG. 2, 2] is a file definition body, 22 is a physical file, 22a is a file label, 30 is a library of the upper system, 40 is an information table area, and 50 is a control language program.

Claims (1)

【特許請求の範囲】 下位システムからの資源を上位システムに移入し(ステ
ップ1)、 コマンドを入力し(ステップ2)、 上位システムのライブラリ中のファイル定義体を検索し
、検索したファイル定義体の情報を上位システムの情報
テーブル域へ展開し(ステップ3)ファイル定義体の情
報の中の物理ファイル名から上位システムのライブラリ
中の物理ファイルを検索し、検索したファイル情報を前
記情報テーブル域へ展開し(ステップ4)、 変換コマンドのパラメータに情報テーブルの情報を設定
し、制御言語プログラムとして出力し(ステップ5)、 前記制御言語プログラムを翻訳・実行することにより上
位システム用のファイル環境を作成する(ステップ6)
ようにしたことを特徴とする下位システムからのファイ
ル環境の移行方法。
[Claims] Transfer resources from the lower system to the higher system (step 1), input a command (step 2), search for a file definition in the library of the higher system, and retrieve the searched file definition. Expand the information to the information table area of the upper system (Step 3) Search for a physical file in the library of the upper system from the physical file name in the information of the file definition, and expand the searched file information to the information table area. (Step 4), set the information in the information table to the parameters of the conversion command, output it as a control language program (Step 5), and create a file environment for the upper system by translating and executing the control language program. (Step 6)
A method for migrating a file environment from a lower system, characterized by the following.
JP2227140A 1990-08-29 1990-08-29 Method for shifting file environment from low-order system Pending JPH04107751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2227140A JPH04107751A (en) 1990-08-29 1990-08-29 Method for shifting file environment from low-order system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2227140A JPH04107751A (en) 1990-08-29 1990-08-29 Method for shifting file environment from low-order system

Publications (1)

Publication Number Publication Date
JPH04107751A true JPH04107751A (en) 1992-04-09

Family

ID=16856114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2227140A Pending JPH04107751A (en) 1990-08-29 1990-08-29 Method for shifting file environment from low-order system

Country Status (1)

Country Link
JP (1) JPH04107751A (en)

Similar Documents

Publication Publication Date Title
US5745896A (en) Referential integrity in a relational database management system
US5561793A (en) System and methods for data field management in a computer database system
US5717925A (en) Information catalog system with object-dependent functionality
EP0667586A2 (en) Database generator
US20010003455A1 (en) Method, system and graphic user interface for entering and editing filter conditions for filtering a database
JPS603056A (en) Information rearranging device
JPS62194532A (en) Processing target instruction pattern display device
US20020147725A1 (en) Method and apparatus for database table definition
JP2769100B2 (en) Parallel tables for data models with inheritance
US6778983B1 (en) Apparatus and method for accessing HTML files using an SQL query
US20030225787A1 (en) System and method for storing and retrieving thesaurus data
JP2629034B2 (en) File management method for data with identifiers of unlimited length
KR890016474A (en) Database object analysis method and system
CN115809268A (en) Self-adaptive query method and device based on fragment index
JP2690648B2 (en) Network address management device
JP2785966B2 (en) Foreign key dynamic resolution processing method
JPH11219372A (en) Data categorizing device
JPS63257826A (en) Data base retrieval device
JPH04318672A (en) Information retreiving device
JPH0785079A (en) Device for managing information file
JPH02302869A (en) File edition system
Blšták et al. Specification of web applications design in CASE using UML and its mapping to an implementation environment
JPH04160540A (en) Data file management system
JPS63225857A (en) Resembling character retrieval system
JPH02270029A (en) Extracting system for patch information using patch area