JPS6286445A - File assignment system - Google Patents

File assignment system

Info

Publication number
JPS6286445A
JPS6286445A JP60226212A JP22621285A JPS6286445A JP S6286445 A JPS6286445 A JP S6286445A JP 60226212 A JP60226212 A JP 60226212A JP 22621285 A JP22621285 A JP 22621285A JP S6286445 A JPS6286445 A JP S6286445A
Authority
JP
Japan
Prior art keywords
file
job control
data
input
response
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
JP60226212A
Other languages
Japanese (ja)
Inventor
Iwao Inagi
稲木 岩男
Kazuyuki Miyazawa
宮沢 和幸
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 JP60226212A priority Critical patent/JPS6286445A/en
Publication of JPS6286445A publication Critical patent/JPS6286445A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To reduce the man-hour and to prevent operator mistake by providing a job control sentence preparing means written in a previously prepared library and a file assignment execution means executing the file assignment according to a job control sentence in response to the input of an end code. CONSTITUTION:A job control sentence preparing section 2-1 in a processing section 2 calculates the block length maximizing the utilizing efficiency of a designated magnetic disc and the total capacity at that time at first in response to the data input. A part of the input data inputted to the file assignment job control sentence and the total capacity assigned by the calculated file are used as parameters. When the said code is inputted, a file allocation execution section 2-2 is started and an instruction executing simultaneously the job control sentence written in a library 3 is given to the operating system and the file is assigned according to the job control sentence. Thus, the time, man-hour required for the processing and the job mistake are reduced and the load of the operator is relieved remarkably.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機システムにおける磁気ディスクへの
ファイル割り当てシステムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a system for allocating files to magnetic disks in computer systems.

〔従来の技術〕[Conventional technology]

ファイルを磁気ディスクへ割0当てるために、従来は使
用する磁気ディスクに対して、最もスペース効率の高い
ブロック長を求め、その結果ファイル全体でどれだけの
容量が必要か算出し、これらの情報をもとに人がジョブ
制御言語で記述しで、茗 そのジップを実行させ、実際にファイ4気ディスフへ割
V当てていた。また、このときのジ1ブ制御文は磁気デ
ィスクの種類、媒体名、ファイルの種類など、ファイル
の割り当てをするたびに異なるパラメータの他、定常的
なパラメータも少くないが、それらも毎回記述しなけれ
ばならなかりた。
In order to allocate a file to a magnetic disk, conventionally the most space-efficient block length for the magnetic disk to be used is determined, and as a result, the amount of space required for the entire file is calculated, and this information is used. Originally, someone wrote it in a job control language, executed Misono Zip, and actually assigned V to Phi 4 Ki Disp. In addition, the jib control statement at this time includes parameters that change each time a file is allocated, such as the type of magnetic disk, media name, and file type, as well as a number of constant parameters, which must be written every time. I had to.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の方式では、手作業によるブロック長、全
体容量の算出、ジジプ制御記述、ジ1プの実行という一
連の作業に時間、労力を大きく費すという欠点があり、
また作業上のミスが生じやすいという問題点もある。
The conventional method described above has the disadvantage that a large amount of time and effort is spent on a series of tasks such as manually calculating the block length and total capacity, writing the zip control, and executing the zip.
Another problem is that mistakes are likely to occur during work.

本発明の目的は上述の欠点を除去し、作業工数の削減、
作業者ミスの防止をはかるようにしたファイル割り当て
システムを提供することにある。
The purpose of the present invention is to eliminate the above-mentioned drawbacks, reduce the number of work steps,
The object of the present invention is to provide a file allocation system designed to prevent worker mistakes.

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

