JPH0786842B2 - Block write-back processor - Google Patents

Block write-back processor

Info

Publication number
JPH0786842B2
JPH0786842B2 JP58246117A JP24611783A JPH0786842B2 JP H0786842 B2 JPH0786842 B2 JP H0786842B2 JP 58246117 A JP58246117 A JP 58246117A JP 24611783 A JP24611783 A JP 24611783A JP H0786842 B2 JPH0786842 B2 JP H0786842B2
Authority
JP
Japan
Prior art keywords
block
address
data set
write
read
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 - Fee Related
Application number
JP58246117A
Other languages
Japanese (ja)
Other versions
JPS60142441A (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 JP58246117A priority Critical patent/JPH0786842B2/en
Publication of JPS60142441A publication Critical patent/JPS60142441A/en
Publication of JPH0786842B2 publication Critical patent/JPH0786842B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related 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

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は,データセツトの更新処理などにおいて,直接
アクセス記憶装置(以後DASDという)から読み込んだデ
ータブロツクを元の位置へ書き戻しするためのブロック
書き戻し処理装置に関し,特に読み出したデータブロッ
クのDASDアドレスをそのデータブロック内に保持して書
き戻し時に使用可能にした効率的なブロックの書き戻し
処理装置を提供する。
Description: TECHNICAL FIELD OF THE INVENTION The present invention relates to a block writing for writing back a data block read from a direct access storage device (hereinafter referred to as DASD) to an original position in a data set updating process or the like. With respect to a return processing device, an efficient block write back processing device is provided, in which a DASD address of a read data block is held in the data block and can be used at the time of write back.

〔技術の背景〕[Background of technology]

従来,DASDボリュームにあるデータセツトからあるブロ
ツクを読み込んで更新を行ない,更新されたブロツクを
元の位置へ書き戻す,いわゆる再書き出し(Re−WRIT
E)処理は極く普通に行なわれる処理であるが,この場
合には,ブロツクの読み出し後にその位置を保持して置
く処理が必要である。
Conventionally, a certain block is read from the data set in the DASD volume and updated, and the updated block is written back to the original position.
E) is a very ordinary process, but in this case, it is necessary to hold the position after reading the block.

読み込み処理と再書き出し処理の間に何らデータセツト
へのアクセス処理がなければ,ブロツクのアドレスは制
御プログラムにより保持されているが,一旦データセツ
トへのアクセス処理が発生した場合にはブロツクのアド
レスは保持されない。この場合には,次のようなマクロ
命令シーケンスにより実行される。
If there is no access to the data set between the read process and the re-write process, the block address is held by the control program, but once the access process to the data set occurs, the block address is Not retained. In this case, the following macro instruction sequence is executed.

READ NOTE POINT WRITE 第1図は,上記マクロ命令シーケンスによる処理の概念
図であり,1は主記憶域,2はDASDを示す。
READ NOTE POINT WRITE FIG. 1 is a conceptual diagram of the processing by the above macro instruction sequence, where 1 is main storage area and 2 is DASD.

READマクロはDASDから主記憶へブロックの読込を行う。
READマクロはDASDの先頭ブロックから順処理により読み
込みを行うものである。順処理で読み込みを行うため,R
EADマクロ発行後の読み込み位置は次ブロック位置とな
る。相対アドレスでREADする位置を指定する場合には,
そのためのREADマクロの直前でPOINTマクロを用いて相
対アドレスをポイント(指定)する。WRITEマクロも順
処理で書き込みを行うため,相対アドレスで指定する場
合はWRITEマクロの直前でPOINTマクロにより指定する。
また,直前に実行した読み込みブロックのアドレスを主
記憶上に保持するマクロとしてNOTEマクロがある。
The READ macro reads a block from DASD to main memory.
The READ macro reads from the top block of DASD by sequential processing. Since reading is done in order, R
The read position after the EAD macro is issued is the next block position. To specify the READ position with a relative address,
Just before the READ macro for that purpose, the relative address is pointed (specified) using the POINT macro. The WRITE macro also writes in a sequential process, so when specifying a relative address, specify it with the POINT macro immediately before the WRITE macro.
The NOTE macro is a macro that holds the address of the read block executed immediately before in main memory.

