JPH04287232A - Exclusive job controller - Google Patents

Exclusive job controller

Info

Publication number
JPH04287232A
JPH04287232A JP5200891A JP5200891A JPH04287232A JP H04287232 A JPH04287232 A JP H04287232A JP 5200891 A JP5200891 A JP 5200891A JP 5200891 A JP5200891 A JP 5200891A JP H04287232 A JPH04287232 A JP H04287232A
Authority
JP
Japan
Prior art keywords
job
exclusive control
jobs
group
flag
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
JP5200891A
Other languages
Japanese (ja)
Inventor
Hitoshi Masuda
仁 増田
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 Software Kansai Ltd
Original Assignee
NEC Software Kansai 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 NEC Software Kansai Ltd filed Critical NEC Software Kansai Ltd
Priority to JP5200891A priority Critical patent/JPH04287232A/en
Publication of JPH04287232A publication Critical patent/JPH04287232A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily instruct the execution of a job by dividing plural jobs into groups of jobs which are inconvenient to be executed simultaneously and making the groups to queue up for the starting of the processes of other groups by using an exclusive control management table. CONSTITUTION:An exclusive control management file 10 is an indexed sequential file in which one group is made to correspond to one group and constituted of an index key section 11 and executing state managing section 12. When the user of a computer system actuates a certain job, the job sets an execution flag in the section 12 belonging to the group of the job in the file 12 and starts the process. In case another job is actuated while the process is carried on, the another job similarly tries to set the flag, but, since the flag is already set by the preceding job, starting of the process is set in a queue and restarted after the preceding job is completed and the flag is canceled. Therefore, it is not required by the user of the computer system to monitor the job executing state of the system and can smoothly operate the system without worrying about a possibility of destroying the file data by an erroneous instruction.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は計算機システムにおける
ジョブの排他制御に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to exclusive control of jobs in a computer system.

【0002】0002

【従来の技術】従来、ジョブの排他制御に際しては、ジ
ョブで取り扱う複数のファイルのデータ内容に完全な整
合性が保全されている必要がある。本来、その時点でジ
ョブが実行されては不都合な場合、計算機システムの利
用者が計算機システム全体のジョブの実行状況を監視し
、その時点でジョブが実行されることによる支障が無い
か否かの判断を行った上でジョブの実行を指示する必要
がある。特にリモート端末の利用者の場合には計算機シ
ステム全体のジョブの実行状況を把握することが困難で
あった。
2. Description of the Related Art Conventionally, when performing exclusive control of a job, it is necessary to maintain complete consistency in the data contents of a plurality of files handled by the job. Normally, if it is inconvenient for the job to be executed at that point, the user of the computer system should monitor the job execution status of the entire computer system and check whether or not there will be any problems due to the job being executed at that point. It is necessary to instruct the execution of the job after making a judgment. In particular, it is difficult for users of remote terminals to grasp the job execution status of the entire computer system.

【0003】0003

【発明が解決しようとする課題】従来のジョブ排他制御
では、計算機システムの利用者が計算機システム全体の
ジョブの実行状況を把握しておき、適時にジョブの実行
を指示する必要があるので、利用者の負担が大きかった
[Problem to be Solved by the Invention] In conventional job exclusive control, the user of the computer system must grasp the job execution status of the entire computer system and instruct the execution of jobs in a timely manner. This placed a heavy burden on people.

【0004】また、リモート端末の利用者においては計
算機システム全体のジョブの実行状況を把握することが
困難であるので、その時点で実行されては不都合なジョ
ブの実行指示が発生する可能性が高く、ファイルデータ
の破壊やファイルデータの破壊に伴う修復等による計算
機システムの円滑な運用の妨げとなる危険性があった。
[0004] Furthermore, since it is difficult for users of remote terminals to grasp the job execution status of the entire computer system, there is a high possibility that instructions to execute jobs that would be inconvenient if executed at that time are generated. , there was a risk that the smooth operation of the computer system would be hindered due to file data destruction or repair due to file data destruction.

【0005】[0005]

【課題を解決するための手段】本発明は排他制御管理フ
ァイルにジョブの実行状況の情報を持たせて計算機シス
テムの利用者が常時意識することなくジョブを実行指示
できるようにし、計算機システム全体のジョブの実行状
況を監視する負担を無くし、かつ計算機システムを円滑
に運用することを目的としている。
[Means for Solving the Problems] The present invention provides information on the execution status of jobs in an exclusive control management file so that the user of a computer system can instruct the execution of jobs without being aware of it at all times, thereby improving the overall performance of the computer system. The purpose is to eliminate the burden of monitoring job execution status and to operate the computer system smoothly.

