Subject: | |
From: | |
Reply To: | |
Date: | Mon, 9 Aug 1999 21:44:49 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi Jeff,
A better way to synchronize two jobs may be to
use MPEX to lock some file while doing the
real processing.
Eg., (syntax here is a bit wobbly since I am doing this without the manual)
!Job ..........
!Main.pub.vesoft
setvar lockfile VEFOPEN("anyfile;lock;shr")
setvar locked VEFLOCK(lockfile,true)
do the processing ....
exit
!eod
!eoj
"anyfile" can be any thing suitable, but an empty file
might be simplest.
Regards,
Tad.
-----Original Message-----
From: Jeff Keepers <[log in to unmask]>
To: [log in to unmask] <[log in to unmask]>
Date: 09 August 1999 17:42
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
>
|
|
|