次にマクロ命令シーケンスに沿って,読み込み後の書き
出し処理を説明する。
Next, the writing process after reading will be described along the macro instruction sequence.

READマクロはDASDから主記憶へブロツクの読み込みを行
ない,NOTEマクロはREADマクロによる読み込み動作やWRI
TEマクロによる書き込み動作の終了を確認してそのブロ
ツクのデータセツト内相対アドレスを主記憶上に保持さ
せる。POINTマクロはその保持されている相対アドレス
をポイント(指定)して,その位置からのWRITE動作やR
EAD動作を制御プログラムに要求する。そしてWRITEマク
ロはそのポイントされた相対アドレスから書き戻しを実
行する。
The READ macro reads a block from DASD to the main memory, and the NOTE macro reads a read operation by the READ macro or WRI.
After confirming the end of the write operation by the TE macro, the relative address in the data set of the block is held in the main memory. The POINT macro points (specifies) the held relative address, and performs a WRITE operation or R from that position.
Request the EAD operation from the control program. Then, the WRITE macro executes write-back from the relative address pointed to.

なお相対アドレスには,データセツトの先頭位置からの
ブロツク位置を表わす相対ブロツクアドレスや,データ
セツトの先頭トラツクからの相対トラツク位置とその中
のブロツク(レコード)位置とを組み合わせて示すTTR
形式の相対トラツクアドレスなどがある。以後これらを
相対ブロツクアドレスで代表させることにする。
For the relative address, the relative block address indicating the block position from the start position of the data set, and the TTR indicated by combining the relative track position from the start track of the data set and the block (record) position in it
Format of relative track address etc. Hereinafter, these will be represented by relative block addresses.

このように,従来は書き戻し処理のたびに,READ時に使
用したデータセツト内相対ブロツクアドレスを取り込ん
で置くためにNOTEマクロの実行が必要となり,処理効率
が悪くなる欠点があつた。
As described above, the NOTE macro needs to be executed in order to fetch and store the relative block address in the data set used at the time of READ every time the write-back processing is performed, which has a drawback that processing efficiency deteriorates.

さらに,たとえばコンパイラ処理の場合,複数の処理フ
エーズに対して10乃至30個程度のパスを重ねることによ
つて処理が行なわれるようになつているが,生成される
中間テキストに対して最初は順次的なアクセス法がとら
れるが,次第にランダムなアクセスが必要になり,しか
も,複数のランダム位置のブロツクを読み込んで,処理
後,それらのブロツクをそれぞれの元の位置へ書き戻し
することが必要になる場合が多い。しかしこのような場
合,上記したNOTEマクロでは,最後に読み込んだ1個の
ブロツクの相対ブロツクアドレスしか保持することがで
きない。これは,相対ブロツクアドレスの保持が,特別
な“レジスタ1"と呼ばれる固定の領域に限定されている
からである。このため,他の効率的でない手段をとらな
ければならず,コンパイラのサイズが一層大きくなり,
処理時間も長くなるという問題があつた。
Furthermore, for example, in the case of compiler processing, processing is performed by overlapping about 10 to 30 paths for multiple processing phases, but the generated intermediate text is initially processed sequentially. However, it is necessary to read blocks at a plurality of random positions, and after processing, write those blocks back to their original positions. Often becomes. However, in such a case, the NOTE macro described above can hold only the relative block address of the last read block. This is because the holding of the relative block address is limited to a fixed area called a special "register 1". Because of this, other inefficient measures have to be taken, leading to larger compiler sizes and
There is a problem that the processing time becomes long.

〔発明の目的および構成〕[Object and Structure of Invention]

