JPH0344332B2 - - Google Patents

Info

Publication number
JPH0344332B2
JPH0344332B2 JP58130089A JP13008983A JPH0344332B2 JP H0344332 B2 JPH0344332 B2 JP H0344332B2 JP 58130089 A JP58130089 A JP 58130089A JP 13008983 A JP13008983 A JP 13008983A JP H0344332 B2 JPH0344332 B2 JP H0344332B2
Authority
JP
Japan
Prior art keywords
data item
database
record
control
group
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.)
Expired - Lifetime
Application number
JP58130089A
Other languages
Japanese (ja)
Other versions
JPS6022255A (en
Inventor
Masayoshi Inoe
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 JP58130089A priority Critical patent/JPS6022255A/en
Publication of JPS6022255A publication Critical patent/JPS6022255A/en
Publication of JPH0344332B2 publication Critical patent/JPH0344332B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、複数のデータ項目群を有するレコー
ドの先頭に制御データ項目を付加し、制御データ
項目の中に各データ項目群の内容が有効か否かを
示す制御データを書込み、内容が無意味なデータ
群をデータベースにストアしないようにした可変
型レコードの制御方式に関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention adds a control data item to the beginning of a record having a plurality of data item groups, and checks whether the contents of each data item group are valid in the control data item. The present invention relates to a control method for variable records that writes control data indicating whether or not the data is valid, thereby preventing data groups whose contents are meaningless from being stored in a database.

〔従来技術と問題点〕[Conventional technology and problems]

第1図ないし第3図は従来技術の問題点を説明
するための図であり、第1図ないし第3図におい
て、AないしCはレコード、αとβはセツト、a
ないしcは実現値、XはAないしCを合体したレ
コード、x1ないしx3は実現値をそれぞれ示してい
る。いま、第1図に示すように、A,B,Cで示
されるようなデータ項目群を応用プログラムとデ
ータベース間で格納又は検索する場合を想定す
る。ネツトワーク・データベースにおいて、上記
のような処理を行う場合、第2図および第3図に
示すような論理構造が考えられる。第2図の場合
はレコードAの実現値(α1,…)の条件によりレ
コードC(又はレコードB)の有無を制御できる
のでデータベース上でのスペース効率は良い。し
かし、セツトα,βを意識して格納/検索のため
のDML(データベース操作言語)を発行する必要
があり、処理効率の面で問題がある。第3図の場
合は、レコードXがAないしCのフオーマツトを
合体させたものであり、データ項目群Aの実現値
とは無関係にデータ項目群BおよびCが存在する
形態となる。従つて、処理効率は良いが、スペー
ス効率の面で問題がある。
Figures 1 to 3 are diagrams for explaining problems in the prior art. In Figures 1 to 3, A to C are records, α and β are sets, and a
thru c indicate actual values, X indicates a record combining A through C, and x 1 through x 3 indicate actual values, respectively. Now, as shown in FIG. 1, assume that data item groups indicated by A, B, and C are stored or retrieved between an application program and a database. When performing the above-described processing in a network database, logical structures as shown in FIGS. 2 and 3 can be considered. In the case of FIG. 2, the presence or absence of record C (or record B) can be controlled based on the conditions of the actual values (α 1 , . . . ) of record A, so space efficiency on the database is good. However, it is necessary to issue DML (Database Manipulation Language) for storage/retrieval keeping the sets α and β in mind, which poses a problem in terms of processing efficiency. In the case of FIG. 3, record X is a combination of formats A to C, and data item groups B and C exist regardless of the actual value of data item group A. Therefore, although the processing efficiency is good, there is a problem in terms of space efficiency.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであつて、
データベースへのアクセスを効率よく行い得ると
共にデータベースのスペース効率を向上できるよ
うにした可変型レコードの制御方式を提供するこ
とを目的としている。
The present invention is based on the above considerations, and includes:
The object of the present invention is to provide a variable record control method that allows efficient database access and improves database space efficiency.

〔発明の構成〕[Structure of the invention]

そしてそのため、本発明の可変型レコードの制
御方式は、応用プログラムとデータベース管理シ
ステムとの連絡を行う応用プログラム作業域に格
納されるレコードを、予め定義されている全ての
データ項目群と、各データ項目群が無意味
(null)であるか否かを示す値を持つ制御データ
項目とで構成し、データベース上に格納されるレ
コードを、レコード制御部と、上記制御データ項
目と、有意義な(nullでない値を持つ)データ項
目群とで構成するようにしたことを特徴とするも
のである。
For this reason, the variable record control method of the present invention allows records stored in the application program work area that communicates between the application program and the database management system to include all predefined data item groups and each data item group. It consists of a control data item that has a value indicating whether a group of items is meaningless (null), and records stored on the database are controlled by a record control section, the control data item, This feature is characterized in that it consists of a group of data items (having a value that is not the same).

〔発明の実施例〕[Embodiments of the invention]

第4図は本発明の原理を示す図、第5図はレコ
ードをデータベースに格納するための手段を示す
図である。
FIG. 4 is a diagram showing the principle of the present invention, and FIG. 5 is a diagram showing means for storing records in a database.

第4図に示すように、レコードXのレコードタ
イプがデータ項目群群A、データ項目群Bおよび
データ項目群Cを有するものであると定義されて
いる場合には、UWA(ユーザプログラム・ワー
ク・エリア)上のレコードXは、データ項目群の
内容が無意味(null)なものであるか否かに関係
なく、制御データ項目CTL、データ項目群A、
データ項目群Bおよびデータ項目群Cを有してい
る。図示の例では、制御データ項目は3ビツト構
成であり、その第1番目の制御ビツト(先頭のビ
ツト)はデータ項目群Aに対応し、その第2番目
の制御ビツトはデータ項目群Bに対応し、その第
3番目の制御ビツトはデータ項目群Cに対応して
いる。論理「1」の制御ビツトは対応するデータ
項目群の内容が有意義(nullでない値を持つ)で
あることを示し、論理「0」の制御ビツトは対応
するデータ項目群の内容が無意味なことを示して
いる。STOREはレコードを格納するためのマク
ロ命令であり、MODIFYはレコードを更新する
ためのマクロ命令であり、GETはデータベース
内のレコードを検索するためのマクロ命令であ
る。データベース(DBと略記されている)のレ
コードXは、図示の場合、レコード制御部、制御
データ項目、データ項目群Aおよびデータ項目群
Cから構成される。レコード制御部には、レコー
ド間を関係付けるレコード制御情報が書き込まれ
るが、図示の例では、レコードXと他のレコード
との関連がないため、区切り情報と見做すことが
出来る(なお、制御データ項目CTLとの相関関
係はない)。第4図から判るように、論理「0」
の制御ビツトに対応するデータ項目群は、データ
ベース上のデータXの中には存在しない。
As shown in FIG. 4, if the record type of record X is defined as having data item group A, data item group B, and data item group C, then UWA (user program work The record X on the area) contains control data item CTL, data item group A,
It has a data item group B and a data item group C. In the illustrated example, the control data item has a 3-bit configuration, the first control bit (first bit) corresponds to data item group A, and the second control bit corresponds to data item group B. However, the third control bit corresponds to data item group C. A control bit of logic ``1'' indicates that the contents of the corresponding data item group is meaningful (has a non-null value), and a control bit of logic ``0'' indicates that the contents of the corresponding data item group are meaningless. It shows. STORE is a macro instruction for storing records, MODIFY is a macro instruction for updating records, and GET is a macro instruction for retrieving records in a database. A record X of a database (abbreviated as DB) is composed of a record control section, a control data item, a data item group A, and a data item group C in the illustrated case. Record control information that associates records is written in the record control section, but in the illustrated example, record X has no relationship with other records, so it can be regarded as delimiter information (note that record There is no correlation with data item CTL). As can be seen from Figure 4, logic "0"
The data item group corresponding to the control bits does not exist in the data X on the database.

第5図はレコードをデータベースに格納するた
めの手段を示すものである。第5図において、1
は応用プログラム、2はアナライザ、3はスキー
マ/サブスキーマ、4はSTOREルーチン、5は
ページ入出力処理部(以下、PIOCという)、6は
データベース、7はページ・バツフア、8は
UWAをそれぞれ示している。また、、…
′は処理の順序を示し、実線は制御の流れを示
し、二重線はデータの流れを示している。スキー
マ/サブスキーマ3は、可変型レコードXの構成
を表現しているテーブルであり、制御ビツトとデ
ータ項目群A,B,Cの対応関係を示している。
なお、応用プログラム1とデータベース6との間
に存在する部分は、DBMS(Data Base
Management System)と呼ばれるものである。
応用プログラム1は、レコードXをデータベース
6に格納するに際してレコードXを形成するデー
タ項目群A、データ項目群Bおよびデータ項目群
CをUWA8上に書込み、これに制御データ項目
CTLを付加し、そしてSTOREマクロ命令を発行
する。STOREマクロ命令によつて下記の処理が
行われる。
FIG. 5 shows a means for storing records in a database. In Figure 5, 1
is an application program, 2 is an analyzer, 3 is a schema/subschema, 4 is a STORE routine, 5 is a page input/output processing unit (hereinafter referred to as PIOC), 6 is a database, 7 is a page buffer, 8 is a
Each shows UWA. Also,,…
' indicates processing order, solid lines indicate control flow, and double lines indicate data flow. Schema/subschema 3 is a table expressing the structure of variable record X, and shows the correspondence between control bits and data item groups A, B, and C.
Note that the part existing between the application program 1 and the database 6 is a DBMS (Data Base
Management System).
When storing record X in database 6, application program 1 writes data item group A, data item group B, and data item group C forming record X on UWA 8, and writes control data items thereto.
Append CTL and issue a STORE macro instruction. The STORE macro instruction performs the following processing.

応用プログラム1から発行されSTOREマク
ロ命令はアナライザ2(各マクロへの振分け
部)を経由してSTORE処理を開始させる。
The STORE macro command issued by the application program 1 starts STORE processing via the analyzer 2 (distribution unit to each macro).

STOREルーチン4はPIOC5にデータベー
ス6のページαの読込み依頼を行う。
STORE routine 4 requests PIOC 5 to read page α of database 6.

′ データベース6上のページαがページ・
バツフア7上に読込まれる。
' Page α on database 6 is page
It is read onto the buffer 7.

′ STOREルーチン4はスキーマ/サブス
キーマ3及びUAW8上のレコードX(制御デ
ータ項目CTLを含む)を参照し、制御ビツト
が論理「1」であるデータ項目群Aおよびデー
タ項目群Cをページ・バツフア7の上のページ
αへ転送する。
' STORE routine 4 refers to record X (including control data item CTL) on schema/subschema 3 and UAW 8, and stores data item group A and data item group C whose control bit is logic "1" in the page buffer. Transfer to page α above 7.

′ STOREルーチンは、データベース6へ
のページαの書出依頼をPIOC5に対して行う。
' The STORE routine requests the PIOC 5 to write page α to the database 6.

GETマクロ命令が発行されたときには、図示
しないが、DBMSはレコードをデータベースか
ら取出し、論理「0」の制御ビツトが存在する場
合には、内容が無意味であることを示す値を対応
するデータ項目に与え、このデータ項目をデータ
ベースから読出したレコードの所定位置に挿入
し、これをUWA8上に転送する。
When a GET macro instruction is issued (not shown), the DBMS retrieves the record from the database and, if a logical "0" control bit is present, assigns a value indicating that the contents are meaningless to the corresponding data item. This data item is inserted into a predetermined position in the record read from the database, and transferred to the UWA 8.

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

以上の説明から明らかなように、本発明によれ
ば、データベースへのアクセスを効率的に行うと
共に、データベースのスペース効率を向上させる
ことが出来る。
As is clear from the above description, according to the present invention, it is possible to efficiently access a database and improve the space efficiency of the database.

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

第1図ないし第3図は従来技術の問題点を説明
するための図、第4図は本発明の原理を示す図、
第5図はレコードをデータベースに格納するため
の手段を示す図である。 1……応用プログラム、2……アナライザ、3
……スキーマ/サブスキーマ、4……STOREル
ーチン、5……ページ入出力処理部(PIOCとい
う)、6……データベース、7……ページ・バツ
フア、8……UWA。
1 to 3 are diagrams for explaining the problems of the prior art, and FIG. 4 is a diagram illustrating the principle of the present invention.
FIG. 5 is a diagram showing means for storing records in a database. 1... Application program, 2... Analyzer, 3
...Schema/subschema, 4...STORE routine, 5...Page input/output processing unit (referred to as PIOC), 6...Database, 7...Page buffer, 8...UWA.

Claims (1)

【特許請求の範囲】[Claims] 1 応用プログラムとデータベース管理システム
との連絡を行う応用プログラム作業域に格納され
るレコードを、予め定義されている全てのデータ
項目群と、各データ項目群が無意味(null)であ
るか否かを示す値を持つ制御データ項目とで構成
し、データベース上に格納されるレコードを、レ
コード制御部と、上記制御データ項目と、有意義
な(nullでない値をもつ)データ項目群とで構成
するようにしたことを特徴とする可変型レコード
の制御方式。
1 Check whether records stored in the application program work area that communicates between the application program and the database management system include all predefined data item groups and whether each data item group is meaningless (null). A control data item with a value indicating , and a record stored in the database is made up of a record control section, the control data item above, and a group of meaningful data items (having a non-null value). A variable type record control method characterized by the following.
JP58130089A 1983-07-15 1983-07-15 Control system of variable record Granted JPS6022255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58130089A JPS6022255A (en) 1983-07-15 1983-07-15 Control system of variable record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58130089A JPS6022255A (en) 1983-07-15 1983-07-15 Control system of variable record

Publications (2)

Publication Number Publication Date
JPS6022255A JPS6022255A (en) 1985-02-04
JPH0344332B2 true JPH0344332B2 (en) 1991-07-05

Family

ID=15025703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58130089A Granted JPS6022255A (en) 1983-07-15 1983-07-15 Control system of variable record

Country Status (1)

Country Link
JP (1) JPS6022255A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02206849A (en) * 1989-02-06 1990-08-16 Nec Corp Statistical data storage system

Also Published As

Publication number Publication date
JPS6022255A (en) 1985-02-04

Similar Documents

Publication Publication Date Title
JPS59165161A (en) Volume restoration system of data set for word processing system
JP2586219B2 (en) High-speed media priority release exclusion method
JPS63298626A (en) Managing method for data base
JPS59220853A (en) Disc cache system
EP0633531B1 (en) Memory management system and method
JPH0344332B2 (en)
JPH0277949A (en) File producing method
JPH1063436A (en) Method and device for storing data
JPH07334402A (en) Data base as main memory
JPH06110766A (en) Directory constitution method and computer system for sharing stored file system
JP2587417B2 (en) File backup and restoration method
JPH0581337A (en) Data processor
JP3061385B2 (en) Data management device and data management method
JPS60103461A (en) Substitute key control processing system using plural items
JP2912657B2 (en) File access processor
JP2615046B2 (en) Record addition processing method
JPH01255028A (en) Method for making access to external storage device
JPS6010360A (en) Stack form managing system of edited data in editing processing
JPS62145323A (en) Data base system
JPH06175903A (en) File management system
JPH04336340A (en) Disk cache access control system
JPH04112245A (en) Method for making file structure virtual
JP2507399B2 (en) Database equipment
JPS63291145A (en) Method for managing file
JPS59180763A (en) System for accessing data base system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees