JPH02307138A - Record control system for index forward compiling file - Google Patents

Record control system for index forward compiling file

Info

Publication number
JPH02307138A
JPH02307138A JP1128173A JP12817389A JPH02307138A JP H02307138 A JPH02307138 A JP H02307138A JP 1128173 A JP1128173 A JP 1128173A JP 12817389 A JP12817389 A JP 12817389A JP H02307138 A JPH02307138 A JP H02307138A
Authority
JP
Japan
Prior art keywords
area
index
file
volumes
record
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
JP1128173A
Other languages
Japanese (ja)
Inventor
Masae Takahashi
正衛 高橋
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 JP1128173A priority Critical patent/JPH02307138A/en
Publication of JPH02307138A publication Critical patent/JPH02307138A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To add the new volumes in response to the increase of the number of records and to ensure the expansion properties by setting an index area and a data area to the different volumes. CONSTITUTION:A file control mechanism 13 is prepared together with a user program 14, the floppy disk drivers 16-1 and 16-2 which drive the volumes A and B, and a floppy disk controller (FDC) which controls both drivers 16-1 and 16-2. Then an index area 2 and a data area 5 are added to the volumes A and B respectively. Thus the new volumes are added in response to the increase of the number of records and the extension properties are ensured.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、フロッピィディスク等の記憶媒体に格納され
る索引順編成ファイルのデータ領域および索引領域の格
納領域に関し、特にデータ領域および索引領域とをそれ
ぞれ別々の記憶媒体に格納した索引順編成ファイルにお
けるレコード管理方式に関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention relates to a data area and an index area storage area of an index sequential file stored in a storage medium such as a floppy disk, and in particular to a data area and an index area storage area. This invention relates to a record management method for an indexed sequential file in which files are stored in separate storage media.

〈従来の技術) ダイレクトアクセスができるフロッピィディスク上にフ
ァイルを作成する場合には、任意のレコードに対してラ
ンダムアクセスが可能な索引順編成ファイルが多く用い
られている。
(Prior Art) When creating a file on a floppy disk that allows direct access, indexed sequential files that allow random access to arbitrary records are often used.

第6図は、そのような索引順編成ファイルのフロッピィ
ディスク上の物理構造を示したものである。一つのボリ
ューム(フロッピィディスク)20に、ファイル名等の
ファイル属性が格納されるデータセットラベル21、空
き領域等を管理する情報が格納されるサブヘッドラベル
(SHL)22、キー等が格納される索引類h123お
よびレコードが格納されるデータ領域24が設けられて
いる。なお、索引領域23は、サブヘッダラベル23の
直後から領域の終端方向に向って使用され、データ領域
24は領域の終端から始端の方向に向って使用されてい
く。
FIG. 6 shows the physical structure of such an indexed sequential file on a floppy disk. One volume (floppy disk) 20 stores a dataset label 21 in which file attributes such as file names are stored, a subhead label (SHL) 22 in which information for managing free space, etc. is stored, keys, etc. An index h123 and a data area 24 in which records are stored are provided. The index area 23 is used from immediately after the subheader label 23 toward the end of the area, and the data area 24 is used from the end of the area toward the start.

(発明が解決しようとする課題) 上述したように、従来の索引111 m成ファイルでは
同一ボリューム上にデータ領域と索引領域とを設けてい
る。従って、そのボリュームの容量を超えたレコードを
格納できないので、拡張性がなかった。
(Problems to be Solved by the Invention) As described above, in the conventional index 111 m file, a data area and an index area are provided on the same volume. Therefore, it is not possible to store records that exceed the capacity of the volume, so there is no expandability.

本発明は、このような事情に鴛みてなされたものであり
、その目的は、レコード件数の伸び従いボリュームを追
加することができる索引順編成ファイルにおけるレコー
ド管理方式を提供することにある。
The present invention has been developed in light of these circumstances, and its purpose is to provide a record management system for indexed sequential files that allows volumes to be added as the number of records increases.

(課題を解決するための手段) 本発明の索引順編成ファイルにおけるレコード管理方式
は、上記目的を達成するために、同一の記憶媒体にデー
タ領域と索引領域とを設け、前記データ領域にレコード
を格納すると共に該レコード対応するキーを前記索引領
域に格納している索引順編成ファイルにおけるレコード
管理方式において、 前記データ領域および前記索引領域は別々の前記記憶媒
体にそれぞれ設けてある。
(Means for Solving the Problems) In order to achieve the above object, the record management method for indexed sequential files of the present invention provides a data area and an index area in the same storage medium, and stores records in the data area. In the record management method for an indexed sequential file in which a key corresponding to the record is stored in the index area, the data area and the index area are provided in separate storage media.

