You are here: LANSA for i User Guide > Appendix A. Virtual Fields > The VC_COPY Command > VC_COPY Examples

VC_COPY Examples

Some examples of VC_COPY commands follow.

Example 1:

To specify that a code block contained in a source member called CUSMSTVIRI in source file QRPGSRC be copied in as virtual code, the following would be input as virtual field derivation code of type "Data Structure Specifications":

I*

I* VC_COPY SRCFILE(QRPGSRC) SRCMBR(CUSMSTVIRI)

I*

Example 2:

To specify that a code block contained in a source member called DATER001 in source file QVIRSRC be copied in as virtual code, the following would be input as virtual field derivation code of type "Internal Subroutines":

C*

C* VC_COPY SRCFILE(QVIRSRC) SRCMBR(DATER001)

C*