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



I considered REXX for half a second. Naawww :-)

I got it working now. The weird part is it takes in the values backwards from the CL command buffer, even though if presents the offsets correctly in the data stream with the higher byte order values first.

No wonder it wasn't super-obvious :-)

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

message: 3
date: Mon, 03 Dec 2012 11:05:48 -0600
from: Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
subject: Re: Processing ELEM List in RPG

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



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.