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



All data structures declared with LIKEDS are implicitly qualified -- you can't
not have a qualified data structure.

-Bob Cozzi
www.iSeriesTV.com
Ask your Manager to watch iSeriesTV.com


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Rory Hewitt
Sent: Tuesday, August 08, 2006 11:21 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Compiler directive

Bob,

How do you gain the ability to use qualified names with this technique? Your
myAPIErrorDS structure is a LIKEDS of QUSEC_T which is itself a LIKEDS of
QUSEC. If QUSEC isn't qualified (unless you've changed the QSYSINC
copybook), then neither is QUSEC_T, so neither is myAPIErrorDS... That's
what I'm confused about.

I'm not sure why you didn't simply explicitly define the QUSEC_T structure
with subfields - what do you gain by making it a LIKEDS of IBM's QUSEC?

Rory

On 8/8/06, Robert Cozzi <cozzi@xxxxxxxxx> wrote:

Rory,
My goal was to avoid multiple /COPY's of QUSEC. IBM's members do not have
compiler directives that avoid duplication if they are copied in more than
once. What I did was create a new structure using QUSEC. That new
structure
QUSEC_T is a template that I will then use in my own code instead of QUSEC
via the LIKEDS keyword. I don't know why you think I loose qualified names
using this technique, I actually gain the ability to use qualified names
through this technique.

-Bob


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.