JPH0245842A - Data file control system - Google Patents
Data file control systemInfo
- Publication number
- JPH0245842A JPH0245842A JP63196974A JP19697488A JPH0245842A JP H0245842 A JPH0245842 A JP H0245842A JP 63196974 A JP63196974 A JP 63196974A JP 19697488 A JP19697488 A JP 19697488A JP H0245842 A JPH0245842 A JP H0245842A
- Authority
- JP
- Japan
- Prior art keywords
- file
- data file
- disk
- data
- information
- 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
- 238000007726 management method Methods 0.000 claims description 53
- 239000000284 extract Substances 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 6
- 238000005192 partition Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明はデータファイルとしてディスク装置上のディス
クファイルと主記憶上のメモリファイルを利用する制御
システムのデータファイル管理方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data file management method for a control system that uses a disk file on a disk device and a memory file on a main memory as data files.
[従来の技術]
データファイルとしてディスクファイルとメモリファイ
ルを利用する制御システムは、それらの特徴をもとにし
て用途に応じて使い分けている。[Prior Art] Control systems that use disk files and memory files as data files are used differently depending on the purpose based on their characteristics.
ディスクファイルの特徴は、記憶できるデータが多く、
記憶されたデータは半永久的に保存されるが、データの
アクセススピードが遅いことである。また、メモリファ
イルの特徴は記憶できるデータは少なく、−時的な記憶
しかできないが、データのアクセススピードが速いこと
である。Disk files are characterized by the large amount of data they can store.
Although the stored data is saved semi-permanently, the data access speed is slow. Furthermore, a memory file is characterized by the fact that it can store only a small amount of data and can only store data temporarily, but the data access speed is fast.
制御システムにおけるデータファイルの利用方法を第3
図にしたがって説明する。Part 3 explains how to use data files in control systems.
This will be explained according to the diagram.
まず、制御システムを設計する際に、オペレータがデー
タファイルとして使用するエリアの定義をして、そのエ
リアをデータファイル管理表51に記入する。このとき
データファイルの用途に応じてディスクファイルにする
かメモリファイルにするかを決めて、これもデータファ
イル管理表51に記入する。これをデータファイル管理
情報という6次にこのデータファイル管理表51に記入
された情報を整理して、ディスクファイルの場合はディ
スクファイル管理表53に、メモリファイルの場合はメ
モリファイル管理表52にデータファイル管理情報を記
入する。ディスクファイルの場合はディスクファイル管
理表53の情報をもとにディスク装置40上にディスク
ファイル41を生成する。また、メモリファイルの場合
はメモリファイル管理表52の情報をもとに主記憶装置
3o上にメモリファイル31を割付ける。このようにオ
ペレータによって割付けられて作成されたデータファイ
ルを制御システムで使用する。First, when designing a control system, an operator defines an area to be used as a data file and enters the area in the data file management table 51. At this time, it is decided whether to use the data file as a disk file or a memory file depending on the purpose of the data file, and this is also entered in the data file management table 51. This is called data file management information.6 Next, organize the information entered in this data file management table 51, and if it is a disk file, write it in the disk file management table 53, and if it is a memory file, write it in the memory file management table 52. Enter file management information. In the case of a disk file, a disk file 41 is generated on the disk device 40 based on the information in the disk file management table 53. Furthermore, in the case of a memory file, the memory file 31 is allocated on the main storage device 3o based on the information in the memory file management table 52. The data file allocated and created by the operator in this way is used by the control system.
制御システムではこのデータファイルを利用する場合、
ディスクファイル41のときはディスクファイル参照手
段56やディスクファイル更新手段57でメモリファイ
ル31のときはメモリファイル参照手段54やメモリフ
ァイル更新手段55で、それぞれデータの参照、更新を
行なう。When using this data file in the control system,
Data is referenced and updated by a disk file reference means 56 and a disk file update means 57 for the disk file 41, and by a memory file reference means 54 and a memory file update means 55 for the memory file 31, respectively.
また、第4図を参照すると、ディスクファイルを利用す
る場合、制御システムで利用できるディスクファイルの
数が限定されていることが多いため、この制限を超えた
ディスクファイルが制御システム全体で必要な場合は、
そのディスクファイル41をデータファイルA、データ
ファイルBのようにレコード単位に分割して他のデータ
ファイルに割付けて利用する場合が多い。このとき、オ
ペレータが制御プログラム60を変更して制御プログラ
ムA、Bを作成し、制御システムでは制御プログラムA
、BによってデータファイルA、データファイルBがそ
れぞれどこに割付けられているかを意識して、データの
参照、更新を行なっている。Also, referring to Figure 4, when using disk files, the number of disk files that can be used by the control system is often limited, so if disk files exceeding this limit are required for the entire control system. teeth,
In many cases, the disk file 41 is divided into record units, such as data file A and data file B, and then allocated to other data files for use. At this time, the operator changes the control program 60 to create control programs A and B, and the control system uses the control program A.
, B, the data is referenced and updated while being aware of where the data files A and B are allocated.
〔発明が解決しようとする課題1
上述した従来の制御システムでは、ディスクファイルや
メモリファイルの割付けおよび1つのディスクファイル
を2つ以上のデータファイルとして利用する場合等、フ
ァイルの割付けを人間の手作業によって行なっているた
め、二重割付は等の割付はミスが発生しやすかった。[Problem to be Solved by the Invention 1] In the conventional control system described above, when allocating disk files and memory files and when using one disk file as two or more data files, file allocation is done manually by humans. Because this is done using ``Double Allocation'', mistakes are likely to occur in ``Double Allocation'' etc.
また、制御システムの機能変更や性能向上を行なう場合
、データファイルの拡張のほかにデータファイルの一部
をディスクファイルからメモリファイルに変更したり、
逆にメモリファイルからディスクファイルに変更したり
する必要も出てくることが多い。この時、ディスクファ
イル、メモリファイルとも割付けをし直す必要があるが
、これには多くの手間がかかり、かつ二重割付けなどの
ミスを起こしやすい。また、ディスクファイルとメモリ
ファイルでは参照、更新方法が異なるため、制御システ
ム内のプログラム自身の変更も必要であるが、この変更
時にミスを起こしゃすく制御システム全体が正しく動作
しなくなる場合もでてくるという欠点がある。In addition, when changing the functions or improving the performance of a control system, in addition to expanding the data file, it is also possible to change part of the data file from a disk file to a memory file.
Conversely, it is often necessary to change from a memory file to a disk file. At this time, it is necessary to reallocate both the disk file and the memory file, but this takes a lot of effort and is prone to mistakes such as double allocation. Also, since the reference and update methods for disk files and memory files are different, it is necessary to change the program itself in the control system, but if you make a mistake when making this change, the entire control system may not work properly. There is a drawback that it comes.
[課題を解決するための手段]
本発明のデータファイル管理情報は、
ファイル作成の際、データファイルの識別番号と作成す
るファイルがディスクファイルかメモリファイルかを示
すディスク・メモリ区分と作成しようとするディスクフ
ァイルのレコードが他のディスクファイルのレコードと
ともに1つのファイルとして作成可能か否かを示す排他
情報とを指定する指定情報と、データファイル作成後に
生成されるファイルの先頭情報および識別名称のデータ
ファイル管理情報とが記録されるデータファイル管理情
報テーブルと、
ファイル作成の際、前記指定情報を、データファイル管
理情報テーブルに、該識別番号対応で記録するデータフ
ァイル管理情報格納手段と、データファイル管理情報テ
ーブルに記録された指定情報を参照して、ディスクファ
イルかあるいはメモリファイルを作成し、その際、ディ
スクファイルを作成する場合で当該制御システムで利用
可能なディスクファイル数を超える時、作成しようとす
るディスクファイルの排他情報を参照して排他指定でな
ければ、既に作成されている排他指定でないファイルを
抽出して該ファイルのレコードと作成しようとするファ
イルのレコードとを含むディスクファイルを作成し、デ
ィスクファイルおよびメモリファイル作成後、該ファイ
ルの先頭情報および識別名称を管理情報テーブルに記録
するデータファイル生成部と、
制御プログラムからファイル識別番号を指定したファイ
ル参照要求を受けた時、該識別番号により前記テーブル
内のデータファイル管理情報を参照して該当するデータ
ファイルをディスク装置か主記憶上から取出して制御プ
ログラムに転送するデータファイル参照手段と、
制御プログラムからファイル識別番号と更新レコード情
報とを含むファイル更新要求を受けた時、該識別番号に
より前記テーブル内のデータファイル管理情報を参照し
て該当するデータファイルを抽出し、更新レコード情報
にしたがってファイル内のレコードの更新を行なうデー
タファイル更新手段とを有している。[Means for Solving the Problems] The data file management information of the present invention is created by including, when creating a file, the identification number of the data file and the disk/memory classification indicating whether the file to be created is a disk file or a memory file. Exclusive information indicating whether records of a disk file can be created as one file together with records of other disk files, specification information that specifies, and a data file that includes the beginning information and identification name of the file that will be generated after the data file is created. a data file management information table in which management information is recorded; a data file management information storage means for recording the specified information in the data file management information table in association with the identification number when creating a file; and data file management information Creates a disk file or memory file by referring to the specified information recorded in the table, and attempts to create it when the number of disk files exceeds the number of disk files that can be used in the control system. Refers to the exclusive information of the disk file, and if the exclusive specification is not specified, extracts an already created file that is not specified as exclusive, creates a disk file containing the record of the file and the record of the file to be created, and creates a disk file. After creating a file and a memory file, a data file generation unit records the start information and identification name of the file in a management information table, and when a file reference request specifying a file identification number is received from the control program, the a data file reference means that refers to data file management information in the table, retrieves the corresponding data file from the disk device or main memory, and transfers it to the control program; and a file containing file identification numbers and updated record information from the control program. When receiving an update request, data file update means refers to data file management information in the table based on the identification number, extracts the corresponding data file, and updates records in the file according to the update record information. have.
[作用]
データファイル管理情報テーブルに記録された情報にし
たがって、データファイル生成部がファイルを作成し、
さらに参照、更新等ファイルを利用する場合においても
その情報を参照することで実行できるので、従来行なっ
ていたオペレータによるファイルの割付け、制御プログ
ラムの変更等が不要となる。[Operation] The data file generation unit creates a file according to the information recorded in the data file management information table,
Further, even when files are used for reference or update, the information can be referred to for execution, thereby eliminating the need for an operator to allocate files, change control programs, etc., which were conventionally done.
〔実施例]
次に、本発明の実施例について図面を参照して説明する
。[Example] Next, an example of the present invention will be described with reference to the drawings.
第1図は本発明のデータファイル管理方式を適用した制
御システムの一実施例を示すブロック図、第2図はデー
タファイル管理情報の一実施例を示す図である。FIG. 1 is a block diagram showing an embodiment of a control system to which the data file management method of the present invention is applied, and FIG. 2 is a diagram showing an embodiment of data file management information.
本実施例の制御システムはデータファイル指定情報入力
装置10とCPU20と主記憶装置3゜とディスク装置
40とで構成されており、主記憶装置30内のメモリフ
ァイルとディスク装置4゜内のディスクファイルの利用
は制御プログラム60によって管理されている。The control system of this embodiment is composed of a data file specification information input device 10, a CPU 20, a main storage device 3°, and a disk device 40, and includes a memory file in the main storage device 30 and a disk file in the disk device 4°. The use of is managed by a control program 60.
データファイル指定情報入力装置1oは、データファイ
ル作成の際指定される、データファイル識別番号と、作
成しようとするファイルがディスクファイルかメモリフ
ァイルかを示すディスク・メモリ区分と、ディスク・メ
モリ区分がディスク指定であってそのディスクファイル
のレコードが他のディスクファイルのレコードとともに
1つのファイルとして作成可能か否かを示す排他情報で
ある排他区分と、ルコードのレコードサイズと、レコー
ド数とのデータファイル指定情報50の入力部である。The data file specification information input device 1o inputs a data file identification number specified when creating a data file, a disk/memory classification indicating whether the file to be created is a disk file or a memory file, and a disk/memory classification indicating whether the file is a disk file or a memory file. Data file specification information including exclusive classification, which is exclusive information that is specified and indicates whether records of the disk file can be created as one file together with records of other disk files, the record size of the code, and the number of records. 50 input sections.
CPU20はデータファイル指定情報格納部21とデー
タファイ管理情報テーブル22とデータファイル生成部
23とデータファイル参照部24とデータファイル更新
部25とを備えている。データファイル指定情報格納部
21は、データファイル指定情報入力装置10から入力
されたデータファイル指定情報50をデータファイル管
理情報テーブル22へ格納する。データファイル管理情
報テーブル22には、第2図に示すように、データファ
イル指定情報50がそれぞれデータファイル識別番号1
01、ルーコードのレコードサイズ102、データファ
イルのレコード数103、ディスク・メモリ区分104
、排他区分105として記録され、さらに、データファ
イルが作成された際に生成される、ディスクファイル識
別名称106とディスクファイル上の開始レコード10
7と主記憶装置30上の開始アドレス108が記録され
る欄が設けられている。データファイル生成部23は、
データファイル管理情報テーブル22に格納されたデー
タファイル指定情報50を参照して、主記憶装置30か
あるいはディスク装置40にデータファイルを作成する
。The CPU 20 includes a data file designation information storage section 21, a data file management information table 22, a data file generation section 23, a data file reference section 24, and a data file update section 25. The data file designation information storage unit 21 stores the data file designation information 50 input from the data file designation information input device 10 into the data file management information table 22. In the data file management information table 22, as shown in FIG.
01, Lou code record size 102, number of data file records 103, disk memory division 104
, an exclusive classification 105, and a disk file identification name 106 and a start record 10 on the disk file, which are generated when the data file is created.
7 and a column in which the start address 108 on the main storage device 30 is recorded. The data file generation unit 23
A data file is created in the main storage device 30 or the disk device 40 by referring to the data file designation information 50 stored in the data file management information table 22.
この時、ディスク・メモリ区分104がディスクファイ
ル指定で排他区分105が排他指定であれば、レコード
サイズ102とレコード数103によってディスクファ
イルを作成し、作成したディスクファイルの名称を生成
してデータファイル管理情報テーブル22のディスクフ
ァイル識別名称106に、また開始レコード107に「
1」を設定する。さらに、ディスク・メモリ区分104
がディスクファイル指定であって排他区分105が排他
指定でない場合で、このディスクファイルを作成するこ
とにより本制御システムで利用可能なディスクファイル
数を超える時は、作成しようとするデータファイルのル
ーコードのレコードサイズ102を参照し、そのサイズ
と同サイズで排他指定でないデータファイルの管理情報
を全て抽出し、それらのレコード数103の合計を求め
てそのレコード数によってディスクファイルを作成し、
作成したディスクファイルの名称を生成して、そのディ
スクに含まれるレコードに関るデータファイルのデータ
ファイル管理情報のディスクファイル識別名称106に
設定する。同時に、開始レコード107には、作成した
ディスクファイルに属している各データファイルに割付
けられた開始レコード番号を設定する。一方、ディスク
・メモリ区分104がメモリファイル指定であれば、ル
ーコードのレコードサイズ102にレコード数103を
掛けたサイズ分のメモリファイルを主記憶装置30上に
作成し、その開始アドレスを開始アドレス108に設定
する。データファイル参照部24は、制御プログラム6
0からのデータファイル参照要求からデータファイルの
識別番号を得て、データファイル管理情報テーブル22
から参照すべきデータファイル管理情報を得て、データ
ファイル管理情報テーブル22から参照すべきデータフ
ァイルのデータファイル管理情報を得、ディスク・メモ
リ区分104がディスクファイル指定であれば、ディス
クファイル識別名称106により、また、ディスク・メ
モリ区分104がメモリファイル指定であれば、開始ア
ドレス108により、参照すべきディスクファイルある
いはメモリファイルを特定し、そのファイルを読出して
制御プログラム60へ転送する。データファイル更新部
25は制御プログラム60からのデータファイル更新要
求よりデータファイルの識別番号と更新すべきレコード
番号と更新データとを得てデータファイル管理情報テー
ブル22から更新すべきデータファイルのデータファイ
ル管理情報を得、ディスク・メモリ区分104がディス
クファイル指定であれば、ディスクファイル識別名称1
06により該当するディスクファイルを特定し、開始レ
コード番号107と更新すべきレコード番号とからディ
スクファイル上の番号を求めて更・新を行なう。また、
ディスク・メモリ区分104がメモリファイル指定であ
れば、開始アドレス108とレコードサイズ102と更
新すべきレコードの主記憶装置30上でのアドレスを求
めて更新を行なう。At this time, if the disk memory section 104 is specified as a disk file and the exclusive section 105 is specified as exclusive, a disk file is created using the record size 102 and the number of records 103, a name is generated for the created disk file, and the data file is managed. In the disk file identification name 106 of the information table 22 and in the start record 107, “
1”. Additionally, disk memory partition 104
is a disk file specification and the exclusive classification 105 is not an exclusive specification, and if creating this disk file exceeds the number of disk files that can be used in this control system, the rule code of the data file to be created is Refers to record size 102, extracts all management information of data files of the same size and not specified as exclusive, calculates the total number of records 103, and creates a disk file with that number of records,
The name of the created disk file is generated and set in the disk file identification name 106 of the data file management information of the data file related to the record included in the disk. At the same time, the start record number assigned to each data file belonging to the created disk file is set in the start record 107. On the other hand, if the disk memory partition 104 is specified as a memory file, a memory file with a size equal to the record size 102 of the Lou code multiplied by the number of records 103 is created on the main storage device 30, and its start address is set as the start address 108. Set to . The data file reference unit 24 is a control program 6
The identification number of the data file is obtained from the data file reference request from 0, and the data file management information table 22
Obtain the data file management information to be referenced from the data file management information table 22, obtain the data file management information of the data file to be referenced from the data file management information table 22, and if the disk/memory classification 104 specifies a disk file, the disk file identification name 106. If the disk/memory partition 104 is designated as a memory file, the start address 108 specifies the disk file or memory file to be referenced, reads that file, and transfers it to the control program 60. The data file update unit 25 obtains the identification number of the data file, the record number to be updated, and the update data from the data file update request from the control program 60, and manages the data file of the data file to be updated from the data file management information table 22. If the information is obtained and the disk memory section 104 is specified as a disk file, the disk file identification name 1
06, the corresponding disk file is specified, and the number on the disk file is determined from the start record number 107 and the record number to be updated, and the update/update is performed. Also,
If the disk memory partition 104 is specified as a memory file, the start address 108, record size 102, and address on the main storage device 30 of the record to be updated are determined and updated.
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
最初に、データファイルの作成についてメモリファイル
31の作成を例にして説明する。First, the creation of a data file will be explained using the creation of the memory file 31 as an example.
まず、データファイルの作成に際して、データファイル
指定情報50の入力を行なうが、ここではデータファイ
ル識別番号とルーコードのレコードサイズとデータファ
イルのレコード数とを、作成しようとするデータファイ
ルの形式にしたがって設定し、ディスク・メモリ区分は
「メモリ」とし、排他区分は無指定である。入力された
データファイル指定情報50は、データファイル指定情
報格納部21によってデータファイル管理情報テーブル
22へ格納される。そのデータファイル指定情報50を
参照してデータファイル生成部23がメモリファイル3
1を主記憶装置30上に作成し、その後、主記憶装置3
0上でのメモリファイル31の開始アドレスをデータフ
ァイル情報テーブル22の開始アドレス108に設定す
る。First, when creating a data file, input the data file specification information 50. Here, the data file identification number, the record size of the roux code, and the number of records of the data file are input according to the format of the data file to be created. The disk/memory classification is set to "memory," and the exclusive classification is unspecified. The input data file designation information 50 is stored in the data file management information table 22 by the data file designation information storage section 21 . With reference to the data file designation information 50, the data file generation unit 23 creates the memory file 3.
1 on the main storage device 30, and then the main storage device 3
The start address of the memory file 31 on 0 is set as the start address 108 of the data file information table 22.
次に、ディスク装置40に作成されているディスクファ
イル41を例にして更新動作を説明する。Next, the update operation will be explained using the disk file 41 created in the disk device 40 as an example.
制御プログラム60がディスクファイル41の識別番号
と更新レコードのレコード番号と更新データを指定して
更新要求を発すると、データファイル更新部25が識別
番号からデータファイル管理情報テーブル22のデータ
ファイル管理情報を参照してディスクファイル41であ
ることを認識し、さらに、更新すべきレコードのレコー
ド番号とディスクファイル41の開始レコード107か
らディスクファイル41内でのレコード番号を求めて所
望の更新を行なう。When the control program 60 issues an update request specifying the identification number of the disk file 41, the record number of the update record, and update data, the data file update unit 25 reads the data file management information of the data file management information table 22 from the identification number. The record number of the record to be updated and the record number within the disk file 41 are obtained from the start record 107 of the disk file 41, and the desired update is performed.
なお、データファイルのデイ、スフファイルからメモリ
ファイルへの変更は、データファイル管理士n報のディ
スク・メモリ区分104を変更して、再度、データファ
イル生成部23によってデータファイルを生成すれば可
能となる。Note that changing the data file from a file to a memory file can be done by changing the disk/memory classification 104 of the data file administrator n report and generating the data file again by the data file generation unit 23. Become.
[発明の効果]
以上説明したように本発明は、データファイル管理情報
テーブルに記録されたデータファイル管理情報にしたが
っ、てデータファイル生成部がデータファイルを作成し
、作成したデータファイルを利用する時はデータファイ
ル参照部または更新部によって、ディスクファイルとメ
モリファイルの参照および更新を行なうことにより、オ
ペレータによってデータファイルの管理を行なっていた
場合のデータファイルの割付はミスが低減でき、データ
ファイルの利用の際、制御プログラムがデータファイル
の割付けを意識する必要がなくなり、さらに、データフ
ァイルの割付けを変更した時、また1つのディスクファ
イルを分割して他のディスクファイルと共有する場合で
も、それらの更新情報および分割情報がデータファイル
管理情報テーブルに記録されるため、制御プログラムを
変更する必要がなくなるという効果がある。[Effects of the Invention] As explained above, the present invention has the following advantages: when the data file generation unit creates a data file according to the data file management information recorded in the data file management information table, and when the created data file is used. By referring to and updating disk files and memory files using the data file reference section or update section, errors in data file allocation can be reduced when data files are managed by an operator, and data file utilization can be reduced. In this case, the control program no longer needs to be aware of the data file allocation, and furthermore, when the data file allocation is changed, or when one disk file is divided and shared with other disk files, those updates are not necessary. Since the information and division information are recorded in the data file management information table, there is an advantage that there is no need to change the control program.
第1図は本発明のデータファイル管理方式を適用した制
御システムの一実施例を示すブロック図、第2図はデー
タファイル管理情報テーブル22に記録されるデータフ
ァイル管理情報を示す図、第3図、第4図は従来例を示
すブロック図である。
10・・・データファイル指定情報入力装置、20・・
・CPU、
21・・・データファイル指定情報格納部、22・・・
データファイル管理情報テーブル、23・・・データフ
ァイル生成部、
24・・・データファイル参照部、
25・・・データファイル更新部、
3o・・・主記憶装置、 31・・・メモリファイル、
40・・・ディスク装置、
41・・・ディスクファイル、
50・・・データファイル管理情報、
60・・・制御プログラム、
101・・・データファイル識別番号、102・・・ル
ーコードのレコードサイズ、103・・・データファイ
ルのレコード数、104・・・ディスク・メモリ区分、
105・・・排他区分、
106・・・ディスクファイル識別名称、107・・・
ディスクファイル上の開始レコード、108・・・主記
憶装置30上でのメモリファイルの開始アドレス。FIG. 1 is a block diagram showing an embodiment of a control system applying the data file management method of the present invention, FIG. 2 is a diagram showing data file management information recorded in the data file management information table 22, and FIG. 3 , FIG. 4 is a block diagram showing a conventional example. 10...Data file specification information input device, 20...
・CPU, 21...Data file specification information storage section, 22...
Data file management information table, 23... Data file generation section, 24... Data file reference section, 25... Data file update section, 3o... Main storage device, 31... Memory file,
40... Disk device, 41... Disk file, 50... Data file management information, 60... Control program, 101... Data file identification number, 102... Record size of Lou code, 103 ...Number of records in data file, 104...Disk/memory classification, 105...Exclusive classification, 106...Disk file identification name, 107...
Start record on disk file, 108 . . . start address of the memory file on main storage device 30.
Claims (1)
ファイルと主記憶上のメモリファイルを作成し、作成し
たデータファイルの参照、更新を、制御プログラムの管
理の下に行なう制御システムにおいて、 ファイル作成の際、データファイルの識別番号と作成す
るファイルがディスクファイルかメモリファイルかを示
すディスク・メモリ区分と作成しようとするディスクフ
ァイルのレコードが他のディスクファイルのレコードと
ともに1つのファイルとして作成可能か否かを示す排他
情報とを指定する指定情報と、データファイル作成後に
生成されるファイルの先頭情報および識別名称のデータ
ファイル管理情報とが記録されるデータファイル管理情
報テーブルと、 ファイル作成の際、前記指定情報を、データファイル管
理情報テーブルに、該識別番号対応で記録するデータフ
ァイル管理情報格納手段と、データファイル管理情報テ
ーブルに記録された指定情報を参照して、ディスクファ
イルかあるいはメモリファイルを作成し、その際、ディ
スクファイルを作成する場合で当該制御システムで利用
可能なディスクファイル数を超える時、作成しようとす
るディスクファイルの排他情報を参照して排他指定でな
ければ、既に作成されている排他指定でないファイルを
抽出して該ファイルのレコードと作成しようとするファ
イルのレコードとを含むディスクファイルを作成し、デ
ィスクファイルおよびメモリファイルの作成後、該ファ
イルの先頭情報および識別名称を管理情報テーブルに記
録するデータファイル生成部と、 制御プログラムからファイル識別番号を指定したファイ
ル参照要求を受けた時、該識別番号により前記テーブル
内のデータファイル管理情報を参照して該当するデータ
ファイルをディスク装置か主記憶上から取出して制御プ
ログラムに転送するデータファイル参照手段と、 制御プログラムからファイル識別番号と更新レコード情
報とを含むファイル更新要求を受けた時、該識別番号に
より前記テーブル内のデータファイル管理情報を参照し
て該当するデータファイルを抽出し、更新レコード情報
にしたがってファイル内のレコードの更新を行なうデー
タファイル更新手段とを有するデータファイル管理方式
。[Claims] 1. In a control system that creates a disk file on a disk device and a memory file on a main memory as data files, and references and updates the created data files under the control of a control program. , When creating a file, the identification number of the data file, the disk/memory classification indicating whether the file to be created is a disk file or a memory file, and the record of the disk file to be created are created as one file along with the records of other disk files. a data file management information table in which are recorded specification information that specifies exclusive information indicating whether or not it is possible, and data file management information of the head information and identification name of the file generated after the data file is created; At this time, data file management information storage means records the specified information in a data file management information table corresponding to the identification number; When creating a file, if the number of disk files that can be used in the control system is exceeded when creating a disk file, refer to the exclusive information of the disk file to be created and if it is not specified as exclusive, the file has already been created. Extract the file that is not specified as exclusive, create a disk file containing the record of the file and the record of the file to be created, and after creating the disk file and memory file, write the start information and identification name of the file. A data file generation unit that records in a management information table, and when receiving a file reference request specifying a file identification number from a control program, refers to the data file management information in the table using the identification number and selects the corresponding data file. a data file reference means that retrieves data from a disk device or main memory and transfers it to a control program; and when a file update request including a file identification number and update record information is received from the control program, the data in the table is retrieved using the identification number. A data file management method comprising a data file update means for extracting a corresponding data file by referring to file management information and updating records in the file according to update record information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63196974A JPH0245842A (en) | 1988-08-05 | 1988-08-05 | Data file control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63196974A JPH0245842A (en) | 1988-08-05 | 1988-08-05 | Data file control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0245842A true JPH0245842A (en) | 1990-02-15 |
Family
ID=16366739
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63196974A Pending JPH0245842A (en) | 1988-08-05 | 1988-08-05 | Data file control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0245842A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03282643A (en) * | 1990-03-29 | 1991-12-12 | Nec Corp | Interactive file control system |
| JPH04120636A (en) * | 1990-09-12 | 1992-04-21 | N T T Data Tsushin Kk | Method for exclusively controlling expanded storage medium in object-oriented data base |
-
1988
- 1988-08-05 JP JP63196974A patent/JPH0245842A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03282643A (en) * | 1990-03-29 | 1991-12-12 | Nec Corp | Interactive file control system |
| JPH04120636A (en) * | 1990-09-12 | 1992-04-21 | N T T Data Tsushin Kk | Method for exclusively controlling expanded storage medium in object-oriented data base |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113157600A (en) | Space allocation method of shingled hard disk, file storage system and server | |
| JPS59146355A (en) | How to reorganize data sets on direct access storage devices | |
| JPH06259478A (en) | Data relocation method for distributed database | |
| JPH0245842A (en) | Data file control system | |
| JPH0887433A (en) | File system block management system | |
| JP4836545B2 (en) | Screen creation device and program | |
| JPS63121940A (en) | File control system | |
| JPH0337748A (en) | External storage accessing system utilizing main storage | |
| JP2618029B2 (en) | How to divide an indexed file | |
| JPH04149648A (en) | Editing system for file control table | |
| JPH01106217A (en) | Parallel storage/reading type data processor | |
| JP3056128B2 (en) | Work area securing method | |
| JP3398672B2 (en) | Intermediate data storage device | |
| HK40058608A (en) | Index construction method and device, data access processing method and device, equipment and medium | |
| JP2572032B2 (en) | Area reservation method on direct access storage device | |
| JPH04223537A (en) | Image file storing system | |
| JPS58165157A (en) | Test controlling system of program using data base | |
| JPS60129852A (en) | File management method | |
| JPH02143318A (en) | Ras processor | |
| JPH04115332A (en) | File managing device | |
| JPH0652019A (en) | File management device | |
| JPH06161836A (en) | Storage medium area management method | |
| JPH04253232A (en) | Data base operating system | |
| JPS6367656A (en) | Processing system for data storing area control | |
| JPH02138645A (en) | Processing system for input order file |