JPS6279531A - Job step restarting method - Google Patents

Job step restarting method

Info

Publication number
JPS6279531A
JPS6279531A JP60221374A JP22137485A JPS6279531A JP S6279531 A JPS6279531 A JP S6279531A JP 60221374 A JP60221374 A JP 60221374A JP 22137485 A JP22137485 A JP 22137485A JP S6279531 A JPS6279531 A JP S6279531A
Authority
JP
Japan
Prior art keywords
job
control information
job control
processing
storage device
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
JP60221374A
Other languages
Japanese (ja)
Inventor
Yoshihiro Hongo
本郷 喜裕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP60221374A priority Critical patent/JPS6279531A/en
Publication of JPS6279531A publication Critical patent/JPS6279531A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PURPOSE:To execute job step restarting at the time of the reexecuting of the job step by using the contents of a second memory area on a secondary memory device at the time of the processing of the restarting after a system down. CONSTITUTION:A restarting processing part 109 refers to the identifying information of the job which is executed at the time of generating the system down and selects the job which comes to be the object of the restarting processing. Further, the pointer to show the presence of a job control language file 104 of the job is referred to, the job control language file 104 is read, it is decided whether or not in the information, the job step restarting prohibiting displaying exists, when the displaying is not present, from the read information, the contents of a job control information backup file 106 are copied to a job control information file 105, and the information of the resources succeeded from the prior job step is reloaded. Thus, without wasting many computer resources at the time of the usual operation, the job step can be re-executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ジョブ処理過程中に更新されるジョブ制御情
報を二次記憶装置上に記憶し、システムダウンが発生し
た時に、前記二次記憶装置上に記憶されたジョブ制御情
報を用いてジョブステップの再実行を行うジョブステッ
プリスタート方法に関する。
Detailed Description of the Invention [Industrial Application Field] The present invention stores job control information that is updated during a job processing process on a secondary storage device, and when a system failure occurs, the job control information is stored in the secondary storage device. The present invention relates to a job step restart method for re-executing a job step using job control information stored on an apparatus.

〔従来の技術〕[Conventional technology]

システム匣用中に、何らかの原因によってシステムダウ
ンが発生した場合、そのシステムダウンによって実行を
中断されたジョブについて、システム回復後自動的に再
実行する機能を一般にジョブリスタート機能と呼んでい
る。この場合、ひとつのジョブは、順次実行されるいく
つかのジョブステップから構成されているので、実際に
システムダウンに遭週したジョブステップの最初から再
実行できることが好ましく、これを特にジョブステップ
リスタート機能と呼んでいる。
If the system goes down for some reason while the system is in use, the job restart function is generally called the job restart function, which automatically re-executes the jobs whose execution was interrupted due to the system down after the system is restored. In this case, one job consists of several job steps that are executed sequentially, so it is preferable to be able to re-execute the job step that actually experienced a system down from the beginning. It's called a function.

システムがジョブの処理を行う際必要とする情報はジョ
ブ制御情報と呼ばれ、そのジョブを記述するジョブ制御
言語を入力として作成される。ひとつのジョブステップ
は、イニシエート処理部、処理プログラム部およびター
ミネート処理部から構成されているが、イニシエート処
理部およびターミネート処理部において、ジョブ制御情
報は更新され、また、処理プログラム部でも、そのなか
で実行される処理プログラムが使用するジョブ制御マク
ロ命令やファイル制御マクロ命令等によってジョブ制御
情報が更新されることがある。
The information required by the system when processing a job is called job control information, and is created using the job control language that describes the job as input. One job step consists of an initiation processing section, a processing program section, and a termination processing section. Job control information is updated in the initiation processing section and termination processing section, and the processing program section also updates the job control information. Job control information may be updated by a job control macro instruction, a file control macro instruction, or the like used by a processing program to be executed.

このように更新されたジョブ制御情報を、順次実行され
るジョブステップに渡って引き継ぐために、通常、ジョ
ブ制御情報は二次記憶装置上の領域に作成される。
In order to carry over the job control information updated in this way over sequentially executed job steps, the job control information is usually created in an area on a secondary storage device.

従来のジョブステップリスタート方法は、二次記憶装置
−にの領域に作成されたジョブ制御情報に基づいて、シ
ステムダウン時のジョブ制御情報を復元し、ジョブステ
ップの再実行を行うものであった。
The conventional job step restart method was to restore job control information at the time of system failure and re-execute job steps based on job control information created in an area of secondary storage. .

従来のジョブステップリスタート方法の他の例では、二
次記憶装置上のジョブ制御情報を記憶媒体のX面とY面
に二重化し、イニシェート処理部およびターミネート処
理部においてジョブ制御情報を更新する時や、処理プロ
グラム部のなかで実行される処理プログラムが使用する
ジョブ制御マクロ命令やファイル制御マクロ命令等によ
ってジョブ制御情報が更新される時に、まずX面に対し
て更新を実施し、その後X面からY面にコピーすること
により、リスタート処理時の有効面としてX面かY面の
いずれか一方を必ず確保するようにしている(例えば、
特開昭58− lH444号公報)。
Another example of the conventional job step restart method is to duplicate the job control information on the secondary storage device on the X and Y sides of the storage medium, and update the job control information in the initiation processing section and the termination processing section. When job control information is updated by a job control macro command or a file control macro command used by a processing program executed in the processing program section, the update is first performed on the X plane, and then the X plane is updated. By copying from
JP-A-58-1H444).

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

