JPS6167123A - File access control method - Google Patents

File access control method

Info

Publication number
JPS6167123A
JPS6167123A JP59189124A JP18912484A JPS6167123A JP S6167123 A JPS6167123 A JP S6167123A JP 59189124 A JP59189124 A JP 59189124A JP 18912484 A JP18912484 A JP 18912484A JP S6167123 A JPS6167123 A JP S6167123A
Authority
JP
Japan
Prior art keywords
key
data
storage device
file
field
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
JP59189124A
Other languages
Japanese (ja)
Inventor
Yuzo Kuwano
桑野 雄三
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 JP59189124A priority Critical patent/JPS6167123A/en
Publication of JPS6167123A publication Critical patent/JPS6167123A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To access a data file having a complicated key element by synthesizing data of all key elements to one when data of all key elements are arranged and using the result so as to read a specific data record to a main storage device. CONSTITUTION:A data input from a CRT screen is executed with respect to a field information entry 111 inputted at first to a field information table 11. Since a timing field pointer 121 is not idle and a key element 1921 of a file 152 is attained, an input discrimination flag 1A21 is set. Since the next timing field information point 1B21 is not idle and a key element 1912 of the file 151 is set, the input discrimination flag 1A12 is set. When all the flags are set in this way, the data of the key elements are synthesized by a corresponding key information table 18, a specific data code of an external storage device is read in a main storage device and the content of the data code is displayed on a CRT screen.

Description

【発明の詳細な説明】 産業上の利用分野 本発明ば、外部記憶装置からデータレコードを主記憶装
置上読み込むためのファイルアクセス制御方法に関する
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a file access control method for reading data records from an external storage device onto a main storage device.

従来の技術 従来、この種のファイルアクセス制御方法は、キーボー
ドから打鍵された1つのフィールドと外部記憶装置のデ
ータレコードのキーフィールドとは1対1に対応してい
るため、データレコードのアクセス方法は容易ではある
が、応用範囲が狭く、柔軟性に欠けている。
Conventional technology Conventionally, in this type of file access control method, there is a one-to-one correspondence between one field pressed on a keyboard and the key field of a data record in an external storage device, so the data record access method is Although it is easy, the scope of application is narrow and lacks flexibility.

例えば、キーボードから商品コード(100)を入力す
ると、コード100をキーとする商品マスタファイル上
のデータレコードを読み込み、商品名をCRT上に表示
するような例がこの例である。
For example, when a product code (100) is input from the keyboard, a data record on a product master file with code 100 as a key is read, and the product name is displayed on a CRT.

発明が解決しようとする問題点 ところが、キーボードから打鍵され九複数のフィールド
を1つのキーとしてデータレコードをアクセスし、複数
のフィールドのうち任意側のフィールドデータがキーボ
ードから与えられるデータ以外の定数、演算結果あるい
は他のチータレコードの内容から得られ、それらを1つ
のキーとしてデータレコードをアクセスする場合、複数
のフィールドデータを1つのフィールドに合成するタイ
ミングやデータレコードをアクセスするタイミングを制
御することができない。このため、複雑なキー要素を持
つデータファイルに対してアクセスできないという欠点
がある。
Problems to be Solved by the Invention However, when a data record is accessed by inputting a key from the keyboard and using multiple fields as one key, field data on any side of the multiple fields may be a constant or operation other than the data given from the keyboard. When accessing a data record using results or the contents of other cheater records as a key, you cannot control when multiple field data is combined into one field or when the data record is accessed. . This has the disadvantage that data files with complex key elements cannot be accessed.

本発明の目的は、上述の欠点を除去し、全てのキー要素
のデータが全て揃ったか否かを判別できるようにし、揃
った時点で全てのキー要素のデータを1つに合成し、そ
れをキーとして特定データレコードを主記憶装置上に読
み込むことを可能としたファイルアクセス制御方法を提
供することにある。
The purpose of the present invention is to eliminate the above-mentioned drawbacks, to make it possible to determine whether all the data of all key elements are complete, to combine the data of all key elements into one when the data is complete, and to combine it into one data. An object of the present invention is to provide a file access control method that makes it possible to read a specific data record into a main storage device as a key.