本発明の目的は、データセットへのブロックの書き戻し
処理において,書き戻す位置の保持のための命令処理を
簡単化し,さらに任意複数のブロツクに対して多重に実
行できる手段を提供することにあり,そのため本発明
は,ブロツク自身にアドレス情報を保持させるものであ
り,それを実現するための構成として,DASDのボリュー
ム上のデータセットから読み込んだブロックを書き戻し
ブロックの書き戻し処理装置において,各ブロックと対
応するデータセット上のアドレスを記録するブロックア
ドレステーブルと,データセットへのブロック書き込み
時に前記ブロックアドレステーブルにブロックを書き込
んだアドレスを登録するブロックアドレス処理部と,デ
ータセットから任意のブロックが読み込まれると前記ア
ドレステーブルを参照しブロックに対応するデータセッ
ト上のアドレスをブロック内に埋め込む読み込み処理部
と,前記ブロック内に埋め込まれているアドレスを用い
てデータセットへの書き戻し先を指定してブロックを書
き戻す書き戻し処理部と,を有することを特徴とするも
のである。
An object of the present invention is to provide a means for simplifying the instruction processing for holding the write-back position in the write-back processing of a block to a data set, and further for executing it in multiplex for arbitrary plural blocks. Therefore, the present invention allows the block itself to hold the address information, and as a configuration for realizing it, the block read from the data set on the DASD volume is written back in the write-back processing device of each block. A block address table that records an address on a data set corresponding to a block, a block address processing unit that registers the address that writes the block in the block address table when writing the block to the data set, and an arbitrary block from the data set When read, refer to the address table above A read processing unit that embeds an address on the data set corresponding to the block in the block, and a write back processing unit that writes back the block by designating a write back destination to the data set using the address embedded in the block It is characterized by having and.

〔発明の実施例〕Example of Invention

以下に,本発明の詳細を実施例にしたがつて説明する。 The details of the present invention will be described below with reference to examples.

本発明により,データセツトの各ブロツク内に自身の相
対ブロツクアドレス情報を保持させるために,データセ
ツト作成時の書き出し処理でブロツクの相対トラツクア
ドレス取得する第1の段階と,データセツトからブロツ
クを読み出し,先に取得した相対ブロツクアドレスをそ
のブロツク中に埋め込む,すなわち更新する第2の段階
と,更新されたブロツクをデータセツトに書き戻しする
第3の段階からなる前処理を行なう。
According to the present invention, in order to retain its own relative block address information in each block of the data set, the first step of acquiring the relative track address of the block in the writing process when creating the data set and reading the block from the data set. Preprocessing is performed by embedding the previously acquired relative block address in the block, that is, by updating the block, and by writing the updated block back to the data set.

第2図(a),(b),(c)は,それぞれ上記各段階
の処理を説明するための実施例図である。図中,1は主記
憶域,2はDASD,3はブロツク,4はブロツクアドレステーブ
ル,5はデータセツト作成処理部,6はブロツクアドレス処
理部を示す。また,A,B,Cはブロツク名を表わしている。
FIGS. 2 (a), (b), and (c) are example diagrams for explaining the processing of each of the above steps. In the figure, 1 is a main storage area, 2 is DASD, 3 is a block, 4 is a block address table, 5 is a data set creation processing section, and 6 is a block address processing section. Also, A, B, and C represent block names.

DASDボリュームにおけるブロツクアドレスは,TTR形式で
表わされている。TTは相対トラツク番号,Rはトラツク内
におけるブロツク番号である。
Block addresses in DASD volumes are represented in TTR format. TT is the relative track number and R is the block number within the track.

