JPH0659913A - Batch job scheduling system - Google Patents

Batch job scheduling system

Info

Publication number
JPH0659913A
JPH0659913A JP23284292A JP23284292A JPH0659913A JP H0659913 A JPH0659913 A JP H0659913A JP 23284292 A JP23284292 A JP 23284292A JP 23284292 A JP23284292 A JP 23284292A JP H0659913 A JPH0659913 A JP H0659913A
Authority
JP
Japan
Prior art keywords
batch job
batch
execution
job
jobs
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
JP23284292A
Other languages
Japanese (ja)
Inventor
Masayuki Fujikawa
雅之 藤川
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.)
Kanebo Ltd
Original Assignee
Kanebo 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 Kanebo Ltd filed Critical Kanebo Ltd
Priority to JP23284292A priority Critical patent/JPH0659913A/en
Publication of JPH0659913A publication Critical patent/JPH0659913A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a batch job schedular capable of automatically extracting a batch job to be executed at a time concerned only by inputting plural batch jobs together with their execution conditions and executing operation in consideration of the execution order of the batch jobs. CONSTITUTION:A system for executing plural batch jobs by their non-fixed combination at every prescribed period has a batch job file 1 previously storing an execution condition including the execution interval of each batch job and its preceding batch job name correspondingly to the batch job, an extraction means 2 for retrieving the file 1 in each prescribed period and extracting a batch job to be executed at time concerned and an extracted batch job file 3 for storing the extacted batch job, and a batch job execution control means 5 for sequentially executing the extacted batch job continued to the preceding batch job.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数のバッチジョブを
組み合わせて所望の処理を行うコンピューターシステム
に関し、詳しくは所定期間毎に処理を行い、その際のバ
ッチジョブの組み合わせ方が都度非定型であるようなバ
ッチジョブのスケジューリングシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system for combining a plurality of batch jobs to perform desired processing. More specifically, the processing is carried out every predetermined period, and the combination of batch jobs at that time is atypical. A scheduling system for a batch job.

【0002】[0002]

【従来の技術】今日、バッチジョブを用いたタスク制御
は、コンピューターの運用方法として極めて一般化して
いる。これは、バッチジョブが、処理内容の異なった複
数のプログラムを一定の順序で定型的に実行せしめる際
には極めて便利で又正確な運用ができるためである。
2. Description of the Related Art Today, task control using batch jobs has become extremely popular as a computer operation method. This is because the batch job can perform extremely convenient and accurate operation when executing a plurality of programs having different processing contents routinely in a fixed order.

【0003】ただ、実行形態が非定型であるような業務
には、通常のバッチジョブでは、対応が困難であった。
例えば、貸付業務のようなデータ処理システムでは種々
のアプリケーションプログラムを実行するが、その運用
形態は日次処理、月次処理等非定型であり、しかも日
次、月次の各処理の中でも1つのプログラムの実行結果
を他のプログラムのデータとして用いる等幾つかの制約
の下に実行がなされる。このような場合、バッチジョブ
を作成して運用を行おうとすれば、非定型の各処理毎に
バッチジョブを作成するか、基本となるバッチジョブを
作成しこれに非定型の部分のみを規定したバッチジョブ
を結合して処理を行う等の方法があった。
However, it is difficult for a normal batch job to deal with a job whose execution form is atypical.
For example, in a data processing system such as a lending business, various application programs are executed, but the operating mode is atypical such as daily processing and monthly processing, and one of the daily and monthly processings Execution is performed under some restrictions such as using the execution result of a program as data of another program. In such a case, if you try to create a batch job and operate it, create a batch job for each atypical process or create a basic batch job and specify only the atypical part. There was a method such as combining batch jobs to perform processing.

【0004】しかし、各処理毎にバッチジョブを作成す
ると管理すべきバッチジョブの数が膨大となり却って誤
った運用を行うおそれがあった。また、バッチジョブを
結合する方法は、実行させるバッチジョブが持つ制約条
件をオペレータが確認しながら処理を進めねばならずや
はり誤った運用を行うおそれがあった。
However, if a batch job is created for each process, the number of batch jobs to be managed will become huge, and there is a risk that incorrect operation will be performed. Further, in the method of combining batch jobs, the operator has to proceed with the process while confirming the constraint conditions of the batch job to be executed, and there is a possibility that the operation may be mistaken.

