3.9.2 Virtual Code
Specify the code for the virtual fields that is to be imbedded into the I/O module.
When LANSA is automatically generating the code for an I/O module, it looks for any virtual field code associated with the file and automatically includes it at the correct point.
Rules
- RPG or C code may be entered.
- C code must have the letter C as the first character of each line.
Warnings
- There is no syntax checking performed on the code entered.
Tips & Techniques
- The sections of RPG or C code displayed describe the parts or portions of the file I/O module in which you can include user code that is to be used to derive virtual fields.
- Triggers or, for RDMLX files 3.3.6 Code Fragment, can be used for most complex virtual field derivation. These are much simpler than writing C or RPG code.
Platform Considerations
- IBM i: Please refer to Examples of Virtual Fields and Derivation Code in the for specific RPG coding requirements.
Also See