[go: up one dir, main page]

JP2005071171A - Batch job execution control method - Google Patents

Batch job execution control method Download PDF

Info

Publication number
JP2005071171A
JP2005071171A JP2003301688A JP2003301688A JP2005071171A JP 2005071171 A JP2005071171 A JP 2005071171A JP 2003301688 A JP2003301688 A JP 2003301688A JP 2003301688 A JP2003301688 A JP 2003301688A JP 2005071171 A JP2005071171 A JP 2005071171A
Authority
JP
Japan
Prior art keywords
batch
batch job
time zone
job
processing
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
JP2003301688A
Other languages
Japanese (ja)
Inventor
Akira Komatsu
亮 小松
Toshinobu Yamaguchi
利信 山口
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2003301688A priority Critical patent/JP2005071171A/en
Publication of JP2005071171A publication Critical patent/JP2005071171A/en
Pending legal-status Critical Current

Links

Images

Abstract

【課題】 既定の時間帯の中でバッチジョブを実行するコンピュータシステムにおいて、既定時間帯の終了時刻を超過してバッチジョブを処理させることを回避し、既定時間帯の終了時刻によるバッチジョブの強制中断によるバッチジョブの異常終了、および人の判断によるバッチ処理時間帯の延長を回避できるバッチジョブ実行制御方法を提供する。
【解決手段】 バッチジョブ50の実行前に、実行するバッチジョブ50に関する情報および現在の時間情報に基づいて、バッチジョブ終了時刻を算出し、算出したバッチジョブ終了時刻がバッチ処理時間帯の終了時刻を超過してしまう場合、バッチジョブを実行せずに、次回のバッチ処理時間帯に実行するものである。
【選択図】 図1

PROBLEM TO BE SOLVED: To forcibly execute a batch job at an end time of a predetermined time zone in a computer system that executes the batch job in a predetermined time zone, avoiding processing of the batch job exceeding the end time of the predetermined time zone Provided is a batch job execution control method capable of avoiding abnormal termination of a batch job due to interruption and extension of a batch processing time zone due to human judgment.
Before executing a batch job, a batch job end time is calculated based on information about the batch job to be executed and current time information, and the calculated batch job end time is an end time of a batch processing time zone. If it exceeds, the batch job is not executed, but is executed in the next batch processing time zone.
[Selection] Figure 1

Description

本発明はコンピュータシステムで実施するバッチジョブ実行制御方法に関し、特に、バッチジョブの処理時間帯が既定されており、時間帯の延長等は厳禁であるが、既定の時間帯内に処理を終了できないバッチジョブの処理は次回のバッチジョブ処理時間帯に処理することが許容されている、コンピュータシステムでのバッチジョブ実行制御に適用して有効な技術に関する。   The present invention relates to a batch job execution control method implemented by a computer system, and in particular, a batch job processing time zone is predetermined, and extension of the time zone is strictly prohibited, but processing cannot be completed within the predetermined time zone. The batch job processing relates to a technique that is effective when applied to batch job execution control in a computer system, which is allowed to be processed in the next batch job processing time zone.

コンピュータシステムでバッチ処理を実施する場合、既定の時間帯中にバッチジョブを実行することが一般的である。これに対し、コンピュータシステムのバッチ処理により扱うデータは様々であり、極端にデータ量が多い場合と少ない場合があるなどデータ量にバラツキがあるデータを処理する場合、ピーク時には既定された処理時間帯の終了時刻までに終了することができないケースがある。   When executing batch processing in a computer system, it is common to execute a batch job during a predetermined time period. On the other hand, there are various types of data handled by batch processing of computer systems, and when processing data that varies in data amount, such as when the amount of data is extremely large or small, the processing time zone specified at the peak In some cases, it cannot be completed by the end time.

このような場合、従来は、時間帯の終了時刻となった時点で強制的に処理中のバッチジョブを中断させ、中断したバッチジョブの処理および未処理のデータは、次回バッチ処理時間帯に処理するか、または、やむを得ず、既定のバッチ処理時間帯の終了時刻を人の判断により延長していた。   In such a case, conventionally, the batch job being processed is forcibly interrupted at the end time of the time zone, and the processing of the interrupted batch job and unprocessed data are processed in the next batch processing time zone. Inevitably, the end time of the predetermined batch processing time zone was extended by human judgment.

また、バッチジョブ処理サービスが遅延した場合でも、予め規定されたシステムサービス終了時間にシステムを停止させ、時間内に実行できなかったバッチジョブを翌システムサービス時に、本来実行されるべき営業日付での実行を可能とするものがあった(例えば、特許文献1参照)。
特開2000−112887号公報
Even if the batch job processing service is delayed, the system is stopped at the system service end time specified in advance, and the batch job that could not be executed within the time will be processed at the business date that should be executed at the next system service. There is one that can be executed (for example, see Patent Document 1).
JP 2000-112887 A

しかしながら、従来では、限定された時間帯の中でバッチ処理を行うケースにおいて、バッチジョブの終了が既定の処理時間帯の終了時刻を超過してしまう場合は、終了時刻となった時点で稼働中のバッチジョブを強制的に中断するか、あるいは処理時間帯の終了時刻を延長するしかなかった。   However, in the past, when batch processing is performed within a limited time zone, if the end of the batch job exceeds the end time of the default processing time zone, it is in operation at the end time There was no choice but to forcibly interrupt the batch job or extend the end time of the processing time zone.

