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



Nah, he's getting into SYS01010, and it's erroring when calling QUSRJOBI. Either there's a parm mismatch between the caller and SYS01010, or more likely a problem with ReceiveLen being defined as 4B 0...


----- Original Message ----- From: "Charles Wilt" <charles.wilt@xxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: Monday, September 22, 2008 4:45 PM
Subject: Re: Weird MCH3401 error when using QUSRJOBI API


If you're going insist on using RPG III style syntax, then if you want
any help, you'll need to also show the definitions of the parameters
you are passing.

Do yourself and others a favor and prototype the call.

However, in this case a MCH3401, type 0201 means it can't find a
program you've told it to call.

My guess is that SYS01010 is not in the library list or the original
was deleted after the calling program had resolved a pointer to it.

Charles

On Mon, Sep 22, 2008 at 3:47 PM, Armbruster, Tom
<Tom.Armbruster@xxxxxxxxxxxxxxx> wrote:
Okay. This one has me baffled. I have a file that records the user's job information while they are working with the records in the file, i.e. I selected 10 records and they are currently "locked" so other users don't get the same records as I do.

As a "just in case" measure, prior to a new selection, I check these "locked" records to ensure the job is still active. If the job is dead, the record status is changed. This routine will happen a lot through the course of the program.

My problem is that the program I call to verify the status will run fine the first time it's called, but will fail with the MCH3401 message on subsequent calls.

The program is currently prototyped in the caller.

dGetJobStat pr EXTPGM('SYS01010')
d 26A const
d 1S 0

and then called:

callp GetJobStat($jobnameql:$jobactv);

Message ID . . . . . . : MCH3401 Severity . . . . . . . : 40
Message type . . . . . : Diagnostic
Date sent . . . . . . : 09/22/08 Time sent . . . . . . : 12:17:08

Message . . . . : Cannot resolve to object Þzir.
Type and Subtype X'0201' Authority X'0000'.
Cause . . . . . : Either a system pointer or a data pointer can not be
resolved.

The weird part is the object name returned in the message. The text changes each time, but this time it came back as ' Þz ir '

This is the line that produces the error in SYS01010:

C Call 'QUSRJOBI'
C Parm QusI020000
C Parm ReceiveLen
C Parm FormatName
C Parm JobName
C Parm IntJobName
C Parm QusEc

How can I resolve this? Do I have to declare the API as a pointer and call it by address? Any advice will help.

Thanks,
Tom Armbruster
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.