×
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've never tried it (or had the energy to look it up), but could you use a
PREFIX keyword on the file DS similar to what you do on an F-spec? Or could
you qualify the file DS? (Never tried that one either.)
Jerry C. Adams
IBM i Programmer/Analyst
My epitaph is inescapable. It will read, 'He sent a midget up to bat.' -
Bill Veeck
--
A&K Wholesale
Murfreesboro, TN
615-867-5070
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of hockchai Lim
Sent: Friday, March 11, 2011 2:09 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Overlaying fields within a data structure with an array
Yes, that is what Jerry suggested to do. Just one problem with this
approach: you can no longer define the file ds on that program. So, if some
how some one needs to define the entire file structure as DS in that
program, then he is out of luck.
"James Lampert" <jamesl@xxxxxxxxxxxxxxxxx> wrote in message
news:mailman.33786.1299873838.2702.rpg400-l@xxxxxxxxxxxx...
Lim Hock-Chai wrote:
If you can guarantee that no one will ever change the file that will
make them become non contiguous:
Actually, if you're doing traditional RPG scatter-gather I/O, then the
relationship between the fields in the file shouldn't make any difference
if you redefine the fields to make them contiguous in a DS.
--
JHHL
As an Amazon Associate we earn from qualifying purchases.