また、特許文献1に記載のものも、システムサービス終了時間に実行中のバッチジョブは、強制的に中断され、強制的に中断されたバッチジョブを含めて、時間内に実行できなかったバッチジョブを翌システムサービス時に実行するので、バッチジョブの終了が既定の処理時間帯の終了時刻を超過してしまう場合では、必ず、正常終了しないバッチジョブが発生してしまう。   In addition, the batch job that is being executed at the system service end time is also forcibly interrupted and the batch job that cannot be executed within the time including the forcibly interrupted batch job Is executed at the next system service, so if the end of the batch job exceeds the end time of the default processing time zone, there will always be a batch job that does not end normally.

そのため、バッチジョブを強制的に中断した場合、中断されたバッチジョブの処理は無駄となり、また、バッチジョブの終了状態は異常終了となるため、ジョブの終了状態が正常終了でない原因は、終了時刻による強制中断なのか、障害によるものなのかを判断する必要があり、この判断を自動で行うことは困難であった。   Therefore, if the batch job is forcibly interrupted, the processing of the interrupted batch job is wasted and the end status of the batch job is abnormally ended. It is necessary to determine whether it is forcibly interrupted due to a failure or a failure, and it is difficult to make this determination automatically.

また、例えば、顧客毎に1日のデータや1ヶ月のデータを処理するバッチジョブなどでは、処理の途中で中断されてしまった場合、バッチジョブで処理された結果のデータと処理できなかった結果のデータが混在してしまい、その後の処理において、整合性がとれなくなってしまうという問題点があった。   In addition, for example, in the case of a batch job that processes one-day data or one-month data for each customer, if the processing is interrupted in the middle of processing, the result of processing with the batch job and the result of being unable to be processed However, there is a problem that consistency cannot be obtained in the subsequent processing.

また、やむを得ずバッチ処理時間帯を延長する場合、バッチ処理の後続処理へ影響があり、人による判断が不可欠となり自動化が困難であるという問題があった。   In addition, if the batch processing time zone is unavoidably extended, there is an effect on subsequent processing of the batch processing, and there is a problem that it is difficult to automate because judgment by a person is indispensable.

そこで、本発明の目的は、既定の時間帯の中でバッチジョブを実行するコンピュータシステムにおいて、既定時間帯の終了時刻を超過してバッチジョブを処理させることを回避し、既定時間帯の終了時刻によるバッチジョブの強制中断によるバッチジョブの異常終了、および人の判断によるバッチ処理時間帯の延長を回避できるバッチジョブ実行制御方法を提供することにある。   Therefore, an object of the present invention is to avoid the processing of a batch job exceeding the end time of the default time zone in a computer system that executes the batch job in the predetermined time zone, and to end the end time of the default time zone. It is an object of the present invention to provide a batch job execution control method capable of avoiding abnormal termination of a batch job due to forcible interruption of the batch job and extension of a batch processing time zone due to human judgment.

本発明によるバッチジョブ実行制御方法は、バッチジョブを実行するバッチ処理時間帯が既定されており、バッチ処理時間帯中にシーケンシャルに繰り返しバッチ処理を行い、バッチ処理時間帯に処理できなかったバッチ処理は、処理の実行順番が守られていれば、次回のバッチ処理時間帯に実行することが許されるシステムにおけるバッチジョブ実行制御方法であって、バッチジョブの実行前に、実行するバッチジョブに関する情報および現在の時間情報に基づいて、バッチジョブ終了時刻を算出し、算出したバッチジョブ終了時刻がバッチ処理時間帯の終了時刻を超過してしまう場合、バッチジョブを実行せずに、次回のバッチ処理時間帯に実行するものである。   In the batch job execution control method according to the present invention, a batch processing time zone for executing a batch job is defined, batch processing is performed repeatedly in sequence during the batch processing time zone, and batch processing that cannot be processed during the batch processing time zone. Is a batch job execution control method in a system that is allowed to be executed in the next batch processing time zone as long as the processing execution order is observed, and information on the batch job to be executed before the batch job is executed. If the batch job end time is calculated based on the current time information and the calculated batch job end time exceeds the end time of the batch processing time zone, the next batch processing is not executed without executing the batch job. It will be executed during the time zone.

また、本発明によるバッチジョブ実行制御方法は、バッチジョブを実行するバッチ処理時間帯が既定されており、バッチ処理時間帯中にシーケンシャルに繰り返しバッチ処理を行い、バッチ処理時間帯に処理できなかったバッチ処理は、処理の実行順番が守られていれば、次回のバッチ処理時間帯に実行することが許されるシステムにおけるバッチジョブ実行制御方法であって、バッチ処理時間帯中に実行するバッチジョブに関する情報および現在の時間情報に基づいて、最後のバッチジョブ終了時刻を算出し、算出したバッチジョブ終了時刻がバッチ処理時間帯の終了時刻を超過してしまう場合、バッチ処理時間帯の開始時刻を早めて、バッチジョブを実行するものである。   Further, the batch job execution control method according to the present invention has a predetermined batch processing time zone for executing a batch job, and repeatedly performs batch processing sequentially during the batch processing time zone, and cannot be processed during the batch processing time zone. Batch processing is a batch job execution control method in a system that is allowed to be executed in the next batch processing time zone as long as the execution order of the processing is observed, and relates to a batch job executed during the batch processing time zone. The last batch job end time is calculated based on the information and the current time information. If the calculated batch job end time exceeds the end time of the batch processing time zone, the start time of the batch processing time zone is advanced. The batch job is executed.

