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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.