If Display file is hvaing 3 records, Each recordformat is having 2 common fields. So in rpg we are getting compile errors like, field already defined. But can manage with qualified DS in COBOL while moving. Please suggest how can we handle in rpg/400, rpgle
There is no reason that fields can't be named the same in different display records as long as their data types and sizes are also the same. My guess is that additional definitions have been added to the source, and those are conflicting with the display definitions. The fix is to rename the definitions in the program source or to remove them.
But you didn't tell us the error message ID, so we can't be sure what is happening. And you didn't show us any program source, so we don't know what could be done differently.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 1  Reply
There is no reason that fields can't be named the same in different display records as long as their data types and sizes are also the same. My guess is that additional definitions have been added to the source, and those are conflicting with the display definitions. The fix is to rename the definitions in the program source or to remove them.
But you didn't tell us the error message ID, so we can't be sure what is happening. And you didn't show us any program source, so we don't know what could be done differently.
Tom