You are here: LANSA for i User Guide > 3. Files > 3.15 Virtual Fields > Edit Virtual Field Examples
Edit Virtual Field Examples

These examples apply to specifying virtual fields in a file definition. They do not demonstrate how the associated RPG derivation code would be specified.

Refer to the Examples of Virtual Fields & Derivation Code
for more comprehensive examples of the virtual field facility.

Seq

Field

Description

1

COMPNO

Company number

2

DIVNUM

Division number

3

COSTCT

Cost center

 

Seq

Field

Description

10

YYMMDD

Date in format YYMMDD

20

MONTH

Month of the year