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



Anyone else feel like jumping in?

Rob Berendt
-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
Benjamin Franklin 




"Michael Naughton" <mnaughton@xxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
04/30/2003 08:36 AM
Please respond to RPG programming on the AS400 / iSeries
 
        To:     RPG programming on the AS400 / iSeries 
<rpg400-l@xxxxxxxxxxxx>
        cc: 
        Fax to: 
        Subject:        Re: Adding another subfield to an externally 
defined data structu re.


Hi Rob,

Actually, I'm not chaining/reading into a data structure - my file is
externally defined, and I'm chaining/reading into the record format.

My question is: Since I have an externally-defined data struture using the
same file, when I chain/read into the record format don't the fields end
up also being "in" the data structure? And since they're "in" the data
structure, aren't they contiguous?

If the answer to one or both of these questions is "no", then I've been
seriously misunderstanding what is going on (which is possible - that' s
why I'm asking the question! ;-)

But if the answer is "yes", then I don't see what LIKEREC gives me, except
that now I can chain/read directly into the data structure. Not meaning to
be flip at all, but why should I care? I guess I don't see what new
functionality I'm getting that I don't, essentially, already have. Sorry
to be so stupid, but I don't see what I'm missing here . . . .

Thanks,

RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> writes:
>You say you are chaining/reading into a datastructure.  Is the following 
>true:
>- Your file was internally defined, even though your data structure may 
>have been externally defined.
>If so, by reading/chaining into a data structure you get contiguous.  The 

>new thing is that externally defined files may now be read into a data 
>structure.  But that data structure needs to use LIKEREC. 
>
>Rob Berendt


Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@xxxxxxxxxxxx

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.