上述した従来のジョブステップリスタート方法のうち、
前者の方法の場合、イニシェート処理部およびターミネ
ート処理部においてジョブ制御情報を更新する時や、処
理プログラム部のなかで実行されるジョブ制御マクロ命
令やファイル制御マクロ命令等によってジョブ制御情報
が更新される時にシステムダウンが発生すると、二次記
憶装置上のジョブ制御情報が不確定になるため、ジョブ
ステップリスタートを行うことができなくなる。
Among the conventional job step restart methods mentioned above,
In the case of the former method, the job control information is updated when the job control information is updated in the initiate processing section and the termination processing section, or by job control macro instructions, file control macro instructions, etc. executed in the processing program section. When a system failure occurs, the job control information on the secondary storage device becomes uncertain, making it impossible to restart the job step.

一般に、ひとつのジョブの処理過程におけるジョブ制御
情報の更新の頻度は相当星に達するので、この方法によ
る場合、ジョブステップリスタートを行うことができな
いという状態になる可能性が高いという欠点がある。
In general, the frequency of updating job control information during the processing of one job is quite high, so this method has the disadvantage that there is a high possibility that job step restart will not be possible.

後者の方法の場合、ジョブ制御情報の更新に伴って、必
ず二重化された二次記憶装置へのアクセスが発生し、ジ
ョブ処理上のオーバヘッドが大きくなってしまうという
欠点、有効面がX面、Y面のいずれであるかを別途二次
記憶装置上に保持する必要があり、管理が徒らに複雑化
するという欠点、および、処理プログラム部のなかで実
行される処理プログラムが使用するジョブ制御マクロ命
令やファイル制御マクロ命令等によっても二次記憶装置
上のジョブ制御情報が更新されてしまうので、ジョブ制
御情報の更新毎に処理プログラムのプログラムチェック
ポイントを採取しておかねばならないという欠点がある
。すなわち、この方法による場合、一般に稀にしか発生
しないシステムダウンに備えて、通常運用時に、多くの
計算機資源を浪費しなければならないという欠点がある
In the case of the latter method, access to the duplicated secondary storage device always occurs when job control information is updated, resulting in a large overhead in job processing. The problem is that it is necessary to separately store information about which side the screen is in on a secondary storage device, which makes management unnecessarily complicated, and job control macros used by processing programs executed in the processing program section. Since the job control information on the secondary storage device is also updated by commands, file control macro instructions, etc., there is a drawback that a program checkpoint of the processing program must be taken every time the job control information is updated. That is, this method has the disadvantage that a large amount of computer resources must be wasted during normal operation in preparation for a system failure that generally occurs only rarely.

本発明の目的は、ジョブ処理過程中に更新されるジョブ
制御情報を二次記憶装置上に記憶し、システムダウンが
発生した時に、前記二次記憶装置上に記憶されたジョブ
制御情報を用いてジョブステップの再実行を行うジョブ
ステップリスタート方法を提供することにある。
An object of the present invention is to store job control information that is updated during a job processing process on a secondary storage device, and to use the job control information stored on the secondary storage device when a system down occurs. An object of the present invention is to provide a job step restart method for re-executing a job step.

