Theo Kouwenhoven
asked on
/Copy member issue
Hi Experts,
In a RPG program I use /COPY with qualified names and unqualified names.
e.g.
/Copy MyFile1.rpgleinc
/Copy MyFile2.rpgleinc
/Copy /Standard/Version9/Rel5/gp lcalc.rpgl einc
Using the CRTRPGMOD parameter INCDIR('/Home/user/myProgr ams/includ es'), it will find the right include-files and the module is created without errors.
When I try to create a program from the module I get the following error:
Message-ID . . . . . . : CPD5D02
Message . . . . : Definition not found for symbol 'getSubSetCustomer'
Cause . . . . . : No definition was found for reference
getSubSetCustomer in *MODULE object MyProg2 in library MYLIB.
The definition either does not exist or is not of the same data or procedure
type as the reference.
Recovery . . . : Try the Create Program (CRTPGM) command again, supplying
an object that contains a definition for symbol getSubSetCustomer
Without the INCDIR() and full qualified names, the program is working.
Because of copy/move and maintenance, I prefer to use the unqualified name for most of the include files, is that possible?
In a RPG program I use /COPY with qualified names and unqualified names.
e.g.
/Copy MyFile1.rpgleinc
/Copy MyFile2.rpgleinc
/Copy /Standard/Version9/Rel5/gp
Using the CRTRPGMOD parameter INCDIR('/Home/user/myProgr
When I try to create a program from the module I get the following error:
Message-ID . . . . . . : CPD5D02
Message . . . . : Definition not found for symbol 'getSubSetCustomer'
Cause . . . . . : No definition was found for reference
getSubSetCustomer in *MODULE object MyProg2 in library MYLIB.
The definition either does not exist or is not of the same data or procedure
type as the reference.
Recovery . . . : Try the Create Program (CRTPGM) command again, supplying
an object that contains a definition for symbol getSubSetCustomer
Without the INCDIR() and full qualified names, the program is working.
Because of copy/move and maintenance, I prefer to use the unqualified name for most of the include files, is that possible?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The reason we come here is because the IBM documentation is of no value.
I use the IBM documentation frequently and find it to be excellent. The main problem is that is is so copious that you need some experience with.navigating it to get the best use out of it. My best advice is to spend some time learning how it is structured in order to get the best value.