【0005】従来、実行順序に関する制約を考慮しなが
ら、バッチジョブの実行を自動的に行おうとするものに
は特開平1−259432号公報に記載されたものがあ
る。また、複数のバッチジョブをその実行可能時間帯と
共に登録しておき当該時間帯にのみ実行可能とするもの
として特開昭60−128536号公報に記載されたも
のがある。
[0005] Conventionally, there is one disclosed in Japanese Patent Laid-Open No. 1-259432 that automatically attempts to execute a batch job in consideration of the restriction on the execution order. Further, there is a method described in Japanese Patent Application Laid-Open No. 60-128536 in which a plurality of batch jobs are registered together with their executable time zones and can be executed only in the relevant time zones.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前記の
如き従来技術には次の問題点が存在する。すなはち、特
開平1−259432号公報に記載されたものは、一度
実行させたバッチジョブの履歴を基に実行順序を決定す
るため、新規なバッチジョブの組み合わせには対応でき
ず、実行時毎にバッチジョブの組み合わせが変化するよ
うな業務では問題がある。
However, the above-mentioned conventional techniques have the following problems. That is, since the one disclosed in Japanese Patent Laid-Open No. 1-259432 determines the execution order based on the history of batch jobs that have been executed once, it cannot support a combination of new batch jobs and There is a problem in the business where the combination of batch jobs changes every time.

【0007】また、特開昭60−128536号公報に
記載されたものは、複数のバッチジョブを登録しておき
その中から実行すべきものを抽出できる点ではバッチジ
ョブの入力業務が簡素化できるが、実行すべきバッチジ
ョブの順序を考慮して実行可能時間帯を指定しなければ
ならず、しかもその時間帯に該バッチジョブが確実に実
行されるようジョブ量の調整を行う等入力時の負担が大
きいという問題点が存在する。更に、同公報に記載され
たものは、先行バッチジョブとの関連付けを持たないた
め、先行バッチジョブが処理に失敗したとしても次のバ
ッチジョブが実行されるという問題点がある。
Further, although the one described in JP-A-60-128536 can simplify the input job of the batch job in that a plurality of batch jobs can be registered and the one to be executed can be extracted from them. It is necessary to specify the executable time zone in consideration of the order of batch jobs to be executed, and adjust the job amount so that the batch jobs can be executed during that time zone. There is a problem that is large. Further, since the one described in the publication has no association with the preceding batch job, there is a problem that the next batch job is executed even if the preceding batch job fails in processing.

【0008】本発明はかかる問題点を解決するものであ
って、その目的は、複数のバッチジョブをその実行条件
と共に入力しておくだけで、自動的に当該時間に実行す
べきバッチジョブを抽出しその実行順序を考慮して運用
を行うバッチジョブスケジューラを提供することにあ
る。
The present invention solves such a problem, and its purpose is to automatically extract a batch job to be executed at the time by simply inputting a plurality of batch jobs together with their execution conditions. The purpose is to provide a batch job scheduler that operates in consideration of its execution order.

【0009】[0009]

【課題を解決するための手段】本発明は、所定期間毎に
複数のバッチジョブを非定型に組み合わせて実行するシ
ステムにおいて、各バッチジョブ毎にその実行間隔およ
び先行バッチジョブ名を含む実行条件をバッチジョブと
対応して予め格納しておくバッチジョブファイルと、所
定期間毎に該実行条件ファイルを検索して当該時間に実
行すべきバッチジョブを抽出する抽出手段と、抽出され
たバッチジョブを格納する抽出バッチジョブファイル
と、該抽出されたバッチジョブを先行バッチジョブより
順次実行するバッチジョブ実行制御手段を有することを
特徴とするバッチジョブスケジューリングシステムであ
る。
According to the present invention, in a system in which a plurality of batch jobs are combined in an atypical manner at predetermined intervals and executed, an execution condition including an execution interval and a preceding batch job name is set for each batch job. A batch job file that is stored in advance corresponding to a batch job, an extraction unit that searches the execution condition file for each predetermined period and extracts a batch job that should be executed at that time, and stores the extracted batch job And a batch job execution control means for sequentially executing the extracted batch job from the preceding batch job.

【0010】[0010]

【作用】本システムでは、所定の時間になると抽出手段
がバッチジョブファイルを検索し、当該時間に実行すべ
きバッチジョブを抽出バッチジョブファイルに格納す
る。次に、バッチジョブ実行制御手段が、格納された各
バッチジョブに対応する先行バッチジョブを考慮してこ
れらを順次実行せしめる。
In this system, the extraction means searches the batch job file at a predetermined time and stores the batch job to be executed at the time in the extracted batch job file. Next, the batch job execution control means considers the preceding batch jobs corresponding to the stored batch jobs and sequentially executes them.

