> ... In other words, I think the ability to supply -1 as the job 
> id to this trap is a bit silly :o)
Probably listed for completeness as the -1 argument value is accepted 
by the trap and therefore technically valid, even though its use is 
illogical in that context.

On the subject of removing jobs, from SBASIC the RJOB command seems 
only to accept the name of a job, not its number (which to me would 
seem more useful).  What if I have more than one job with the same 
name?  RJOB removes the first listed.  I saw NXJOB in the Toolkit II 
manual and thought it might be relevant but can't figure out how to 
make it do anything except "invalid parameter".

Ian.



> -----Original Message-----
> From: Norman.Dunbar 
> Sent: 28 January 2002 13:26
> To: ql-users
> Cc: Norman.Dunbar
> Subject: [ql-users] A foible ...
> 
> 
> I'm still updating my QDOS Internals site, and I've come 
> across a small
> foible in MT_RJOB - the trap #1 to remove a job which is inactive.
> 
> The job id passed can be -1 for the current job, but, as the trap will
> return ERR_NC (not complete) if the job to be removed is 
> still active, how
> on earth  can the current job remove itself ?
> 
> If it is in the process of removing itself, then it cannot be 
> inactive, so
> it cannot therefore remove itself, but if it is inactive, 
> then how can it
> make the call to MT_FRJOB to remove itself.
> 
> In other words, I think the ability to supply -1 as the job 
> id to this trap
> is a bit silly :o)
> 
> Unless you know differently ?
> 
> Regards,
> Norman.
> 
> -------------------------------------
> Norman Dunbar
> Database/Unix administrator
> Lynx Financial Systems Ltd.
> mailto:[EMAIL PROTECTED]
> Tel: 0113 289 6265
> Fax: 0113 289 3146
> URL: http://www.Lynx-FS.com
> -------------------------------------
> This email is intended only for the use of the addressees 
> named above and
> may be confidential or legally privileged.  If you are not an 
> addressee you
> must not read it and must not use any information contained 
> in it, nor copy
> it, nor inform any person other than Lynx Financial Systems or the
> addressees of its existence or contents.  If you have 
> received this email
> and are not a named addressee, please delete it and notify the Lynx
> Financial Systems IT Department on 0113 2892990.
> 


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

Reply via email to