JP2573579B2 - File operating device for multiple file / volume type magnetic tape - Google Patents

File operating device for multiple file / volume type magnetic tape

Info

Publication number
JP2573579B2
JP2573579B2 JP61189773A JP18977386A JP2573579B2 JP 2573579 B2 JP2573579 B2 JP 2573579B2 JP 61189773 A JP61189773 A JP 61189773A JP 18977386 A JP18977386 A JP 18977386A JP 2573579 B2 JP2573579 B2 JP 2573579B2
Authority
JP
Japan
Prior art keywords
file
magnetic tape
stored
file name
block
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
JP61189773A
Other languages
Japanese (ja)
Other versions
JPS6346678A (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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61189773A priority Critical patent/JP2573579B2/en
Publication of JPS6346678A publication Critical patent/JPS6346678A/en
Application granted granted Critical
Publication of JP2573579B2 publication Critical patent/JP2573579B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Management Or Editing Of Information On Record Carriers (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は複数ファイル・ボリューム形式磁気テープに
格納された複数のファイルの格納順序等を変更して新た
な複数ファイル・ボリューム形式磁気テープを作成する
際に好適な複数ファイル・ボリューム形式磁気テープの
ファイル操作装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention creates a new multi-file volume magnetic tape by changing the storage order of a plurality of files stored in a multi-file volume magnetic tape. The present invention relates to a file operation device for a magnetic tape having a plurality of files and a volume format, which is suitable for such a case.

〔従来の技術〕[Conventional technology]

一般に、情報処理で用いられる外部記憶媒体である磁
気テープは、巻戻された状態で保管されているので、一
つのボリュームの磁気テープに複数のファイルが格納さ
れた複数ファイル・ボリューム形式の磁気テープでは、
磁気テープの始めの部分に格納されたファイルの方が後
の部分に格納されたファイルより実際にアクセスされる
までの時間は短くて済む。従って、使用頻度の高いファ
イルは磁気テープの始めの部分に格納しておくのが計算
機システムの利用効率等を向上する上で望ましい。
In general, a magnetic tape as an external storage medium used for information processing is stored in a rewound state, so a magnetic tape of a multiple file volume format in which a plurality of files are stored on a magnetic tape of one volume. Then
A file stored in the first part of the magnetic tape requires less time to be actually accessed than a file stored in the second part. Therefore, it is desirable to store frequently used files at the beginning of the magnetic tape in order to improve the utilization efficiency of the computer system.

しかし、使用頻度が高いか否かは複数ファイル・ボリ
ューム形式磁気テープを最初に作る際に必ずしも判明し
ているとは限られないので、一度作成された複数ファイ
ル・ボリューム形式磁気テープから、そのファイルの順
番を変更した新たな複数ファイル・ボリューム形式磁気
テープを作成することが行なわれている。
However, it is not always known when a multi-file / volume-format magnetic tape is first made whether or not it is frequently used. In this case, a new multi-file / volume-format magnetic tape in which the order is changed is created.

このような場合、変更前の第1の磁気テープを第1の
磁気テープ装置にセットし、変更後の第2の磁気テープ
を第2の磁気テープ装置にセットし、第2の磁気テープ
に格納すべき順序で第1の磁気テープからファイルを順
次に読取って第2の磁気テープに書込むような処理が必
要となるが、従来の装置では、各ファイルの読取り,書
込みは各ファイルの論理レコードを意識して行なってい
た。
In such a case, the first magnetic tape before the change is set in the first magnetic tape device, the second magnetic tape after the change is set in the second magnetic tape device, and stored in the second magnetic tape. It is necessary to perform a process of sequentially reading files from the first magnetic tape in the order to be written and writing the files to the second magnetic tape. In the conventional apparatus, reading and writing of each file are performed by the logical record of each file. I was conscious of it.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

この為、各々のファイルの読取り,書込みに際してそ
のファイルの形式(論理レコード長,物理レコード長な
ど)を操作者がファイル定義として逐次指定しなければ
入出力処理を実行することができず、上述したようなフ
ァイルの順番の変更などの操作が面倒になるという欠点
があった。
For this reason, when reading or writing each file, input / output processing cannot be executed unless the operator specifies the format (logical record length, physical record length, etc.) of the file sequentially as a file definition. There is a disadvantage that operations such as changing the order of the files are troublesome.

本発明はこのような従来の欠点を解決したもので、そ
の目的は、ファイルの形式を指定しなくてもある磁気テ
ープに格納された任意のファイルを別の磁気テープに移
すことができるようにして、ファイルの順番等を変更し
た新たな複数ファイル・ボリューム形式磁気テープの作
成を容易なものとすることにある。
SUMMARY OF THE INVENTION The present invention solves such a conventional disadvantage, and its purpose is to transfer any file stored on one magnetic tape to another magnetic tape without specifying the file format. Another object of the present invention is to facilitate creation of a new multi-file volume type magnetic tape in which the order of files and the like are changed.

〔問題点を解決するための手段〕[Means for solving the problem]

本発明は上記目的を達成するために、例えば第1図に
示すように、複数ファイル・ボリューム形式で、かつ各
ファイルには予め所定の同一形式で見出しラベルと該フ
ァイルの最後を示すテープマークとを含めた第1の磁気
テープ2から、ギャップとギャップとに挟まれたブロッ
クの内容を読み出してバッファ領域に格納する入力手段
3と、前記バッファ領域に格納された前記ブロックを、
第2の磁気テープ5にブロック単位で書き込む出力手段
6と、第1の磁気テープ2に格納されているファイルの
形式を指定することなく、該ファイルのファイル名を指
定する指定手段と、入力手段3が読み出して前記バッフ
ァ領域に格納した前記ブロックが前記見出しラベルであ
り、かつ該見出しラベルに含まれるファイル名が指定手
段により指定されたファイル名に等しいという条件の成
立を判別する判別手段7と、判別手段7で前記条件が成
立したと判別されたとき、入力手段3が読み出して前記
バッファ領域に格納した前記見出しラベルの前記ブロッ
クを、出力手段6により第2の磁気テープ5に書き込ん
だ後、前記ファイル名を持つファイルの最後のテープマ
ークまでの前記ブロックを入力手段3により第1の磁気
テープ2から1ブロックずつ読み出して、出力手段6に
より1ブロックずつ第2の磁気テープ5に書き込む制御
を行う制御手段8とを備える。
In order to achieve the above object, the present invention provides, as shown in FIG. 1, for example, a heading label and a tape mark indicating the end of the file in a multiple file / volume format, and each file has a predetermined identical format in advance. Input means 3 for reading the contents of the blocks sandwiched between the gaps from the first magnetic tape 2 including the following, and storing the blocks in the buffer area;
Output means 6 for writing to the second magnetic tape 5 in block units, designating means for designating a file name of the file stored on the first magnetic tape 2 without designating the format of the file, and input means Determining means 7 for determining whether or not the condition that the block read out and stored in the buffer area is the heading label and the file name included in the heading label is equal to the file name specified by the specifying means; When the determination means 7 determines that the condition is satisfied, the input means 3 writes the block of the heading label stored in the buffer area to the second magnetic tape 5 by the output means 6. The block up to the last tape mark of the file having the file name is input one block from the first magnetic tape 2 by the input means 3. It reads each click, and a control unit 8 for controlling writing to the second magnetic tape 5 by one block by the output unit 6.

〔作用〕[Action]

入力手段3および出力手段6は、ギャップとギャップ
に挟まれた内容を一つのブロックとして読込み或いは書
込むものであり、そのブロック内に幾つの論理レコード
が含まれているか等の論理的な内容については意識しな
いので、ファイルの形式を指定することなく、第1の磁
気テープ2に格納された任意のファイルを第2の磁気テ
ープ5に移すことができ、そのような操作を繰返すこと
で、任意の順序の複数ファイル・ボリューム形式磁気テ
ープを作成することができる。
The input means 3 and the output means 6 read or write the gap and the contents sandwiched between the gaps as one block, and determine the logical contents such as how many logical records are included in the block. Is not conscious, any file stored on the first magnetic tape 2 can be transferred to the second magnetic tape 5 without specifying the file format. By repeating such an operation, To create multiple file volume format magnetic tapes in this order.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第2図は本発明の実施例のブロック図であり、中央処
理装置10と、主記憶装置11と、入力装置12と、第1の磁
気テープ13がセットされた磁気テープ装置14と、中央処
理装置10からの指令に応じて磁気テープ装置14の読取
り,書込みを制御する磁気テープ制御装置15と、第2の
磁気テープ16がセットされた磁気テープ装置17と、中央
処理装置10の指令に応じて磁気テープ装置17の読取り,
書込みを制御する磁気テープ制御装置18とから構成され
ている。
FIG. 2 is a block diagram of an embodiment of the present invention, in which a central processing unit 10, a main storage device 11, an input device 12, a magnetic tape device 14 on which a first magnetic tape 13 is set, and a central processing unit. A magnetic tape control device 15 for controlling reading and writing of the magnetic tape device 14 in response to a command from the device 10, a magnetic tape device 17 in which a second magnetic tape 16 is set, and a command in response to a command from the central processing unit 10. Read the magnetic tape unit 17,
And a magnetic tape controller 18 for controlling writing.

第3図は第1の磁気テープ13に格納された内容の説明
図であり、同図(a)に示すように、第1の磁気テープ
13には、ファイル名f1を持つファイルF1,ファイル名f2
を持つファイルF2,ファイル名f3を持つファイルF3,ファ
イル名f4を持つファイルF4,ファイル名f5を持つファイ
ルF5の合計5個のファイルが格納されている。また各フ
ァイルは、例えばファイルF1の内容を拡大して図示した
同図(b)に示すように、最初にファイル名f1を含む見
出しラベルFL1があり、次にギャップG1を挟んでテープ
マークTM1があり、次にギャップG2を挟んでファイルを
構成するレコード群Rがあり、次にギャップG3,テープ
マークTM2,ギャップG4を挟んで後書きラベルLL1があ
り、最後にギャップG5,テープマークTM3,ギャップG6が
ある。更に、レコード群Rは同図(c)に示すように、
そのファイルの形式に応じた個数のレコードrがギャッ
プGに挟まれた形式となっている。本実施例において
は、ギャップとギャップとに挟まれた内容,即ち見出し
ラベル,テープマーク,そのファイルの形式に応じた個
数のレコード,後書きラベルを一つのブロックとして読
込む、書込みを行なうものである。
FIG. 3 is an explanatory diagram of the contents stored on the first magnetic tape 13, and as shown in FIG.
13 has a file F1 with a file name f1, a file name f2
, A file F3 having a file name f3, a file F4 having a file name f4, and a file F5 having a file name f5. Each file has, for example, a heading label FL1 including a file name f1 first, and then a tape mark TM1 across a gap G1 as shown in FIG. Then, there is a record group R constituting the file with the gap G2 interposed, then there is a gap G3, a tape mark TM2, a postscript label LL1 with the gap G4 interposed, and finally there is a gap G5, tape mark TM3, gap G6 There is. Further, as shown in FIG.
The number of records r corresponding to the format of the file is a format in which a gap G is interposed. In the present embodiment, the contents sandwiched between the gaps, that is, the heading label, the tape mark, the number of records corresponding to the format of the file, and the postscript label are read and written as one block. .

第4図は中央処理装置10が行なうファイル操作処理の
一例を示す流れ図であり、第1の磁気テープ13に格納さ
れた複数のファイルのうち、入力装置12などから指定さ
れたファイル名を持つファイルを第2の磁気テープ16に
複写する際の処理を示している。
FIG. 4 is a flowchart showing an example of a file operation process performed by the central processing unit 10, and among a plurality of files stored on the first magnetic tape 13, a file having a file name designated by the input device 12 or the like. On the second magnetic tape 16 is shown.

次に、第3図に示した第1の磁気テープ13に格納され
た複数のファイルのうちファイル名f3を持つファイルF3
を第2の磁気テープ16に複写する場合を例にして本実施
例の動作を説明する。
Next, a file F3 having a file name f3 among a plurality of files stored on the first magnetic tape 13 shown in FIG.
The operation of the present embodiment will be described by taking as an example the case where is copied to the second magnetic tape 16.

このような複写を行なう場合、操作者は、入力装置12
からファイル名f3を、選択すべきファイル情報として入
力する。中央処理装置10はこのファイル選択情報を取込
むと(S1)、先ず、磁気テープ制御装置15に対し1ブロ
ックの読込指示を与える(S2)。
To make such a copy, the operator must use the input device 12.
To input the file name f3 as file information to be selected. When the central processing unit 10 fetches the file selection information (S1), it first issues a one-block reading instruction to the magnetic tape control unit 15 (S2).

磁気テープ制御装置15は1ブロックの読込指示が入力
されると、磁気テープ装置14を正方向に起動し、磁気テ
ープ装置14から順次送られてくる読取りデータを主記憶
装置11のバッファ領域11aに転送し、一つのギャップが
検出されると磁気テープ装置14の動作を停止させる。第
3図の場合、最初にバッファ領域11aに転送される内容
はファイルF1の見出しラベルFL1であり、中央処理装置1
0は見出しラベルFL1であることを判別すると(S3)、そ
の見出しラベル中に含まれたファイル名f1が指定された
ファイル名f3であるか否かを判別するが(S4)、一致し
ないので、ステップS2に戻って次の1ブロックの読込指
示を磁気テープ制御装置15に対して出力する。
When a read instruction of one block is input, the magnetic tape control device 15 activates the magnetic tape device 14 in the forward direction, and the read data sequentially transmitted from the magnetic tape device 14 is stored in the buffer area 11a of the main storage device 11. The transfer is performed, and when one gap is detected, the operation of the magnetic tape device 14 is stopped. In the case of FIG. 3, the content first transferred to the buffer area 11a is the heading label FL1 of the file F1 and the central processing unit 1
When 0 is determined to be the heading label FL1 (S3), it is determined whether or not the file name f1 included in the heading label is the specified file name f3 (S4). Returning to step S2, a read instruction for the next one block is output to the magnetic tape control device 15.

磁気テープ制御装置15は読込指示が与えられると、前
述と同様に磁気テープ装置14を正方向に起動し次の1ブ
ロックである第3図のテープマークTM1をバッファ領域1
1aに出力し、中央処理装置10はその内容が見出しラベル
でないことから、ステップS2に戻って再び1ブロックの
読込指示を磁気テープ制御装置15に与える。
When a read instruction is given, the magnetic tape control device 15 activates the magnetic tape device 14 in the forward direction in the same manner as described above, and sets the tape mark TM1 of FIG.
1a, and the central processing unit 10 returns to step S2 and again gives an instruction to read one block to the magnetic tape control device 15 because the content is not a header label.

次に磁気テープ制御装置15からバッファ領域11aに転
送される内容は、第3図に示したファイルF1のレコード
群の最初のレコードの集まりであり、見出しラベルでな
いことから中央処理装置10はステップS2に戻る。
Next, the content transferred from the magnetic tape control device 15 to the buffer area 11a is the first set of records in the record group of the file F1 shown in FIG. 3, and is not a heading label. Return to

以上のような動作は、磁気テープ制御装置15からバッ
ファ領域11aにファイル名f3を含む見出しラベルが転送
されるまで繰返され、ファイル名f3を含む見出しラベル
がバッファ領域11aに転送されると、中央処理装置10は
選択すべきファイルであることを判別し(S5)、バッフ
ァ領域11aに格納されたファイル名f3を含む見出しラベ
ルを1ブロックとして第2の磁気テープ16に書込むべき
ことを磁気テープ制御装置18に指示する。
The above operation is repeated until the heading label including the file name f3 is transferred from the magnetic tape control device 15 to the buffer area 11a, and the center label is transferred to the buffer area 11a when the heading label including the file name f3 is transferred to the buffer area 11a. The processing device 10 determines that the file is a file to be selected (S5), and informs the magnetic tape 16 that the heading label including the file name f3 stored in the buffer area 11a should be written as one block on the second magnetic tape 16. Instruct the control device 18.

これに応答して、磁気テープ制御装置18は、磁気テー
プ装置17を正方向に起動し、ファイル名f3を含む見出し
ラベルを書込ませた後、磁気テープ装置17の動作を停止
させる。
In response to this, the magnetic tape control device 18 activates the magnetic tape device 17 in the forward direction, stops writing the heading label including the file name f3, and then stops the operation of the magnetic tape device 17.

中央処理装置10は、選択したファイルの見出しラベル
が第2の磁気テープ16に書込まれると、磁気テープ制御
装置15に対して1ブロックの読込指示を与え(S7)、フ
ァイルF3のテープマーク(第3図のテープマークTM1に
相当するテープマーク)をバッファ領域11aに転送さ
せ、次にこの転送されたテープマークを1ブロックとし
て磁気テープ制御装置18に与え、第2の磁気テープ16の
前記見出しラベルを書込んだ後の領域にそのテープマー
クを書込ませる(S8)。ステップS7,S8の動作は、ファ
イルF3の最後のテープマーク(第3図のテープマークTM
3に相当するテープマーク)、まで繰返され(S9)、こ
れにより第1の磁気テープ13に格納されたファイルF3の
全ての情報が第2の磁気テープ16に複写される。
When the heading label of the selected file is written on the second magnetic tape 16, the central processing unit 10 gives a reading instruction of one block to the magnetic tape control unit 15 (S7), and the tape mark of the file F3 ( The tape mark corresponding to the tape mark TM1 in FIG. 3 is transferred to the buffer area 11a, and the transferred tape mark is given to the magnetic tape controller 18 as one block. The tape mark is written in the area after the label has been written (S8). The operations of steps S7 and S8 are performed by using the last tape mark of the file F3 (the tape mark TM in FIG. 3).
(S9), whereby all the information of the file F3 stored on the first magnetic tape 13 is copied to the second magnetic tape 16.

このように本実施例によれば、第1の磁気テープ13に
格納された任意のファイル名を指定するだけで、即ちそ
のファイル名を持つファイルの形式を指定することな
く、第2の磁気テープ16にそのファイルを複写すること
ができる。従って、第2の磁気テープ16に格納したいフ
ァイルの順序に従って順次ファイル名を与えることによ
り、及び削除したいファイルについてはファイル名の指
定を省くことにより、任意の順序で任意のファイルを有
する複数ファイル・ボリューム磁気テープを作成するこ
とができる。
As described above, according to the present embodiment, the second magnetic tape can be specified simply by specifying an arbitrary file name stored in the first magnetic tape 13, that is, without specifying the format of the file having that file name. You can copy the file to 16. Therefore, by giving file names sequentially according to the order of files to be stored on the second magnetic tape 16 and omitting designation of file names for files to be deleted, a plurality of files having arbitrary files in an arbitrary order can be obtained. Volume magnetic tape can be created.

第5図は中央処理装置10が行なう別の処理の流れ図で
あり、第1の磁気テープ13に格納されたあるファイルと
別のファイルとの順序を入れ替えた複数ファイル・ボリ
ューム磁気テープを一度の指示で作成する実施例を示
す。次に、この実施例の動作を、第3図に示した第1の
磁気テープ13に格納された複数のファイルのうち、ファ
イル名f2を持つファイルF2とファイル名f4を持つファイ
ルF4とを入れ替えた複数ファイル・ボリューム磁気テー
プを作成する場合を例にして説明する。
FIG. 5 is a flowchart of another process performed by the central processing unit 10, in which a plurality of file / volume magnetic tapes in which the order of one file stored in the first magnetic tape 13 and another file is interchanged is designated once. The following is an example of the creation. Next, the operation of this embodiment is performed by replacing the file F2 having the file name f2 with the file F4 having the file name f4 among the plurality of files stored on the first magnetic tape 13 shown in FIG. An example in which a multi-file volume magnetic tape is created will be described.

操作者が、入れ替えるべきファイルのファイル名α,
βとしてそれぞれα=f2,β=f4を入力装置12から入力
すると、中央処理装置10はこれを取込む(S10)。
The file name α of the file to be replaced by the operator,
When α = f2 and β = f4 are input from the input device 12 as β, the central processing unit 10 takes them in (S10).

次に、中央処理装置10は、ファイル名f2,f4の何れか
のファイル名が現れる以前に存在する第1の磁気テープ
13のファイルF1を第6図に示すように第2の磁気テープ
16の先頭部に複写する(S11)。
Next, the central processing unit 10 reads the first magnetic tape existing before any of the file names f2 and f4 appears.
13 files F1 on the second magnetic tape as shown in FIG.
Copied at the beginning of 16 (S11).

次に、ファイル名f2,f4のうち最初に見つけたファイ
ル名がαかβかを判別する(S12)。第3図の場合、最
初はファイル名f2(α)が見つかるので、ファイル名f2
を内部レジスタQに格納し、入れ替え指定された残りの
ファイル名f4を内部レジスタRに格納する(S13)。な
お、ファイル名f2をβとして指定した場合には、反対
に、内部レジスタQにβが、内部レジスタRにαが格納
される(S14)。
Next, it is determined whether the first file name found among the file names f2 and f4 is α or β (S12). In the case of FIG. 3, the file name f2 (α) is found at first, so the file name f2 (α) is found.
Is stored in the internal register Q, and the remaining file name f4 designated for replacement is stored in the internal register R (S13). When the file name f2 is designated as β, on the contrary, β is stored in the internal register Q and α is stored in the internal register R (S14).

次に、内部レジスタRに格納されたファイル名f4を持
つファイルF4が現れるまで第1の磁気テープ13を読み飛
ばし(S15)、ファイル名f4を持つファイルF4が現れた
時点で、そのファイルF4を第6図に示すように第2の磁
気テープ16のファイルF1の直後に複写する(S16)。
Next, the first magnetic tape 13 is skipped until a file F4 having the file name f4 stored in the internal register R appears (S15). When the file F4 having the file name f4 appears, the file F4 is deleted. As shown in FIG. 6, copying is performed immediately after the file F1 on the second magnetic tape 16 (S16).

次に、第1の磁気テープ13を巻戻し(S17)、次いで
内部レジスタQに格納されたファイル名f2を持つファイ
ルF2の直後まで第1の磁気テープ13を読み飛ばし(S1
8)、次に、内部レジスタRに格納されたファイル名f4
を持つファイルF4の直前のファイルまで第2の磁気テー
プ16に複写することにより、第6図に示すようにファイ
ルF3を第2の磁気テープ16のファイルF4の後に複写する
(S19)。
Next, the first magnetic tape 13 is rewound (S17), and then the first magnetic tape 13 is skipped until immediately after the file F2 having the file name f2 stored in the internal register Q (S1).
8) Then, the file name f4 stored in the internal register R
The file F3 is copied after the file F4 on the second magnetic tape 16 as shown in FIG. 6 by copying the file F4 on the second magnetic tape 16 up to the file immediately before the file F4 (S19).

次に、第1の磁気テープ13を再び巻戻し(S20)、内
部レジスタQに格納されたファイル名f2を持つファイル
F2の直前まで第1の磁気テープ13を読み飛ばし(S2
1)、ファイル名f2を持つファイルF2が出現すると、こ
のファイルF2を第2の磁気テープ16に複写することによ
り(S22)、第6図に示すように第2の磁気テープ16の
ファイルF3の後にファイルF2を格納する。
Next, the first magnetic tape 13 is rewound (S20) again, and the file having the file name f2 stored in the internal register Q is read.
Skip the first magnetic tape 13 immediately before F2 (S2
1) When the file F2 having the file name f2 appears, the file F2 is copied to the second magnetic tape 16 (S22), and the file F3 of the second magnetic tape 16 is copied as shown in FIG. The file F2 will be stored later.

次に、内部レジスタRに格納されたファイル名f4を持
つファイルF4の直後まで第1の磁気テープ13を読み飛ば
し(S23)、ファイルF4の直後のファイルF5を第2の磁
気テープ16に複写する。これによって、第6図に示すよ
うに、第3図のファイルF2,F4を入れ替えた複数ファイ
ル・ボリューム磁気テープが出来上がる。
Next, the first magnetic tape 13 is skipped until immediately after the file F4 having the file name f4 stored in the internal register R (S23), and the file F5 immediately after the file F4 is copied to the second magnetic tape 16. . As a result, as shown in FIG. 6, a multi-file volume magnetic tape in which the files F2 and F4 in FIG. 3 are replaced is completed.

以上、本発明の実施例について説明したが、本発明は
以上の実施例にのみ限定されず、その他各種の付加変更
が可能である。例えば、第4図のステップS1で与えるフ
ァイル選択情報を、第1の磁気テープ13中の削除したい
ファイルのファイル名とし、ステップS5ではステップS4
で識別したファイル名が指定されたファイル名以外のフ
ァイル名であればステップS6〜S9を実行し、且つ、ステ
ップS9でYESと判別された後に、第1の磁気テープ13の
終わりでなければステップS2に戻る処理を付加すること
により、一度の指示で、第1の磁気テープ13中から不要
なファイルを全て削除した磁気テープを作成するように
構成することもできる。
Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various other additions and changes are possible. For example, the file selection information given in step S1 of FIG. 4 is used as the file name of the file to be deleted in the first magnetic tape 13, and in step S5, step S4
If the file name identified in step is a file name other than the specified file name, steps S6 to S9 are executed, and if YES is determined in step S9, and if the end of the first magnetic tape 13 is not reached, By adding a process to return to S2, it is possible to create a magnetic tape in which all unnecessary files are deleted from the first magnetic tape 13 with a single instruction.

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

以上説明したように、本発明は、磁気テープに格納さ
れている複数のファイルをギャップとギャップとに挟ま
れた内容を一つの物理的なブロックの単位として認識す
ることにより、ファイルの順序の変更やあるファイルの
削除といったファイル操作を、論理的なファイルの形式
によらずに行なうことができ、複数ファイル・ボリュー
ム形式磁気テープのファイル順序の変更等が簡単な指示
で実行できる効果がある。また、ファイルの論理的な構
成を認識しないので、現存しないようなファイル形式が
将来出現したとしても、本装置は何等変更することなく
有効に動作するという利点もある。
As described above, the present invention recognizes a plurality of files stored on a magnetic tape as a unit of one physical block by recognizing the contents sandwiched by gaps as a unit of one physical block, thereby changing the order of the files. File operations such as deletion of a certain file can be performed without depending on the logical file format, and there is an effect that a change in the file order of a multi-file / volume format magnetic tape can be executed with a simple instruction. Also, since the logical configuration of the file is not recognized, even if a file format that does not exist will appear in the future, the present apparatus has an advantage that it can operate effectively without any change.

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

第1図は本発明の構成説明図、 第2図は本発明の実施例のブロック図、 第3図は複数ファイル・ボリューム形式磁気テープの内
容説明図、 第4図は中央処理装置10の処理例の流れ図、 第5図は中央処理装置10の別の処理例の流れ図および、 第6図は本発明の実施例の動作説明図である。 図において、1,14……第1の磁気テープ装置、2,13……
第1の磁気テープ、3……入力手段、4,17……第2の磁
気テープ装置、5,16……第2の磁気テープ、6……出力
手段、7……判別手段、8……制御手段、10……中央処
理装置、11……主記憶装置、11a……バッファ領域、12
……入力装置、15,18……磁気テープ制御装置。
FIG. 1 is an explanatory diagram of the configuration of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is an explanatory diagram of the contents of a multi-file volume type magnetic tape, and FIG. FIG. 5 is a flowchart of another processing example of the central processing unit 10, and FIG. 6 is an operation explanatory diagram of the embodiment of the present invention. In the figure, 1,14... First magnetic tape device, 2,13.
First magnetic tape, 3... Input means, 4, 17... Second magnetic tape device, 5, 16... Second magnetic tape, 6... Output means, 7. Control means, 10 central processing unit, 11 main storage device, 11a buffer area, 12
... input device, 15, 18 ... magnetic tape control device.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数ファイル・ボリューム形式で、かつ各
ファイルには予め所定の同一形式で見出しラベルと該フ
ァイルの最後を示すテープマークとを含めた第1の磁気
テープから、ギャップとギャップとに挟まれたブロック
の内容を読み出してバッファ領域に格納する入力手段
と、 前記バッファ領域に格納された前記ブロックを、第2の
磁気テープにブロック単位で書き込む出力手段と、 前記第1の磁気テープに格納されている前記ファイルの
形式を指定することなく、該ファイルのファイル名を指
定する指定手段と、 前記入力手段が読み出して前記バッファ領域に格納した
前記ブロックが前記見出しラベルであり、かつ該見出し
ラベルに予め所定の形式で格納したファイル名が前記指
定手段により指定されたファイル名に等しいという条件
の成立を判別する判別手段と、 前記判別手段で前記条件が成立したと判別されたとき、
前記入力手段が読み出して前記バッファ領域に格納した
前記見出しラベルの前記ブロックを、前記出力手段によ
り前記第2の磁気テープに書き込んだ後、前記ファイル
名を持つファイルの最後のテープマークまでの前記ブロ
ックを前記入力手段により前記第1の磁気テープから1
ブロックずつ読み出して、前記出力手段により1ブロッ
クずつ前記第2の磁気テープに書き込む制御を行う制御
手段とを具備したことを特徴とする複数ファイル・ボリ
ューム形式磁気テープのファイル操作装置。
1. A method according to claim 1, wherein the first magnetic tape includes a heading label and a tape mark indicating the end of the file in a predetermined same format in a plurality of files / volume format. Input means for reading the contents of the sandwiched blocks and storing the read contents in the buffer area; output means for writing the blocks stored in the buffer area on a second magnetic tape in block units; Specifying means for specifying the file name of the file without specifying the format of the stored file; and the block read by the input means and stored in the buffer area is the heading label; A condition that the file name previously stored in the label in a predetermined format is equal to the file name specified by the specifying means. And discriminating means for discriminating the establishment of, when the condition is judged to be satisfied by said discrimination means,
After the block of the heading label read by the input unit and stored in the buffer area is written to the second magnetic tape by the output unit, the block up to the last tape mark of the file having the file name is written. From the first magnetic tape by the input means.
And a control means for reading the blocks and writing the blocks to the second magnetic tape one block at a time by the output means.
JP61189773A 1986-08-13 1986-08-13 File operating device for multiple file / volume type magnetic tape Expired - Lifetime JP2573579B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61189773A JP2573579B2 (en) 1986-08-13 1986-08-13 File operating device for multiple file / volume type magnetic tape

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61189773A JP2573579B2 (en) 1986-08-13 1986-08-13 File operating device for multiple file / volume type magnetic tape

Publications (2)

Publication Number Publication Date
JPS6346678A JPS6346678A (en) 1988-02-27
JP2573579B2 true JP2573579B2 (en) 1997-01-22

Family

ID=16246951

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61189773A Expired - Lifetime JP2573579B2 (en) 1986-08-13 1986-08-13 File operating device for multiple file / volume type magnetic tape

Country Status (1)

Country Link
JP (1) JP2573579B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58133686A (en) * 1982-02-03 1983-08-09 Fujitsu Ltd Recognizing system for recording medium
JPS5982678A (en) * 1982-10-30 1984-05-12 Toshiba Corp Picture information storing and retrieving device

Also Published As

Publication number Publication date
JPS6346678A (en) 1988-02-27

Similar Documents

Publication Publication Date Title
JPH04186447A (en) Directory management system
US4932014A (en) Data recording and reading system
JP2573579B2 (en) File operating device for multiple file / volume type magnetic tape
JPH07141231A (en) Device and method for moving processing of virtual storage resource between disk devices
GB2246221A (en) Data storage control
JPH0258653B2 (en)
JP2753078B2 (en) Backup data storage device
JPH03257521A (en) Medium copy system
JP2771986B2 (en) Magnetic tape unit
JP2735400B2 (en) Asynchronous I / O control method
JPH0335477A (en) Peripheral memory controller
JP2512948B2 (en) Data processing device
JPH0451861B2 (en)
JPS6253861B2 (en)
JPS62118453A (en) File controller
JPH02299036A (en) Information recording and reproducing method
JP2533500Y2 (en) Document filing device
JPH04115332A (en) File managing device
JPH0652019A (en) File controller
JPH01307074A (en) Information copying device
JPH0283639A (en) File generation control method
JPS6233387A (en) Control system for copying of floppy disk
JPH0664599B2 (en) Document file search device
JPH0336640A (en) Control system for record storing space
JPS62134718A (en) Data access control system