問題点を解決するための手段 本発明の方法は、キーボードから打鍵されたデータをキ
ーとして、外部記憶装置からデータレコードを主記憶装
置に読み込み、そのチータレコードの内容をデータ表示
装置に表示することができる計算機システムのファイル
アクセス制御方法において、キーボードから打鍵された
少なくとも1つのフィールドをつなぎ合わせたデータを
キーとし、前記データとプログラムにより固定的に与え
られたデータ(定数)とを組み合わせてキーとし、前記
打鍵データとプログラムにより加工された演算結果とを
組み合わせてキーとし、前記データと既に主記憶装置に
読み込まれているチータレコードの内容とを組み合わせ
てキーとし、外部記憶装置に存在するチータレコードを
主記憶装置に読み込むためのキーが全て揃ったか否かを
判別する第1のステップと、揃った時点で複数のキーデ
ータを1つに合成し、即座に目的とするデータレコード
を主記憶装置に読み込む第2のステップとを含むことを
可能とする。
Means for Solving the Problems The method of the present invention reads a data record from an external storage device into the main storage device using data entered from a keyboard as a key, and displays the contents of the cheetah record on a data display device. In a file access control method for a computer system capable of , a combination of the keystroke data and the calculation result processed by the program is used as a key, a combination of the data and the contents of the Cheetah record already read into the main storage device is used as the key, and a Cheetah record existing in the external storage device is used. The first step is to determine whether all the keys to read the data into the main memory have been prepared, and when they have been obtained, the multiple key data are combined into one, and the desired data record is immediately transferred to the main memory. A second step of reading the data into

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

第1図を参照すると、本発明の一実施例における主記憶
装置のテーブルは、フィールド情報ポインタ10と、フ
ィールド情報テーブル11と、lフィールド情報エント
リlliと、タイミングフィールドポインタ12iと、
ファイル情報ポインタ14と、ファイル情報テーブル1
5と、1フアイル情報エントリ15jと、対応キー情報
ポインタ16jと、タイミングフィールド情報ポインタ
17jと、対応キー情報テーブル18jと、l対応キー
情報エントリ18jzと、タイミングフィールド情報テ
ーブル19Jと、lタイミングフィールド情報エンIJ
19jzと、入力判定フラグIAjzと、NEXTタイ
ミングフィールド情報ポインタ1Bjzとから構成され
ている。
Referring to FIG. 1, the table of the main memory in one embodiment of the present invention includes a field information pointer 10, a field information table 11, an l field information entry lli, a timing field pointer 12i,
File information pointer 14 and file information table 1
5, 1 file information entry 15j, corresponding key information pointer 16j, timing field information pointer 17j, corresponding key information table 18j, l corresponding key information entry 18jz, timing field information table 19J, l timing field information en IJ
19jz, an input determination flag IAjz, and a NEXT timing field information pointer 1Bjz.

フィールド情報ポインタ10は実線矢印■が示すように
フィールド情報チーフル11のアドレスが格納されてい
る。ファイル情報ポインタ14は実線矢印■が示すよう
にファイル情報テーブル15のアドレスが格納されてい
る。対応キー情報ポインタ16jは実線矢印■が示すよ
うに対応キー情報テーブル18jのアドレスが格納され
ている。
The address of the field information pointer 11 is stored in the field information pointer 10 as indicated by the solid arrow ■. The address of the file information table 15 is stored in the file information pointer 14 as indicated by the solid arrow ■. The address of the corresponding key information table 18j is stored in the corresponding key information pointer 16j, as indicated by the solid arrow ■.

タイミングフィールド情報ポインタ17Jは実線矢印■
が示すようにタイリングフィールド情報テ−プル19j
のアドレスが格納されている。タイミングフィールドポ
インタ12jは1点破線■が示すように1タイミングフ
ィールド情報エントリのアドレスが格納されている。N
EXTタイミングフィールド情報ポインタ1Bjzは点
線■が示すように1タイミングフィールド情報エントリ
19jzのアドレスが格納されている。
The timing field information pointer 17J is a solid arrow ■
As shown in the tiling field information table 19j
address is stored. The address of one timing field information entry is stored in the timing field pointer 12j, as indicated by a one-dot broken line ■. N
The address of 1 timing field information entry 19jz is stored in the EXT timing field information pointer 1Bjz, as indicated by the dotted line ■.