【0006】すなわち、本発明のジョブ排他制御装置は
、複数のジョブを同時に実行することが不都合なジョブ
毎にあらかじめグループ分けし、ジョブが投入され処理
を開始する直前に排他制御管理ファイル上の自グループ
の管理エリア処理開始の旨を登録し、前記処理が完結し
た時点で前記管理エリアの登録を解除し、前記処理を実
行中に自グループの他のジョブの処理開始を待ち合せる
ようにして構成される。
That is, the job exclusive control device of the present invention groups jobs in advance for which it is inconvenient to execute multiple jobs at the same time, and immediately before the job is submitted and starts processing, the job exclusive control apparatus The configuration is configured so that the start of processing in the management area of the group is registered, the registration of the management area is canceled when the processing is completed, and the processing of other jobs in the own group is waited for while the processing is being executed. be done.

【0007】また、本発明のジョブ排他制御装置におい
て、排他制御管理ファイルは同時に実行することが不都
合なジョブのグループを示す索引キー部と,前記索引キ
ー部に該当するジョブを実行中か否かを示す実行状況管
理部とを有する。
Further, in the job exclusive control device of the present invention, the exclusive control management file includes an index key section indicating a group of jobs that are inconvenient to execute simultaneously, and whether or not a job corresponding to the index key section is being executed. and an execution status management section that shows the execution status.

【0008】[0008]

【実施例】次に、本発明について図面を参照し詳細に説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained in detail with reference to the drawings.

【0009】図1は排他制御管理ファイルの構造を示す
説明図である。排他制御管理ファイル10は索引付順編
成(Indexed  Sequential)により
成り、1つのレコードは1つのグループに対応し、それ
ぞれ索引キー部11および実行状況管理部12から構成
される。索引キー部11は索引付順編成の索引キーとな
り、排他制御のチェックを行うグループ名と一致する。 また、実行状況管理部12は索引キー部11の索引キー
に該当するグループ内のジョブが実行中であるか否かを
表わすフラグである。
FIG. 1 is an explanatory diagram showing the structure of an exclusive control management file. The exclusive control management file 10 is organized in an indexed sequential manner, and one record corresponds to one group, each of which is composed of an index key section 11 and an execution status management section 12. The index key section 11 serves as an index key for indexing sequential organization, and matches the group name for which exclusive control is checked. Further, the execution status management section 12 is a flag indicating whether or not a job in the group corresponding to the index key of the index key section 11 is being executed.

【0010】次に、ジョブの排他制御方式について図3
を参照して説明する。ジョブn1とジョブn2は同時に
実行されては不都合なジョブであり、上記のグループ分
けでは同一グループに属する。
Next, FIG. 3 shows the exclusive control method for jobs.
Explain with reference to. Job n1 and job n2 are jobs that would be inconvenient if executed at the same time, and belong to the same group in the above grouping.

【0011】まず、ジョブn1に計算機システムの利用
者からの指示により起動がかかると、ジョブn1は排他
制御管理ファイルの所属グループの実行状況管理部に実
行中である旨のフラグを設定し、処理を開始する。次に
ジョブn2に起動がかかると、同様にフラグの設定を行
おうとするが既にジョブn1によってフラグが設定され
ているので、処理の開始は待ち合わされる。ジョブn1
は処理が完結した時点で排他制御管理ファイルのフラグ
を解除する。ジョブn2は排他制御管理ファイルのフラ
グが解除されたことにより再起動し、フラグの設定を行
い処理を開始する。
[0011] First, when job n1 is started in response to an instruction from a user of the computer system, job n1 sets a flag indicating that it is being executed in the execution status management section of the group to which it belongs in the exclusive control management file, and starts processing. Start. Next, when job n2 is started, it tries to set the flag in the same way, but since the flag has already been set by job n1, the start of processing is postponed. job n1
releases the exclusive control management file flag when the processing is completed. Job n2 is restarted because the flag in the exclusive control management file is cleared, sets the flag, and starts processing.

【0012】図2は上記の動作を示す流れ図である。FIG. 2 is a flowchart showing the above operation.

【0013】まず、ステップ21は計算機システムの利
用者がジョブの実行を指示し起動させる。次に起動され
たジョブの実行可否を判断するために、ステップ22は
排他制御管理ファイルのフラグを検索し、他のジョブが
実行中か否かのチェックを行う。このチェックの結果が
否であれば、排他制御管理ファイルにフラグを設定し(
ステップ23)、処理を開始する(ステップ24)。 処理が完了すると、排他制御管理ファイルのフラグを解
除して全ての処理を終了する(ステップ25)。
First, in step 21, the user of the computer system instructs and starts the execution of a job. Next, in order to determine whether or not the started job can be executed, step 22 searches the flag of the exclusive control management file and checks whether or not another job is being executed. If the result of this check is negative, set a flag in the exclusive control management file (
Step 23) and start processing (Step 24). When the processing is completed, the flag of the exclusive control management file is canceled and all processing is ended (step 25).

【0014】一方、上記チェックの結果、他のジョブが
実行中であれば、実行中であるジョブの処理の完了待ち
となり(ステップ26)、排他制御管理ファイルのフラ
グが解除された時点でジョブの処理を開始する。
On the other hand, as a result of the above check, if another job is being executed, the job waits for the processing of the currently executing job to be completed (step 26), and when the flag in the exclusive control management file is cleared, the job is Start processing.

