JPH07141239A - Record processing system for index sequential organized file - Google Patents

Record processing system for index sequential organized file

Info

Publication number
JPH07141239A
JPH07141239A JP5282894A JP28289493A JPH07141239A JP H07141239 A JPH07141239 A JP H07141239A JP 5282894 A JP5282894 A JP 5282894A JP 28289493 A JP28289493 A JP 28289493A JP H07141239 A JPH07141239 A JP H07141239A
Authority
JP
Japan
Prior art keywords
record
same key
processing
counted
index sequential
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
JP5282894A
Other languages
Japanese (ja)
Inventor
Norimitsu Oota
律光 太田
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP5282894A priority Critical patent/JPH07141239A/en
Publication of JPH07141239A publication Critical patent/JPH07141239A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To update plural records having the same key item in an index sequential organized file which does not have a primary key. CONSTITUTION:The position of an optional record in the index sequential organized file 1 which is counted from the head of the record having the same key item is held in a counter before update processing. When the update processing is specified, the processing is positioned at the record to be updated on the basis of a number which is counted previously after direct reading processing using the keys. Consequently, the optical record can be updated without restrictions such as the updating of only the record physically at the head.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、索引順次編成ファイル
に対するレコード処理方式に関し、特に、プライマリキ
ーを持たない索引順次編成ファイルに対するレコード処
理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a record processing method for an index sequential file, and more particularly to a record processing method for an index sequential file having no primary key.

【0002】[0002]

【従来の技術】索引順次編成ファイルにおける従来のレ
コード処理方式では、指定したキーによる直接読み込み
により、更新処理を行う。この方式によると、同一キー
項目が複数存在したときは、物理的に先頭に位置するレ
コードに対して更新を行う。
2. Description of the Related Art In a conventional record processing method for an index sequential organization file, update processing is performed by direct reading with a designated key. According to this method, when there are a plurality of the same key items, the record physically located at the head is updated.

【0003】[0003]

【発明が解決しようとする課題】索引順次編成ファイル
において同一キー項目を持つレコードが複数存在するこ
とを認めようとする。この場合、キーによる直接読み込
みだけでは、同一キー項目を持つ各々のレコードすべて
に対する更新処理が不可能である。そのため、複数存在
するレコードのうち、どのレコードに対して更新を行う
のかを、更新処理を行う事前に認識させる必要性が生じ
る。
It is attempted to recognize that there are a plurality of records having the same key item in the index sequential organization file. In this case, it is impossible to update all the records having the same key item only by directly reading with the key. Therefore, it becomes necessary to recognize in advance which record is to be updated among a plurality of existing records before performing the update process.

【0004】[0004]

【課題を解決するための手段】本発明の索引順次編成フ
ァイルに対するレコード処理方式は、同一キー項目を持
つレコードの先頭から、更新対象レコードが何件目に位
置するかを内部的に保持するカウンタを有することによ
り登録更新処理を行うようにしたことを特徴とする。
A record processing method for an indexed sequential organization file according to the present invention is a counter for internally holding the update target record from the beginning of a record having the same key item. It is characterized in that the registration update processing is performed by having the above.

【0005】[0005]

【作用】第1に、新規レコードの登録時について説明す
る。同一キーのレコードがすでに存在する場合は、既存
のデータ数をすべてカウントした上で、物理的に最後尾
の位置に登録を行う。存在しない場合は、カウンタを0
にした上で登録を行う(カウントした件数は登録処理に
直接影響はないが、直前に処理したデータを画面上に再
表示する際に用いられる)。
First, the time of registering a new record will be described. If a record with the same key already exists, the number of existing data is counted, and then the data is physically registered at the last position. If it does not exist, set the counter to 0
(The number of cases counted does not directly affect the registration process, but it is used when the data processed immediately before is displayed again on the screen).