フィールド情報テーブル11は、データ表示装置(以下
CRT)画面上に入出力するフィールドの数i個だけ、
個々のフィールドに関する詳細情報、すなわち1フィー
ルド情報エントリ111をもつ。
The field information table 11 includes i fields, which are input/output on a data display device (hereinafter referred to as CRT) screen.
It has detailed information regarding each field, that is, one field information entry 111.

ファイル情報テーブル15は、入出力を行うファイルの
数j個だけ、個々のファイルに関する情報、すなわち1
フアイル情報エントリ15jをもつ。
The file information table 15 stores information about each file for the number j of files to be input/output, that is, 1
It has a file information entry 15j.

対応キー情報テーブル18jは、ファイルをアクセスす
るためのキーはどのフィールドを合成して作るか、その
キーとなる要素の数2個だけ、キー要素に関する情報、
すなわち1対応キー情報エントリ18jzをもつ。
The corresponding key information table 18j includes information on which field is to be combined to create a key for accessing a file, the number of elements forming the key (two), information on the key elements,
That is, it has one corresponding key information entry 18jz.

タイミングフィールド情報テーブル19jは、キー要素
のデータがキーボードから入力されまたは既にキー要素
のデータが何らかの方法で与えられていることを知るた
めの情報、すなわち入力判定フラグI A j 2と、
あるキー要素が他のファイルをアクセスするためのキー
要素となりている場合は、そのことを知るための情報、
すなわちNEXTタイミングフィールド情報ポインタI
Bjzをもつ。
The timing field information table 19j includes information for knowing that the data of the key element is input from the keyboard or that the data of the key element has already been given in some way, that is, an input determination flag I A j 2;
Information to know if a certain key element is a key element for accessing other files,
That is, NEXT timing field information pointer I
Has Bjz.

次に、第2図のフローチャートについて説明する。Next, the flowchart shown in FIG. 2 will be explained.

第2図はCRT画面からキーボードを使って1フィール
ドを入力し終り、ファイルのデータを081画面に表示
するまでの処理手順を示している。
FIG. 2 shows the processing procedure from inputting one field using the keyboard on the CRT screen to displaying file data on the 081 screen.

第1図を参照しながら、各BOXの説明を行う、。Each box will be explained with reference to FIG.

まずBOX20では1フィールドの入力が行われる。フ
ィールド情報テーブル11の最初に入力するフィールド
情報エントリlitに関して、CRT画面からデータの
入力が行われる。次にBOX21では、タイミングフィ
ールドポインタ121が空でない、すなわち、ファイル
152のキー要素19□、となっているので、入力判定
フラグlA21がオンになる。NEXTタイミングフィ
ールド情報ポインタ113siも空でない、すなわちフ
ァイル151のキー要素1912ともなっているので、
入力判定フラグIAttがオンになる。同様にI B1
2のポインタをたどって空になるまで入力判定フラグが
オンになる。NEXTタイミングフィールド情報ポイン
タが空になった時点で次の判断BOXuに行く。BOX
22ではまずファイル15+に関してタイミングフィー
ルド情報テーブル191の最初のタイミングフィールド
情報エントリ1 ’1lttの入力判定フラグIAIL
から順番にI Al1 + −−−+l A 111の
フラグがオンになっているかどうか調べられる。全ての
フラグがオンの場合はB’0X23へ行くが、1つでも
オフがあったら、次のファイル152に関して同様の判
定が行われ、最後のファイル15jまで同じ処理が繰り
返される。その途中であるファイル15xK関して全て
の入力判定フラグがオンのときBOX23に行く。BO
X23では対応キー情報テーブル18xよりキーデータ
が合成され、BOX24で外部記憶装置の特定データコ
ードが主記憶装置に読み込まれ、 BOX25にてその
データレコードの内容がCR,T画面に表示される。こ
れで最初の入力フィールドIIlに関しての入力が終り
、同様に次の入力フィールド11!に関しても同じ処理
が行われる。
First, in BOX 20, one field is input. Regarding the field information entry lit entered first in the field information table 11, data is input from the CRT screen. Next, in BOX21, since the timing field pointer 121 is not empty, that is, the key element 19□ of the file 152, the input determination flag lA21 is turned on. Since the NEXT timing field information pointer 113si is also not empty, that is, it is also the key element 1912 of the file 151,
The input determination flag IAtt is turned on. Similarly I B1
Following the pointer 2, the input determination flag is turned on until it becomes empty. When the NEXT timing field information pointer becomes empty, go to the next judgment boxu. BOX
22, first, the input determination flag IAIL of the first timing field information entry 1 '1ltt of the timing field information table 191 is set for file 15+.
It is checked in order from I Al1 + --- + l A 111 whether the flag is on or not. If all the flags are on, the process goes to B'0X23, but if even one is off, the same determination is made for the next file 152, and the same process is repeated until the last file 15j. When all the input determination flags are on for file 15xK, which is in the middle of the process, the process goes to BOX23. B.O.
In X23, key data is synthesized from the corresponding key information table 18x, in BOX24, a specific data code of the external storage device is read into the main storage device, and in BOX25, the contents of the data record are displayed on the CR, T screen. This completes the input for the first input field IIl, and similarly the next input field 11! The same process is performed for .

