JPS5816492B2 - Shared exclusive control method for data sets - Google Patents

Shared exclusive control method for data sets

Info

Publication number
JPS5816492B2
JPS5816492B2 JP55037993A JP3799380A JPS5816492B2 JP S5816492 B2 JPS5816492 B2 JP S5816492B2 JP 55037993 A JP55037993 A JP 55037993A JP 3799380 A JP3799380 A JP 3799380A JP S5816492 B2 JPS5816492 B2 JP S5816492B2
Authority
JP
Japan
Prior art keywords
data
host processing
controller
job
data set
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
Application number
JP55037993A
Other languages
Japanese (ja)
Other versions
JPS56135264A (en
Inventor
山田雅紀
杉浦一
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 JP55037993A priority Critical patent/JPS5816492B2/en
Publication of JPS56135264A publication Critical patent/JPS56135264A/en
Publication of JPS5816492B2 publication Critical patent/JPS5816492B2/en
Expired 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
    • G06F12/14Protection against unauthorised use of memory or access to memory

Description

【発明の詳細な説明】 本発明は、データボリューム内のデータセットに対する
1つのホスト処理システムまたは複数のホスト処理シス
テムによって行なわれるアクセスに際して、いずれかの
ホスト処理システムのジョブによる上記データボリュー
ム全体を占有する時間をできるだけ短かくするように制
御した、データセットの共用排他制御方式に関するもの
である6例えば第1図に示すように、データボリューム
に格納されたデータセットを、複数のホスト処理システ
ム■および■で共用する場合において、いまホスト処理
システム■かもジョブによってデータセットAに対しア
クセスする場合、ホスト処理システム■はデータセラl
−Aに対して RESERVE命令を発行する。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides that upon access by a host processing system or multiple host processing systems to a data set within a data volume, the entire occupancy of said data volume by a job of either host processing system is 6 For example, as shown in Figure 1, data sets stored in a data volume can be shared between multiple host processing systems and In the case where the data set A is shared by the host processing system ■, if the data set A is accessed by the job, the host processing system ■ is the data server.
- Issue a RESERVE command to A.

このときこのRESERVE命令はパスI −I、コン
トローラ■、パス■を経由してデータセットAに対して
発行されたとすると、コントローラは、パスI−Iおよ
びパス■のアクセスパスにより、パスリザーブを行なう
At this time, if this RESERVE command is issued to dataset A via path I-I, controller ■, and path ■, the controller performs path reservation using the access paths of path I-I and path ■. .

したがってこのパスリザーブが行なわれている間は、ホ
スト処理システム■がデータセットBをアクセスする必
要が生じても、データボリュームはパス■およびパスI
−Iによりホスト処理システム■に対しパスリザーブさ
れ、アクセスすることができないため、あたかもデータ
ボリュームセット全体がコントローラ■経由でホスト処
理システムIに対し占有されたと同じ状態となり、ホス
ト処理システムIのジョブ処理は大幅におくれざるを得
なかった。
Therefore, while this path reservation is being performed, even if the host processing system ■ needs to access data set B, the data volume is
- Since the path is reserved for host processing system ■ by I and cannot be accessed, the state is the same as if the entire data volume set was occupied by host processing system I via controller ■, and host processing system I's job processing had to be significantly delayed.

しかも、ホスト処理システム■がデータセットAをアク
セスするのにパス■−L第2コントローラ、パス■経由
のルートカ存在して℃・ても、パスリザーブのためにリ
ザーブしたパスI−I、第1コントローラ、パスmR由
のルートしか使用できず、システムの信頼性を向上する
ために設けたダブルルートが役に立たなくなる場合もあ
るという問題を有する。
Moreover, even if the host processing system ■ accesses data set A through the path ■-L second controller and the route via path ■, the path I-I reserved for path reservation, the first There is a problem in that only the route from the controller and path mR can be used, and the double route provided to improve system reliability may become useless.

また、ホスト処理システムIあるいはIにおいて、複数
のジョブが行なわれ、データセットの共用あるいは排他
的使用を行なう場合は、(A)データセットのオープン
時に行なう場合と、(B)データセットへのアクセス時
に行なう場合とがあるが、この制御はシステム管理プロ
グラムによって行なわれる。
In addition, when multiple jobs are executed on the host processing system I or I and a data set is shared or used exclusively, (A) this is done when the data set is opened, and (B) the data set is accessed. This control is sometimes performed by a system management program.

この場合、データセットの属性と処理の形態とを比較し
て、共用あるいは排他的制御が行なわれる。
In this case, shared or exclusive control is performed by comparing the attributes of the data set and the processing format.

このデータセットの属性としては、(a)複数の読出し
ジョブまたは一つの書込みジョブで共用可能なもの、(
b)複数の読出しジョブと一つの書込みジョブで共用可
能なもの、(e)処理タイプ(読み、書き)に関係なく
複数ジョブで共用可能等があり、また、処理の形態とし
ては、(a’l読出しだけ(b’l書込みだけ(データ
セットの創成)、(的更新(読出し、書込み)等がある
The attributes of this dataset include (a) those that can be shared by multiple read jobs or one write job;
(b) Can be shared by multiple read jobs and one write job; (e) Can be shared by multiple jobs regardless of processing type (reading, writing); and (a') There is only reading (b'l writing (creation of data set)), updating (reading, writing), etc.

そして、上記人データオープン時に共用排他制御を行な
う場合には、ジョブへの負担は小さくてすむが、排他時
間が長くなるという問題点があるので、上記(B)デー
タセットのアクセス時にこの制御を行なう場合がある。
If shared exclusive control is performed when the above human data is opened, the burden on the job will be small, but there is a problem that the exclusive time will be longer, so this control should be performed when accessing the data set (B) above. There are cases where it is done.

この(B)の場合には、データセットを共用するジョブ
間でデータセットに対応した個有の合言葉を決めておき
、データセットのアクセスに先立つオープン時には共有
を許しておく。
In the case of (B), a unique password corresponding to the data set is determined between jobs that share the data set, and sharing is allowed when the data set is opened prior to access.

そしてジョブのため該データセットを一時的に占有した
いときにENQマクロ命令を発行する。
Then, when it is desired to temporarily occupy the data set for a job, an ENQ macro command is issued.

このときENQマクロ命令のオペランドが上記合言葉に
なっていて、システム管理プログラムはその合言葉で他
のジョブがすでにENQマクロ命令を発行しているか否
かを調らべ、すでに発行されている場合には、先にEN
Qマクロ命令を発行したジョブがDEQマクロ命令を発
行して該データセットの占有を終了するので、後から発
行されたENQマクロ命令の実行を待たせるものである
At this time, the operand of the ENQ macro instruction is the above password, and the system management program checks whether another job has already issued the ENQ macro instruction using that password, and if it has already been issued, , first EN
Since the job that issued the Q macro instruction issues the DEQ macro instruction and finishes occupying the data set, the execution of the ENQ macro instruction issued later is made to wait.

したがって、上記の場合を要約すれば、次のようになる
Therefore, the above case can be summarized as follows.

(イ)二つのジョブで一つのデータセットを共用排他使
用するとき、そのジョブの走行形態が同一のホスト処理
システム内であろうと別のホスト処理システム間であろ
うと、ジョブが期待する制御は同じであるにもかかわら
ず、別のホスト処理システム間ではRESERVE命令
を発行する必要があり、また同一ホスト処理システム内
の場合にはENQマクロ命令を発行する必要があり、ホ
スト処理システムの異同にもとづき発行すべきマクロ命
令が異なる。
(b) When two jobs share and exclusively use one data set, the control expected by the jobs is the same regardless of whether the jobs are running within the same host processing system or between different host processing systems. However, the RESERVE instruction must be issued between different host processing systems, and the ENQ macro instruction must be issued within the same host processing system. The macro instructions to be issued are different.

(ロ)上記RESERVE命令を発行する場合には、パ
スリザーブとなり、交代パスの存在する場合でもこの機
能を生かすことができない。
(b) When issuing the above RESERVE command, the path is reserved, and this function cannot be utilized even if an alternate path exists.

またリザーブしたデータボリューム内の他のデータセッ
トも同時にパスリザーブされてしまうので、他のホスト
処理システムからアクセスすることができない。
Further, other data sets in the reserved data volume are also path reserved at the same time, so they cannot be accessed from other host processing systems.

本発明は上記の如き問題を解決し、1つのシステム、あ
るいは複数のシステム間で行なわれるジョブにおいてデ
ータボリューム全体を占有する時間はできるだけ短くし
て必要なデータセットが処理されたら直ちに、他のジョ
ブに対してデータボリュームを空は渡すようにしたデー
タセットの共用排他制御方式を提供することを目的とし
ている。
The present invention solves the above-mentioned problems by minimizing the time required for a job to occupy the entire data volume in a single system or among multiple systems, so that as soon as the required data set is processed, other jobs can The purpose of this paper is to provide a shared exclusive control method for data sets that passes empty data volumes to users.

そしてこのために本発明によるデータセットの共用排他
制御方式では、1つまたは複数のホスト処理システムに
より1つ以上のコントローラを介して1つまたは複数の
データボリューム内の複数のデータセットにアクセスす
る制御方式において、上記コントローラと上記データボ
リュームとの間にアダプタ装置を設け、該アダプタ装置
には上記データボリューム使用のためのパラメータを登
録したリザーブ登録簿をもたせ、上記パラメータに対応
する命令を前記システムから送ることによって両者の一
致、不一致を調ベデータボリューム内の所定のデータセ
ットにアクセスするようにしたことを特徴としている。
To this end, the sharing exclusive control scheme of data sets according to the present invention provides for controlling access to a plurality of data sets in one or more data volumes by one or more host processing systems via one or more controllers. In this method, an adapter device is provided between the controller and the data volume, the adapter device has a reserve register in which parameters for using the data volume are registered, and commands corresponding to the parameters are sent from the system. The feature is that a predetermined data set within the survey data volume is accessed to check whether the two match or do not match.

次に本発明の一実施例を第2図にもとづき説明する。Next, one embodiment of the present invention will be described based on FIG.

図中、1は第1コントローラ、2は第2コントローラで
あり、3,4はホスト処理システム(I)に設けられた
チャネル装置であり、5,6はホスト処理システム(1
)に設けられたチャネル装置である。
In the figure, 1 is a first controller, 2 is a second controller, 3 and 4 are channel devices provided in the host processing system (I), and 5 and 6 are channel devices provided in the host processing system (I).
).

そしてホスト処理システム■はチャネル装置3または4
により、第1コントローラ1または第2コントローラ2
と接続され、またホスト処理システム(1)はチャネル
装置5または6により、第1コントローラ1または第2
コントローラ2と接続されている。
and the host processing system ■ is channel device 3 or 4.
Accordingly, the first controller 1 or the second controller 2
and the host processing system (1) is connected to the first controller 1 or the second controller by means of a channel device 5 or 6.
It is connected to controller 2.

7はアダプタであり、このアダプタ内には後で述べるよ
うにデータボリューム9内のデータセットに対して効果
的にアクセスできるようにするためのリザーブ登録簿8
が設けられる。
7 is an adapter, and this adapter includes a reserve register 8 for effectively accessing the data set in the data volume 9, as described later.
will be provided.

このリザーブ登録簿8は、第3図に示す如く、ボリュー
ム番号、システム■D、ジョブID、エクステント(ヘ
ッダトラック番号及びテールトラック番号)、排他レベ
ル等が記入されるものである。
In this reserve register 8, as shown in FIG. 3, the volume number, system ID, job ID, extent (header track number and tail track number), exclusive level, etc. are entered.

ここでボリューム番号とは、データボリュームを構成し
ている多数のデバイスに付与された番号のことであり、
システムIDはホスト処理システム(I)、(1)等を
識別するシステム識別子であり、ジョブIDは複数のジ
ョブを識別するためのジョブ識別子である。
The volume number here refers to the number assigned to the many devices that make up the data volume.
The system ID is a system identifier for identifying the host processing system (I), (1), etc., and the job ID is a job identifier for identifying multiple jobs.

そしてエクステントは、データボリューム内でデータセ
ットが占めるアドレス範囲であって、該アドレス範囲の
最初の位置を示すのがヘッダトラック番号で、最終位置
を示すのがチールトラック番号である。
An extent is an address range occupied by a data set within a data volume, with a header track number indicating the first position of the address range, and a chill track number indicating the last position.

排他レベルとは、上記(aXbXc)で説明したデータ
セットの属性である。
The exclusive level is the attribute of the data set described above (aXbXc).

本発明では、ホスト処理システムがジョブにもとづきデ
ータボリュームの」前走のデータセットに対しアクセス
するためにデータオープンを行なったとき、あるいはE
NQマクロ命令を発行すると、指定ボリュームのボリュ
ーム番号であるデバイスアドレスでRESERVE命令
が発行されるとともに次の(1)乃至(5)のパラメー
タ情報が該RESERVE命令に対応してホスト処理シ
ステムからコンl−o−ラに対し転送される。
In the present invention, when a host processing system performs a data open to access a previous data set of a data volume based on a job, or
When the NQ macro instruction is issued, a RESERVE instruction is issued with the device address that is the volume number of the specified volume, and the following parameter information (1) to (5) is sent to the controller from the host processing system in response to the RESERVE instruction. Transferred to -o-ra.

(1) システムID (2)ジョブID (3)エクステント (4)排他レベル (5)アクセス形態 ここで(5)のアクセス形態とは、読出しとか書込み等
のアクセスすべき態様を示すものである。
(1) System ID (2) Job ID (3) Extent (4) Exclusion level (5) Access mode Here, the access mode (5) indicates the access mode such as reading or writing.

そしてシステム管理プログラムが上記パラメータ情報を
設定してコントローラに転送する。
Then, the system management program sets the above parameter information and transfers it to the controller.

そしてこのうち、アクセス形態はコントローラに転送さ
れろのみであるが、他のパラメータ情報は、指定ボリュ
ームのボリューム番号とともにアダプタ7に設けられた
リザーブ登録簿8に記入される。
Of these, the access mode is only "transferred to the controller", but other parameter information is entered in the reserve register 8 provided in the adapter 7 along with the volume number of the designated volume.

いま、第2図に示すホスト処理システム(I)がジョブ
のためにデータボリューム9の特定のデータセットをア
クセスするとき、まずホスト処理システム(I)はチャ
ネル装置3、第1コントローラ1を経由するような、上
記データボリューム9に対するRESERVE命令を発
行する。
Now, when the host processing system (I) shown in FIG. 2 accesses a specific data set in the data volume 9 for a job, the host processing system (I) first goes through the channel device 3 and the first controller 1. A RESERVE command for the data volume 9 is issued.

この命令に対応して上記(1)乃至(5)を含むパラメ
ータ情報を発行され、これにもとづき第1コントロール
1はアダプタ7を占有状態にした後、リザーブ登録簿8
かも当該データボリュームに関する証人事項を読出し、
その中に上記RESERVE命令により指定されたエク
ステントが含まれているか否かを調らべる。
In response to this command, parameter information including the above (1) to (5) is issued, and based on this, the first controller 1 makes the adapter 7 exclusive, and then registers the reserve register 8.
It also reads the witness information regarding the data volume,
It is checked whether the extent specified by the RESERVE command is included therein.

含まれていなければ上記パラメータ情報に指定された、
システムID、ジョブID、エクステント、排他レベル
等をリザーブ登録簿8にエントリーする。
If it is not included, the parameter specified in the above parameter information,
The system ID, job ID, extent, exclusive level, etc. are entered in the reserve register 8.

これによりリザーブが完了する。もしも指定されたエク
ステントがリザーブ登録簿8にエン) IJ−されてい
た場合には、上記パラメータ情報において指定されたシ
ステムID、ジョブIDがすでにエントリーされていた
ものと一致しているか否かを調らべる。
This completes the reservation. If the specified extent has been entered in the reserve register 8, check whether the system ID and job ID specified in the above parameter information match those that have already been entered. Compare.

そして一致した場合には、すでに登録ずみのジョブから
再度リザーブしてきたにすぎないので、使用可能の状態
であることがわかる。
If they match, it can be seen that the job is ready for use because it has simply been reserved again from an already registered job.

しかし一致しない場合には、上記RESERVE命令を
発行したジョブ以外のジョブによりそのエクステント(
データセット)はすでにリザーブずみであることがわか
る。
However, if they do not match, the extent (
It can be seen that the data set) is already reserved.

したがってこのときには、北記パラメータ情報において
指定されたアクセス形態と、リザーブ登録簿8に記入さ
れている排他レベルを第1コントローラ1で比較し、当
該RESERVE命令を受付けるか拒否するか決定する
ことになる。
Therefore, at this time, the first controller 1 compares the access mode specified in the parameter information with the exclusive level entered in the reserve register 8, and decides whether to accept or reject the RESERVE command. .

したがって、リザーブ登録簿8を調査する間だItjテ
ーデーリューム9およびアダプタ7を占有状□態にする
が、その後(ま、パスリザーブではないので、(Iリエ
クステントが不一致ならば空いているパスおよびコント
ローラを経由して同一のデータボリュームに対しても同
時にアクセス可能であり、(f)ジョブID、システム
IDが一致していれば、リザーブしたパスとかアクセス
パスに関係なくアクセスでき、(Ilr)エクステント
は一致するがシステムIDやジョブIDが不一致のとき
は、先にRESERVE命令を発行したジョブの排他レ
ベルと後から発行したRESERVE命令とのアクセス
形態により、共用あるいは排他制御が行なわれる。
Therefore, while investigating the reserve register 8, the Itj table volume 9 and the adapter 7 are set to the occupied state, but after that (well, since they are not path reserves), if the (I re-extents do not match), the free path It is possible to simultaneously access the same data volume via the controller and (f) If the job ID and system ID match, access is possible regardless of the reserved path or access path. (Ilr) If the extents match but the system ID and job ID do not match, sharing or exclusive control is performed depending on the exclusion level of the job that issued the RESERVE command first and the access form of the RESERVE command issued later.

以上述べたように、本発明においてはシステム間および
ジョブ間の共用あるいは排他制御のために、アダプタの
登録簿に各パラメータを入れておくことによって当該制
御のためのソフトウェアの負担を軽減している。
As described above, in the present invention, each parameter is stored in the adapter register for shared or exclusive control between systems and jobs, thereby reducing the burden on software for such control. .

また、データボリューム中のデータセットへのアクセス
がリザーブされたパスに依存させないことによって、特
定のデータセットに対する処理が済んだら、直ちに他の
ジョブのための別のデータセットにアクセスできるよう
□にしてデータボリューム全体の占有時間をできるだけ
少なくして能率のよい使用が行なえるようにしている。
Also, by not making access to datasets in a data volume dependent on reserved paths, you can immediately access other datasets for other jobs after processing a particular dataset. The time required to occupy the entire data volume is minimized to ensure efficient use.

しかもホスト処理システムが異なる場合におけるアクセ
スでも、同一ホスト処理システムからの複数ジョブによ
るアクセスでも、同一のRESERVE命令で制御する
ことができる。
Furthermore, accesses from different host processing systems or accesses from multiple jobs from the same host processing system can be controlled by the same RESERVE command.

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

第1図は従来のデータセットの共用排他制御方式を示し
、第2図は本発明によるデータセットの共用排他制御方
式の一実施例を示し、第3図は第2図の方式におけるア
ダプタの中に登録される登録簿のフォーマットの一例を
示す。 図中、1は第1コントローラ、2は第2コントローラ、
3,4,5,6はそれぞれチャネル装置、7はアダプタ
、8はリザーブ登録簿、9はデータボリュームをそれぞ
れ示す。
FIG. 1 shows a conventional data set sharing exclusive control method, FIG. 2 shows an embodiment of the data set sharing exclusive control method according to the present invention, and FIG. 3 shows the inside of an adapter in the method of FIG. An example of the format of the register registered in is shown below. In the figure, 1 is a first controller, 2 is a second controller,
3, 4, 5, and 6 are channel devices, 7 is an adapter, 8 is a reserve register, and 9 is a data volume.

Claims (1)

【特許請求の範囲】[Claims] 11つまたは複数のホスト処理システムにより1つ以上
のコントローラを介して1つまたは複数のデータボリュ
ーム内の複数のデータセットにアクセスする制御方式に
おいて、上記コントローラと上記データボリュームとの
間にアダプタ装置を設け、該アダプタ装置には上記デー
タボリューム使用のためのパラメータを登録したリザー
ブ登録簿をもたせ、上記パラメータに対応する命令を前
記システムから送ることによって両者の一致、不一致を
調ベデータボリューム内の所定のデータセットにアクセ
スするようにしたことを特徴とするデータセットの共用
排他制御方式。
11. A control scheme in which a plurality of data sets in one or more data volumes are accessed by one or more host processing systems via one or more controllers, wherein an adapter device is provided between the controller and the data volumes. The adapter device is provided with a reserve register in which parameters for using the data volume are registered, and a command corresponding to the parameters is sent from the system to check whether they match or not. A shared exclusive control method for data sets, characterized in that data sets are accessed.
JP55037993A 1980-03-25 1980-03-25 Shared exclusive control method for data sets Expired JPS5816492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55037993A JPS5816492B2 (en) 1980-03-25 1980-03-25 Shared exclusive control method for data sets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55037993A JPS5816492B2 (en) 1980-03-25 1980-03-25 Shared exclusive control method for data sets

Publications (2)

Publication Number Publication Date
JPS56135264A JPS56135264A (en) 1981-10-22
JPS5816492B2 true JPS5816492B2 (en) 1983-03-31

Family

ID=12513089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55037993A Expired JPS5816492B2 (en) 1980-03-25 1980-03-25 Shared exclusive control method for data sets

Country Status (1)

Country Link
JP (1) JPS5816492B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6243766A (en) * 1985-08-21 1987-02-25 Hitachi Ltd Control system for state of shared resources

Also Published As

Publication number Publication date
JPS56135264A (en) 1981-10-22

Similar Documents

Publication Publication Date Title
US6105085A (en) Lock mechanism for shared resources having associated data structure stored in common memory include a lock portion and a reserve portion
JP3704573B2 (en) Cluster system
US7346754B2 (en) Control method for storage device controller system, and storage device controller system
JP2005276158A (en) Storage system, computer system and method of establishing attribute of storage area
US11216390B2 (en) Storage device, memory access control system, and memory access control method
JPS6367685B2 (en)
JP3965784B2 (en) Shared memory exclusive access control method
JPS5816492B2 (en) Shared exclusive control method for data sets
JPS62287359A (en) Control system for simultaneous file access in loosely coupled multi-processor system
JPS5827255A (en) Controlling system of file used for plural electronic computers in common
JPH08328884A (en) Resource management device
JP2710475B2 (en) Memory control circuit
JPH05225028A (en) File management system
JP3157513B2 (en) Extended storage device
US7424496B1 (en) Asymmetric coherency protection
JPH01184554A (en) Data accessing system
JP3533113B2 (en) Common resource management method and apparatus, and machine-readable recording medium recording program
JPS595928B2 (en) Diagnostic program loading processing method
JPS5985559A (en) File control system
JPS62546B2 (en)
JPS61194546A (en) Shared file control system
JPS60142755A (en) Competition preventing system of file access
JPS61210469A (en) Common memory control system
JPS6249464A (en) Equipment access control system
JPS6325759A (en) Input/output control system for shared file