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



Rich

Create a data structure. Make arrays within the data structure. Have a 2-byte integer as the first element, then there is an array of offsets to the values. Then the array of values.

The offset array will have only as many elements as the initial counter, so the array of values starts at different places. Use a pointer to an array of values. Set it to where it should start, according to the offsets - or simply have a pointer to the value, then set the pointer by the offset arrays.

For more complex lists, have several of this kind of thing in the DS. There will be offsets to the various components.

Easy-peasy!

Or even better, use REXX - it just works!

Ducking!

Vern

On 12/3/2012 10:15 AM, Richard Schoen wrote:
Hello All,

I am adapting a CL command to use an element list qualifier and pass the list to an RPG program.

I then want to process the resulting list from the RPG program.

I have done this in a CL program in the past and want to start using RPG as the CL command processing program instead.

Anyone have an example of doing this from an RPG program ?

It appears the first 2 positions have the element count, but there are some additional binary values after the count before the actual data buffer begins.

I need to determine the best way to traverse the element buffer.

Anyone have any input on this ?

Thanks in advance.

Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Email: richard@xxxxxxxxxxxxxxx<mailto:richard@xxxxxxxxxxxxxxx>
Web Site: http://www.rjssoftware.com<http://www.rjssoftware.com/>
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT



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.