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



On 2021-10-08 8:38 p.m., James H. H. Lampert via RPG400-L wrote:
...
So far, in my tests, it appears that (at least at V6), simply moving the F-spec to procedure level requires me to treat the file as program-described, and define a structure to receive the record, but treating externally-described files as program-described is old hat around here. Apparently scatter-gather doesn't work for files declared at procedure level?

You're right that scatter-gather doesn't work for files defined in a subprocedure.

You can define the file as externally-described in the subprocedure. You do need to specify a data structure in the result field of the I/O operations, but it can't be "any" data structure. It has to also be an externally-described data structure for the same file.

Being able to use a data structure with an externally-described file is actually "new hat"; it wasn't available until v5r1 or maybe even v5r2.


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.