JPH01112447A - Adding system for internal file name - Google Patents
Adding system for internal file nameInfo
- Publication number
- JPH01112447A JPH01112447A JP62272798A JP27279887A JPH01112447A JP H01112447 A JPH01112447 A JP H01112447A JP 62272798 A JP62272798 A JP 62272798A JP 27279887 A JP27279887 A JP 27279887A JP H01112447 A JPH01112447 A JP H01112447A
- Authority
- JP
- Japan
- Prior art keywords
- file name
- file
- internal
- name
- internal file
- 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
Links
- 238000012217 deletion Methods 0.000 claims description 17
- 230000037430 deletion Effects 0.000 claims description 17
- 238000000034 method Methods 0.000 claims description 8
- 238000007792 addition Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 4
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、タイムシェアリングシステムにおいてTSS
コマンド実行プログラムからファイルをアクセスするた
めに必要な内部ファイル名を外部ファイル名に付加する
内部ファイル名の付加方式(従来の技術)
一般に、ファイルの識別名には文字数の多い外部ファイ
ル名を用いるが、TSSコマンドによりTSSコマンド
実行プログラムからファイルのアクセスを行う場合には
、ファイルの識別名′として文字数の少ない一意な内部
ファイル名を用いる。DETAILED DESCRIPTION OF THE INVENTION (Industrial Field of Application) The present invention provides a time sharing system for TSS
Internal file name addition method that adds the internal file name necessary to access the file from a command execution program to the external file name (prior technology) Generally, an external file name with a large number of characters is used as a file identification name. , When accessing a file from a TSS command execution program using a TSS command, a unique internal file name with a small number of characters is used as the file identification name'.
つまり、ユーザが外部ファイル名に対して一意な内部フ
ァイル名を付加することにより、TSSコマンド実行プ
ログラムはファイルを識別してアクセスする。That is, when the user adds a unique internal file name to the external file name, the TSS command execution program identifies and accesses the file.
この内部ファイル名は、外部ファイル名に対して一度付
加されると、ファイルの割当てが解放されるまで付加さ
れた状態となり、ファイル管理テーブルのファイルエン
トリに内部ファイル名が設定されたままの状態となって
いる。そこで、−度付加された内部ファイル名と同一の
内部ファイル名を付加することはできず、このような場
合には、付加しようとする内部ファイル名と同一の内部
ファイル名を付加された外部ファイルを持つファイルの
割当てを解放した後に、目的とする外部ファイル名に対
してこの内部ファイル名を付加している。Once this internal file name is appended to an external file name, it remains appended until the file allocation is released, and the internal file name remains set in the file entry in the file management table. It has become. Therefore, it is not possible to add an internal file name that is the same as the internal file name that has been added, and in this case, an external file that has the same internal file name as the internal file name that you are trying to add. After the allocation of the file with is released, this internal file name is appended to the target external file name.
(発明が解決しようとする問題点)
従来の内部ファイル名の付加方式では、多くの異なった
TSSコマンド実行プログラムが連続的に使用されるタ
イムシェアリングシステムにおいて、複数のTSSコマ
ンドを用いて一連の作業を行う場合に、TSSコマンド
実行プログラムがアクセスするファイルの内部ファイル
名がファイル管理テーブルのファイルエントリに残存す
るので、文字数の少ない内部ファイル名の重複が発生し
やすく、外部ファイル名に対して一意な内部ファイル名
を付加できなくなるという問題点がある。(Problems to be Solved by the Invention) In the conventional internal file name addition method, in a time sharing system where many different TSS command execution programs are used continuously, a series of When performing work, the internal file name of the file accessed by the TSS command execution program remains in the file entry of the file management table, so it is easy for internal file names with a small number of characters to be duplicated, and to be unique with respect to external file names. There is a problem that it is not possible to add a unique internal file name.
また、一般に内部ファイル名は個々のTSSコマンド実
行プログラムごとに固定に定義されており、同一のTS
Sコマンド実行プログラムを連続的に実行することによ
り作業を行う場合には、外部ファイル名に対して同一の
内部ファイル名の付加を行うことになるが、−意な内部
ファイル名を付加することができないので、ファイルの
アクセスが不可能となってしまう。Additionally, in general, internal file names are fixedly defined for each individual TSS command execution program, and are
When performing work by continuously running the S command execution program, the same internal file name will be added to the external file name, but it is not possible to add a different internal file name. As a result, the file becomes inaccessible.
゛(問題点を解決するための手段)
上述の問題点を解決するなめに本発明が提供する内部フ
ァイル名の付加方式は、ファイル識別名となる外部ファ
イル名に対して一意な内部ファイル名を付加してファイ
ル管理テーブルにファイルエントリとして格納し、TS
Sコマンド実行プログラムから前記内部ファイル名を指
定することによりこの内部ファイル名が付加された外部
ファイル名を持つファイルをアクセスするタイムシェア
リングシステムで前記内部ファイル名を付加する方式で
あって、付加しようとする内部ファイル名と同一の内部
ファイル名を付加された外部ファイル名が前記ファイル
管理テーブルに格納されている場合に、この外部ファイ
ル名に付加されている内部ファイル名を前記ファイル管
理テーブルから削除し、その後に目的とする外部ファイ
ル名に当該内部ファイル名を付加する旨を宣言する内部
ファイル名削除及び付加宣言手段と、この内部ファイル
名削除及び付加宣言手段により宣言された内部ファイル
名をキーとして前記ファイル管理テーブルのファイルエ
ントリを検索するファイルエントリ検索手段と、このフ
ァイルエントリ検索手段により前記内部ファイル名削除
及び付加宣言手段により宣言された内部ファイル名と同
一の内部ファイル名を持つファイルエン1〜りが前記フ
ァイル管理テーブルに検出された場合に、この内部ファ
イル名を当該ファイルエントリから強制的に削除する内
部ファイル名削除手段と、前記内部ファイル名削除及び
付加宣言手段により宣言された内部ファイル名を前記フ
ァイル管理テーブルの当該ファイルエントリに設定する
内部ファイル名設定手段とを有することを特徴とする。(Means for solving the problem) In order to solve the above-mentioned problem, the internal file name addition method provided by the present invention adds a unique internal file name to the external file name that serves as a file identification name. It is added and stored as a file entry in the file management table, and the TS
This is a method of adding the internal file name in a time sharing system in which a file having an external file name to which this internal file name is added is accessed by specifying the internal file name from the S command execution program. If an external file name appended with the same internal file name as the internal file name is stored in the file management table, the internal file name appended to this external file name is deleted from the file management table. Then, an internal file name deletion and addition declaration means declares that the internal file name will be added to the target external file name, and the internal file name declared by this internal file name deletion and addition declaration means is used as a key. a file entry search means for searching for a file entry in the file management table; and a file entry search means for searching for a file entry in the file management table; an internal file name deletion means for forcibly deleting this internal file name from the file entry when ~ri is detected in the file management table; and an internal file declared by the internal file name deletion and addition declaration means. and internal file name setting means for setting a name to the file entry in the file management table.
(実施例)
以下、本発明の一実施例について図面を参照して説明す
る。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例の内部ファイル名の付加方式
のブロック図である。FIG. 1 is a block diagram of an internal file name addition method according to an embodiment of the present invention.
図中、11はTSSコマンド実行プログラム、12は内
部ファイル名削除及び付加宣言手段、13はファイルエ
ントリ検索手段、14は内部ファイル名削除手段、15
は内部ファイル名設定手段、16はファイル管理テーブ
ルをそれぞれ示す。In the figure, 11 is a TSS command execution program, 12 is an internal file name deletion and addition declaration means, 13 is a file entry search means, 14 is an internal file name deletion means, 15
1 indicates an internal file name setting means, and 16 indicates a file management table.
第2図はファイル管理テーブル16の構成図である。フ
ァイル管理テーブル16は、ファイルの識別名となる外
部ファイル名とこれに付加された内部ファイル名とをフ
ァイルエントリとして格納している。このファイルエン
トリは、ファイルを割当てるときに作成され、ファイル
の割当てが解放されると抹消される。FIG. 2 is a configuration diagram of the file management table 16. The file management table 16 stores, as file entries, external file names serving as file identification names and internal file names added thereto. This file entry is created when a file is allocated and deleted when the file is deallocated.
TSSコマンド実行プログラム11は、ユーザが入力し
たコマンドにより起動され、外部ファイル名に対して一
意な内部ファイル名を付加するために、内部ファイル名
削除及び付加宣言手段12に対して内部ファイル名付加
要求を行う、内部ファイル名削除及び付加宣言手段12
は、この要求を受けると、ファイルエントリ検索手段1
3を呼び出す。The TSS command execution program 11 is started by a command input by the user, and sends an internal file name addition request to the internal file name deletion and addition declaration means 12 in order to add a unique internal file name to the external file name. Internal file name deletion and addition declaration means 12 for performing
When receiving this request, file entry search means 1
Call 3.
ファイルエントリ検索手段13は、付加要求を受けた内
部ファイル名をキーとしてファイル管理テーブルを検索
し、この内部ファイル名と同一の内部ファイル名を持つ
ファイルエントリが存在するか否かをチエツクする。付
加要求を受けた内部ファイル名と同一の内部ファイル名
を持つファイルエントリが存在する場合は、内部ファイ
ル名削除手段14を呼出し、存在しない場合は、ファイ
ル設定手段15を呼出す。The file entry search means 13 searches the file management table using the internal file name for which the addition request has been received as a key, and checks whether a file entry having the same internal file name as this internal file name exists. If a file entry having the same internal file name as the internal file name for which the addition request has been received exists, the internal file name deletion means 14 is called; otherwise, the file setting means 15 is called.
内部ファイル名削除手段14は、ファイルエントリ検索
手段13により検出された当該ファイルエントリからこ
の内部ファイル名を強制的に削除してから、内部ファイ
ル名設定手段15を呼出す。The internal file name deletion means 14 forcibly deletes this internal file name from the file entry detected by the file entry search means 13, and then calls the internal file name setting means 15.
内部ファイル名設定手段15は、この内部ファイル名を
付加すべき外部ファイル名を持つファイルエントリがフ
ァイル管理テーブルに存在する場合に、そのファイルエ
ントリに要求された内部ファイル名を設定し、TSSコ
マンド実行プログラム11に対して内部ファイル名の付
加が成功した旨を通知する。また、内部ファイル名を付
加すべき外部ファイル名を持つファイルエントリがファ
イル管理テーブルに存在しない場合には、TSSコマン
ド実行プログラム11に対して内部ファイル名の付加が
失敗した旨を通知する。If a file entry with an external file name to which this internal file name should be added exists in the file management table, the internal file name setting means 15 sets the requested internal file name to the file entry and executes the TSS command. The program 11 is notified that the internal file name has been successfully added. Furthermore, if there is no file entry with the external file name to which the internal file name should be added in the file management table, the TSS command execution program 11 is notified that the internal file name addition has failed.
(発明の効果)
以上に説明したように本発明は、ファイルアクセスのた
めに必要な一意な内部ファイル名を外部ファイル名に付
加する場合に、付加しようとする内部ファイル名と同一
の内部ファイル名が既に他の外部ファイル名に付加され
ている状態であっても、この内部ファイル名を削除して
無効としてから目的とする外部ファイル名に対して内部
ファイル名を付加することができるという効果がある。(Effects of the Invention) As explained above, the present invention provides an internal file name that is the same as the internal file name to be added when adding a unique internal file name necessary for file access to an external file name. Even if the internal file name has already been added to another external file name, this internal file name can be deleted and invalidated, and then the internal file name can be added to the target external file name. be.
また本発明によれば、同一のTSSコマンド実行プログ
ラムを連続して使用するときに、内部ファイル名の重複
付加によるファイルアクセスの失敗を招く心配がない。Further, according to the present invention, when the same TSS command execution program is used continuously, there is no need to worry about file access failure due to duplicate internal file name additions.
第1図は本発明の一実施例の内部ファイル名の付加方式
のブロック図、第2図はファイル管理テーブルの構成図
である。
11・・・TSSコマンド実行プログラム、12・・・
内部ファイル名削除及び付加宣言手段、13・・・ファ
イルエントリ検索手段、14・・・内部ファイル名削除
手段、15・・・内部ファイル名設定手段、16・・・
ファイル管理テーブル。FIG. 1 is a block diagram of an internal file name addition method according to an embodiment of the present invention, and FIG. 2 is a configuration diagram of a file management table. 11...TSS command execution program, 12...
Internal file name deletion and addition declaration means, 13... File entry search means, 14... Internal file name deletion means, 15... Internal file name setting means, 16...
File management table.
Claims (1)
部ファイル名を付加してファイル管理テーブルにファイ
ルエントリとして格納し、TSSコマンド実行プログラ
ムから前記内部ファイル名を指定することによりこの内
部ファイル名が付加された外部ファイル名を持つファイ
ルをアクセスするタイムシエアリングシステムで前記内
部ファイル名を付加する方式において、 付加しようとする内部ファイル名と同一の内部ファイル
名を付加された外部ファイル名が前記ファイル管理テー
ブルに格納されている場合に、この外部ファイル名に付
加されている内部ファイル名を前記ファイル管理テーブ
ルから削除し、その後に目的とする外部ファイル名に当
該内部ファイル名を付加する旨を宣言する内部ファイル
名削除及び付加宣言手段と、 この内部ファイル名削除及び付加宣言手段により宣言さ
れた内部ファイル名をキーとして前記ファイル管理テー
ブルのファイルエントリを検索するファイルエントリ検
索手段と、 このファイルエントリ検索手段により前記内部ファイル
名削除及び付加宣言手段により宣言された内部ファイル
名と同一の内部ファイル名を持つファイルエントリが前
記ファイル管理テーブルに検出された場合に、この内部
ファイル名を当該ファイルエントリから強制的に削除す
る内部ファイル名削除手段と、 前記内部ファイル名削除及び付加宣言手段により宣言さ
れた内部ファイル名を前記ファイル管理テーブルの当該
ファイルエントリに設定する内部ファイル名設定手段と
を有することを特徴とする内部ファイル名の付加方式。[Claims] By adding a unique internal file name to an external file name serving as a file identification name and storing it as a file entry in a file management table, and specifying the internal file name from a TSS command execution program, In the method of appending the internal file name in a time sharing system that accesses a file with an external file name to which this internal file name is appended, an external file name to which the same internal file name as the internal file name to be appended is added. If the file name is stored in the file management table, delete the internal file name appended to this external file name from the file management table, and then add the internal file name to the target external file name. an internal file name deletion and addition declaration means for declaring addition; and a file entry search means for searching for a file entry in the file management table using the internal file name declared by the internal file name deletion and addition declaration means as a key. , If this file entry search means detects in the file management table a file entry with the same internal file name as the internal file name declared by the internal file name deletion and addition declaration means, this internal file name is internal file name deletion means for forcibly deleting from the file entry; and internal file name setting means for setting the internal file name declared by the internal file name deletion and addition declaration means to the file entry in the file management table. An internal file name addition method characterized by having the following.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62272798A JPH01112447A (en) | 1987-10-27 | 1987-10-27 | Adding system for internal file name |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62272798A JPH01112447A (en) | 1987-10-27 | 1987-10-27 | Adding system for internal file name |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01112447A true JPH01112447A (en) | 1989-05-01 |
Family
ID=17518894
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62272798A Pending JPH01112447A (en) | 1987-10-27 | 1987-10-27 | Adding system for internal file name |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01112447A (en) |
-
1987
- 1987-10-27 JP JP62272798A patent/JPH01112447A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3270216B2 (en) | File name detection method | |
| US5765174A (en) | System amd method for distributed object resource management | |
| JPS63233445A (en) | Local addition system for internal file name | |
| JPH06222916A (en) | Online real-time processor | |
| JP2002024037A (en) | How to update a dynamic link library file | |
| JP2787107B2 (en) | Buffer control system and device | |
| JPS6150356B2 (en) | ||
| JP2690648B2 (en) | Network address management device | |
| JPS6019240A (en) | Loading system | |
| JPH05216728A (en) | Database management system | |
| JPS63136227A (en) | System for retrieving program storing file | |
| JPH02253365A (en) | User command executing system | |
| JPH064477A (en) | Sub load module replacement method | |
| JP2528882B2 (en) | Fallback operation method in case of memory failure | |
| JPS6382532A (en) | Converting system from logical address to real address | |
| JPS63196956A (en) | File exclusion system | |
| JPH01120621A (en) | Retrieving/updating system for data base | |
| JPH0293959A (en) | File management system | |
| JPS63167942A (en) | File control system | |
| JPH02189631A (en) | Patch data storage system | |
| JPH0397029A (en) | Online system startup processing method | |
| JPS6240552A (en) | Transaction managing system | |
| JPH0675843A (en) | File control method | |
| JPH02208750A (en) | File access system | |
| JPH01273148A (en) | File managing system |