JP3949364B2 - File processing method and storage medium - Google Patents

File processing method and storage medium Download PDF

Info

Publication number
JP3949364B2
JP3949364B2 JP2000305260A JP2000305260A JP3949364B2 JP 3949364 B2 JP3949364 B2 JP 3949364B2 JP 2000305260 A JP2000305260 A JP 2000305260A JP 2000305260 A JP2000305260 A JP 2000305260A JP 3949364 B2 JP3949364 B2 JP 3949364B2
Authority
JP
Japan
Prior art keywords
file
name
files
initial
information table
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
JP2000305260A
Other languages
Japanese (ja)
Other versions
JP2002108660A (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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2000305260A priority Critical patent/JP3949364B2/en
Publication of JP2002108660A publication Critical patent/JP2002108660A/en
Application granted granted Critical
Publication of JP3949364B2 publication Critical patent/JP3949364B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えばコンピュータ上で事務処理を行うためのファイル処理方法、記憶媒体に関する。
【0002】
【従来の技術】
例えばCOBOLなどの事務処理言語で開発されたソフトウェアを所定のオペレーテイングシステム(以下OSと称す)の環境下で動作させる上で、ファイル拡張の仕組みとしてはOSに依存するところが大きい。
【0003】
例えばTPというOSの環境下では、COBOLのソフトウェアでファイルを作成する際に、ファイル拡張件数を大きく指定してもOSがディスクの空き領域を自動的に最少のものから1回づつ増分させて最大で32回までしか取得しない。
【0004】
【発明が解決しようとする課題】
このようなファイル拡張方式の場合、要求したファイル件数を十分確保できず、各ジョブあるいは各ステップで出力されるファイル件数が予め設定していたファイル件数よりも大きい場合、ファイルオーバーフローを起こすという問題があった。
【0005】
ファイルオーバーフローが発生した場合、オペレータがリカバリ作業を行うことになるが、このリカバリ作業に作業ミスが伴うことが多い。
【0006】
本発明はこのような課題を解決するためになされたもので、処理中に発生するファイルオーバーフローをできる限りなくすことのできるファイル処理装置を提供することを目的としている。
【0007】
【課題を解決するための手段】
上記した目的を達成するために、請求項1記載の発明のファイル処理方法は、複数のジョブを実行してファイルを処理するファイル処理方法において、予め設定されたファイル初期件数よりも出力ファイル件数が大きくなった場合、コンピュータのファイル自動拡張処理部が、先頭ジョブをキーに、先頭ジョブ名、ステップ名、ファイル名、ファイル編成、レコード長、ブロック長、ファイル初期件数、アロケーション件数、比率、フラグを含む設定項目が設けられ、そのうち前記先頭ジョブ名、前記ステップ名、前記ファイル名、前記ファイル初期件数に初期値が設定されたファイル情報テーブルより、該当ファイル名を抽出し拡張対象のファイルを選定し、抽出された各ファイル名に対するアロケーション件数に出力データ件数×比率の値を設定する段階と、拡張対象として選定された全ファイルについてファイル拡張を行うために、前記ファイル自動拡張処理部が、ファイルを削除し、前記ファイル情報テーブルのファイル編成、レコード長、ブロック長、アロケーション件数を基にアロケーションを行った後、新たに各拡張対象ファイルを作成する段階と、正常に処理を終了した後、前記ファイル自動拡張処理部が、前記ファイル情報テーブル上のフラグをファイル拡張済みの状態に設定し、ファイル拡張処理を終了する段階と、業務終了後、起動されたコンピュータの日替わり処理部が、前記フラグがファイル拡張済みの状態のファイルについてファイルを削除し、前記ファイル情報テーブル上のファイル初期件数を基にアロケーションを行い、拡張済みのファイルをファイル初期件数に戻す段階とを有することを特徴とする。
【0009】
請求項2記載の発明の記憶媒体は、複数のジョブを実行するコンピュータに処理を行わせるプログラムを記憶した記憶媒体において、予め設定されたファイル初期件数よりも出力ファイル件数が大きくなった場合、先頭ジョブをキーに、先頭ジョブ名、ステップ名、ファイル名、ファイル編成、レコード長、ブロック長、ファイル初期件数、アロケーション件数、比率、フラグを含む設定項目が設けられ、そのうち前記先頭ジョブ名、前記ステップ名、前記ファイル名、前記ファイル初期件数に初期値が設定されたファイル情報テーブルより、該当ファイル名を抽出し拡張対象のファイルを選定し、抽出された各ファイル名に対するアロケーション件数に出力データ件数×比率の値を設定する段階と、拡張対象として選定された全ファイルについてファイル拡張を行うために、ファイルを削除し、前記ファイル情報テーブルのファイル編成、レコード長、ブロック長、アロケーション件数を基にアロケーションを行った後、新たに各拡張対象ファイルを作成する段階と、正常に処理を終了した後、前記ファイル情報テーブル上のフラグをファイル拡張済みの状態に設定し、ファイル拡張処理を終了する段階と、業務終了後、前記フラグがファイル拡張済みの状態のファイルについてファイルを削除し、前記ファイル情報テーブル上のファイル初期件数を基にアロケーションを行い、拡張済みのファイルをファイル初期件数に戻す段階とを前記コンピュータに行わせるプログラムを前記コンピュータが読み取り可能に記憶したことを特徴としている。
【0011】
本発明では、初めのジョブあるいは初めのステップの処理で出力されるファイル件数をカウントし、この出力ファイル件数とファイルの初期件数とを比較することにより、オーバーフローすることが予測される場合、予め設定されているパラメータ(比率)を基に全てのファイル件数をオーバーフローしない程度の件数に自動的に拡張するので、予想を遥かに超えるような出力ファイルが発生しない限り、ファイルオーバーフローを起こさなくすることができる。
【0012】
この結果、処理中に発生するファイルオーバーフローをできる限りなくすことができる。また、従来、ファイルオーバーフローが発生した際に行っていたオペレータによるリカバリ作業およびその作業に伴う作業ミスをなくすことができる。
【0013】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して詳細に説明する。
図1は本発明に係る一つの実施形態のファイル処理装置の構成を示す図である。
【0014】
同図に示すように、このファイル処理装置は、処理対象のデータが格納されたディスク装置1a、1b、ファイル情報テーブル2、ファイル自動拡張処理部3、拡張対象のファイル11,12,13,14などから構成されている。
【0015】
拡張対象のファイル11,12,13,14は、ジョブやステップ毎の処理にワーク的に利用される準編成ファイルであり、マスターファイルではない。
【0016】
ここで、図2,図3を参照しファイル情報テーブル2について説明する。
図2に示すように、ファイル情報テーブル2は、先頭ジョブ名、ステップ名、ファイル名、ファイル編成、レコード長、ブロック長、ファイル初期件数、アロケーション件数、比率、拡張フラグ、予備などのレコードレイアウトをとるものである。
【0017】
具体的に、ファイル情報テーブル2には、図3に示すように、例えば先頭ジョブ名のジョブ1に対して、ジョブ名としてジョブ1、ステップ名としてステップ1、ファイル名としてA、ファイル初期件数として1000などが初期値として設定されている。
【0018】
以下、図4,図5を参照してこのファイル処理装置の動作を説明する。
このファイル処理装置の場合、ジョブ1のステップ1の処理、つまり起動ジョブの処理において、ディスク装置1aあるいはディスク装置1bからデータを読み込み、データの処理を実行し、ファイルを出力するときに、起動ジョブは、データ件数をカウントし(S101)、ファイル自動拡張処理部3に自ジョブ名、自ステップ名、出力ファイル名および出力データ件数を渡す。
【0019】
ファイル自動拡張処理部3は、起動ジョブより出力データが受け渡されると、起動ジョブを認識し(S102)、出力データ件数、先頭ジョブ名、ステップ名、ファイル名よりファイル情報テーブル2を参照し、該当ファイル名の実際の出力データ件数と、予め設定されているファイル初期件数とを比較し、出力ファイルが満杯か否かを判定する(S103)。
【0020】
例えば実際の出力ファイル件数が2000件であれば、ファイル初期件数が1000件なので、ファイル初期件数よりも出力ファイル件数が大きくなり、この場合、ファイルのオーバーフローが発生する。
【0021】
そこで、このような場合、ジョブネット上の全ファイルについて拡張する必要があるため、ファイル自動拡張処理部3は、先頭ジョブをキーにファイル情報テーブル2より、該当ファイル名を抽出し、拡張対象のファイルを選定し(S104)、図5に示すように、各ファイル名のアロケーション件数に出力データ件数×比率の値を設定する。つまり、先頭ジョブが「ジョブ1」のファイルを抽出し、ファイル情報テーブル2のそれぞれのファイルA〜Mのアロケーション件数に出力データ件数×比率の値を設定する。
【0022】
この例のようにファイルAの出力ファイル件数が2000の場合、このファイルAの比率を1とし、2000に他のファイルB〜Mの比率を掛けてアロケーション件数に設定する。
【0023】
そして、ファイル自動拡張処理部3は、全ファイルについてファイル拡張を行うためにファイルを削除し(S105)、ファイル情報テーブル2のファイル編成、レコード長、ブロック長、アロケーション件数を基にアロケーションを行った後、新たに対象ファイルを作成する(S106)。
【0024】
そして、正常に処理を終了した後、ファイル自動拡張処理部3は、ファイル情報テーブル2上のフラグを“1”に設定し(S107)、ファイル拡張処理を終了する(S108)。
【0025】
そして、業務終了後、夜間、日替わり処理が起動されると、起動した日替わり処理は、拡張フラグが“1”のファイルについてファイルを削除し、ファイル情報テーブル2上のファイル件数を基にアロケーションを行い、拡張済みのファイルをファイル初期件数に戻す(S109)。
【0026】
このようにこの実施形態のファイル処理装置によれば、ファイル情報テーブル2を参照し、データ出力件数からファイルをアロケーションすることによりファイル容量を固定(最大値)でアロケーションすることなく、ディスクの未使用領域をなくし、資源の有効利用を図ることができる。
【0027】
また、従来、ファイルオーバーフローが発生したことで行っていたオペレータによるリカバリ作業およびその作業に伴う作業ミスをなくすことができる。
【0028】
さらに、ファイル情報テーブル2を使用することにより、システムの環境作成時にファイルのアロケーションを容易に行うことができる。
【0029】
なお、本発明は上記実施形態のみに限定されるものではない。
上記実施形態では、1つのジョブにファイル自動拡張処理部3を設け、その各ステップ単位にファイルを自動拡張する方法について説明したが、例えば図6に示すように、データのインプットからアウトプットまで複数のジョブ1〜4がつながるような場合(ジョブネットと称す)、全てのジョブ1〜4を監視してファイル13〜16を自動拡張するファイル自動拡張処理部63を設け、起動ジョブ1の出力から、他の全てのファイル13〜16を自動拡張するようにしても良い。
【0030】
また、上記実施形態におけるファイル自動拡張処理部3,63は、ソフトウェアでもハードウェアでも実現可能である。ファイル自動拡張処理部3,63をソフトウェアで実現する場合、フロッピーディスクなどのコンピュータが読み出し可能な記憶媒体に記憶されていても良く、この場合、記憶媒体に記憶されたソフトウェアをコンピュータが読み出すことにより、各実施形態における処理が可能になる。ソフトウェアで実現したファイル自動拡張処理部3は、1つのジョブを実行するソフトウェアの一部のモジュールとして組み込んでも良く、またファイル自動拡張処理部63は、ジョブネットを実行するソフトウェアとは別のソフトウェアとしても良い。
【0031】
なお、記憶媒体としては、磁気ディスク、フロッピーディスク、ハードディスク、光ディスク(CD−ROM、CD−R、DVDなど)、光磁気ディスク(MOなど)、半導体メモリなど、プログラムを記憶でき、かつコンピュータが読み取り可能な記憶媒体であれば、その記憶形式はいずれの形態であっても良い。
【0032】
また、記憶媒体からコンピュータにインストールされたプログラムの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)や、データベース管理ソフト、ネットワークソフトなどのMW(ミドルウェア)などが本実施形態を実現するための各処理の一部を実行しても良い。
【0033】
さらに、記憶媒体は、コンピュータと独立した媒体に限らず、LANやインターネットなどにより伝送されたプログラムをダウンロードして記憶または一時記憶した記憶媒体も含まれる。
【0034】
また、記憶媒体は一つに限らず、複数の媒体から本実施形態における処理が実行される場合も本発明における記録媒体に含まれ、媒体構成はいずれの構成であっても良い。
【0035】
なお、コンピュータは、記憶媒体に記憶されたプログラムに基づき、本実施形態における各処理を実行するものであって、パソコンなどの一つからなる装置、複数の装置がネットワーク接続されたシステムなどのいずれの構成であっても良い。
【0036】
また、コンピュータとは、パソコンに限らず、情報処理機器に含まれる演算処理装置、マイコンなども含み、プログラムによって本発明の機能を実現することが可能な機器、装置を総称している。
【0037】
【発明の効果】
以上説明したように本発明によれば、初めのジョブあるいは初めのステップの処理で出力されるファイル件数をカウントし、この出力ファイル件数とファイルの初期件数とを比較することにより、オーバーフローすることが予測される場合、予め設定されているパラメータ(比率)を基に全てのファイル件数をオーバーフローしない程度の件数に自動的に拡張するので、処理中に発生するファイルオーバーフローをできる限りなくすことができる。
【図面の簡単な説明】
【図1】本発明の一つの実施形態のファイル処理装置の構成を示す図。
【図2】このファイル処理装置におけるファイル情報テーブルのレコードレイアウトを示す図。
【図3】図2のファイル情報テーブルのデータの要部具体例を示す図。
【図4】このファイル処理装置の動作を示すフローチャート。
【図5】ファイル情報テーブルのアロケーション件数の設定例を示す図。
【図6】図1の他の実施形態を示す図。
【符号の説明】
1a,1b…ディスク装置、2…ファイル情報テーブル、3,63…ファイル自動拡張処理部、11〜16…拡張対象のファイル。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a file processing method and a storage medium for performing business processing on a computer, for example.
[0002]
[Prior art]
For example, in order to operate software developed in a business processing language such as COBOL under the environment of a predetermined operating system (hereinafter referred to as OS), the file extension mechanism largely depends on the OS.
[0003]
For example, under the OS environment of TP, when creating a file with COBOL software, the OS automatically increases the disk free space from the smallest one to the maximum even if the number of file expansions is specified large. You can only get up to 32 times.
[0004]
[Problems to be solved by the invention]
In the case of such a file extension method, the requested number of files cannot be secured sufficiently, and if the number of files output in each job or step is larger than the preset number of files, there is a problem of causing a file overflow. there were.
[0005]
When a file overflow occurs, an operator will perform a recovery operation, and this recovery operation often involves an operation error.
[0006]
The present invention has been made to solve such a problem, and an object of the present invention is to provide a file processing apparatus that can eliminate a file overflow occurring during processing as much as possible.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, the file processing method according to claim 1 is a file processing method for processing a file by executing a plurality of jobs, wherein the number of output files is larger than a preset initial number of files. When the file size increases, the automatic file extension processing unit of the computer sets the first job name, step name, file name, file organization, record length, block length, initial file number, allocation number, ratio, and flag using the first job as a key. There are setting items to be included, of which the file name is extracted from the file information table in which initial values are set for the first job name, the step name, the file name, and the initial number of files, and an extension target file is selected. and the output data count × ratio allocation number for each file name extracted And setting a value, in order to perform the file extension for all files that are selected to augment, the automatic file extension processing section deletes the file, file organization, a record length of the file information table, block length, After allocating based on the number of allocations, newly creating each file to be expanded, and after successfully completing the processing, the automatic file extension processing unit has already expanded the flag on the file information table . The file extension process is completed, and the daily processing unit of the computer that has been started up after the end of the work deletes the file for the file whose flag has already been extended, and stores the file on the file information table. Perform allocation based on the initial number of files of Returning to the initial number of files.
[0009]
The storage medium according to the second aspect of the present invention is the storage medium storing a program for causing a computer that executes a plurality of jobs to perform processing, when the number of output files becomes larger than a preset initial number of files. Using the job as a key, setting items including the first job name, step name, file name, file organization, record length, block length, initial file count, allocation count, ratio, and flag are provided, of which the first job name, the step From the file information table in which the initial value is set for the file name, the file name, and the initial file number, select the file to be expanded by extracting the corresponding file name, and the number of output data in the allocation number for each extracted file name and × setting a value of the ratio, all files that have been selected to augment To perform the file extension with, delete the file, file organization, a record length of the file information table, block length, after allocation based on allocation number, the steps of creating a new respective expansion target file, after successful completion of a process, the file information to set the flag in the table to a file extension already state, the method comprising: ending the file expansion process, after the close of business, the flag files for files in the file extension already state And the computer stores the program so that the computer can perform the process of allocating the file based on the initial number of files on the file information table and returning the expanded file to the initial number of files. It is a feature.
[0011]
In the present invention, the number of files output in the process of the first job or the first step is counted, and when the number of output files is compared with the initial number of files, an overflow is predicted. Because the number of files is automatically expanded to the number that does not overflow based on the parameters (ratio) that have been set, it is possible to prevent file overflow unless an output file that far exceeds expectations is generated. it can.
[0012]
As a result, file overflow that occurs during processing can be minimized. Further, it is possible to eliminate a recovery work by an operator and a work error associated with the work that have been performed when a file overflow has occurred.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a diagram showing the configuration of a file processing apparatus according to an embodiment of the present invention.
[0014]
As shown in the figure, this file processing device includes disk devices 1a and 1b in which data to be processed is stored, a file information table 2, a file automatic extension processing unit 3, and files to be extended 11, 12, 13, and 14. Etc.
[0015]
The files 11, 12, 13, and 14 to be expanded are semi-organized files that are used for work in processing for each job or step, and are not master files.
[0016]
Here, the file information table 2 will be described with reference to FIGS.
As shown in FIG. 2, the file information table 2 includes record layouts such as the first job name, step name, file name, file organization, record length, block length, initial file number, allocation number, ratio, expansion flag, and spare. It is something to take.
[0017]
Specifically, as shown in FIG. 3, the file information table 2 includes, for example, job 1 as the first job name, job 1 as the job name, step 1 as the step name, A as the file name, and the initial number of files. 1000 or the like is set as an initial value.
[0018]
The operation of this file processing apparatus will be described below with reference to FIGS.
In the case of this file processing apparatus, in the process of step 1 of job 1, that is, the processing of the startup job, when the data is read from the disk device 1a or the disk device 1b, the data processing is executed, and the file is output, the startup job Counts the number of data (S101), and passes the own job name, own step name, output file name, and number of output data items to the automatic file extension processing unit 3.
[0019]
When the output data is transferred from the startup job, the automatic file extension processing unit 3 recognizes the startup job (S102), refers to the file information table 2 based on the number of output data, the first job name, the step name, and the file name. The actual number of output data of the corresponding file name is compared with the preset initial number of files to determine whether the output file is full (S103).
[0020]
For example, if the actual number of output files is 2000, the number of output files is larger than the initial number of files because the initial number of files is 1000. In this case, the file overflows.
[0021]
In such a case, since it is necessary to expand all files on the job net, the automatic file extension processing unit 3 extracts the corresponding file name from the file information table 2 using the first job as a key, A file is selected (S104), and as shown in FIG. 5, the number of output data times the ratio is set as the number of allocations for each file name. That is, a file whose first job is “Job 1” is extracted, and the value of output data number × ratio is set as the number of allocation of each file A to M in the file information table 2.
[0022]
When the number of output files of file A is 2000 as in this example, the ratio of this file A is set to 1, and the allocation number is set by multiplying 2000 by the ratio of other files B to M.
[0023]
Then, the file automatic extension processing unit 3 deletes the files to perform file extension for all files (S105), and performs allocation based on the file organization, record length, block length, and number of allocations in the file information table 2. Thereafter, a new target file is created (S106).
[0024]
Then, after completing the processing normally, the automatic file extension processing unit 3 sets the flag on the file information table 2 to “1” (S107), and ends the file extension processing (S108).
[0025]
When the daily processing is started at night after the work is finished, the started daily processing deletes the file with the extension flag “1” and performs allocation based on the number of files on the file information table 2. The expanded file is returned to the initial number of files (S109).
[0026]
As described above, according to the file processing apparatus of this embodiment, by referring to the file information table 2 and allocating files based on the number of data output, the file capacity is not allocated at a fixed (maximum value), and the disk is not used. The area can be eliminated and resources can be used effectively.
[0027]
Further, it is possible to eliminate the recovery work by the operator and the work mistakes associated with the work, which have been conventionally performed due to the occurrence of the file overflow.
[0028]
Furthermore, by using the file information table 2, file allocation can be easily performed when creating a system environment.
[0029]
In addition, this invention is not limited only to the said embodiment.
In the above embodiment, the file automatic extension processing unit 3 is provided for one job and the file is automatically extended for each step. However, for example, as shown in FIG. When the first to fourth jobs 1 to 4 are connected (referred to as a job net), a file automatic extension processing unit 63 that monitors all the jobs 1 to 4 and automatically extends the files 13 to 16 is provided. All other files 13 to 16 may be automatically expanded.
[0030]
Further, the automatic file extension processing units 3 and 63 in the above embodiment can be realized by software or hardware. When the automatic file extension processing units 3 and 63 are realized by software, they may be stored in a computer-readable storage medium such as a floppy disk. In this case, the computer reads out the software stored in the storage medium. The processing in each embodiment becomes possible. The automatic file extension processing unit 3 realized by software may be incorporated as a module of a part of software that executes one job, and the automatic file extension processing unit 63 is software different from software that executes a job net. Also good.
[0031]
As storage media, programs such as magnetic disk, floppy disk, hard disk, optical disk (CD-ROM, CD-R, DVD, etc.), magneto-optical disk (MO, etc.), semiconductor memory, etc. can be stored and read by a computer. As long as it is a possible storage medium, the storage format may be any form.
[0032]
Further, based on an instruction of a program installed in a computer from a storage medium, an OS (operating system) running on the computer, database management software, MW (middleware) such as network software, and the like realize this embodiment. A part of each process may be executed.
[0033]
Furthermore, the storage medium is not limited to a medium independent of the computer, but also includes a storage medium in which a program transmitted via a LAN or the Internet is downloaded and stored or temporarily stored.
[0034]
Further, the number of storage media is not limited to one, and the case where the processing in the present embodiment is executed from a plurality of media is also included in the recording medium in the present invention, and the media configuration may be any configuration.
[0035]
The computer executes each process in the present embodiment based on a program stored in a storage medium, and includes any one device such as a personal computer or a system in which a plurality of devices are connected to a network. It may be configured as follows.
[0036]
The computer is not limited to a personal computer, but includes an arithmetic processing device, a microcomputer, and the like included in an information processing device, and is a generic term for devices and devices that can realize the functions of the present invention by a program.
[0037]
【The invention's effect】
As described above, according to the present invention, it is possible to overflow by counting the number of files output in the process of the first job or the first step and comparing the number of output files with the initial number of files. When predicted, since the number of all files is automatically expanded to a number that does not overflow based on a preset parameter (ratio), file overflow that occurs during processing can be minimized.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of a file processing apparatus according to an embodiment of the present invention.
FIG. 2 is a view showing a record layout of a file information table in the file processing apparatus.
FIG. 3 is a view showing a specific example of a main part of data in the file information table of FIG. 2;
FIG. 4 is a flowchart showing the operation of the file processing apparatus.
FIG. 5 is a diagram showing an example of setting the number of allocations in the file information table.
FIG. 6 is a diagram showing another embodiment of FIG. 1;
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1a, 1b ... Disk apparatus, 2 ... File information table, 3,63 ... File automatic expansion process part, 11-16 ... File of expansion object.

