|
Hi Patrick, I'll try<G>: The compiler sees PDLB02 in the data structure first, and allocates memory for it there. Then it sees PDLB02 in the input specs and wants to allocate memory for it within the input buffer, but it can't have a unique field name pointing to two different memory locations. I believe with V5R1 you are able to use the data structure name (which your example doesn't have) as a qualifier to the field name, so you could indeed have the duplicate name. But you'd have to be aware that the value in one would not automatically be copied to the other. hth, Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: <PatrickConner@parkdalemills.com> To: <rpg400-l@midrange.com> Sent: Thursday, August 23, 2001 1:06 PM Subject: Externally-Described Field used as array name. > D ds > DPdLb Like(PdLb01) Dim(3) > DPdLb01 Overlay(PdLb) > DPdLb02 Overlay(PdLb:8) > DPdLb03 Overlay(PdLb:15) > > > 932=I S 60 66 0WK1AVL > 933=I S 67 73 0PDLB02 > ======> aaaaaaaaaaaaaa > *RNF4138 30 a 000016 Externally-Described Field used as array name. > Definition > specification is ignored. > 934=I S 74 80 0WK2SHP > > > Why? > > I think I understand that it is a memory address thing, but I'd like an > clear explanation. > > Patrick Conner > www.ConnecTown.com > (828) 244-0822 > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
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.