本発明のシステムは、割り当てるファイルの名称と前記
ファイルに格納するレコードのレコード長データIl(
バイト)と前記ファイルに格納する前記レコードの件数
データaと前記ファイルの種類データと割り当てられる
磁気ディスクの1トラックの最大容量データm(バイト
)とシリンダ当りのトラック数データにとを含む磁気デ
ィスクの種類データと媒体の名称とを含む入力データを
割り当てファイル毎にジlブ制御文作成手段の要求に応
じて入力し全データの入力終了に応答して終了コードを
入力する入力手段と、前記入力手段にを最大ならしめる
自然数NをデータのNに対応して割り当てファイルの全
容量を計算し各割り当てファイル毎にファイル割り当て
ジ璽ブ制御文を作成し予め用意されたライブラリに書き
込むジ盲プ制御文作成手段と、前記終了コードの入力に
応答して前記ジlブ制御文に従ってファイル割り当てを
実行するファイル割当実行手段とを含んで構成される。
The system of the present invention includes the name of the file to be allocated and the record length data Il(
data on the number of records to be stored in the file (a), data on the file type, data on the maximum capacity of one track of the magnetic disk (m (in bytes)), and data on the number of tracks per cylinder. input means for inputting input data including type data and medium name for each assigned file in response to a request from a jib control statement creation means and inputting an end code in response to completion of inputting all data; Divert loop control that calculates the total capacity of allocated files by using a natural number N that maximizes the value N in correspondence with data N, creates a file allocation code control statement for each allocated file, and writes it to a pre-prepared library. The apparatus includes a statement creation means, and a file allocation execution means for executing file allocation according to the jib control statement in response to input of the end code.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例のブ!ツク図である。FIG. 1 shows a diagram of an embodiment of the present invention. This is a diagram.

てファイル割り当て処理を行なう処理部2とライブラリ
3および4とから構成されている。
It consists of a processing section 2 that performs file allocation processing, and libraries 3 and 4.

処理部2はファイル割り当てジップ制御文を作成するジ
lブ制御文作成部2−1とファイル割り当てジ薦プ制御
文に従ってファイル割0当てを実行するファイル割o当
で実行部2−2とから構成される。
The processing unit 2 includes a zip control statement creation unit 2-1 that creates a file allocation zip control statement and a file allocation execution unit 2-2 that executes file allocation according to the file allocation zip control statement. configured.

第2図は第1図の動作を示すフローチャートである。第
2図を参照して第1図の動作を説明する。
FIG. 2 is a flowchart showing the operation of FIG. 1. The operation shown in FIG. 1 will be explained with reference to FIG.

先づファイル割り当てに必要なデータを入力部1から入
力する(ステップ101)。ファイル割り当てに必要な
データとしては割り当てるファイルの名称、ファイルに
格納するレコー・ドのレコード長(lバイト)、ファイ
ルに格納するレコード件数(a件)、ファイルの種類、
割り当てられる磁気ディスクの種類(最大容量/トラッ
ク・−mパイ”))()ラック数/シリンダ・・・k)
、および媒体側々の固有名称がある。
First, data necessary for file allocation is input from the input unit 1 (step 101). The data required for file allocation includes the name of the file to be allocated, the record length (1 byte) of records to be stored in the file, the number of records to be stored in the file (a), the type of file,
Type of magnetic disk to be allocated (maximum capacity/track - m pie") () Number of racks/cylinder...k)
, and specific names for each medium.

これらデータの入力に応答して処理部2内のジ謬プ制御
文作成部2−1は先づ指定された磁気ディスクの使用効
率が最も高くなるようなブロック長およびそのときの全
容量を算出する(ステップ102)。
In response to the input of these data, the zip control statement creation unit 2-1 in the processing unit 2 first calculates the block length and total capacity at that time that will maximize the usage efficiency of the specified magnetic disk. (step 102).

このようなブロック長詮よび全容量は次のようにして求
められる。ブロックはレコードの集りであり従ってブロ
ック長をnバイトとすれば次式で表わされる。
The block length and total capacity are determined as follows. A block is a collection of records, and therefore, if the block length is n bytes, it can be expressed by the following equation.

n = 73 X N   (Nは自然数)  ・−−
−−(1)1トラックに収容されるプ党ツク数は〔〜〕
となる。ここで〔〕はガウス記号である。
n = 73 X N (N is a natural number) ・--
--(1) The number of drives accommodated in one track is [~]
becomes. Here, [ ] is a Gauss symbol.

従って1トラックに収容されるデータfi f(nlは
次式で表わされる。
Therefore, data fi f (nl) accommodated in one track is expressed by the following equation.

f(ロ)−〔−〕×ロ   ・・・・・(2)(1)式
、と(2)弐じ代入し、変数をNとすればf (N) 
= (−) x l x N≦r11=−13)xN 磁気ディスクのスペース効果が最も高くなるの6一 はf (N)のNについての最大値を求めることとなる
。これに対応する値をNmax、nmax、fmax 
 とすれば f max =4 (Nmax) = f (nmax
)≦mljxNmax= nmax  となる。
f (B) - [-] × B ... (2) Substituting (1) and (2), and setting the variable to N, we get f (N)
= (-)xlxN≦r11=-13)xN To obtain the highest space effect of the magnetic disk, the maximum value for N of f(N) is determined. The corresponding values are Nmax, nmax, fmax
Then f max = 4 (Nmax) = f (nmax
)≦mljxNmax=nmax.

