× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Query regarding INFDS
  • From: Buck Calabro/commsoft<mcalabro@xxxxxxxxxxxx>
  • Date: Thu, 4 Feb 1999 09:33:24 -0500

On 02/04/99 06:14:53 AM david.kahn wrote:

>Vikas Taskar <vtaskar@wipsys.ge.com> wrote:
>
>>What is the status code of killing a job,ie,if a person kills a job
>>(run by us at that instant),then how can the same be handled by
>>detecting the status code of the error?And what is the status
>>code for the same?
>
>I'm not sure why you're looking in the file information data structure.
>There is a status code in the _program_ status data structure. In this 
case
>I don't think it helps you, but someone will shout if I'm wrong. (Buck,
>probably <VBG>)

<looking furtively left and right>  Who, me?  Shout?  Naaahhh.  :-)

I've been using SHUTDN since the /38.  I figured that was obsolete (after 
all, I still use it!).  Dave's right - the INFDS only holds information 
about the status of each file, whereas the program status DS holds 
information about the status of the program.  These data structures are 
documented in the chapter about the RPG cycle and error handling.  For what 
it's worth, I couldn't find a status code that would reflect the program 
being cancelled.

Looking outside the box (thanks James Kilgore!), the CL command RTVJOBA 
will tell you this, as will the QUSRJOBI API (format JOBI0600) In each 
case, look to the field called End Status.

Buck Calabro
CommSoft, Albany, NY
mailto:mcalabro@commsoft.net
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.