本発明によれば、既定されたバッチ時間帯の終了時刻を超過してバッチジョブを処理させることがなく、既定されたバッチ時間帯の終了時刻によるバッチジョブの強制中断を回避することができる。   According to the present invention, the batch job is not processed beyond the end time of the predetermined batch time zone, and the forced interruption of the batch job due to the end time of the predetermined batch time zone can be avoided.

また、本発明によれば、バッチジョブの異常終了原因が時間帯終了時刻によるものなのか障害によるものなのかを判断する必要がなくなる。   Furthermore, according to the present invention, it is not necessary to determine whether the cause of abnormal termination of a batch job is due to a time zone end time or a failure.

また、本発明によれば、時間帯終了時刻を超過してしまい次回再度処理を実施し直すような無駄な処理が排除されるため、その分コンピュータ資源を効率的に利用することができる。   Further, according to the present invention, since unnecessary processing such that the time zone end time is exceeded and processing is performed again next time is eliminated, computer resources can be used efficiently accordingly.

以下、本発明の実施の形態を図面に基づいて詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は本発明の一実施の形態のバッチジョブ実行制御方法を実施するためのバッチ処理部の構成を示す構成図である。   FIG. 1 is a configuration diagram showing a configuration of a batch processing unit for implementing a batch job execution control method according to an embodiment of the present invention.

図1において、バッチ処理部10は、バッチジョブの実行制御を行うバッチ処理実行制御部20、バッチ処理実行制御部20がバッチジョブの実行制御を行うために必要なバッチジョブ情報ファイル30、入力データ情報ファイル40、バッチ処理時間帯に実行されるバッチジョブ50、バッチジョブ50で処理される入力データが格納される入力データ格納ファイル60から構成されている。   In FIG. 1, a batch processing unit 10 includes a batch processing execution control unit 20 that controls execution of a batch job, a batch job information file 30 that is necessary for the batch processing execution control unit 20 to control execution of the batch job, and input data. The information file 40 includes a batch job 50 executed in a batch processing time zone, and an input data storage file 60 in which input data processed by the batch job 50 is stored.

また、バッチ処理部10は、例えば、コンピュータシステムなどに設けられ、バッチ処理実行制御部20によりバッチジョブを実行し、その処理結果がコンピュータシステムにより使用される。   The batch processing unit 10 is provided in a computer system, for example, and the batch processing execution control unit 20 executes a batch job, and the processing result is used by the computer system.

なお、バッチ処理部10は、コンピュータシステムに設けられたバッチ処理用コンピュータなどに設けられ、バッチ処理用コンピュータまたはバッチ処理用コンピュータに接続された処理システムなどにより、バッチジョブの処理結果を利用するようにしてもよい。   The batch processing unit 10 is provided in a batch processing computer provided in the computer system, and uses the processing result of the batch job by a processing system connected to the batch processing computer or the batch processing computer. It may be.

バッチジョブ情報ファイル30は、バッチジョブ50を実行する時間帯の情報が格納されたバッチ時間帯情報レコード31と、バッチジョブ50毎にその名称、バッチジョブ50が入力とする入力ファイル名、およびデータ1件の処理時間の情報が格納されたバッチジョブ情報レコード32を有している。   The batch job information file 30 includes a batch time zone information record 31 in which information on a time zone for executing the batch job 50 is stored, a name for each batch job 50, an input file name input by the batch job 50, and data It has a batch job information record 32 in which information on one processing time is stored.

また、入力データ情報ファイル40は、入力データ格納ファイル60に格納された各入力データのファイル名とそのデータ件数を保持する入力データ情報レコード41を有する。   The input data information file 40 has an input data information record 41 that holds the file name of each input data stored in the input data storage file 60 and the number of data items.

次に、この実施の形態のバッチ処理実行制御部20によるバッチジョブ実行制御の処理動作について説明する。   Next, the processing operation of batch job execution control by the batch processing execution control unit 20 of this embodiment will be described.

まず、バッチ処理実行制御部20は、バッチジョブのデータ1件当たりの処理時間および入力ファイル名が格納されたバッチジョブ情報レコード32と入力データ情報ファイル40に保持される入力データ情報レコード41を参照し、バッチジョブ50の処理に要する時間を算出する。   First, the batch processing execution control unit 20 refers to a batch job information record 32 storing a processing time and input file name for each batch job data and an input data information record 41 held in the input data information file 40. The time required for processing the batch job 50 is calculated.

また、バッチ処理実行制御部20は、バッチ処理部10が設けられているコンピュータシステムやバッチ処理用コンピュータから現在日時(コンピュータ内に保持するシステム日付、および時刻)を取得し、算出した処理時間と取得した現在の日時によりバッチジョブ終了時刻を算出し、バッチ時間帯情報レコード31に格納されたバッチ時間帯終了時刻と比較することによりバッチジョブ50の実行可否を判断する。   The batch processing execution control unit 20 acquires the current date and time (system date and time held in the computer) from the computer system or batch processing computer in which the batch processing unit 10 is provided, and the calculated processing time and The batch job end time is calculated from the acquired current date and time, and by comparing with the batch time zone end time stored in the batch time zone information record 31, it is determined whether or not the batch job 50 can be executed.

