3 9 2 Virtual Code

LANSA Technical

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

Also See

3.9.1 I/O Module Section

Ý 3.9 Virtual Derivation