(作用) 本発明の索引順編成ファイルにおけるレコード管理方式
においては、別々の前記記憶媒体に前記データ領域およ
び前記索引領域をそれぞれ設けている。従って、レコー
ド件数の伸びに応じて新たなボリュームを追加すること
ができ、拡張性を持たせることができる。
(Operation) In the record management system for an indexed sequential file of the present invention, the data area and the index area are provided in separate storage media. Therefore, new volumes can be added as the number of records increases, providing expandability.

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

第1図は本発明の一実施例の構成図である。同図におい
て、13はファイル管理R構、14はユーザプログラム
、16−1.16−2はボリュームA、Bをドライブす
るフロッピィディスクドライバ、15はフロッピィディ
スクドライバ16−1.16−2を制御するフロッピィ
ディスクコントローラ(FDCと称する)である、ファ
イル管理機構13は、ファイル領域確保手段17、ファ
イルオープン手段18、レコード書き込み手段19およ
びレコード読み出し手段20とから成る。
FIG. 1 is a block diagram of an embodiment of the present invention. In the figure, 13 is a file management R structure, 14 is a user program, 16-1.16-2 is a floppy disk driver that drives volumes A and B, and 15 is a floppy disk driver that controls the floppy disk driver 16-1.16-2. The file management mechanism 13, which is a floppy disk controller (referred to as FDC), includes a file area securing means 17, a file opening means 18, a record writing means 19, and a record reading means 20.

第2図は本発明を適用した索引順編成ファイルを格納す
るボリュームの論理構造を示したものである。ボリュー
ムAには索引領域2が、ボリュームBにはデータ領域5
がそれぞれ別々に設けられてる。なお、同図において、
第6図と同一符号は同一部分を示す。
FIG. 2 shows the logical structure of a volume that stores indexed sequential files to which the present invention is applied. Volume A has index area 2, and volume B has data area 5.
are provided separately for each. In addition, in the same figure,
The same reference numerals as in FIG. 6 indicate the same parts.

第3図は索引順編成ファイルの論理構造の概念を示した
ものである。ボリュームAにはマスクインデックス30
、階層化されたシリンダインデックス31−1〜31−
3およびトラックインデックス32−1〜32−3が含
まれ、ボリュームBにはデータを格納しているデータレ
コード33−1〜33−6が含まれている。
FIG. 3 shows the concept of the logical structure of an indexed sequential file. Mask index 30 for volume A
, hierarchical cylinder indexes 31-1 to 31-
3 and track indexes 32-1 to 32-3, and volume B includes data records 33-1 to 33-6 storing data.

第4図は、インデックス(マスクインデックス30、シ
リンダインデックス31−1〜31−3およびトラック
インデックス32−1〜32−4)の構成例を示したも
のである。各インデックスは、各インデックス間を相方
向にリンクするポインタPP、NPを含む水平ポインタ
8および下位のインデックスを示すポインタおよびキー
を等含むエントリ10−1〜10−nより構成される。
FIG. 4 shows an example of the configuration of the indexes (mask index 30, cylinder indexes 31-1 to 31-3, and track indexes 32-1 to 32-4). Each index is composed of a horizontal pointer 8 including a pointer PP and NP that mutually link each index, and entries 10-1 to 10-n including a pointer indicating a lower index, a key, etc.

第5図は、第4図におけるエントリの構成例を示したも
のである。各エントリは、キ一部12およびポインタ部
13から構成される。−Ir一部12にはキーが格納さ
れる。マスクインデックス30およびシリンダディスク
31−1〜31−3のポインタ部13は、トラックイン
デックスを格納されているアドレス(即ちボリュームA
内のアドレス)を示し、トラックインデックス32−1
〜32−3のポインタ部13はデータレコードを格納し
ているアドレス(即ちボリュームB内のアドレス)を示
す。
FIG. 5 shows an example of the structure of the entries in FIG. 4. Each entry consists of a key part 12 and a pointer part 13. -Ir portion 12 stores a key. The mask index 30 and the pointer section 13 of the cylinder disks 31-1 to 31-3 point to the address where the track index is stored (that is, the volume A
track index 32-1).
The pointer section 13 of ~32-3 indicates the address storing the data record (that is, the address within volume B).