そして、バッチ処理実行制御部20は、バッチジョブ終了時刻がバッチ時間帯終了時刻を超過していなければ、バッチジョブ50を起動しバッチジョブ50は入力データ格納ファイル60を入力し処理を実行し、また、バッチジョブ終了時刻がバッチ時間帯終了時刻を超過していた場合、以降のバッチジョブの起動は行わない。   If the batch job end time does not exceed the batch time zone end time, the batch process execution control unit 20 activates the batch job 50, and the batch job 50 inputs the input data storage file 60 and executes the process. If the batch job end time exceeds the batch time zone end time, the subsequent batch job is not started.

ここで、バッチ処理実行制御部20による、バッチ時間帯に実行するバッチジョブの実行可否を決定する処理の詳細について説明する。   Here, the details of the process for determining whether or not to execute the batch job executed in the batch time period by the batch process execution control unit 20 will be described.

図2はバッチ時間帯に実行するバッチジョブの実行可否を決定する処理を示すフローチャートであり、バッチジョブのスケジューリング情報により、実行対象のバッチジョブが決定し、その後、実行するバッチジョブの実行可否を決定する処理を示している。   FIG. 2 is a flowchart showing processing for determining whether or not to execute a batch job executed in a batch time period. The batch job to be executed is determined based on the scheduling information of the batch job, and then whether or not to execute the batch job to be executed is determined. The process to determine is shown.

まず、予め設定されたバッチジョブのスケジューリング情報などにより、次に実施対象のバッチジョブを決定する(S100)。   First, a batch job to be executed is determined based on preset batch job scheduling information or the like (S100).

そして、バッチ処理実行制御部20は、予め登録されたバッチ時間帯終了時刻(a)、実行対象バッチジョブのデータ1件当たりの処理時間(b)、および実行対象バッチジョブが入力とする入力ファイル名(c)を、バッチジョブ情報ファイル30に格納されたバッチ時間帯情報レコード31、およびバッチジョブ情報レコード32から取得し(S101)、取得した入力ファイル名(c)を元に、入力データ情報ファイル40に格納された入力データ情報レコード41から、これから実行するバッチジョブで処理するデータ件数(d)を取得する(S102)。   Then, the batch processing execution control unit 20 inputs a batch time zone end time (a) registered in advance, a processing time (b) per piece of data of the execution target batch job, and an input file input by the execution target batch job. The name (c) is acquired from the batch time zone information record 31 and the batch job information record 32 stored in the batch job information file 30 (S101), and the input data information based on the acquired input file name (c) From the input data information record 41 stored in the file 40, the number of data items (d) to be processed by the batch job to be executed is acquired (S102).

そして、実行対象バッチジョブのデータ1件当たりの処理時間(b)とバッチジョブで処理するデータ件数(d)からバッチジョブの処理時間(A)を算出する(S103)。また、現在の日時を取得するために、コンピュータシステムやバッチ処理用コンピュータからシステム日付および時刻(e)を取得し(S104)、取得したシステム日付および時刻(e)にバッチジョブの処理時間(A)を加算することにより、実行対象のバッチジョブ終了時刻(B)を算出する(S105)。   Then, the processing time (A) of the batch job is calculated from the processing time (b) per data item of the execution target batch job and the number of data items (d) processed by the batch job (S103). Further, in order to acquire the current date and time, the system date and time (e) are acquired from the computer system and the batch processing computer (S104), and the batch job processing time (A) is added to the acquired system date and time (e). ) Is added to calculate the batch job end time (B) to be executed (S105).

そして、バッチ処理実行制御部20は、算出した実行対象のバッチジョブ終了時刻(B)とバッチ時間帯終了時刻(a)を比較し、バッチジョブ終了時刻(B)がバッチ時間帯終了時刻(a)以内に収まる((B)<=(a))かを判断する(S106)。   Then, the batch processing execution control unit 20 compares the calculated batch job end time (B) to be executed with the batch time zone end time (a), and the batch job end time (B) is the batch time zone end time (a ) ((B) <= (a)) is determined (S106).

S106でバッチジョブ終了時刻(B)がバッチ時間帯終了時刻(a)以内に収まる((B)<=(a))と判断されると、実行対象のバッチジョブを実行し(S107)、S106でバッチジョブ終了時刻(B)がバッチ時間帯終了時刻(a)以内に収まらない((B)>(a))と判断されると、実行対象のバッチジョブの実行を中止して、現在のバッチ処理時間帯でのバッチジョブ実行処理を終了し、未処理のデータを次回バッチ処理対象分のデータとする(S108)。   If it is determined in S106 that the batch job end time (B) falls within the batch time zone end time (a) ((B) <= (a)), the batch job to be executed is executed (S107). If it is determined that the batch job end time (B) does not fall within the batch time zone end time (a) ((B)> (a)), the execution of the batch job to be executed is stopped and the current The batch job execution processing in the batch processing time zone is terminated, and unprocessed data is set as data for the next batch processing target (S108).

次に、この実施の形態のバッチ処理実行制御部20によるバッチジョブ実行制御の具体例について説明する。   Next, a specific example of batch job execution control by the batch processing execution control unit 20 of this embodiment will be described.

図3〜図6はバッチ処理実行制御部によるバッチジョブ実行制御の具体例を説明するための説明図である。   3 to 6 are explanatory diagrams for explaining specific examples of batch job execution control by the batch processing execution control unit.

