C code for virtual field derivation - example ?
Posted: Tue Mar 13, 2018 12:36 am
Our customer is considering partition change from RDML->RDMLX. This is recommended by LANSA, and it is requirement for usage of many LANSA features.
There is problem with couple of files, which are using RPG code for virtual field derivation. For RDMLX, another C based OAM is created, not using this logic.
In documentation, there is noted - Technical reference 3.9.2:
• RPG or C code may be entered.
• C code must have the letter C as the first character of each line.
So the solution should be add a C code segment to file definition with the same functionality as RPG code.
Unfortunately, there is no one example, except mentioned note.
For example, it is not clear, if VC_USING clause should be used two times or only single time in the definition etc.
Could anybody from you show at least one simple example of both (RPG and C) code placed in this section?
There is problem with couple of files, which are using RPG code for virtual field derivation. For RDMLX, another C based OAM is created, not using this logic.
In documentation, there is noted - Technical reference 3.9.2:
• RPG or C code may be entered.
• C code must have the letter C as the first character of each line.
So the solution should be add a C code segment to file definition with the same functionality as RPG code.
Unfortunately, there is no one example, except mentioned note.
For example, it is not clear, if VC_USING clause should be used two times or only single time in the definition etc.
Could anybody from you show at least one simple example of both (RPG and C) code placed in this section?