次に、第1図の実施例において、ファイル領域を確保し
てデータレコードを格納する際の動作を説明する。先ず
、ユーザプログラム14からファイル領域確保要求がフ
ァイル管理機構13に出される、そうすると、領域確保
手段17がこのファイル領域確保要求を受は取る。そし
て、FDC5を制御し、例えば、フロッピィディスクド
ライバ10−1に装填されているボリュームAに索引領
域を、フロッピィディスクドライバ16−2に装填され
ているボリュームBにデータ領域をそれぞれ確保する1
次にボリュームAのサブへツタラベル1には索引領域1
を設けた旨の情報を、ボリュームBのサブヘヅタラベル
4にはデータ領域を設けた旨の情報をそれぞれ記録する
。従って、ボリュームA、Bは第2図に示すような構成
となる。
Next, the operation of securing a file area and storing data records in the embodiment shown in FIG. 1 will be described. First, a request for securing a file area is issued from the user program 14 to the file management mechanism 13. Then, the area securing means 17 receives and receives this request for securing a file area. Then, the FDC 5 is controlled to secure an index area in volume A loaded in the floppy disk driver 10-1 and a data area in volume B loaded in the floppy disk driver 16-2.
Next, go to the sub of volume A. The index area 1 is in the index area 1.
Information indicating that a data area has been provided is recorded on the subheter label 4 of volume B, and information indicating that a data area has been provided is recorded respectively. Therefore, volumes A and B have a configuration as shown in FIG.

ファイル領域が確保されると、ユーザプログラム14は
、次に、ファイルオープン要求をファイル管理機!f4
13に出す、そうすると、ファイルオープン手段18が
、このファイルオープン要求を受は取り、FDC15お
よびフロッピィディスクドライバ16−1.16−2を
介してボリュームA、Bのサブへツタラベル1.4内の
情報を読み込んで各ボリュームに対するアクセスに備え
る。
Once the file area is secured, the user program 14 then sends a file open request to the file management machine! f4
13, the file open means 18 receives this file open request and sends the information in the label 1.4 to the sub volumes A and B via the FDC 15 and the floppy disk driver 16-1.16-2. to prepare for accessing each volume.

このような処理が終了してユーザプログラム14がレコ
ード書き込み要求を出すと、レコード格納手段19はレ
コード書き込み要求と一緒に受は取ったデータおよびキ
ーをそれぞれのボリュームに格納する。即ち、次のよう
な処理を行う、先ず、受は取ったデータおよびキーを含
んだレコードをボリュームBの未使用領域6に書き込み
、サブへツタラベル4内の未使用領域の終了アドレスを
更新する0例えば、第3図に示すようにキーとして「1
09」を含んだデータレコード33−1が格納される。
When such processing is completed and the user program 14 issues a record write request, the record storage means 19 stores the data and key received together with the record write request in the respective volumes. That is, the following process is performed. First, the receiver writes a record containing the received data and key to the unused area 6 of volume B, and updates the end address of the unused area in the sub label 4. For example, as shown in Figure 3, the key is "1".
Data record 33-1 containing "09" is stored.

次に、このデータレコードに対応する第5図に示すよう
なエントリを作成し、所定のトラ・タフインデックスに
このエントリを登録する0例えば、ポインタ部13には
データレコード33−1に対応する相対セクタアドレス
および相対レコード番号が格納され、キ一部12には上
述したキー’109Jが格納される。そして、このエン
トリは、第3図に示すように、トラックインデックス3
2−1に登録される。このような動作が繰り返されるこ
とによりボリュームA、Bは、第3図に示すような状態
になる。
Next, create an entry as shown in FIG. 5 that corresponds to this data record, and register this entry in a predetermined index. A sector address and a relative record number are stored, and the key section 12 stores the above-mentioned key '109J. Then, this entry is set to track index 3, as shown in Figure 3.
It is registered in 2-1. By repeating such operations, the volumes A and B will be in the state shown in FIG. 3.

次に、ユーザプログラム14からレコードの読み出し要
求があった際の動作を説明する。レコード読み出し手段
20は、ユーザプログラム14からキー情報を含んだレ
コード読み出し要求を受は取る。そして、このキー情報
に基づいてマスクインデックス30、シリンダインデッ
クス31−1〜31−3、トラックインデックス32−
1〜32−3の順に検索し、目的のデータレコードを見
つけてそのデータレコードをユーザプログラム14に渡
す。
Next, the operation when there is a request to read a record from the user program 14 will be explained. The record reading means 20 receives a record reading request including key information from the user program 14. Based on this key information, the mask index 30, cylinder index 31-1 to 31-3, track index 32-
1 to 32-3, find the desired data record, and pass the data record to the user program 14.

(発明の効果) 以上に説明したように、本発明の索引順編成ファイルに
おけるレコード管理方式は、索引領域とデータ領域とを
それぞれ別々のボリュームに設けている。従って、レコ
ード件数の伸びに応じて新たなボリュームを追加するこ
とができ、拡張性を持たせることができる。
(Effects of the Invention) As described above, the record management method for an indexed sequential file of the present invention provides an index area and a data area in separate volumes. Therefore, new volumes can be added as the number of records increases, providing expandability.

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