まず、図3に示すように、バッチジョブ情報ファイル30のバッチジョブ情報レコード32には、バッチ名称として、「BT001」、「BT002」、…、「BT00X」という情報が格納され、「BT001」のバッチジョブは、入力ファイル名が「A」、データ1件の処理時間が「1分」という情報が格納され、「BT002」のバッチジョブは、入力ファイル名が「B」、データ1件の処理時間が「2分」という情報が格納され、「BT00X」のバッチジョブは、入力ファイル名が「X」、データ1件の処理時間が「10分」という情報が格納されている。   First, as shown in FIG. 3, the batch job information record 32 of the batch job information file 30 stores information “BT001”, “BT002”,..., “BT00X” as a batch name. The batch job stores the information that the input file name is “A” and the processing time of one data is “1 minute”, and the batch job of “BT002” has the input file name “B” and the processing of one data Information that the time is “2 minutes” is stored, and the batch job “BT00X” has the information that the input file name is “X” and the processing time of one data is “10 minutes”.

また、入力データ情報ファイル40の入力データ情報レコード41には、入力ファイル名として、「A」、「B」、…、「X」という情報が格納され、ファイル名「A」のデータは、データ件数が「10件」という情報が格納され、ファイル名「B」のデータは、データ件数が「10件」という情報が格納され、ファイル名「X」のデータは、データ件数が「2件」という情報が格納されている。   Further, the input data information record 41 of the input data information file 40 stores information “A”, “B”,..., “X” as input file names. Information with the number of cases “10” is stored, information with the file name “B” stores information with the number of data “10”, and data with the file name “X” has the number of data “2”. Is stored.

また、バッチジョブ情報ファイル30のバッチ時間帯情報レコード31に、開始時刻として、「0:00」、終了時刻として、「5:00」が格納されており、0:00〜5:00の間がバッチ時間帯となる。   The batch time zone information record 31 of the batch job information file 30 stores “0:00” as the start time and “5:00” as the end time. Is the batch time zone.

まず、図3に示すように、バッチ時間帯開始時刻の「0:00」になると、まず、バッチジョブのスケジューリング情報などにより、「BT001」のバッチジョブを決定する。   First, as shown in FIG. 3, when “0:00” of the batch time zone start time is reached, a batch job “BT001” is first determined based on the scheduling information of the batch job.

「BT001」のバッチジョブは、入力ファイル名が「A」で、入力ファイル名「A」のデータ件数が「10件」、入力ファイル名「A」のデータ1件の処理時間が「1分」なので、「BT001」のバッチジョブは処理時間が「10分」となり、バッチジョブの終了時刻は「0:10」となる。   The batch job of “BT001” has the input file name “A”, the number of data of the input file name “A” is “10”, and the processing time of one data of the input file name “A” is “1 minute”. Therefore, the processing time of the batch job “BT001” is “10 minutes”, and the end time of the batch job is “0:10”.

この終了時刻は、バッチ時間帯終了時刻の「5:00」に収まるため、「BT001」のバッチジョブは起動OKとなり、実行される。   Since this end time falls within the batch time zone end time “5:00”, the batch job “BT001” is activated and executed.

そして、図4に示すように、「BT001」のバッチジョブの処理が終了(「0:10」に終了)すると、バッチジョブのスケジューリング情報などにより、「BT002」のバッチジョブを決定する。   Then, as shown in FIG. 4, when the processing of the batch job “BT001” is completed (finished to “0:10”), the batch job “BT002” is determined based on the scheduling information of the batch job.

「BT002」のバッチジョブは、入力ファイル名が「B」で、入力ファイル名「B」のデータ件数が「10件」、入力ファイル名「B」のデータ1件の処理時間が「2分」なので、「BT002」のバッチジョブは処理時間が「20分」となり、バッチジョブの終了時刻は「0:30」となる。   In the batch job “BT002”, the input file name is “B”, the number of data of the input file name “B” is “10”, and the processing time of one data of the input file name “B” is “2 minutes”. Therefore, the processing time of the batch job “BT002” is “20 minutes”, and the end time of the batch job is “0:30”.

この終了時刻は、バッチ時間帯終了時刻の「5:00」に収まるため、「BT002」のバッチジョブは起動OKとなり、実行される。   Since this end time falls within the batch time zone end time “5:00”, the batch job “BT002” is activated and executed.

そして、図5に示すように、「BT00X」の前のバッチジョブの処理が終了(「4:50」に終了)すると、バッチジョブのスケジューリング情報などにより、「BT00X」のバッチジョブを決定する。   Then, as shown in FIG. 5, when the processing of the batch job before “BT00X” is completed (finished at “4:50”), the batch job of “BT00X” is determined based on the scheduling information of the batch job.

「BT00X」のバッチジョブは、入力ファイル名が「X」で、入力ファイル名「X」のデータ件数が「2件」、入力ファイル名「X」のデータ1件の処理時間が「10分」なので、「BT00X」のバッチジョブは処理時間が「20分」となり、バッチジョブの終了時刻は「5:10」となる。   For the batch job of “BT00X”, the input file name is “X”, the number of data of the input file name “X” is “2”, and the processing time of one data of the input file name “X” is “10 minutes” Therefore, the batch job “BT00X” has a processing time of “20 minutes”, and the end time of the batch job is “5:10”.

この終了時刻は、バッチ時間帯終了時刻の「5:00」に収まらないため、「BT00X」のバッチジョブは起動NGとなり、実行されずに、翌日に持ち越される。   Since this end time does not fall within the batch time zone end time “5:00”, the batch job “BT00X” is activated NG and is carried over to the next day without being executed.