このときの1トラック当りのレコード件数は下記の通り
である。
The number of records per track at this time is as follows.

次にファイルが割?当てられる全容量は1)To(k すなわち1シリンダ使用しないときにはTo  )ラッ
クとなる。
Next is the file split? The total capacity applied is 1) To (k, i.e., To when one cylinder is not used) rack.

1i) ToΣに すなわち1シリンダ以上使用するときは使用シリンダ数
Cは ないときには 従ってステップ102では先づ(3)式からf (N)
を最大にするNmax  をもとめこれにより全容量T
OまたはCを算出する。
1i) In ToΣ, that is, when one or more cylinders are used, the number of cylinders used C is not available. Therefore, in step 102, first from equation (3), f (N)
Find Nmax that maximizes the total capacity T
Calculate O or C.

次いでファイル割り当てジョブ制御文にステップ101
で入力した入力データの1部およびステップ102で算
出したファイルが割り当てられる全容量をパラメータと
して入れる(ステップ103)。
Then the file allocation job control statement in step 101
A portion of the input data input in step 102 and the total capacity to be allocated to the file calculated in step 102 are entered as parameters (step 103).

第3図にファイル割り当てジョブ制御文の例を示す。第
3図で下線をひいた部分がデータを代入するパラメータ
である。
FIG. 3 shows an example of a file allocation job control statement. The underlined portions in FIG. 3 are parameters to which data is substituted.

このジョブ制御文は作成されると事前に用意されたライ
ブラリ3に書き込む(ステップ104)。
When this job control statement is created, it is written into the library 3 prepared in advance (step 104).

この後再び初めの状態であるデータ入力待ち状態となり
1割り当てるファイルがある場合には(ステップ105
のNo枝)データを入力し、上記の操作を繰り返す。な
い場合は(ステップ105のYES枝)終了コードを入
力する(ステップ106)。
After this, the state returns to the initial state of waiting for data input, and if there is a file to be allocated (step 105).
(No branch) Input the data and repeat the above operation. If not (YES branch of step 105), input the end code (step 106).

このコードが入力されると、ファイル割り当て実行部2
−2が起動しくステップ1o7)、ライブラリ3に書き
込まれたジョブ制御文を一括して実行させる命令をオペ
レーティングシステムに出し、そのジョブ制御文に従っ
て、ファイルが割り当てられる(ステップ108)。
When this code is input, the file allocation execution unit 2
-2 is activated (step 1o7), which issues an instruction to the operating system to collectively execute the job control statements written in the library 3, and files are allocated according to the job control statements (step 108).

このよりにして本実施例ではファイル割v当てに必要な
データを入力するのみで磁気ディスクへのファイル割り
当て処理を行なうことができる。
As a result, in this embodiment, file allocation processing to the magnetic disk can be performed only by inputting the data necessary for file allocation v.

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

以上のように本発明には磁気ディスクへのファイル割り
肖てに必要なデータを入力するのみで後は自動的にファ
イル割り当で処理を行なうことができ処理に必要な時間
、労力や作業上のミスを削減することが可能となり作業
者の負担を大幅に軽減できるという効果がある。
As described above, the present invention allows processing to be automatically performed by simply inputting the data necessary for allocating files to a magnetic disk, which saves time, effort, and work required for processing. This has the effect of reducing the number of errors and greatly reducing the burden on workers.

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

第1図は本発明の一実施例を示すブロック図、第2図は
gi図の動作を示すフローチャートおよび第3図はファ
イル割り当てジョブ制御文の例を示す図である。 1・−・・・・入力部、2・−・・・・処理部、2−1
・・・・・・ジョブ制御文作成部、2−2・・・・・・
ファイル割り当て実行部、3,4−・・・・ライブラリ
。 芽 1 囚
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the gi diagram, and FIG. 3 is a diagram showing an example of a file allocation job control statement. 1.--.Input section, 2.--.Processing section, 2-1
...Job control statement creation section, 2-2...
File allocation execution unit, 3, 4--Library. Bud 1 prisoner

