HP3000-L Archives

May 2002, Week 5

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:
Nancy Tietz <[log in to unmask]>
Reply To:
Nancy Tietz <[log in to unmask]>
Date:
Fri, 31 May 2002 09:37:59 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (46 lines)
And the winner is... Pat Shugart's example below
Thanks, Pat !!!




Subject: Re: FW: Need Intrinsic to say if a job is running or not

Carol,

You don't need the job number. Here's another example that I use in a
jobstream:

!SETVAR _job_nbr JOBCNT('@J:MEDI@,MGR.AIH',_job_list)
!IF _job_nbr <> 0
!  #
!  echo EDI jobs are still running!
!  echo job nbrs = !_job_list
!  showjob job=@j
!  #
!  SETJCW JCW FATAL
!ELSE
!  echo MEDIxxxx jobs ran successfully. Go Spartans!
!ENDIF

This one looks for any jobs with a "MEDI" prefix and returns the job
number(s) to the _job_list variable. I use this particular example to make
sure certain jobs are not running before streaming off some other jobs. It's
a fallback in case Maestro messes up (which is happening quite a bit in our
Amisys upgrade testing!).

Hope this helps better than the first example.

                                       ,,,,,
                                     ( o o )
=============oOO=======OOo================
Pat Shugart
Trinity Information Services
34605 Twelve Mile Road
Farmington Hills, MI 48331
248.489.6123
248.488.9195 (fax)

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

ATOM RSS1 RSS2