本発明のもうひとつの[1的は、二次記憶装置にのジョ
ブ制御情報が不確定であるためにジョブステップの再実
行を行うことができないという状態になる可能性を大幅
に低ドさせたジョブステップリスタート方法を提供する
ことにある。
Another aspect of the present invention is to significantly reduce the possibility that a job step cannot be re-executed because the job control information in the secondary storage device is uncertain. The purpose of the present invention is to provide a job step restart method.

本発明のさらにもうひとつの目的は、−・般に椙にしか
発生しないシステムダウンに備えて、通常運用時に多く
の肩算機資源を浪費することなく、ジョブステップの再
実行をHrf能にしたジョブステップリスタート方〃、
を提供することにある。
Yet another object of the present invention is to make it possible to re-execute job steps in a timely manner without wasting a lot of computer resources during normal operation, in preparation for a system down that generally occurs only in the morning. How to restart job step〃,
Our goal is to provide the following.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明のジョブステップリスタート方法は、ジョブステ
ップのイニシエ−1・処理中に更新されるジョブ制御情
報を二次記憶装置上の第1の記憶領域に記憶するステッ
プと、イニシエート処理完了時に、前記二次記憶装置−
にの第1の記憶領域内のジョブ制御言語を、該ジョブス
テップに対して割り当てられた主記憶装置−Lの領域に
格納するステップと、該ジョブステップの実行時および
ターミネート処理中には、前記主記憶装置上の領域に格
納されたジョブ制御情報を使用し、ターミネート処理完
了時に、該ジョブステップの実行時およびターミネート
処理中に変更された前記主記憶装置上のジョブ制御情報
を前記二次記憶装置上の第1の記憶領域に記憶するステ
ップと、その後前記二次記憶装置上の第1の記憶領域の
内容を二次記憶装置上の第2の記憶領域に複写するステ
ップとを含み、システムダウン後のリスタート処理時に
は、前記二次記憶装置−1−の第2の記憶領域の内容を
用いることを特徴とする。
The job step restart method of the present invention includes the steps of: storing job control information updated during initiator 1/processing of a job step in a first storage area on a secondary storage device; Secondary storage device
storing the job control language in the first storage area of the job step in the area of the main storage device-L allocated to the job step; and during the execution and termination process of the job step. Using the job control information stored in the area on the main storage device, when termination processing is completed, the job control information on the main storage device that was changed during the execution of the job step and during the termination processing is stored in the secondary storage. storing in a first storage area on the device; and then copying the contents of the first storage area on the secondary storage device to a second storage area on the secondary storage device, It is characterized in that the contents of the second storage area of the secondary storage device -1- are used during restart processing after a downtime.

このように、ジョブステップの再実行のために必要とさ
れるジョブ制御情報を格納しているジョブ制御情報バッ
クアップファイルに対する書込みを、ターミネート処理
中の1回、すなわち、ジョブステップ当たり1回に減少
させることにより、システムダウンが発生した時に、二
次記憶装置上のジョブ制御情報が不確定であるためにジ
ョブステップの再実行を行うことができないという状態
になる可能性が大幅に低下し、さらに、処理プログラム
実行中のジョブ制御情報へのアクセスを全て主記憶装置
上で行い、ジョブ制御情報ファイルおよびジョブ制御情
報バックアップファイルに対する書込みを行わないこと
と、プログラムチェックポイント等を必要としないこと
とにより、一般に稀にしか発生しないシステムダウンに
備えて、通常運用時に多くの計算機資源を浪費すること
なくジョブステップの再実行が可能になる。
In this way, writing to the job control information backup file that stores job control information required for re-execution of a job step is reduced to once during termination processing, that is, once per job step. As a result, when a system failure occurs, the possibility that a job step cannot be re-executed because the job control information on the secondary storage device is uncertain is greatly reduced, and further, By performing all access to job control information during processing program execution on the main storage device, not writing to job control information files and job control information backup files, and not requiring program checkpoints, etc. In preparation for system downtime, which generally occurs rarely, job steps can be re-executed without wasting much computer resources during normal operation.

〔実施例〕〔Example〕

本発明の実施例を図面を参照しながら説明する。 Embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のジョブステップリスタート方法を適用
したジョブステップ処理過程およびリスタート処理過程
の実施例における制御およびデータの流れを示すブロッ
ク図である。図中、「←」は制御の流れ、「伽」はデー
タの流れを示す。
FIG. 1 is a block diagram showing control and data flow in an embodiment of a job step processing process and a restart processing process to which the job step restart method of the present invention is applied. In the figure, "←" indicates the flow of control, and "伽" indicates the flow of data.

本実施例におけるジョブステップ処理過程は、イニシエ
ート処理部101、処理プログラム部102およびター
ミネート処理部103から構成されている。また、ジョ
ブステップ処理過程中に使用される二次記憶装置上のフ
ァイルとして、ジョブを記述するジョブ制御言語を格納
しているジョブ制御言語ファイル104、二次記憶装置
上の第1の領域に格納されたジョブ制御情報であるジョ
ブ制御情報ファイル+05および二次記憶装置上の第2
の領域に格納されたジョブ制御情報であるジョブ制御情
報バックアップファイル106が各々のジョブ毎に存在
している。ここで、ジョブ制御言語ファイル104およ
びジョブ制御情報ファイル105はジョブステップリス
タート処理を行っているシステムに一般的に見られるも
のと同種のファイルである。
The job step processing process in this embodiment includes an initiation processing section 101, a processing program section 102, and a termination processing section 103. In addition, as a file on the secondary storage device used during the job step processing process, a job control language file 104 that stores the job control language that describes the job is stored in the first area on the secondary storage device. The job control information file +05, which is the job control information that was created, and the second job control information file on the secondary storage
A job control information backup file 106, which is job control information stored in an area, exists for each job. Here, the job control language file 104 and the job control information file 105 are the same type of files that are generally found in systems that perform job step restart processing.

イニシエート処理部101では、ジョブステップのイニ
シエート処理の最初に、ジョブ制御言語ファイル104
に格納されているジョブ制御8語を読込み、処理すべき
ジョブステ・ンプを記述するジョブ制御言語に含まれる
情報と先行するジョブステップから引き継いだジョブ制
御情報とから、そのジョブステップに対応するジョブ制
御情報を作成して、ジョブ制御情報ファイル105を更
新する。その後、資源の割り当てが行われるが、これに
伴って更新されたジョブ制御情報も順次、ジョブ制御情
報ファイル+05に書込んでゆく。ジョブステップのイ
ニシエート処理が完了すると、ジョブ制御情報ファイル
+05の内容からジョブ制御テーブル107が作成され
、そのジョブステップの実行のために確保された主記憶
装置1−の−領域に格納された後、処理プログラム部1
02に制御が渡される。
The initiation processing unit 101 executes the job control language file 104 at the beginning of the job step initiation processing.
The job control language corresponding to the job step is read from the information contained in the job control language that describes the job step to be processed and the job control information inherited from the preceding job step. Create information and update the job control information file 105. Thereafter, resource allocation is performed, and the updated job control information is also sequentially written to the job control information file +05. When the job step initiation process is completed, the job control table 107 is created from the contents of the job control information file +05, and is stored in the - area of the main storage device 1- reserved for the execution of the job step. Processing program section 1
Control is passed to 02.

処理プログラム部102では、ジョブ制御テーブル+0
7を参照して、実行すべき処理プログラム108を決定
し、確保された主記憶装置上の領域にロードして、制御
を渡す。処理プログラム108が使用するジョブ制御マ
クロ命令やファイル制御マクロ命令等によって動的に資
源の割り当てもしくは解放が行われ、ジョブ制御情報が
更新されることがある。この場合の変更は、ジョブ制御
テーブル107に対してのみ実施され、ジョブ制御情報
ファイル105の内容は変更されない。処理プログラム
10日の実行が完rすると、ターミネート処理1、1 部103に制御が渡される。
In the processing program section 102, job control table +0
7, the processing program 108 to be executed is determined, loaded into the secured area on the main storage device, and control is transferred. Resources may be dynamically allocated or released by job control macro instructions, file control macro instructions, etc. used by the processing program 108, and job control information may be updated. In this case, changes are made only to the job control table 107, and the contents of the job control information file 105 are not changed. When the execution of the processing program for 10 days is completed, control is passed to the termination processing 1, 1 unit 103.

ターミネート処理部103では、従来のシステムに一般
に見られる通常のジョブステップのターミネート処理の
後に、ジョブ制御言語によって指定された各種資源の後
処理を行うために、処理プログラム108によって更新
されたジョブ制御テーブル107の内容を基にして、そ
のジョブステップ完了時点のジョブ制御情報を作成する
。このジョブ制御情報を後続のジョブステップに引き継
ぐために、作成されたジョブ制御情報を使ってジョブ制
御情報ファイル105を更新する。その後、ジョブ制御
情報ファイル105の内容をジョブ制御情報バックアッ
プファイル106に複写する。この複写の完了を待ち合
わせた後に、後続のジョブステップの処理を行うために
、イニシエート処理部101に制御が渡yれる。
The termination processing unit 103 executes the job control table updated by the processing program 108 in order to perform post-processing of various resources specified by the job control language after normal job step termination processing commonly found in conventional systems. Based on the contents of 107, job control information at the time of completion of that job step is created. In order to carry over this job control information to subsequent job steps, the job control information file 105 is updated using the created job control information. Thereafter, the contents of the job control information file 105 are copied to the job control information backup file 106. After waiting for the completion of this copying, control is passed to the initiation processing unit 101 in order to process the subsequent job step.

さらに第1図を参照すると、本実施例におけるリスター
ト処理過程は、システムダウン発生後のジョブステップ
の再実行を行ラリスタート処理部109と、ジョブ制御
言語ファイル104、ジョブ制御2 御情報ファイル+05およびジョブ制御情報バックアッ
プファイル1(1θとから構成される。
Further, referring to FIG. 1, the restart processing process in this embodiment involves re-execution of a job step after a system down occurs using a restart processing unit 109, a job control language file 104, a job control 2 control information file +05 and job control information backup file 1 (1θ).

リスタート処理部109では、システムダウン発生時に
実行中であったジョブのジョブ制御言語ファイル+04
を基に、ジョブ制御情報バックアップファイル10Bを
読込み、そのジョブに関して、最後に実行完了したジョ
ブステップのジョブ制御情報をジョブ制御情報ファイル
105に復元することにより、ジョブステップの再実行
を行う。
The restart processing unit 109 uses the job control language file +04 of the job that was being executed when the system went down.
The job step is re-executed by reading the job control information backup file 10B and restoring the job control information of the last completed job step to the job control information file 105 based on the job.

以下に、第1図の実施例における、イニシエート処理部
101.ターミネート処理部103およびリスタート処
理部108の動作をさらに詳細に説明する。
The following describes the initiation processing unit 101 in the embodiment shown in FIG. The operations of the termination processing section 103 and the restart processing section 108 will be explained in more detail.

第2図はイニシエート処理部101の動作を示す流れ図
である。ただし、第2図では、本発明に関連する部分を
中心に示しており、従来のシステムに一般に見られるイ
ニシエート処理の部分の詳細は示していない。第2図を
参照すると、イニシエート処理部101では、まず最初
に、処理すべきジョブのジョブ制御言語ファイル104
を読込み、処理対象となるジョブステップに関する情報
と、そのジョブステップを記述するジョブ制御言語を得
る(ステップ201)。処理対象となるジョブステップ
が、そのジョブの最初のジョブステップか否かを判定し
くステップ202) 、最初のジョブステップであれば
、ジョブ制御情報ファイル105およびジョブ制御情報
バックアップファイル10Bのための領域を二次記憶装
置上に確保し、各々の領域を初期設定した後、各々の領
域に対するポインタをジョブ制御言語ファイル104に
書込む(ステップ203)。最初のジョブステップでな
ければ、ジョブ制御情報ファイル105は既に存在する
ので、ジョブ制御言語ファイル104から読込んだ情報
に含まれるジョブ制御情報ファイル105に対するポイ
ンタを使用してジョブ制御情報ファイル105を読込む
(ステップ204)。ステップ203またはステップ2
04の終了後、ジョブ制御情報ファイル105を読込ん
だ場合はその内容と、ジョブ制御言語ファイル104か
ら読込んだそのジョブステップを記述するジョブ制御言
語とを基にして A ジョブ制御情報を作成する(ステップ205)。この場
合、ジョブ制御情報ファイル105から読込んだ内容は
先行するジョブステップから引き継いだ資源等の情報を
意味している。また、ジョブ制御言語を解釈して得られ
る内容は、そのジョブステップで新たに必要としている
資源の種別、所在および使用後の後処理等の情報を意味
している。
FIG. 2 is a flowchart showing the operation of the initiation processing section 101. However, FIG. 2 mainly shows the parts related to the present invention, and does not show the details of the initiation processing part generally seen in conventional systems. Referring to FIG. 2, the initiation processing unit 101 first reads the job control language file 104 of the job to be processed.
is read to obtain information regarding a job step to be processed and a job control language that describes the job step (step 201). It is determined whether the job step to be processed is the first job step of the job (step 202), and if it is the first job step, an area for the job control information file 105 and the job control information backup file 10B is saved. After securing the area on the secondary storage device and initializing each area, pointers for each area are written in the job control language file 104 (step 203). If it is not the first job step, the job control information file 105 already exists, so the job control information file 105 is read using the pointer to the job control information file 105 contained in the information read from the job control language file 104. (step 204). Step 203 or Step 2
04, if the job control information file 105 is read, based on its contents and the job control language that describes the job step read from the job control language file 104, A. Create job control information. (Step 205). In this case, the content read from the job control information file 105 means information such as resources inherited from the preceding job step. Furthermore, the content obtained by interpreting the job control language means information such as the type and location of resources newly required in the job step, and post-processing after use.

次に、このようにして作成された資源割り当て処理開始
時点のジョブ制御情報を使用して、ジョブ制御情報ファ
イル105を更新する(ステップ206)。その後、従
来のシステムに一般に見られるイニシエート処理を行う
(ステップ207)。このイニシエート処理の過程では
、ジョブ制御情報ファイル105に書込まれたジョブ制
御情報によって示される必要資源および割り当て済み資
源に関する情報を参照して、そのジョブステップが必要
とする各種資源の割り当てが試みられ、割り当てに成功
すれば、その旨の情報をジョブ制御情報ファイル105
に書き戻す。1−記の処理を繰り返して、最終的に全て
の必要資源の割り当てが終了すると、ジョブ制御情報フ
ァイル105には、そのジョブステップが必要とする全
ての資源の割り当て状態を示すジョブ制御情報、すなわ
ちジョブステップ実行開始時点のジョブ制御情報が作成
されていることになる。これらのイニシエート処理、の
過程の最後に、そのジョブステップの実行のために主記
憶装置トの領域が確保される。最後に、ジョブ制御情報
ファイル105から、処理プログラム部102の実行に
必要なジョブ制御情報を読込み、−[−記の主記憶装置
−Lの一領域にジョブ制御テーブル107を作成する(
ステップ208)。
Next, the job control information file 105 is updated using the job control information created in this way at the time of starting the resource allocation process (step 206). Thereafter, an initiation process commonly found in conventional systems is performed (step 207). In the process of this initiation process, allocation of various resources required by the job step is attempted by referring to information regarding required resources and allocated resources indicated by job control information written in the job control information file 105. , if the allocation is successful, information to that effect is stored in the job control information file 105.
write back to. When all the necessary resources are finally allocated by repeating the process 1-1, the job control information file 105 contains job control information indicating the allocation state of all the resources required by the job step, i.e. This means that the job control information at the time when job step execution starts has been created. At the end of these initiation processes, an area of main storage is reserved for execution of the job step. Finally, the job control information necessary for the execution of the processing program section 102 is read from the job control information file 105, and the job control table 107 is created in an area of the main storage device -L in -[-.
Step 208).

第3図はターミネート処理部103の動作を示す波れ図
である。ただし、第3図では、本発明に関連する部分を
中心に示しており、従来のシステムに一般に見られるタ
ーミネート処理の部分の詳細は示していない。第3図を
参照すると、ターミネート処理部103では、まず最初
に、ジョブ制御情報ファイル105を読込み、ジョブス
テップ実行開始時点のジョブ制御情報を得る(ステップ
301)。この情報とジョブ制御テーブル10?の内容
とを比較することにより、課金/統計用のデータを得る
ことができる。その後、従来のシステムに一般に見られ
るターミネート処理を行う(ステ、ンブ302)。この
ターミネート処理の過程ではジョブ制御テーブル107
−1=のジョブ制御情報によって示される使用後の資源
の後処理に関する情報を参照して、後続のジョブステッ
プに引き継ぐ資源はそのまま割り当て状態にしておき、
後続のジョブステップに引き継がない資源についてその
解放処理を行う。」二記の処理を繰り返して、最終的に
全ての資源の後処理が終了すると、ジョブ制御テーブル
1071−には、後続のジョブステップに引き継ぐべき
資源の割り当て状態を示すジョブ制御情報が作成されて
いることになる。そこで、このようにして作成されたジ
ョブ制御情報を使用してジョブ制御情報ファイル105
を更新する(ステップ303)。その後、処理中のジョ
ブステップが、そのジョブの最終ジョブステップである
か否かを判定しくステップ304) 、最終ジョブステ
ップでなければ、ジョブ制御言語ファイル104の中の
そのジョブステップに対応する部分にジョブステップリ
スタート禁止表示を書込む(ステップ305)。ステッ
プ305の完了を待ち合わせた後、ジョブ制御情報ファ
イル105の内容をジョブ制御情報バックアップファイ
ル10Bに複写する(ステップ306)。ステップ30
6の完了を待ち合わせた後、ステップ305で書込んだ
ジョブステップリスタート禁止表示を消去した後(ステ
ップ307)、ターミネート処理部の処理を終了する。
FIG. 3 is a wave diagram showing the operation of the termination processing section 103. However, FIG. 3 mainly shows the parts related to the present invention, and does not show the details of the termination process commonly seen in conventional systems. Referring to FIG. 3, the termination processing unit 103 first reads the job control information file 105 to obtain job control information at the time when job step execution starts (step 301). This information and job control table 10? Data for billing/statistics can be obtained by comparing the contents of the data. Thereafter, termination processing commonly found in conventional systems is performed (step 302). In the process of this termination process, the job control table 107
Referring to the information regarding the post-processing of resources after use indicated by the job control information of -1=, the resources to be carried over to the subsequent job step are left in the allocated state,
Performs release processing for resources that will not be inherited by subsequent job steps. 2. When the post-processing of all resources is finally completed by repeating the process described in 2 above, job control information is created in the job control table 1071-, indicating the allocation state of resources to be carried over to the subsequent job step. There will be. Therefore, the job control information file 105 is created using the job control information created in this way.
is updated (step 303). Thereafter, it is determined whether the job step being processed is the final job step of the job (step 304), and if it is not the final job step, the part corresponding to the job step in the job control language file 104 is A job step restart prohibition display is written (step 305). After waiting for the completion of step 305, the contents of the job control information file 105 are copied to the job control information backup file 10B (step 306). Step 30
After waiting for the completion of step 6, the job step restart prohibition display written in step 305 is erased (step 307), and the processing of the termination processing section is ended.

ステップ304の判定で、最終ジョブステップであれば
、そのジョブの使用したジョブ制御情報バックアップフ
ァイル10Bおよびジョブ制御情報ファイル105のた
めの領域を解放しくステップ308) 、ターミネート
処理部の処理を終了する。
If the determination in step 304 is that it is the final job step, the area for the job control information backup file 10B and the job control information file 105 used by the job is released (step 308), and the processing of the termination processing section is ended.

