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



Charles wrote:
My question to you, where is the OPM programing getting the variable
length data?


Charles -

The OPM program is not currently using any variable-length fields. In fact,
I have never used a vary-length field in an OPM program. As far as I know,
the only way to use varying-length fields in OPM is to use the
CVTOPT(*VARCHAR) option when using a file that has variable-length fields
defined, and we have never used that compile option, since we don't have any
files (this is legacy JDE stuff) with varying-length fields.

As I indicated in the OP, from my OPM program I need to call an RPGIV
program that expects a varying-length value to be passed in the first
parameter. I haven't tried your suggestion yet, but rather than creating a
binary field for the length in front of my data field in my OPM program, I
think that my idea of a wrapper program will be easier to implement and less
confusing to the other programmers that work here.

Regards,
Steve



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.