【0011】[0011]

【実施例】以下、実施例に基づいて本発明を説明する。
図1は、本システムの全体構成を示すシステム概念図で
ある。バッチジョブファイル1には、予め複数のバッチ
ジョブが格納されている。格納される各バッチジョブ
は、本システムを用いて所望の処理を行うに当たり、そ
の処理の一部分の機能を有するものである。すなはち、
所望の処理は各バッチジョブを複数組み合わせることに
よって達成されることとなる。
EXAMPLES The present invention will be described below based on examples.
FIG. 1 is a system conceptual diagram showing the overall configuration of this system. The batch job file 1 stores a plurality of batch jobs in advance. Each stored batch job has a function of a part of the desired processing when the desired processing is performed using this system. Sunahachi,
The desired processing is achieved by combining a plurality of batch jobs.

【0012】バッチジョブファイル1には、各バッチジ
ョブに対応してその実行条件も予め格納されており、実
行条件は、少なくとも実行間隔および先行バッチジョブ
名を含むものである。該バッチジョブファイルの構造の
一例を図2に示す。同図より明らかな如く、各バッチジ
ョブ名に対応して、実行条件である先行バッチジョブ名
と実行間隔を示すフラグが格納されている。同図の場
合、バッチジョブ名がBのバッチジョブは、先行バッチ
ジョブがAであるから、Aのバッチジョブが先に実行さ
れてから、始めて実行される。また、Bのバッチジョブ
は実行間隔が毎日であるフラグが立っているから、毎日
所定の時間に実行がなされる。
The batch job file 1 also pre-stores execution conditions for each batch job, and the execution conditions include at least an execution interval and a preceding batch job name. An example of the structure of the batch job file is shown in FIG. As is clear from the figure, a preceding batch job name which is an execution condition and a flag indicating an execution interval are stored corresponding to each batch job name. In the case of the figure, the batch job with the batch job name B is the preceding batch job A, so the batch job A is first executed and then executed. Further, since the batch job of B has a flag that the execution interval is every day, it is executed at a predetermined time every day.

【0013】また、前記バッチジョブ名は実際にはバッ
チジョブの内容に対するポインタであるが、直接バッチ
ジョブの内容自体を格納しても良い。更に、バッチジョ
ブファイル1には、バッチジョブ、実行条件以外にバッ
チジョブ実行回数などの履歴情報を格納しても良い。
Although the batch job name is actually a pointer to the content of the batch job, the content itself of the batch job may be stored directly. Further, the batch job file 1 may store history information such as the number of batch job executions in addition to the batch job and the execution conditions.

【0014】このように格納されたバッチジョブは、所
定の時間となるとバッチジョブ抽出手段2によって実行
すべきものだけが抽出される。バッチジョブ抽出手段2
は、タイマー21と接続しており、所定の間隔例えば2
4時間毎に起動され抽出作業を行う。バッチジョブ抽出
手段2は起動されると、先ず現在の時間が実行間隔のど
の区分に該当するかを判断する。たとえば、現在の時間
は10日目に当たりバッチジョブ抽出手段2の起動間隔
が24時間である場合、毎日の区分及び10日の区分に
フラグの立っているものを検索し、A、B、C、D、
E、F及びG、Iのバッチジョブが抽出される。
Of the batch jobs stored in this way, only the ones to be executed are extracted by the batch job extracting means 2 at a predetermined time. Batch job extraction means 2
Is connected to the timer 21 at a predetermined interval, for example 2
It is activated every 4 hours to perform extraction work. When the batch job extracting means 2 is activated, it first determines which of the execution intervals the current time corresponds to. For example, when the current time is on the 10th day and the activation interval of the batch job extracting means 2 is 24 hours, the daily flag and the flag of the 10th day are searched for, and A, B, C, and D,
E, F and G, I batch jobs are extracted.

【0015】抽出されたバッチジョブは、抽出バッチジ
ョブファイル3に記憶される。抽出バッチジョブファイ
ル3のファイル構造は、基本的には、バッチジョブファ
イル1と同様でよいが、バッチジョブ名には各バッチジ
ョブに対応したポインタ情報を用いるのがよい。また、
バッチジョブ名、実行条件の他に実行開始時刻、実行終
了時刻などの履歴情報を格納してもよい。
The extracted batch job is stored in the extracted batch job file 3. The file structure of the extracted batch job file 3 may be basically the same as that of the batch job file 1, but pointer information corresponding to each batch job may be used as the batch job name. Also,
In addition to the batch job name and execution conditions, history information such as execution start time and execution end time may be stored.

