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



These Data Structures suck...

So I added a message field of my own to the end of the DS:

/include qsysinc/qrpglesrc,qmhrtvm // QMHRTVM API data structures

dcl-ds Error qualified;
rcvm0200 likeds(QMHM020000);
Message char(3000);
end-ds;

The DS field QMHLDRTN00 has a description (in the /include) of " Length Data Returned"

Through trial and error I discovered that this value is the length of the first part of the message... The actual Message and Cause from the job log BEGIN at one position beyond that (QMHLDRTN00 + 1).

Has anyone worked with these enough to confirm this? It just doesn’t make sense to me given the IBM field description in the source file and online.

Greg

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Mark Waterbury
Sent: Tuesday, July 30, 2019 1:58 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: RNX0356 Document for DATA-INTO does not match RPG Variable


FNDSTRPDM STRING(RCVM0200) FILE(QSYSINC/QRPGLESRC) MBR(*ALL) OPTION(*DSP) identifies the following source members:

    QSYSINC/QRPGLESRC          QMHRCVM
and
    QSYSINC/QRPGLESRC          QMHRCVPM


On Tuesday, July 30, 2019, 1:51:36 PM EDT, Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Gotcha... is this DS defined somewhere already (preferably in free format)?


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.