そして、図6に示すように、翌日のバッチ時間帯開始時刻の「0:00」になると、まず、バッチジョブのスケジューリング情報などにより、まずは、前日から持ち越された「BT00X」のバッチジョブを決定する。   As shown in FIG. 6, when the next day's batch time zone start time “0:00” is reached, first, the batch job “BT00X” carried over from the previous day is determined based on the scheduling information of the batch job. To do.

「BT00X」のバッチジョブは、入力ファイル名が「X」で、入力ファイル名「X」のデータ件数が「2件」、入力ファイル名「X」のデータ1件の処理時間が「10分」なので、「BT00X」のバッチジョブは処理時間が「20分」となり、バッチジョブの終了時刻は「0:20」となる。   For the batch job of “BT00X”, the input file name is “X”, the number of data of the input file name “X” is “2”, and the processing time of one data of the input file name “X” is “10 minutes” Therefore, the batch job “BT00X” has a processing time of “20 minutes”, and the end time of the batch job is “0:20”.

この終了時刻は、バッチ時間帯終了時刻の「5:00」に収まるため、「BT00X」のバッチジョブは起動OKとなり、実行される。   Since the end time falls within the batch time zone end time “5:00”, the batch job “BT00X” is activated and executed.

そして、その後は、その日の通常のバッチジョブのスケジューリング情報などにより、バッチジョブが決定されて、同様に処理される。   Thereafter, the batch job is determined based on the scheduling information of the normal batch job of the day, and the same processing is performed.

このように、この実施の形態では、予め実行対象のバッチジョブについて、その終了時刻を算出し、バッチ時間帯終了時刻に収まらない場合には、バッチジョブの実行を中止して、バッチジョブの実行中にバッチ時間帯終了時刻になり、バッチジョブが強制終了されてしまうことを回避することが可能である。   As described above, in this embodiment, the end time of the batch job to be executed is calculated in advance, and if it does not fall within the batch time zone end time, the execution of the batch job is stopped by stopping the execution of the batch job. It is possible to avoid the batch job being forcibly terminated due to the end of the batch time zone.

次に、バッチジョブ情報ファイル30の具体例について説明する。   Next, a specific example of the batch job information file 30 will be described.

図7はバッチジョブ情報ファイルの一例を示した図である。   FIG. 7 shows an example of a batch job information file.

図7において、バッチジョブ情報ファイル30は、バッチ時間帯情報レコード(1レコード)31とバッチジョブ毎のデータ1件当たりの処理時間、バッチジョブが入力とするファイル名等が格納されたバッチジョブ情報レコード(複数レコード)32を有するが、各レコードは各レコード中に設定されたキー情報により管理される。   In FIG. 7, a batch job information file 30 is a batch job information in which a batch time zone information record (1 record) 31, a processing time per data for each batch job, a file name input by the batch job, and the like are stored. There are records (multiple records) 32, and each record is managed by key information set in each record.

図7に示す例では、バッチ時間帯情報レコード(1レコード)31は、キー値がオールゼロのレコードとし、複数レコード存在するバッチジョブ情報レコード32は、シーケンシャルにつけられたキー値により管理される。   In the example shown in FIG. 7, the batch time zone information record (1 record) 31 is a record whose key value is all zero, and the batch job information record 32 having a plurality of records is managed by the key value assigned sequentially.

そして、バッチ時間帯情報レコード(1レコード)31のキー値である、オールゼロのレコードのバッチ時間帯開始時刻およびバッチ時間帯終了時刻の情報(例えば、開始時刻2:00、終了時刻5:00)は、その後に続くシーケンシャルにつけられたキー値を持つ複数のバッチジョブ情報レコード32に適用され、そのバッチジョブのバッチ時間帯情報として使用される。   Then, information on the batch time zone start time and batch time zone end time of the all-zero record, which is a key value of the batch time zone information record (1 record) 31 (for example, start time 2:00, end time 5:00) Is applied to a plurality of batch job information records 32 each having a key value assigned sequentially thereafter, and is used as batch time zone information of the batch job.

また、バッチ時間帯情報レコード(1レコード)31のキー値である、別のオールゼロのレコードのバッチ時間帯開始時刻およびバッチ時間帯終了時刻の情報(例えば、開始時刻0:00、終了時刻2:00)があれば、その後に続くシーケンシャルにつけられたキー値を持つ複数のバッチジョブ情報レコード32は、そのバッチ時間帯情報が適用される。   Also, information on the batch time zone start time and batch time zone end time of another all-zero record, which is a key value of the batch time zone information record (1 record) 31 (for example, start time 0:00, end time 2: 00), the batch time zone information is applied to a plurality of batch job information records 32 each having a key value sequentially attached thereto.

これによりバッチジョブ情報ファイル30中に2種類の意味を持つレコードを配置することが可能である。   As a result, records having two types of meanings can be arranged in the batch job information file 30.

なお、この実施の形態では、バッチ時間帯終了時刻を基準に当該時刻をバッチジョブの処理終了時刻が超過するか否かにより、バッチジョブの実行可否を判断したが、例えば、バッチジョブの処理時間からバッチ時間帯の開始時刻を早めてバッチジョブを実行するようなことも可能である。この場合、バッチジョブの処理量も増やすことも可能となる。   In this embodiment, whether or not the batch job can be executed is determined based on whether or not the batch job processing end time exceeds the time based on the batch time zone end time. It is also possible to execute a batch job by accelerating the start time of the batch time zone. In this case, it is possible to increase the processing amount of the batch job.

