Hi Michael, I haven't used FEP myself but It looks as if what you propose could 
work, although I don`t understand why you would need to check job priority, job 
owner, and job name to check if it is still running. Wouldn't NXJOB(id) which 
returns -1 if the job dosn't exist be sufficient and simpler?

Best Wishes
 

 Duncan

 

 

-----Original Message-----
From: Michael Bulford via Ql-Users <ql-users@lists.q-v-d.com>
To: ql-users <ql-users@lists.q-v-d.com>; ql-users-request 
<ql-users-requ...@lists.q-v-d.com>
Sent: Wed, 16 Aug 2017 22:59
Subject: Re: [Ql-Users] EXEP_W

On Wed, 16 Aug 2017, Duncan wrote:

Question : are you using QDOS or smsqe? with smsqe it should be possible to 
create a wrapper basic executable program that will EXEP "task; parameters" 
then continue to run and check the jobs list (you will know the task name) 
until the task it EXEP has finished before continuing with what you want to do 
next.
Hi Duncan,
Thanks for your suggestion, I did think of that idea.
Also, I have found FEP(...) which returns the id of the job created.
So, I'm guessing I could do something along these lines ...
id = FEP(etc)
REPeat wait
    SUSPEND_TASK 25
    IF PJOB(id)=0  : IF OJOB(id)=0  : IF JOB$(id)="" : EXIT wait
END REPeat wait
I haven't tried this yet. Doing it this way, the task name would not need to be 
known.
Michael
_______________________________________________
QL-Users Mailing List

_______________________________________________
QL-Users Mailing List

Reply via email to