第4図はリスタート処理部108の動作を示す流れ図で
ある。ただし、第4図では本発明に関連する部分を中心
に示しており、従来のシステムに一般に見られるリスタ
ート処理の部分の詳細は示していない。ジョブステップ
リスタートを行っているシステムでは、一般に、システ
ムダウン発生時に実行中であったジョブの識別情報と、
そのジョブのジョブ制御言語ファイル+04の所在を示
すポインタとがシステムダウンを越えて保持5れ、ジョ
ブステップリスタート処理は、それらを参照して行われ
る。第4図を参照すると、リスタート処理部109では
、まず最初に、1−記のシステムダウン発生時に実行中
であったジョブの識別情報を参照してリスタート処理の
対象となるジョブを選択する(ステップ401)。さら
に、そのジョブのジョブ制御8語ファイル104の所在
を示すポインタを参照して、ジョブ制御言J^ファイル
+04を読込む(ステップ402)。読込んだ情報の中
に、第3図のステップ305で書込んだジョブステップ
リスタート禁11−表示が存在するか否かを判定しくス
テップ403) 、存在しなければ、ステップ402で
読込んだ情報から、ジョブ制御情報ファイル105およ
びジョブ制御情報バックアップファイルl0ffに対す
るポインタを得て、ジョブ制御情報バックアップファイ
ル106の内容をジョブ制御情報ファイル105に複写
して、システムダウン発生時に実行中であったジョブス
テップが先行するジョブステップから引き継いだ資源等
の情報を復元する(ステラ7’ 404)。その後、従
来のシステムに一般に見られるジョブステップリスター
ト処理を行う(ステップ405)。ジョブステップリス
タート処理の過程では、そのジョブのジョブ制御を語フ
ァイル104と復元されたジョブ制御情報ファイル10
5の内容を使用して、通常のイニシエート処理と殆ど同
様にそのジョブステップを再実行することができる。ス
テップ403の士薯定でジョブステップリスタート禁止
表示が存在する場合は、ジョブ制御情報バックアップフ
ァイル106の内容が不確定であるので、ジョブステッ
プリスタート処理は行わず、ジョブ制御言語ファイル+
04を使用してそのジョブ全体を再実行するジョブリス
タート処理を行う(ステップ408)。■−記の処理を
繰り返して、最終的にリスタート処理の対象となる全て
のジョブの処理が終了すると、リスタート処理部109
の処理が完了する。
FIG. 4 is a flow chart showing the operation of the restart processing section 108. However, FIG. 4 mainly shows the parts related to the present invention, and does not show the details of the restart processing part commonly seen in conventional systems. In a system that performs job step restart, the identification information of the job that was being executed when the system went down,
A pointer indicating the location of the job control language file +04 of the job is retained even after the system is down, and job step restart processing is performed with reference to them. Referring to FIG. 4, the restart processing unit 109 first selects a job to be restarted by referring to the identification information of the job that was being executed when the system went down as described in 1- above. (Step 401). Furthermore, referring to the pointer indicating the location of the job control 8-word file 104 of the job, the job control word J^ file +04 is read (step 402). It is determined whether or not the job step restart prohibition 11-display written in step 305 of FIG. Obtain pointers to the job control information file 105 and job control information backup file l0ff from the information, copy the contents of the job control information backup file 106 to the job control information file 105, and copy the job that was being executed when the system went down. The step restores information such as resources inherited from the preceding job step (Stella 7' 404). Thereafter, job step restart processing commonly found in conventional systems is performed (step 405). In the process of job step restart processing, the job control of the job is transferred to the word file 104 and the restored job control information file 10.
5 can be used to rerun the job step in much the same way as normal initiation processing. If the job step restart prohibition display exists in the test settings in step 403, the contents of the job control information backup file 106 are uncertain, so job step restart processing is not performed, and job step restart processing is not performed.
04 to re-execute the entire job (step 408). (2) Repeat the process described above, and when all the jobs targeted for restart processing are finally finished, the restart processing unit 109
processing is completed.

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

以l−説明したように本発明は、ジョブステップの再実
行のために必要とされるジョブ制御情報を格納17てい
るジョブ制御情報バックアップファイルに対する占込み
を、ターミネート処理中の1回、すなわち、ジョブステ
ップ当たり1回に減少させることにより、システムダウ
ンが発生した時に、二次記憶装置上のジョブ制御情報が
不確定であるためにジョブステップの再実行を行うこと
ができないという状態になる可能性を大幅に低下させ、
ごらに、処理プログラム実行中のジョブ制御情報へのア
クセスを全て主記憶装置上で行い、ジョブ制御情報ファ
イルおよびジョブ制御情報バックアップファイルに対す
る書込みを行わないことと、プログラムチェックポイン
ト等を必要としないこととにより、一般に椙にしか発生
しないシステムダウンに備えて、通常連用時に多くの計
算機資源を浪費することなくジョブステップの再実行が
可能になる効果がある。
As described below, the present invention allows the job control information backup file storing 17 job control information required for re-execution of a job step to be occupied once during termination processing, that is, By reducing the number of times per job step to once, there is a possibility that when a system failure occurs, the job step cannot be re-executed because the job control information on the secondary storage device is uncertain. significantly lowers
For example, all access to job control information during processing program execution is performed on the main memory, no writing is done to the job control information file or job control information backup file, and program checkpoints are not required. This has the effect of making it possible to re-execute job steps without wasting a lot of computer resources during normal continuous use, in preparation for a system failure that generally occurs only in the morning.

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

第1図は1本発明のジョブステップリスタート力U:の
一実施例におけるジョブステ・ンプ処理過程およびリス
タート処理過程の制御およびデータの流れを示すブロッ
ク図、第2図は、第1図の実施例におけるイニシエート
処理部101の動作を示す流れ図、第3図は、第1図の
実施例におけるターミネート処理部103の動作を示す
流れ図、第4図は、第1図の実施例におけるリスタート
処理部1013の動作を示す流れ図である。 +01・・・イニシエート処理部、 102・・・処理プログラム部、 103・・・ターミネート処理部、 104・・・ジョブ制御言語ファイル、105・・・ジ
ョブ制御情報ファイル、108・・・ジョブ制御情報バ
ックアップファイル、107・・・ジョブ制御テーブル
、 +08・・・処理プログラム、 109・・・リスタート処理部。
FIG. 1 is a block diagram showing the control and data flow of job step processing and restart processing in one embodiment of the job step restart force U of the present invention, and FIG. FIG. 3 is a flow chart showing the operation of the initiation processing section 101 in the embodiment of FIG. 1. FIG. 4 is a flow chart showing the operation of the termination processing section 103 in the embodiment of FIG. 1. 10 is a flowchart showing the operation of the section 1013. +01... Initiate processing section, 102... Processing program section, 103... Termination processing section, 104... Job control language file, 105... Job control information file, 108... Job control information backup File, 107...Job control table, +08...Processing program, 109...Restart processing unit.

Claims (1)

【特許請求の範囲】 ジョブ処理過程中に更新されるジョブ制御情報を二次記
憶装置上に記憶し、システムダウンが発生した時に、前
記二次記憶装置上に記憶されたジョブ制御情報を用いて
ジョブステップの再実行を行うジョブステップリスター
ト方法において、 ジョブステップのイニシエート処理中に更新されるジョ
ブ制御情報を二次記憶装置上の第1の記憶領域に記憶す
るステップと、 イニシエート処理完了時に、前記二次記憶装置上の第1
の記憶領域内のジョブ制御情報を、該ジョブステップに
対して割り当てられた主記憶装置上の領域に格納するス
テップと、 該ジョブステップの実行時およびターミネート処理中に
は、前記主記憶装置上の領域に格納されたジョブ制御情
報を使用し、ターミネート処理完了時に、該ジョブステ
ップの実行時およびターミネート処理中に変更された前
記主記憶装置上のジョブ制御情報を前記二次記憶装置上
の第1の記憶領域に記憶するステップと、 その後、前記二次記憶装置上の第1の記憶領域の内容を
二次記憶装置上の第2の記憶領域に複写するステップと
を含み、 システムダウン後のリスタート処理時には、前記二次記
憶装置上の第2の記憶領域の内容を用いることを特徴と
するジョブステップリスタート方法。
[Claims] Job control information that is updated during the job processing process is stored on a secondary storage device, and when a system down occurs, the job control information stored on the secondary storage device is used. A job step restart method for re-executing a job step includes: storing job control information updated during job step initiation processing in a first storage area on a secondary storage device; and upon completion of the initiation processing; the first on the secondary storage device;
storing the job control information in the storage area of the main storage device in an area on the main storage device allocated to the job step; Using the job control information stored in the area, when the termination process is completed, the job control information on the main storage device that was changed during execution of the job step and during the termination process is stored in the first memory area on the secondary storage device. and then copying the contents of the first storage area on the secondary storage device to a second storage area on the secondary storage device, A job step restart method, characterized in that, during start processing, contents of a second storage area on the secondary storage device are used.
JP60221374A 1985-10-03 1985-10-03 Job step restarting method Pending JPS6279531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60221374A JPS6279531A (en) 1985-10-03 1985-10-03 Job step restarting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60221374A JPS6279531A (en) 1985-10-03 1985-10-03 Job step restarting method

Publications (1)

Publication Number Publication Date
JPS6279531A true JPS6279531A (en) 1987-04-11

Family

ID=16765790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60221374A Pending JPS6279531A (en) 1985-10-03 1985-10-03 Job step restarting method

Country Status (1)

Country Link
JP (1) JPS6279531A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654138B1 (en) 1998-04-22 2003-11-25 Canon Kabushiki Kaisha Communication apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654138B1 (en) 1998-04-22 2003-11-25 Canon Kabushiki Kaisha Communication apparatus

Similar Documents

Publication Publication Date Title
US6205558B1 (en) Recovery of file systems after modification failure
JPH03278126A (en) Computer system starting system
JPH0713813B2 (en) Data access method and data processing system
JP3052908B2 (en) Transaction program parallel execution method and transaction program parallel execution method
JPH08328933A (en) File access control system for parallel processing system
CN111722800A (en) Method for realizing ROW snapshot of distributed storage system and related components
JPS6279531A (en) Job step restarting method
JPH0773078A (en) File copy shift system
CN111143277B (en) Data processing method and device and electronic equipment
JPH09146782A (en) Method for handling occurance of abnormality in inter-job data succession
JPH10333961A (en) Data base recovery system and computer-readable recording medium recording recovery program
JP3778720B2 (en) Software update method
JPH01259432A (en) Reexecution system for batch job
JP3022011B2 (en) Data backup system
JPH0769847B2 (en) Job control method during rerun
JPS6316774B2 (en)
JPH0465733A (en) System for forming backup file
JPH06214848A (en) Data base managing system
JP3110391B2 (en) Program re-execution method
JPH04175830A (en) Rerun control system
JPH10143412A (en) Data base managing system
JPS63214848A (en) Generation managing system for file
JPH05143422A (en) Updated journal managing system
JPH01277943A (en) Recovery system for dead lock
JPH01121932A (en) Program loading system