Re: Number of pause seconds is out of range



Without a pause, how tight a loop will that be? Consume how much cpu?
jp

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:HP3000-L@xxxxxxxxxxxxx] On Behalf
Of Bob Comeau
Sent: Friday, 8 July 2005 10:10 PM
To: HP3000-L@xxxxxxxxxxxxx
Subject: Re: [HP3000-L] Number of pause seconds is out of range

I think a combination of both solutions will do the trick for your
requirement of "not only finished but finished successfully".

Pause using the JOB to wait for the job to finish,
then test for the presence of the 'success' file.

I don't believe a specific time pause is required after pausing for the job
to finish. If the job is finished and completed successfully, the file
should be there when you look for it afterward.

Bob Comeau
Sr. Systems Programmer Analyst
Crossley Carpet Mills Ltd.
(902)895-5491 ex 139


-----Original Message-----
From: HP-3000 Systems Discussion [mailto:HP3000-L@xxxxxxxxxxxxx]On
Behalf Of James English
Sent: July 7, 2005 6:29 PM
To: HP3000-L@xxxxxxxxxxxxx
Subject: Re: Number of pause seconds is out of range


Paul,

On the line with the PAUSE, I cleared the line after the "2". Also, I kept
the file as unnumbered. I'll see tonight if that works.

I could use the "pause job=!hplastjob", but I not only need to know that the
submitted job finished, but that it finished sucessfully. I create a file as
the very last step in the submitted job to indicate that it ran to EOJ. If
the submitted job aborts somewhere in the middle, the file wouldn't get
created and the WHILE loop would exit when more than 20 CPU seconds expire.

The while loop that I'm using comes directly from the ":HELP PAUSE EXAMPLE"
help text.

Thanks,

Jim.

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:HP3000-L@xxxxxxxxxxxxx] On Behalf
Of Paul H Christidis
Sent: Thursday, July 07, 2005 4:31 PM
To: HP3000-L@xxxxxxxxxxxxx
Subject: Re: [HP3000-L] Number of pause seconds is out of range


James,

The position of the "^" in the error message seems to be pointing well
beyond the specified pause interval of 2 seconds. Is it possible that
there is some 'stray' character at the far end of the record? Is the your
job stream file kept numbered and perhaps the record number is somehow
interfering?

If you indeed wish to wait until the submitted job finishes then perhaps
you should consider using the following form of the 'pause' command:
pause job=!hplastjob

Regards
Paul Christidis





I'm running a stream job that streams other jobs. The job waits until the
other stream jobs are finished before continuing. Here's a snippet of the
job that streams the other jobs:

=============================== BEGIN
=======================================
! STREAM BPIPOST.JOB
!
!comment -----------------------------------------------------------------
!comment Wait until the job is finished before continuing
!comment -----------------------------------------------------------------
! SETVAR START_CPU HPCPUSECS
! WHILE NOT FINFO("BPIPSTOK.JOB","EXISTS") AND &
! HPCPUSECS-START_CPU < 20 DO
! PAUSE 2
! ENDWHILE
! DELETEVAR START_CPU
=============================== END
=======================================

When the BPIPOST job finishes, it creates the file BPIPSTOK.JOB so that
the
WHILE loop will end. This process works pretty well. However,
occasionally,
I'll get the following errors:

=============================== BEGIN
=======================================
: STREAM BPIPOST.JOB
#J3612
:
:comment
-----------------------------------------------------------------
:comment Wait until the job is finished before continuing
:comment
-----------------------------------------------------------------
: SETVAR START_CPU HPCPUSECS
: WHILE NOT FINFO("BPIPSTOK.JOB","EXISTS") AND &
: HPCPUSECS-START_CPU < 20 DO
*** EXPRESSION TRUE
: PAUSE 2
: ENDWHILE

PAUSE 2
^
Number of pause seconds is out of range. (CIERR 9030)
Error executing commands in WHILE loop. (CIERR 10310)
REMAINDER OF JOB FLUSHED.
CPU sec. = 7. elapsed min. = 6. WED, JUL 6, 2005, 8:36 PM.
=============================== END
=======================================

I looked up the CIERR 9030 in the HP manuals and here's what it says:

9030 MESSAGE NUMBER OF PAUSE SECONDS IS OUT OF RANGE. (CIERR
9030)

CAUSE Evidently, you supplied the PAUSE command with a
negative value.

ACTION Reenter the command and supply a positive integer.

Obviously, the number of pause seconds I'm specifying is not negative.
Does
anyone know of another reason why this would happen? Could this error
occur
if the system is loaded down with running other jobs?

Thanks,

Jim.

---------------------------------
James English
Financial Systems Analyst
MIS Department
TB Wood's Incorporated
440 N Fifth Avenue
Chambersburg, PA 17201
Phone: (717) 264-7161 x2119
Fax: (717) 264-0890
jenglish@xxxxxxxxxxx
http://www.tbwoods.com
---------------------------------


This e-mail is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information. Any
review, dissemination, copying, printing, forwarding or other use of this
e-mail by persons or entities other than the addressee is prohibited. If
you have received this e-mail in error, please contact the sender
immediately and delete the material from your computer. Opinions,
conclusions and other information in this message that do not relate to
the official business of TB Woods Incorporated shall be understood as
neither given or endorsed by it.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


This e-mail is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information. Any
review, dissemination, copying, printing, forwarding or other use of this
e-mail by persons or entities other than the addressee is prohibited. If you
have received this e-mail in error, please contact the sender immediately
and delete the material from your computer. Opinions, conclusions and other
information in this message that do not relate to the official business of
TB Woods Incorporated shall be understood as neither given or endorsed by
it.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

.



Relevant Pages

  • Re: Number of pause seconds is out of range
    ... STREAM a job that does nothing but wait thirty seconds (PAUSE 30,) ... (CIERR 10310) ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Number of pause seconds is out of range
    ... beyond the specified pause interval of 2 seconds. ... I'm running a stream job that streams other jobs. ... (CIERR 10310) ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Number of pause seconds is out of range
    ... then test for the presence of the 'success' file. ... I don't believe a specific time pause is required after pausing for the job ... I'm running a stream job that streams other jobs. ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Number of pause seconds is out of range
    ... STREAM a job that does nothing but wait thirty seconds ... Have it PAUSE 20 seconds instead. ... > BPIPSTOK.JOB so that the WHILE loop will end. ... (CIERR 10310) ...
    (comp.sys.hp.mpe)
  • Re: Daylight savings time & new energy bill
    ... It's my understanding that DST will move to the second Sunday in March, ... PAUSE!PAUSE ... * To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)