× 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.



Ron, run the job in debug to verify the value in QualJobNm. Haven't done RPG in a while, does the '+' strip trailing blanks? Also, what is JBREF - it looks like you want it to be the job name. And maybe use a 16-character variable for the internal ID, instead of *BLANKS - I'm not sure that memory is being properly allocated with the constant.

HTH

Vern

At 12:22 AM 9/27/2003 -0500, you wrote:

Hi

      I am using the QUSRJOBI API format JOBI0400 in a RPG program.
      This format is supposedly good for all job states.

Everything works fine for jobs that are active but when I encounter a job on a
JOBQ I am getting a return message of CPF3C53


I tried using format JOBI0300 but get the same results.

      Here's the code:
      C                    Eval      QualJobNm = JBREF  +
      C                                         JAUSR  +
      C                                         JAJNR
       *
       * Use the API QUSRJOBI to check if the job is active
       *
      C                   Callp     QUSRJOBI(dsJob400: %size(dsJob400):
      C                              'JOBI0400': QualJobNm: *blanks: dsEC)

Is there something I'm missing here?

      Thank You
      Ron



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.