【0016】更に、本システムには、一旦抽出バッチジ
ョブファイル3に記憶されたデータについて、オペレー
タがバッチジョブ名を追加、削除したり、先行バッチジ
ョブ名を追加、削除したりする編集手段4を設けてもよ
い。
Further, the present system further comprises an editing means 4 for the operator to add / delete the batch job name or the preceding batch job name to / from the data once stored in the extracted batch job file 3. It may be provided.

【0017】以上の如くして、抽出バッチジョブファイ
ル3にバッチジョブが格納されたなら、バッチジョブ実
行制御手段5が起動され、格納されたバッチジョブを次
の如く順次実行せしめる。先ず、抽出バッチジョブファ
イル3を検索して、各バッチジョブに対応する先行バッ
チジョブ名を辿り、最も先行するバッチジョブに対して
実行指示を発行する。
When a batch job is stored in the extracted batch job file 3 as described above, the batch job execution control means 5 is activated to sequentially execute the stored batch jobs as follows. First, the extracted batch job file 3 is searched, the preceding batch job name corresponding to each batch job is traced, and the execution instruction is issued to the most preceding batch job.

【0018】而して、バッチジョブの実行は、バッチジ
ョブ実行制御手段5の下で行われ、バッチジョブ実行制
御手段5は各バッチジョブが正常に終了したことを確認
してから次のバッチジョブを実行せしめる。また、いづ
れかのバッチジョブが異常終了すれば、該時点で実行制
御を中止し、その状態をメッセージにしてオペレータに
知らせる。かかるバッチジョブの実行確認は、各バッチ
ジョブの終了フラグをバッチジョブ実行制御手段5が監
視し、フラグがセットされたことにより次処理に移るの
が一般的である。
The execution of the batch job is performed under the batch job execution control means 5, and the batch job execution control means 5 confirms that each batch job has been completed normally, and then executes the next batch job. To execute. If any of the batch jobs ends abnormally, the execution control is stopped at that point, and the status is notified to the operator by a message. In order to confirm the execution of such a batch job, it is general that the batch job execution control means 5 monitors the end flag of each batch job, and when the flag is set, the next process is performed.

【0019】このようにして、各バッチジョブが終了す
る度に抽出バッチジョブファイルを検索し終了フラグが
リセットされているものの中で、最も先行するバッチジ
ョブに対して実行指示を発行する。
In this way, each time a batch job ends, the extracted batch job file is searched, and the execution instruction is issued to the most preceding batch job among those whose end flag is reset.

【0020】例えば、前述の例により、10日の区分に
フラグの立っているものを検索し、A、B、C、D、
E、F及びG、Iのバッチジョブが抽出された場合、図
3に示す如く、A→B→Cの処理と、D→Eの処理とを
行い、この両処理が終了した時点でF→Gの処理が行わ
れることとなる。この場合、A→B→Cの処理と、D→
Eの処理とは各々関連していないため、マルチタスク型
のOSであれば、A、Dに対する実行指示を同時に発行
し、並行処理を行うことによりパフォーマンスの向上が
図れる。
For example, according to the above-mentioned example, a search is made for a flag for the 10-day segment, and A, B, C, D,
When the batch jobs of E, F, G, and I are extracted, as shown in FIG. 3, the process of A → B → C and the process of D → E are performed, and when both these processes are completed, F → The processing of G will be performed. In this case, A → B → C processing and D →
Since it is not related to the processing of E, a multitasking OS can improve performance by simultaneously issuing execution instructions to A and D and performing parallel processing.

【0021】[0021]

【発明の効果】本発明によれば、バッチジョブとその実
行条件を入力しておくだけで、実行すべき時に、適切な
順序で自動的にその実行がなされ、従来バッチジョブを
適用し難かった非定型な業務でも、正確且つ、バッチジ
ョブ本来の簡便さを損なうことなく運用ができる。
According to the present invention, by simply inputting a batch job and its execution condition, when it should be executed, it is automatically executed in an appropriate order, making it difficult to apply the conventional batch job. Even irregular jobs can be operated accurately and without impairing the original simplicity of batch jobs.

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

【図1】本システムの全体構成を示すシステム概念図で
ある。
FIG. 1 is a system conceptual diagram showing an overall configuration of the present system.

【図2】バッチジョブファイルの構造を示す説明図であ
る。
FIG. 2 is an explanatory diagram showing the structure of a batch job file.

