Re: [Ql-Users] EXEP_W
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 To: ql-users ; ql-users-request 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
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
Re: [Ql-Users] EXEP_W
Hi Michael, 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. Duncan -Original Message- From: Michael Bulford via Ql-Users To: ql-users ; ql-users-request Sent: Wed, 16 Aug 2017 15:52 Subject: [Ql-Users] EXEP_W Hi, I am wanting to use EXEP some_turbo_task; arg$, "i", "u" and then wait until that job completes before continuing. Is there such a command that does this? If not, then how can this be implemented? Any ideas please Michael ___ QL-Users Mailing List ___ QL-Users Mailing List
[Ql-Users] EXEP_W
Hi, I am wanting to use EXEP some_turbo_task; arg$, "i", "u" and then wait until that job completes before continuing. Is there such a command that does this? If not, then how can this be implemented? Any ideas please Michael ___ QL-Users Mailing List