Claims (2)

複数のジョブを実行してファイルを処理するファイル処理方法において、
予め設定されたファイル初期件数よりも出力ファイル件数が大きくなった場合、コンピュータのファイル自動拡張処理部が、先頭ジョブをキーに、先頭ジョブ名、ステップ名、ファイル名、ファイル編成、レコード長、ブロック長、ファイル初期件数、アロケーション件数、比率、フラグを含む設定項目が設けられ、そのうち前記先頭ジョブ名、前記ステップ名、前記ファイル名、前記ファイル初期件数に初期値が設定されたファイル情報テーブルより、該当ファイル名を抽出し拡張対象のファイルを選定し、抽出された各ファイル名に対するアロケーション件数に出力データ件数×比率の値を設定する段階と、
拡張対象として選定された全ファイルについてファイル拡張を行うために、前記ファイル自動拡張処理部が、ファイルを削除し、前記ファイル情報テーブルのファイル編成、レコード長、ブロック長、アロケーション件数を基にアロケーションを行った後、新たに各拡張対象ファイルを作成する段階と、
正常に処理を終了した後、前記ファイル自動拡張処理部が、前記ファイル情報テーブル上のフラグをファイル拡張済みの状態に設定し、ファイル拡張処理を終了する段階と、
業務終了後、起動されたコンピュータの日替わり処理部が、前記フラグがファイル拡張済みの状態のファイルについてファイルを削除し、前記ファイル情報テーブル上のファイル初期件数を基にアロケーションを行い、拡張済みのファイルをファイル初期件数に戻す段階と
を有することを特徴とするファイル処理方法。
In a file processing method for processing a file by executing multiple jobs,
When the number of output files becomes larger than the preset initial file count, the computer's automatic file extension processing unit uses the first job as a key, the first job name, step name, file name, file organization, record length, block Setting items including length, initial file number, number of allocations, ratio, and flag are provided, and from the file information table in which initial values are set for the first job name, the step name, the file name, and the initial file number , Extracting the corresponding file name, selecting the file to be expanded, setting the number of output data x ratio to the number of allocations for each extracted file name,
In order to perform file expansion for all the files selected for expansion, the file automatic expansion processing unit deletes the file and performs allocation based on the file organization, record length, block length, and number of allocations in the file information table. And then create a new file for each extension ,
After completing the process normally, the file automatic extension processing unit sets the flag on the file information table to the file extended state , and ends the file extension process;
After the work is completed, the daily processing unit of the computer that has been started deletes the file with the flag already expanded, performs allocation based on the initial number of files on the file information table, and expands the file. And a step of returning to the initial number of files.
複数のジョブを実行するコンピュータに処理を行わせるプログラムを記憶した記憶媒体において、
予め設定されたファイル初期件数よりも出力ファイル件数が大きくなった場合、先頭ジョブをキーに、先頭ジョブ名、ステップ名、ファイル名、ファイル編成、レコード長、ブロック長、ファイル初期件数、アロケーション件数、比率、フラグを含む設定項目が設けられ、そのうち前記先頭ジョブ名、前記ステップ名、前記ファイル名、前記ファイル初期件数に初期値が設定されたファイル情報テーブルより、該当ファイル名を抽出し拡張対象のファイルを選定し、抽出された各ファイル名に対するアロケーション件数に出力データ件数×比率の値を設定する段階と、
拡張対象として選定された全ファイルについてファイル拡張を行うために、ファイルを削除し、前記ファイル情報テーブルのファイル編成、レコード長、ブロック長、アロケーション件数を基にアロケーションを行った後、新たに各拡張対象ファイルを作成する段階と、
正常に処理を終了した後、前記ファイル情報テーブル上のフラグをファイル拡張済みの状態に設定し、ファイル拡張処理を終了する段階と、
業務終了後、前記フラグがファイル拡張済みの状態のファイルについてファイルを削除し、前記ファイル情報テーブル上のファイル初期件数を基にアロケーションを行い、拡張済みのファイルをファイル初期件数に戻す段階と
を前記コンピュータに行わせるプログラムを前記コンピュータが読み取り可能に記憶したことを特徴とする記憶媒体。
In a storage medium storing a program that causes a computer that executes a plurality of jobs to perform processing,
If the number of output files is larger than the preset number of initial files, using the first job as a key, the first job name, step name, file name, file organization, record length, block length, initial file number, allocation number, Setting items including a ratio and a flag are provided, of which the file name is extracted from the file information table in which initial values are set for the first job name, the step name, the file name, and the initial number of files, and are subject to expansion Selecting a file, and setting the number of output data x ratio to the number of allocations for each extracted file name;
To perform file expansion for all files selected for expansion, delete the file, perform allocation based on the file organization, record length, block length, and number of allocations in the file information table, and then expand each new file. Creating the target file,
After successfully completing the process, setting the flag on the file information table to a file extended state , and ending the file extension process;
After completion of the work, deleting the file for the file whose flag is already expanded , performing allocation based on the initial number of files on the file information table, and returning the expanded file to the initial number of files A storage medium storing a program to be executed by a computer so that the computer can read the program.
JP2000305260A 2000-10-04 2000-10-04 File processing method and storage medium Expired - Fee Related JP3949364B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000305260A JP3949364B2 (en) 2000-10-04 2000-10-04 File processing method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000305260A JP3949364B2 (en) 2000-10-04 2000-10-04 File processing method and storage medium

