Subject: | |
From: | |
Reply To: | Newman, Kevin: |
Date: | Mon, 9 Aug 1999 10:47:28 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Here is what we do for this:
!JOB WOR307J,BATCHUSE.REFINERY;OUTCLASS=LP,1,1
!FILE TEMP=TEMP;TEMP
!SHOWJOB JOB=@J;EXEC;*TEMP
!MPEX
PRINT TEMP;SEARCH=CASELESS "WOR307J"
EXIT
!IF MPEXPRINTLINESFOUND > 1 THEN
!COMMENT *
!COMMENT * IF LINESFOUND > 1 THEN A JOB IS ALREADY RUNNING
!COMMENT * AND THIS JOB WILL BE STOPPED.
!COMMENT *
!TELL {HPUSER}.{HPACCOUNT} This WOR307J Report is already running.
!TELL {HPUSER}.{HPACCOUNT} Please wait until it finishes and run your
!TELL {HPUSER}.{HPACCOUNT} report again
!SET STDLIST=DELETE
!EXIT
!ENDIF
> -----Original Message-----
> From: Jeff Keepers [SMTP:[log in to unmask]]
> Sent: Monday, August 09, 1999 7:44 AM
> To: [log in to unmask]
> Subject: Using MPEX to check job status
>
> All MPEX guru's hear my plea:
>
> I am writing pre-process MPEX commands for a job that will run in
> batch.
> The job can be run multiple times by the end user but two requests
> can't
> run at the same time. I was looking for a MPEX command/variable that
> would
> let me look and see if the job is currently running. There is the
> SHOWJOB
> command, but it doesn't return a variable that I can check. I can
> write
> code that will set my own flags, but I thought there was a way to do
> this
> using MPEX commands. Any assistance would be most appreciated.
>
> Please send replies directly to me since I only receive a digest from
> the
> list.
>
> Sincerely,
> Jeff Keepers
> 3M Valley, NE
|
|
|