【0006】第2に、既存レコードの置換,削除時につ
いて説明する。事前に、レコードの参照処理(順読み込
み)により、更新したいレコードに位置付けておく。同
時に、同一キーを持つレコードの先頭から数えて何件目
であるかをカウントしておく(存在しなければカウンタ
=0とする)。参照処理によるレコードの位置付け後に
置換または削除の指定をすると、キーによる直接読み込
みのあと、カウントした件数をもとに置換,削除を行い
たいレコードに位置付け直す(画面にも表示)。以後、
通常の置換,削除処理を行う。
Second, the replacement and deletion of existing records will be described. In advance, locate the record to be updated by the record reference process (sequential reading). At the same time, the number of records counted from the beginning of the record having the same key is counted (counter = 0 if not present). If you specify replacement or deletion after locating the record by reference processing, the key is read directly and then the record you want to replace or delete is repositioned based on the counted number (displayed also on the screen). After that,
Perform normal replacement and deletion processing.

【0007】[0007]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0008】図1および図2は本発明の一実施例におけ
る索引順次編成ファイル1,2に対する更新処理を示
す。キーは重複を許すものとする。
FIGS. 1 and 2 show an update process for indexed sequential organization files 1 and 2 in an embodiment of the present invention. Keys shall allow duplicates.

【0009】図1は同一キーを持つレコードがすでに存
在する場合の登録処理を示す。このときに、同一キーを
持つレコードの件数を、カウンタ(数字タイプの項目。
既定値は0)にカウントしていく(この場合カウンタの
値は1)。他は、索引順次編成ファイルに対する通常の
更新処理を行う。
FIG. 1 shows a registration process when a record having the same key already exists. At this time, the counter of the number of records with the same key (item of number type.
The default value is 0) (in this case, the counter value is 1). Others perform normal update processing for the index sequential organization file.

【0010】図2は同一キーを持つレコードが複数存在
する場合の置換処理を示す。事前にキーAで直接読み込
み(この時点ではキーA・データaのレコードに位置付
く)、その後同じキーでデータa1 のレコードが表示さ
れるまで参照処理(順読み込み)を繰り返す。このと
き、カウンタに1をセットしている。
FIG. 2 shows a replacement process when there are a plurality of records having the same key. The key A is directly read in advance (positioned at the record of the key A / data a at this point), and then the reference process (sequential reading) is repeated until the record of the data a1 is displayed with the same key. At this time, 1 is set in the counter.

【0011】参照処理による位置付けのあと、置換処理
を行う指定をする。このとき、カウンタの値=2に基づ
き、改めてキーA,データa1 のレコードへの位置付け
を行い、画面に再表示する。その後、データ部分をデー
タa1 からデータa2 に書きかえる。以後は、索引順次
編成ファイルに対する通常の置換処理を行う。
After the positioning by the reference processing, the replacement processing is designated. At this time, based on the value of the counter = 2, the key A and the data a1 are repositioned to the record and displayed again on the screen. After that, the data part is rewritten from the data a1 to the data a2. After that, the normal replacement process for the index sequential organization file is performed.

【0012】削除処理は置換処理に準じて行う。すなわ
ち、参照処理により削除対象レコードに位置付けた後、
削除指定をして対象レコードの再位置付けおよび再表示
を行う。以後は、索引順次編成ファイルに対する通常の
削除処理を行う。
The deletion process is performed according to the replacement process. That is, after locating the record to be deleted by reference processing,
Specify deletion and reposition and redisplay the target record. After that, normal deletion processing is performed on the index sequential organization file.

【0013】[0013]

【発明の効果】以上説明したように、本発明は、同一キ
ー項目を持つレコードを先頭から何件目に位置するかを
内部的に保持するようにしたため、同一キーを持つレコ
ードのうち、物理的に先頭のレコードしか更新できない
という制限なしに、任意のレコードの更新を可能にする
という効果を奏する。
As described above, according to the present invention, since the record having the same key item is internally retained as to which record from the beginning, the physical record among records having the same key is stored. It is possible to update any record without restriction that only the first record can be updated.

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

【図1】本発明の一実施例で索引順次編成ファイルへの
レコード登録処理を例示する図である。
FIG. 1 is a diagram illustrating a record registration process in an index sequential organization file according to an embodiment of the present invention.