また、この実施の形態では、バッチジョブ情報ファイル30および入力データ情報ファイル40の情報に基づいて、バッチジョブの処理時間を算出しているが、バッチジョブの処理時間を算出できる情報であれば、他の情報に基づいて、バッチジョブの処理時間を算出してもよい。   In this embodiment, the batch job processing time is calculated based on the information in the batch job information file 30 and the input data information file 40. However, if the information can be used to calculate the batch job processing time, The processing time of the batch job may be calculated based on other information.

本発明の一実施の形態のバッチジョブ実行制御方法を実施するためのバッチ処理部の構成を示す構成図である。It is a block diagram which shows the structure of the batch process part for implementing the batch job execution control method of one embodiment of this invention. 本発明の一実施の形態におけるバッチ時間帯に実行するバッチジョブの実行可否を決定する処理を示すフローチャートである。It is a flowchart which shows the process which determines the feasibility of the batch job performed in the batch time slot | zone in one embodiment of this invention. 本発明の一実施の形態におけるバッチ処理実行制御部によるバッチジョブ実行制御の具体例を説明するための説明図である。It is explanatory drawing for demonstrating the specific example of the batch job execution control by the batch process execution control part in one embodiment of this invention. 本発明の一実施の形態におけるバッチ処理実行制御部によるバッチジョブ実行制御の具体例を説明するための説明図である。It is explanatory drawing for demonstrating the specific example of the batch job execution control by the batch process execution control part in one embodiment of this invention. 本発明の一実施の形態におけるバッチ処理実行制御部によるバッチジョブ実行制御の具体例を説明するための説明図である。It is explanatory drawing for demonstrating the specific example of the batch job execution control by the batch process execution control part in one embodiment of this invention. 本発明の一実施の形態におけるバッチ処理実行制御部によるバッチジョブ実行制御の具体例を説明するための説明図である。It is explanatory drawing for demonstrating the specific example of the batch job execution control by the batch process execution control part in one embodiment of this invention. 本発明の一実施の形態におけるバッチジョブ情報ファイルの一例を示した図である。It is the figure which showed an example of the batch job information file in one embodiment of this invention.

符号の説明Explanation of symbols

10…バッチ処理部、20…バッチ処理実行制御部、30…バッチジョブ情報ファイル、31…バッチ時間帯情報レコード、32…バッチジョブ情報レコード、40…入力データ情報ファイル、41…入力データ情報レコード、50…バッチジョブ、60…入力データ格納ファイル。   DESCRIPTION OF SYMBOLS 10 ... Batch processing part, 20 ... Batch processing execution control part, 30 ... Batch job information file, 31 ... Batch time zone information record, 32 ... Batch job information record, 40 ... Input data information file, 41 ... Input data information record, 50 ... Batch job, 60 ... Input data storage file.

Claims (5)

バッチジョブを実行するバッチ処理時間帯が既定されており、前記バッチ処理時間帯中にシーケンシャルに繰り返しバッチ処理を行い、前記バッチ処理時間帯に処理できなかったバッチ処理は、処理の実行順番が守られていれば、次回の前記バッチ処理時間帯に実行することが許されるシステムにおけるバッチジョブ実行制御方法であって、
前記バッチジョブの実行前に、実行する前記バッチジョブに関する情報および現在の時間情報に基づいて、バッチジョブ終了時刻を算出し、算出したバッチジョブ終了時刻が前記バッチ処理時間帯の終了時刻を超過してしまう場合、前記バッチジョブを実行せずに、次回の前記バッチ処理時間帯に実行することを特徴とするバッチジョブ実行制御方法。
A batch processing time zone for executing a batch job is defined, and batch processing is performed repeatedly in sequence during the batch processing time zone. If so, a batch job execution control method in a system that is allowed to be executed in the next batch processing time zone,
Before execution of the batch job, a batch job end time is calculated based on information on the batch job to be executed and current time information, and the calculated batch job end time exceeds the end time of the batch processing time zone. A batch job execution control method, wherein the batch job is not executed but is executed in the next batch processing time period.
バッチジョブを実行するバッチ処理時間帯が既定されており、前記バッチ処理時間帯中にシーケンシャルに繰り返しバッチ処理を行い、前記バッチ処理時間帯に処理できなかったバッチ処理は、処理の実行順番が守られていれば、次回の前記バッチ処理時間帯に実行することが許されるシステムにおけるバッチジョブ実行制御方法であって、
前記バッチ処理時間帯中に実行する前記バッチジョブに関する情報および現在の時間情報に基づいて、最後のバッチジョブ終了時刻を算出し、算出したバッチジョブ終了時刻が前記バッチ処理時間帯の終了時刻を超過してしまう場合、前記バッチ処理時間帯の開始時刻を早めて、バッチジョブを実行することを特徴とするバッチジョブ実行制御方法。
A batch processing time zone for executing a batch job is defined, and batch processing is performed repeatedly in sequence during the batch processing time zone. If so, a batch job execution control method in a system that is allowed to be executed in the next batch processing time zone,
The last batch job end time is calculated based on the information related to the batch job executed during the batch processing time zone and the current time information, and the calculated batch job end time exceeds the end time of the batch processing time zone. In such a case, the batch job execution control method is characterized in that the batch job is executed by advancing the start time of the batch processing time zone.
請求項1または2記載のバッチジョブ実行制御方法において、
前記バッチジョブに関する情報は、前記バッチジョブのデータ処理時間および処理対象のデータ件数であることを特徴とするバッチジョブ実行制御方法。
In the batch job execution control method according to claim 1 or 2,
The batch job execution control method, wherein the information related to the batch job is a data processing time of the batch job and the number of data items to be processed.
請求項3記載のバッチジョブ実行制御方法において、
前記バッチジョブで処理される入力ファイルを作成する際、前記入力ファイル名に対応して、そのデータ件数を登録することを特徴とするバッチジョブ実行制御方法。
The batch job execution control method according to claim 3, wherein
A batch job execution control method, wherein when creating an input file to be processed by the batch job, the number of data items is registered corresponding to the input file name.
請求項3記載のバッチジョブ実行制御方法において、
前記バッチジョブを登録する際、前記バッチジョブに対応して、前記バッチジョブで処理される入力ファイルおよび前記入力ファイルのデータ1件当たりの処理時間を登録することを特徴とするバッチジョブ実行制御方法。
The batch job execution control method according to claim 3, wherein
When registering the batch job, a batch job execution control method for registering an input file processed by the batch job and a processing time per data of the input file corresponding to the batch job .
JP2003301688A 2003-08-26 2003-08-26 Batch job execution control method Pending JP2005071171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003301688A JP2005071171A (en) 2003-08-26 2003-08-26 Batch job execution control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003301688A JP2005071171A (en) 2003-08-26 2003-08-26 Batch job execution control method