第2図(a)は,最初のブロツクアドレス取得処理を示
す。データセット作成処理部が作成したコードを含むブ
ロックAをWRITEマクロによりDASD2へ書き出す。ブロ
ックAは最初の書き出しであるため,DASD2の先頭から書
き出され,以降順次書き出される。この後ブロックアド
レス処理部はNOTEマクロを発行し,相対ブロックアドレ
スを取得する。ブロックAは先頭ブロックのため,相
対ブロックアドレスTTR−000となる。この取得した相対
ブロックアドレス“000"は,ブロック名“A"と対応づけ
てブロックアドレステーブルに登録される。
FIG. 2A shows the first block address acquisition processing. The block A including the code created by the data set creation processing unit is written to DASD2 by the WRITE macro. Since the block A is the first writing, it is written from the beginning of DASD2 and then sequentially. After this, the block address processing unit issues a NOTE macro to obtain the relative block address. Since block A is the first block, the relative block address is TTR-000. The acquired relative block address “000” is registered in the block address table in association with the block name “A”.

他のブロックB,C,…についてもないしで示すように
上記と同様な処理を行なう。ブロックB,C,…はブロック
Aに続いて順次書き出されるため,相対ブロックアドレ
スTTR=001,002となる。これにより,データセットの各
ブロックについてその相対ブロックアドレスが得られ,
ブロックアドレステーブル4に登録される。
With respect to the other blocks B, C, ... Since the blocks B, C, ... Are sequentially written after the block A, the relative block address TTR = 001,002. This gives the relative block address for each block in the dataset,
It is registered in the block address table 4.

他のブロツクB,C,…についても乃至で示すように上
記と同様な処理を行なう。これにより,データセツトの
各ブロツクについてその相対ブロツクアドレスが得ら
れ、ブロツクアドレステーブル4に登録される。
With respect to the other blocks B, C, ... As a result, the relative block address of each block in the data set is obtained and registered in the block address table 4.

第2図(b)は,ブロツクへのアドレス埋め込み処理を
示す。すなわち,ブロツクアドレス処理部6は,POINTマ
クロを用いて先頭のブロツクAに位置づけた後,順次RE
ADマクロを用いて,データセツトのブロツクA,B,C…を
読み込み,次にブロツクアドレステーブル4を参照し
て,各ブロツクに対応するブロツクアドレス情報を取り
出し,ブロツクの所定の位置に埋め込む更新処理を行な
う。
FIG. 2B shows an address embedding process in the block. That is, the block address processing unit 6 uses the POINT macro to locate the first block A, and then sequentially performs RE.
Update process of reading blocks A, B, C ... of data set using AD macro, then referring to block address table 4 to extract block address information corresponding to each block and embedding the block address information in a predetermined position of the block. Do.

第2図(c)は,ブロツクアドレスの埋め込み更新され
たブロツクをDASDへ書き戻す処理を示す。すなわち,ブ
ロツクアドレス処理部6は,ブロツクアドレスを埋め込
んだ各ブロツクA,B,C…を,DASDの元の位置へ順次書き戻
しする。
FIG. 2 (c) shows the process of writing back the block with the embedded block address and updated to DASD. That is, the block address processing unit 6 sequentially writes back the blocks A, B, C ... In which the block addresses are embedded to the original positions of the DASD.

以上のようにして,DASDには,自身のブロツクアドレス
を保持するブロツクのみが格納され,以後,任意のブロ
ツクが更新処理のために読み込まれて,そのあと書き戻
しされる場合,直ちにブロツクアドレスを指定すること
が可能となる。
As described above, DASD stores only the block holding its own block address, and when any block is read for update processing and then written back, the block address is immediately set. It becomes possible to specify.

〔発明の効果〕〔The invention's effect〕

以上により,本発意はデータセツトの更新処理時にNOTE
マクロを使用する必要がなくなり,処理手順を簡単化す
るとともに,処理時間の短縮を図ることができる。
From the above, the idea is to use the NOTE when updating the data set.
Since it is not necessary to use macros, the processing procedure can be simplified and the processing time can be shortened.

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