第1図は本発明の実施例の構成図、 第2図は本発明を適用した索引順編成ファイルを格納す
るボリュームの論理構造を示す図、第3図は索引順編成
ファイルの論理構造の概念を示す図、 第4図はマスクインデックス30、シリンダインデック
ス31−1〜31−3およびトラックインデックス32
−1〜32−4の構成例を示す図、第5図は第4図にお
けるエントリの構成例を示す図、 第6図は従来の索引順編成ファイルを格納するボリュー
ムの論理構造を示す図である。 13・・・ファイル管理aam、14・・・ユーザプロ
グラム、15・・・FDC117・・・ファイル領域確
保手段、18・・・ファイルオープン手段、19・・・
レコード書き込み手段、20・・・レコード読み出し手
段。 代理人 弁理士 本 庄 仲 介 第1図 #          口) 1    ゝ 第3図 第4図 、二つ・十Sリュー4 、/′ 第6図
Figure 1 is a configuration diagram of an embodiment of the present invention. Figure 2 is a diagram showing the logical structure of a volume that stores indexed sequential files to which the present invention is applied. Figure 3 is a conceptual diagram of the logical structure of indexed sequential files. FIG. 4 shows a mask index 30, cylinder indexes 31-1 to 31-3, and track index 32.
-1 to 32-4, Figure 5 is a diagram showing an example of the entry configuration in Figure 4, and Figure 6 is a diagram showing the logical structure of a volume that stores conventional index sequential files. be. 13...File management aam, 14...User program, 15...FDC117...File area securing means, 18...File opening means, 19...
Record writing means, 20...Record reading means. Agent Patent Attorney Honjo Brokerage Figure 1 # 1 ゝ Figure 3 Figure 4, 2, 10S Liu 4, /' Figure 6

Claims (1)

【特許請求の範囲】 同一の記憶媒体にデータ領域と索引領域とを設け、前記
データ領域にレコードを格納すると共に該レコード対応
するキーを前記索引領域に格納している索引順編成ファ
イルにおけるレコード管理方式において、 前記データ領域および前記索引領域は別々の前記記憶媒
体にそれぞれ設けてある ことを特徴とする索引順編成ファイルにおけるレコード
管理方式。
[Scope of Claims] Record management in an indexed sequential file in which a data area and an index area are provided in the same storage medium, records are stored in the data area, and keys corresponding to the records are stored in the index area. A record management method for an indexed sequential file, characterized in that the data area and the index area are provided in separate storage media.
JP1128173A 1989-05-22 1989-05-22 Record control system for index forward compiling file Pending JPH02307138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1128173A JPH02307138A (en) 1989-05-22 1989-05-22 Record control system for index forward compiling file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1128173A JPH02307138A (en) 1989-05-22 1989-05-22 Record control system for index forward compiling file

Publications (1)

Publication Number Publication Date
JPH02307138A true JPH02307138A (en) 1990-12-20

Family

ID=14978215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1128173A Pending JPH02307138A (en) 1989-05-22 1989-05-22 Record control system for index forward compiling file

Country Status (1)

Country Link
JP (1) JPH02307138A (en)

Similar Documents

Publication Publication Date Title
JPH04141867A (en) File managing method
JPWO2005043394A1 (en) INFORMATION RECORDING MEDIUM, ACCESS DEVICE AND ACCESS METHOD FOR INFORMATION RECORDING MEDIUM
JPH0786844B2 (en) Formatting a write-once optical storage medium
JPH0330034A (en) Optical disk file managing method
JPH02307138A (en) Record control system for index forward compiling file
JP2581003B2 (en) Recording disk controller
JPS63104284A (en) Disk file access system
JPH09115246A (en) Method and device for recording information, and recording medium
US20020046333A1 (en) Logical UDF descriptors
JPH054697B2 (en)
JPH01255028A (en) Method for making access to external storage device
JP2650228B2 (en) Volume management method for collective auxiliary storage
JPH02132516A (en) System and method for write enable type optical disk controlling
JP2784650B2 (en) Optical disk storage management method
JP3936839B2 (en) Data storage system
JP2519519Y2 (en) Data storage device
JPH02299036A (en) Information recording and reproducing method
JPS63255889A (en) Data file device
JPH0194581A (en) Information recording and reproducing device
JPH064384A (en) Image data managing system
JPH0336640A (en) Control system for record storing space
JPH036634A (en) File storing system for floppy disk
JPH04130545A (en) Management system for data
JP2002132555A (en) System, method and record medium of database access
JPS62118452A (en) File controller