【0015】なお、排他制御管理ファイルによって待ち
合わされるジョブは、ジョブで取り扱う複数ファイルの
データ内容において完全な整合性が保全されている必要
があり、同時に実行されては不都合なジョブである。す
なわち、上記のグループ分けにおいて同一グループに属
するジョブである。
[0015] It should be noted that the jobs that are queued by the exclusive control management file must maintain complete consistency in the data contents of the plurality of files handled by the job, and it is inconvenient for the jobs to be executed simultaneously. That is, these jobs belong to the same group in the above grouping.

【0016】[0016]

【発明の効果】以上説明したように本装置を利用するこ
とにより、計算機システムの利用者は計算機システム全
体のジョブ実行状況を監視する必要がない。したがって
常時意識することなく、ジョブの実行指示を行うことが
可能である。また、誤ってジョブの実行指示を行ったこ
とによるファイルデータの破壊の危険性が無くなり、計
算機システムの円滑な運用が可能となる。
[Effects of the Invention] By using the present apparatus as described above, the user of the computer system does not need to monitor the job execution status of the entire computer system. Therefore, it is possible to issue job execution instructions without being aware of it all the time. Furthermore, there is no risk of file data being destroyed due to incorrect job execution instructions, and the computer system can operate smoothly.

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

【図1】排他制御管理ファイルの構造を示す説明図[Figure 1] Explanatory diagram showing the structure of an exclusive control management file

【図
2】動作の手順を示す流れ図
[Figure 2] Flowchart showing operation steps

【図3】動作例を示す説明図[Figure 3] Explanatory diagram showing an example of operation

【符号の説明】[Explanation of symbols]

10    排他制御管理ファイル 11    索引キー部 12    実行状況管理部 21〜26    処理のステップ 10 Exclusive control management file 11 Index key section 12 Execution status management department 21-26 Processing steps

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  複数のジョブを同時に実行することが
不都合なジョブ毎にあらかじめグループ分けし、ジョブ
が投入され処理を開始する直前に排他制御管理ファイル
上の自グループの管理エリア処理開始の旨を登録し、前
記処理が完結した時点で前記管理エリアの登録を解除し
、前記処理を実行中に自グループの他のジョブの処理開
始を待ち合せることを特徴とするジョブ排他制御装置。
[Claim 1] Jobs for which it is inconvenient to execute multiple jobs at the same time are grouped in advance, and immediately before a job is submitted and processing is started, a message indicating the start of processing of the management area of the own group in the exclusive control management file is created. A job exclusive control device characterized in that the job exclusive control device registers a job, deregisters the management area when the processing is completed, and waits for the start of processing of another job in the own group while executing the processing.
【請求項2】  請求項1記載のジョブ排他制御装置に
おいて、排他制御管理ファイルは同時に実行することが
不都合なジョブのグループを示す索引キー部と,前記索
引キー部に該当するジョブを実行中か否かを示す実行状
況管理部とを有することを特徴とするジョブ排他制御装
置。
2. In the job exclusive control device according to claim 1, the exclusive control management file includes an index key section indicating a group of jobs that are inconvenient to execute simultaneously, and whether jobs corresponding to the index key section are being executed. 1. A job exclusive control device, comprising: an execution status management unit that indicates whether or not the job is executed.
JP5200891A 1991-03-18 1991-03-18 Exclusive job controller Pending JPH04287232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5200891A JPH04287232A (en) 1991-03-18 1991-03-18 Exclusive job controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5200891A JPH04287232A (en) 1991-03-18 1991-03-18 Exclusive job controller

Publications (1)

Publication Number Publication Date
JPH04287232A true JPH04287232A (en) 1992-10-12

Family

ID=12902796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5200891A Pending JPH04287232A (en) 1991-03-18 1991-03-18 Exclusive job controller

Country Status (1)

Country Link
JP (1) JPH04287232A (en)

Similar Documents

Publication Publication Date Title
US20030229653A1 (en) System and method for data backup
JPH04287232A (en) Exclusive job controller
JP2595833B2 (en) Remote maintenance device
JPH0778101A (en) Electronic file management device
JPH01259432A (en) Reexecution system for batch job
JPH1040123A (en) System and method for job management
JP2575761B2 (en) Job management method
JP2000148417A (en) Print processing method and device
JP2509936B2 (en) Output control device
JP2734568B2 (en) Job management controller
JPH0731723B2 (en) Document processing apparatus and document processing method
JPS62273872A (en) information processing equipment
JPH03225536A (en) Method and device for log data collection
JPH02127732A (en) Job control system
JP2555386B2 (en) Electronic computer system
JP3225516B2 (en) Document file print control device
JPH0283655A (en) Job schedule stopping system
JPH0533407B2 (en)
JPH03147149A (en) Update control system for data file
JPH04287113A (en) Printer output controller
JPH0236455A (en) Batch processing start control system
JPH1165914A (en) File transfer reception wait control system
JPH0752434B2 (en) Operation management method in time-sharing system
JPS63259741A (en) Automatic business file transferring device
JPS62117053A (en) Data processing system