この一連の処理が最後の入力フィールド111まで繰り
返される。
This series of processing is repeated until the last input field 111.

発明の効果 本発明には、フィールド情報テーブル11とファイル情
報テーブル19とを関連づけることにより、複雑なキー
要素をキーとするファイルをアクセスできるという効果
がある。
Effects of the Invention The present invention has the advantage that by associating the field information table 11 with the file information table 19, files using complex key elements as keys can be accessed.

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

第1図は本発明の一実施例を示すテーブル関連図、およ
び第2図はキーボードを使って1フィールドを入力し終
り、ファイル上のデータをCRT画面に表示するまでの
処理手順を示すフローチャ−トである。 第1図および第2図において、10・・°°・・フィー
ルド情報ポインタ、11・・・・・・フィールド情報テ
ーブル、xxi・・・・・・1フィールド情報エンド1
ハ12i・・・・・・タイミングフィールドポインタ、
14・・・・・・ファイル情報ポインタ、15パ°°・
°ファイル情報テーブル、15j・・・・・・1フアイ
ル惰報工/ト1ハ16 j−°°“・・対応キー情報ポ
インタ、17j・・・°・・タイミングフィールド情報
ポインタ、18j・・・・・・対応キー情報テーブル、
18jz・・・・・・1対応キー情報工:/1,19j
・・・・・・タイミングフィールド情報テーブル、19
.iz・パ・・°1タイミングフィールド情報エンド1
ハ IAjz・・・・・・入力判定フラグ、  1Bj
z・・・・・・NEXTタイミングフィ・−ルド情報ポ
インタ。
FIG. 1 is a table-related diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart showing the processing procedure from inputting one field using the keyboard to displaying data on a file on a CRT screen. It is. In FIGS. 1 and 2, 10...°° field information pointer, 11... field information table, xxi...1 field information end 1
c12i...timing field pointer,
14...File information pointer, 15 pa°°・
°File information table, 15j...1 file information/to1c16j-°°"...Corresponding key information pointer, 17j...°...Timing field information pointer, 18j... ...Corresponding key information table,
18jz...1 compatible key information technology: /1,19j
...Timing field information table, 19
.. iz・pa・°1 timing field information end 1
C IAjz...Input judgment flag, 1Bj
z...NEXT timing field information pointer.

Claims (1)