Claims (1)

【特許請求の範囲】 割り当てるファイルの名称と前記ファイルに格納するレ
コードのレコード長データl(バイト)と前記ファイル
に格納する前記レコードの件数データaと前記ファイル
の種類データと割り当てられる磁気ディスクの1トラッ
クの最大容量データm(バイト)とシリンダ当りのトラ
ック数データにとを含む磁気ディスクの種類データと媒
体の名称とを含む入力データを割り当てファイル毎にジ
ョブ制御文作成手段の要求に応じて入力し全データの入
力終了に応答して終了コードを入力する入力手段と、 前記入力手段にデータの入力を要求し前記入力データの
供給に応答して各割り当てファイル毎に〔m/(l×N
)〕×l×N(〔 〕はガウス記号)を最大ならしめる
自然数Nを計算してこのNに対応して割り当てファイル
の全容量を計算し各割り当てファイル毎にファイル割り
当てジョブ制御文を作成し予め用意されたライブラリに
書き込むジョブ制御文作成手段と、前記終了コードの入
力に応答して前記ジョブ制御文に従ってファイル割り当
てを実行するファイル割当実行手段とを含むことを特徴
とするファイル割り当てシステム。
[Claims] Name of the file to be allocated, record length data l (bytes) of records stored in the file, number data a of the records stored in the file, type data of the file, and 1 of the magnetic disk to be allocated. Input data including magnetic disk type data and media name, including maximum track capacity data m (bytes) and number of tracks per cylinder data, is assigned and input for each file in response to the request of the job control statement creation means. input means for inputting an end code in response to completion of inputting all data;
)]×l×N ([ ] is a Gauss symbol) is calculated as a natural number N, the total capacity of the allocated files is calculated corresponding to this N, and a file allocation job control statement is created for each allocated file. A file allocation system comprising: job control statement creation means for writing to a library prepared in advance; and file allocation execution means for executing file allocation according to the job control statement in response to input of the end code.
JP60226212A 1985-10-11 1985-10-11 File assignment system Pending JPS6286445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60226212A JPS6286445A (en) 1985-10-11 1985-10-11 File assignment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60226212A JPS6286445A (en) 1985-10-11 1985-10-11 File assignment system

Publications (1)

Publication Number Publication Date
JPS6286445A true JPS6286445A (en) 1987-04-20

Family

ID=16841651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60226212A Pending JPS6286445A (en) 1985-10-11 1985-10-11 File assignment system

Country Status (1)

Country Link
JP (1) JPS6286445A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502136B2 (en) 1995-09-26 2009-03-10 Panasonic Corporation Digital copier with image scanner apparatus and offline image data and control data interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502136B2 (en) 1995-09-26 2009-03-10 Panasonic Corporation Digital copier with image scanner apparatus and offline image data and control data interface

Similar Documents

Publication Publication Date Title
EP0331935A2 (en) Data storage apparatus and method of handling failures therein
JPS6286445A (en) File assignment system
JP3384258B2 (en) Computer system
JP2001236253A (en) Device and method for operating back-up of data by using plural recording media
JPS601672A (en) Processing method for defective block of magnetic disk device
JPS63104154A (en) File shift system
JPH04155546A (en) Multivolume file processing method
JPH05143422A (en) Updated journal managing system
JPS63268050A (en) Continuous converting device for multiple file
JPH0374724A (en) Installation inspecting device
JPS6232549A (en) File compressing system
JPH04350738A (en) Disk space management system
JPS63257849A (en) Reorganizing method for file in use
JPH0628107A (en) File movement system
JPH04295921A (en) Input and output system for floopy disk
JPH0371349A (en) File control system
JPS61145637A (en) Single member processing system of plural members
JPS6385840A (en) Automatic formation system for file operation maintaining job control language
JPS62229345A (en) File multiplexing system
JPH06168079A (en) Data backup system
JPH0293933A (en) Program developing device
JPH01286053A (en) Data control system over plural types of computers
JPH01305446A (en) Program debug support processing system
JPS63104137A (en) Access control system for assign information
JPS62202242A (en) Mapping system for virtual disk device