【図3】バッチジョブの実行順序を示す説明図である。FIG. 3 is an explanatory diagram showing an execution order of batch jobs.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 所定期間毎に複数のバッチジョブを非定
型に組み合わせて実行するシステムにおいて、各バッチ
ジョブ毎にその実行間隔および先行バッチジョブ名を含
む実行条件をバッチジョブと対応して予め格納しておく
バッチジョブファイルと、所定期間毎に該実行条件ファ
イルを検索して当該時間に実行すべきバッチジョブを抽
出する抽出手段と、抽出されたバッチジョブを格納する
抽出バッチジョブファイルと、該抽出されたバッチジョ
ブを先行バッチジョブより順次実行するバッチジョブ実
行制御手段を有することを特徴とするバッチジョブスケ
ジューリングシステム。
1. In a system for executing a combination of a plurality of batch jobs at regular intervals and executing them in an atypical manner, execution conditions including an execution interval and a preceding batch job name are stored in advance for each batch job in association with the batch job. A batch job file to be stored, an extraction unit that searches the execution condition file for each predetermined period and extracts a batch job to be executed at the time, an extraction batch job file that stores the extracted batch job, A batch job scheduling system having a batch job execution control means for sequentially executing the extracted batch jobs from the preceding batch jobs.
JP23284292A 1992-08-07 1992-08-07 Batch job scheduling system Pending JPH0659913A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23284292A JPH0659913A (en) 1992-08-07 1992-08-07 Batch job scheduling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23284292A JPH0659913A (en) 1992-08-07 1992-08-07 Batch job scheduling system

Publications (1)

Publication Number Publication Date
JPH0659913A true JPH0659913A (en) 1994-03-04

Family

ID=16945658

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23284292A Pending JPH0659913A (en) 1992-08-07 1992-08-07 Batch job scheduling system

Country Status (1)

Country Link
JP (1) JPH0659913A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0844574A (en) * 1994-07-29 1996-02-16 Nec Corp Job operation management device
US7197749B2 (en) * 2000-12-19 2007-03-27 Xerox Corporation Method and system for executing batch jobs by delegating work to independent service providers
JP2008204069A (en) * 2007-02-19 2008-09-04 Nec Corp Device and method for generating job network flow from control sentence described by job control language
US10346262B2 (en) 2015-09-18 2019-07-09 Mitsubishi Electric Corporation Job management apparatus, job management method and computer readable medium to generate and execute a retry job when an error occurs during a job step

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0844574A (en) * 1994-07-29 1996-02-16 Nec Corp Job operation management device
US7197749B2 (en) * 2000-12-19 2007-03-27 Xerox Corporation Method and system for executing batch jobs by delegating work to independent service providers
JP2008204069A (en) * 2007-02-19 2008-09-04 Nec Corp Device and method for generating job network flow from control sentence described by job control language
US8326867B2 (en) 2007-02-19 2012-12-04 Nec Corporation Apparatus for generating job network flow from job control statement described in job control language and its method
US10346262B2 (en) 2015-09-18 2019-07-09 Mitsubishi Electric Corporation Job management apparatus, job management method and computer readable medium to generate and execute a retry job when an error occurs during a job step

Similar Documents

Publication Publication Date Title
US7080105B2 (en) System and method for data backup
JPH0810440B2 (en) Application event collection method
US5826078A (en) Job re-execution system and controlling method thereof
US5781905A (en) Program generating method combining data item part with database manipulation part
JPH08272626A (en) Batch job processing method
JPH0659913A (en) Batch job scheduling system
JPH11305998A (en) Computer system
JPS63165924A (en) Window control
EP2587380A1 (en) Runtime environment and method for non-invasive monitoring of software applications
JPH03241439A (en) Test data preparation tool
US20240168851A1 (en) System and method for scanning file systems
JP3559581B2 (en) Job execution control method
JP2575761B2 (en) Job management method
JPH0754470B2 (en) Control method for virtual computer system
JPH03116333A (en) Collective compiling system
JP2000194753A (en) Job processing system
JPH05241890A (en) Data trace system
JPH05143422A (en) Updated journal managing system
JP2001142757A (en) Method for naming file to be processed
JPH06187217A (en) System for synchronization between data base and normal file
JPH07146787A (en) Method for retrieving influence program
JP3544555B2 (en) Batch job management method and data processing system
JPH086782A (en) Maintenance work automation supporting method for program
JPH06119153A (en) Retrieving/assembling device for software component
JPH03233634A (en) Job reprocessing system