HP3000-L Archives

November 1998, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Dr. Ferenc Nagy" <[log in to unmask]>
Reply To:
Dr. Ferenc Nagy
Date:
Thu, 26 Nov 1998 08:40:14 +0100
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (57 lines)
>
> Without going into too much detail ...
> I would like to specify in the JWEEKDAY job that
> JOB1 should terminate before JOB2 be allowed to start
> and son on for JOB3 and JOB4 etc.
>
Seamus,

I remomend you the following method:

Insert a program as step #1 in your JOB2, JOB3 so on which is waiting for
the given state of job 1. In can be solved by the JOBINFO instrinsic:
you can wait either for starting, finishing of a whole job or you can
continue JOB2 with step#2 when JOB1 has finished its step 1.1 entered in
his step  1.2.


------------------------------
!JOB JOB1        !JOB JOB2
!RUN PGM1.JOB1   !Wait for "RUN PGM2.JOB2" in JOB1 or "JOB1 not found"
!RUN PGM2.JOB1   !RUN PGM1.JOB2
!EOJ             !EOJ
------------------------------

I have two Pascal/V programs>
WAITJ waits for the completion of a job,
WJOBS waits for the start of a job.
You can download them from (because some list members hate the
attachments) and modify according your purposes.

Please send me back your modified version, and publish it to the CSL
mentioning my name as author, too.

http://alpha0.iki.kfki.hu/~nagyf/waitj.pas
                                    waitj.mpe
                                    wjobs.pas
                                    wjobs.mpe

in source code and as executable MPE/V programs.

                                        Regards



                                                       Frank

  |\    /~ ~~|~~~ Family : NAGY; first name : FERENC; title : Ph. D.
  | \   |    |    Institute of Isotope and Surface Chemistry
  |  \  |   -+-   H-1121 BUDAPEST Konkoly-Thege M. ut 29, (1525 Bp. POB 77)
  |   \ |    |    [log in to unmask]  (36-1)-395-9123 Fax: ~395-9002
  |    \|    |    http://alpha0.iki.kfki.hu/~nagyf/
`-'     '  `-'    Home: H-1102 BUDAPEST Holgy u. 48. I. 8. (36-1)-262-1198.
You need three virtues in the life:
1. strength - to change the things which are changeable,
2. patience - to endure the things which are unchangeable,
3. wisdom   - to distinguish the above two kinds of things.

ATOM RSS1 RSS2