第1図は従来の書き戻し処理装置の概念図,第2図
(a)乃至(c)は,本発明に基づく書き戻し処理方法
の実施例の順次の動作を示す説明図である。 図中,1は主記憶域,2はDASD,3はブロツク,4はブロツクア
ドレステーブル,5はデータセツト作成処理部,6はブロツ
クアドレス処理部を表わす。
FIG. 1 is a conceptual diagram of a conventional writeback processing apparatus, and FIGS. 2A to 2C are explanatory diagrams showing a sequential operation of an embodiment of a writeback processing method according to the present invention. In the figure, 1 is a main storage area, 2 is a DASD, 3 is a block, 4 is a block address table, 5 is a data set creation processing section, and 6 is a block address processing section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】DASDのボリューム上のデータセットから読
み込んだブロックを書き戻すブロックの書き戻し処理装
置において, 各ブロックと対応するデータセット上のアドレスを記録
するブロックアドレステーブルと, データセットへのブロック書き込み時に前記ブロックア
ドレステーブルにブロックを書き込んだアドレスを登録
するブロックアドレス処理部と, データセットから任意のブロックが読み込まれると前記
アドレステーブルを参照しブロックに対応するデータセ
ット上のアドレスをブロック内に埋め込む読み込み処理
部と, 前記ブロック内に埋め込まれているアドレスを用いてデ
ータセットへの書き戻し先を指定してブロックを書き戻
す書き戻し処理部と, を有することを特徴とするブロックの書き戻し処理装
置。
1. A block address table for recording an address on a data set corresponding to each block in a block write-back processing device for writing back a block read from a data set on a DASD volume, and a block to the data set. A block address processing unit for registering an address at which a block is written in the block address table at the time of writing, and when an arbitrary block is read from a data set, the address table is referred to and an address on a data set corresponding to the block is set in the block. A write-back processing unit that embeds a read processing unit, and a write-back processing unit that writes back the block by designating a write-back destination to a data set using an address embedded in the block Processing equipment.
JP58246117A 1983-12-29 1983-12-29 Block write-back processor Expired - Fee Related JPH0786842B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58246117A JPH0786842B2 (en) 1983-12-29 1983-12-29 Block write-back processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58246117A JPH0786842B2 (en) 1983-12-29 1983-12-29 Block write-back processor

Publications (2)

Publication Number Publication Date
JPS60142441A JPS60142441A (en) 1985-07-27
JPH0786842B2 true JPH0786842B2 (en) 1995-09-20

Family

ID=17143732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58246117A Expired - Fee Related JPH0786842B2 (en) 1983-12-29 1983-12-29 Block write-back processor

Country Status (1)

Country Link
JP (1) JPH0786842B2 (en)

Also Published As

Publication number Publication date
JPS60142441A (en) 1985-07-27

Similar Documents

Publication Publication Date Title
JPH04186447A (en) Directory management system
JPH0786842B2 (en) Block write-back processor
JPS6058487B2 (en) data processing equipment
JP3169596B2 (en) Database management device
JP3130798B2 (en) Bus transfer device
JP2545587B2 (en) Garbage collection method
JP2675088B2 (en) Information collection method
JPH036634A (en) File storing system for floppy disk
JPH0337722A (en) Information processor
JPH04350741A (en) Access speed increasing method for indexed sequential file
KR100352500B1 (en) Method for automation of form controls generation
JP3016255B2 (en) Database management system
JPH10124400A (en) Data processor and method for accessing data recording medium
JP2616203B2 (en) Management method of name table in translation system
JP2746770B2 (en) File processing method of optical disk verification system
JPH06222965A (en) Managing method for circulation sequential organized file
JP2000339145A (en) Method and device for supporting program maintenance and recording medium
JPH113211A (en) Pc card setting system for computer system
JPH0393059A (en) Magneto-optical disk operating system
JPH0371349A (en) File control system
JPS58163054A (en) Member replacing system of section data set
JP2001243097A (en) Information processing system and information processor and data updating method for the same system and recording medium
JPH04236639A (en) File space management system
JPH02250166A (en) Information processor
JPS58151671A (en) Pattern generating device

Legal Events

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