× 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 thought that I could use a pointer to point to a data structure and
pass that to my procedure and have the fields read in moved to that
pointer. My problem is that I don't uderstand how to use RPG/IV pointers
that well and am really confused.

My approach would be to have the procedure read the file and pass back a
pointer to the whole record.  Simple enough to do if you use the record
format as an extern described DS in the program.  Then in the calling
program you use a set of BASED DS - one for each of the formats of data
retrieved.

In the sample I sent Michael, I use a program described file but that was
only because I'm having to develop the routines on the road while I have no
access to a "real" AS/400.  By using a program described file I can at
least get Code/400 to verify that I have no syntax/semantic errors in the
code even if I can't test it.

If anyone else wants the sample code please e-mail directly to me - please
don't put requests on the list as I haven't always got time to read it !!


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.