【特許請求の範囲】[Claims] キーボードから打鍵されたデータをキーとして、外部記
憶装置からデータレコードを主記憶装置に格納し、その
データレコードの内容をデータ表示装置に表示すること
ができる計算機システムのファイルアクセス制御方法に
おいて、キーボードから打鍵された1つの連続した文字
列からなるフィールドまたは複数のフィールドをつなぎ
合わせたデータをキーとし、プログラムにより固定的に
与えられたデータと前記データを組み合わせて1つのキ
ーとし、プログラムにより演算を施された結果と前記の
打鍵されたデータとを組み合わせて1つのキーとし、既
に主記憶装置に読み込まれたデータレコードの内容の一
部のみをキーとし、またはそのデータレコードの一部と
前記いずれかにより得られたデータとを組み合わせて1
つのキーとする場合、外部記憶装置からデータレコード
を主記憶装置に読み込むためのキーを構成するデータ要
素が完備できたか否かを判断する第1のステップと、こ
の第1のステップで完備できたと判断した時点で目的と
するデータレコードを主記憶装置に読み込むことを可能
にするためにフィールド情報テーブルの中でキーボード
から入力するフィールドに関する各フィールド情報エン
トリのうちファイルをアクセスするためのキー要素とな
っているものからポイントされるファイル情報テーブル
からつながるキー情報テーブルの中のタイミングフィー
ルド情報エントリの入力判定フラグを1フィールド入力
される毎に、ファイル情報テーブルの側からみて全てが
完備できたかを判断する第2のステップとを含むことを
特徴とするファイルアクセス制御方法。
A file access control method for a computer system that stores a data record from an external storage device into the main storage device using data entered from a keyboard as a key, and displays the contents of the data record on a data display device. The key is a field consisting of one continuous character string pressed by the key, or data made by connecting multiple fields, and the data fixedly given by the program is combined into one key, and the program performs calculations. The result of the keystroke and the above-mentioned keystroke data are combined into one key, and only a part of the contents of the data record that has already been read into the main memory is used as the key, or a part of the data record and any of the above are used as the key. Combined with the data obtained by
In the case of two keys, the first step is to determine whether the data elements constituting the key for reading the data record from the external storage device into the main storage device are complete, and the first step is to determine whether the data elements constituting the key for reading the data record from the external storage device into the main storage device are complete. In order to make it possible to read the desired data record into the main memory at the determined time, each field information entry for the field entered from the keyboard in the field information table is a key element for accessing the file. The input judgment flag of the timing field information entry in the key information table connected from the file information table pointed to by the file information table is checked every time one field is input, from the file information table side, it is judged whether everything is complete. A file access control method characterized by comprising the step of:
JP59189124A 1984-09-10 1984-09-10 File access control method Pending JPS6167123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59189124A JPS6167123A (en) 1984-09-10 1984-09-10 File access control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59189124A JPS6167123A (en) 1984-09-10 1984-09-10 File access control method

Publications (1)

Publication Number Publication Date
JPS6167123A true JPS6167123A (en) 1986-04-07

Family

ID=16235792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59189124A Pending JPS6167123A (en) 1984-09-10 1984-09-10 File access control method

Country Status (1)

Country Link
JP (1) JPS6167123A (en)

Similar Documents

Publication Publication Date Title
JP2898305B2 (en) File management device and file management method
JPS6167123A (en) File access control method
JPH098934A (en) Character input method using numeric key
JPS63282523A (en) Icon display device for information processor
JP3721253B2 (en) Environment setting method on client computer
JP3085996B2 (en) How to list your data
JP2969973B2 (en) Time data comparison processor
JP3337717B2 (en) Database processing device and database processing method
JP3143909B2 (en) File processing device
JP3424472B2 (en) Data processing system
JP4501040B2 (en) Computer-readable recording medium recording customer master general-purpose data receiving program
JP2925137B2 (en) Word processor and control method thereof
JPS63265331A (en) Program managing system
JPH01161515A (en) Picture sheet processing system for resource information setting
JPH11120179A (en) Retrieval condition input method and information retrieval device
JP3318754B2 (en) File update processor
JP2844460B2 (en) Data processing device
JP3537052B2 (en) File processing device
JP3047657U (en) Accounting system
JP3018886B2 (en) Probe setting method
JPS635772B2 (en)
JPH10116308A (en) Device and method for analyzing approximate degree of data item
JPS6059448A (en) Table processing method
JPH0344347B2 (en)
JPS59111532A (en) Data sorting method