|
There are two types of qualified names. Simple and everything else. Simple are single qualifications, such as MYDS.mySubfield Simple names may be used on fixed-format or free-format syntax. Nested data structures are a V5R2 thing and are required in order to use two or more levels of qualifications. Did the DS pass the syntax check in the compiler? If not, then maybe your TGTRLS is set to *PRV. -Bob -----Original Message----- From: rpg400-l-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx [mailto:rpg400-l-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx] On Behalf Of Tim Kredlo Sent: Tuesday, February 01, 2005 7:39 PM To: RPG400-L@xxxxxxxxxxxx Subject: Qualified data structure use O Brilliant Ones: I am at V5R2 and can't seem to find much information about where one can and/or cannot use a fully qualified data structure field, except from compile errors. The manual says: "Fully qualified names are allowed in any free-form calculation specifications" and SvCYMD = TvRtrvOP.TvRecd.TvCYMD; is okay and Test(DE) *YMD TvRecd.TvCYMD; is okay but Test(DE) *YMD TvRtrvOP.TvRecd.TvCYMD; and (stuck parenthesis around as a WAG for solution) Test(DE) *YMD (TvRtrvOP.TvRecd.TvCYMD); Both give the compile error "RNF0623 - The qualified name is not specified correctly." First of all, I don't understand why one shouldn't be able to use them anywhere they "fit". Secondly, if one can use a qualified name in a situation, why not a "fully" qualified name in the same situation? Any direction to pertinent resources would be greatly appreciated. TIA Tim Kredlo -- 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/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 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.