Publications (1)

Publication Number Publication Date
JP2005071171A true JP2005071171A (en) 2005-03-17

Family

ID=34406230

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003301688A Pending JP2005071171A (en) 2003-08-26 2003-08-26 Batch job execution control method

Country Status (1)

Country Link
JP (1) JP2005071171A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008152542A (en) * 2006-12-18 2008-07-03 Hitachi Information Systems Ltd Batch job re-execution control system
JP2011123593A (en) * 2009-12-09 2011-06-23 Nec Corp Cooperation device, service utilization method and service utilization program
JP2011248724A (en) * 2010-05-28 2011-12-08 Fujitsu Ltd Management device, management method, and management program
US8112752B2 (en) * 2005-07-06 2012-02-07 Asml Netherlands B.V. Method for performing a software process, controller and lithographic apparatus
US8176076B2 (en) 2007-12-07 2012-05-08 International Business Machines Corporation Method and system for controlling accesses to a database
JP2012164239A (en) * 2011-02-09 2012-08-30 Mitsubishi Electric Corp Search processing apparatus
US8490108B2 (en) 2009-12-07 2013-07-16 Fujitsu Limited Method of estimating a processing time of each of a plurality of jobs and apparatus thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8112752B2 (en) * 2005-07-06 2012-02-07 Asml Netherlands B.V. Method for performing a software process, controller and lithographic apparatus
JP2008152542A (en) * 2006-12-18 2008-07-03 Hitachi Information Systems Ltd Batch job re-execution control system
US8176076B2 (en) 2007-12-07 2012-05-08 International Business Machines Corporation Method and system for controlling accesses to a database
US8490108B2 (en) 2009-12-07 2013-07-16 Fujitsu Limited Method of estimating a processing time of each of a plurality of jobs and apparatus thereof
JP2011123593A (en) * 2009-12-09 2011-06-23 Nec Corp Cooperation device, service utilization method and service utilization program
JP2011248724A (en) * 2010-05-28 2011-12-08 Fujitsu Ltd Management device, management method, and management program
US8832701B2 (en) 2010-05-28 2014-09-09 Fujitsu Limited Management apparatus, management system, and recording medium for recording management program
JP2012164239A (en) * 2011-02-09 2012-08-30 Mitsubishi Electric Corp Search processing apparatus

Similar Documents

Publication Publication Date Title
US7080105B2 (en) System and method for data backup
CN111507608B (en) Work order early warning method and device and storage medium
CN109918187B (en) Task scheduling method, apparatus, device and storage medium
CN107861799A (en) task processing method and device based on multi-thread environment
CN114780177B (en) Transaction execution method and device, storage medium and electronic device
US6349320B1 (en) Computer executable workflow management and control system
JP2005071171A (en) Batch job execution control method
CN113010276B (en) Task scheduling method and device, terminal equipment and storage medium
CN113778650B (en) Task scheduling method, device, electronic device and storage medium
CN108521524B (en) Agent collaborative task management method and device, computer equipment and storage medium
CN109040491B (en) Hanging-up behavior processing method and device, computer equipment and storage medium
US10474498B2 (en) Server scheduling tool
JPH10135096A (en) Scheduling method in semiconductor manufacture
EP1072993A2 (en) Method of processing the preceding work for workflow system
US20030018683A1 (en) Method, system and program for deleting work flow item
EP2256630A2 (en) Method and system to perform time consuming follow-up process
CN114610489B (en) Batch file processing method and device
JP2004334430A (en) Workflow statistics information processing method, workflow statistics information processing system, workflow statistics information processing program, and storage medium storing the program
US20220011757A1 (en) Laser Machine Automatic Operating Method and System
JP2988427B2 (en) Recording medium recording job operation method, job operation method, and job operation program
JP2010086460A (en) Work management device, and work management program
CN114416368A (en) Interface calling method, system, device and medium
JP3110373B2 (en) Microcomputer and its task control method
KR100918566B1 (en) Internet service management system and method
JP4851932B2 (en) Log analysis execution method and program