Publications (2)

Publication Number Publication Date
JP2002108660A JP2002108660A (en) 2002-04-12
JP3949364B2 true JP3949364B2 (en) 2007-07-25

Family

ID=18786157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000305260A Expired - Fee Related JP3949364B2 (en) 2000-10-04 2000-10-04 File processing method and storage medium

Country Status (1)

Country Link
JP (1) JP3949364B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5256787B2 (en) * 2008-03-07 2013-08-07 日本電気株式会社 Queue management apparatus, control program, job processing system, and control method

Also Published As

Publication number Publication date
JP2002108660A (en) 2002-04-12

Similar Documents

Publication Publication Date Title
JP4143611B2 (en) Backup generation device, recovery processing device, backup generation method, recovery processing method, and program
JP2008009809A (en) Database synchronous processing program
JP4693540B2 (en) Database reconfiguration device and database reconfiguration program
JP2003330765A (en) Page securing processing method for database
JP3268338B2 (en) Computer system
JP5619179B2 (en) Computer system, job execution management method, and program
JP2006338197A (en) Transaction control program, transaction control method, and transaction processing system
CN112559127B (en) Virtual machine creation method, device, host and storage medium
JP3949364B2 (en) File processing method and storage medium
CN113407999B (en) File protection method, computing device and storage medium
US20090138846A1 (en) Extended macro recording
JP2001331463A (en) Data base construction method and recording medium having the program recorded thereon
JP2008135054A (en) Workflow managing method, and its execution system
JP3795669B2 (en) Memory management device and storage medium storing memory management program
JP5253030B2 (en) Management apparatus, control method thereof, and control program
JP7545078B2 (en) Test code generation device, test code generation method, and test code generation program
JP3204362B2 (en) Error log editing system
JPH09185537A (en) Overall job information system
JP4297744B2 (en) LSI internal logic design system
JP3625718B2 (en) Hierarchical copy method and storage medium
JP2004145735A (en) Database management method and management system thereof
JP2000132446A (en) Work station, network system and file system control method
JPH06231016A (en) File coupling/dividing method
JPH05127962A (en) Electronic disk file residence priority managing system
CN118132199A (en) Cloud platform virtual machine creation method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20030221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061017

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070130

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070319

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070417

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070418

LAPS Cancellation because of no payment of annual fees