【図2】本発明の一実施例で索引順次編成ファイル上の
レコード置換処理を例示する図である。
FIG. 2 is a diagram illustrating a record replacement process on an index sequential organization file according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 索引順次編成ファイル 2 索引順次編成ファイル 1 Index sequential file 2 Index sequential file

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 同一キー項目を持つレコードの先頭か
ら、更新対象レコードが何件目に位置するかを内部的に
保持するカウンタを有することにより登録更新処理を行
うようにしたことを特徴とする索引順次編成ファイルに
対するレコード処理方式。
1. A registration update process is performed by having a counter that internally holds the number of the update target record from the beginning of a record having the same key item. A record processing method for indexed sequential files.
【請求項2】 新規レコードの登録時に、同一キーのレ
コードがすでに存在する場合は、既存のデータ数をすべ
てカウントした上で、物理的に最後尾の位置に登録を行
い、同一キーのレコードが存在しない場合は、カウンタ
を0にした上で登録を行うことを特徴とする索引順次編
成ファイルに対するレコード処理方法。
2. When registering a new record, if a record with the same key already exists, after counting all existing data, the record is physically made at the last position, and the record with the same key is recorded. A record processing method for an indexed sequential organized file, characterized in that if it does not exist, the counter is set to 0 before registration.
【請求項3】 既存レコードの置換,削除時に、事前
に、レコードの参照処理により、更新したいレコードに
位置付けておくと同時に、同一キーを持つレコードの先
頭から数えて何件目であるかをカウントしておき、参照
処理によるレコードの位置付け後に置換または削除の指
定をすると、キーによる直接読み込みのあと、カウント
した件数をもとに置換,削除を行いたいレコードに位置
付け直すことを特徴とする索引順次編成ファイルに対す
るレコード処理方法。
3. When replacing or deleting an existing record, the record reference process is performed to position the record to be updated in advance, and at the same time, counting from the beginning of the record having the same key is counted. In addition, if you specify replacement or deletion after positioning the record by reference processing, after reading directly by the key, it is repositioned to the record you want to replace or delete based on the counted number of records. Record processing method for organized files.
JP5282894A 1993-11-12 1993-11-12 Record processing system for index sequential organized file Pending JPH07141239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5282894A JPH07141239A (en) 1993-11-12 1993-11-12 Record processing system for index sequential organized file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5282894A JPH07141239A (en) 1993-11-12 1993-11-12 Record processing system for index sequential organized file

Publications (1)

Publication Number Publication Date
JPH07141239A true JPH07141239A (en) 1995-06-02

Family

ID=17658484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5282894A Pending JPH07141239A (en) 1993-11-12 1993-11-12 Record processing system for index sequential organized file

Country Status (1)

Country Link
JP (1) JPH07141239A (en)

Similar Documents

Publication Publication Date Title
JP2770855B2 (en) Digital information storage and retrieval method and apparatus
JPH0916607A (en) Method for managing index in data base management system
JP2000076105A (en) Time version data storage device
JPS63121179A (en) Staging method
JPS62226375A (en) Picture information retrieving system
JPH07141239A (en) Record processing system for index sequential organized file
JPH08314780A (en) File management system
JPH05151056A (en) Data controller
JP2002140218A (en) Data processing method, computer-readable recording medium and data processing device
JPH04243437A (en) Data base transfer system
JPH04359373A (en) Electronic filing device
JPH05127964A (en) Page version managing method
JP3376874B2 (en) Search efficiency method by data division
JPH06168275A (en) Electronic filing system
JPH10207775A (en) System for retrieving data base and recording medium recorded with program
JPH04236641A (en) Maintenance system for plural records of indexed sequential file
JPH0566976A (en) Master file managing system
JPH0368043A (en) Edition number control system for electronic filing system
JPH06290094A (en) Index file processor
JPH03276239A (en) Record control system
JPH07160565A (en) Data base reorganization system while job processing is being performed
JPH05342081A (en) Information processor and data managing method for the information processor
JPH0728789A (en) Word processor
JPS62226487A (en) Memory control system for optical disk
JPH01169793A (en) System for moving optical disk management information

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20001024