概念介绍:
/COPY (Positions 7-11)
The /COPY compiler directive causes records from other files to be inserted, at the
point where the /COPY occurs, with the file being compiled. The inserted files may
contain any valid specification including /COPY up to the maximum nesting depth
specified by the COPYNEST keyword (32 when not specified).
举例:
C/COPY MBR1 .1/
I/COPY SRCFIL,MBR2 .2/
O/COPY SRCLIB/SRCFIL,MBR3 .3/
O/COPY "SRCLIB!"/"SRC>3","MBR¬3" .4/
Figure 3. Examples of the /COPY Compiler Directive Statement
.1/ Copies from member MBR1 in source file QRPGLESRC. The current
library list is used to search for file QRPGLESRC.
.2/ Copies from member MBR2 in file SRCFIL. The current library list is
used to search for file SRCFIL. Note that the comma is used to separate
the file name from the member name.
.3/ Copies from member MBR3 in file SRCFIL in library SRCLIB.
.4/ Copies from member "MBR¬3" in file "SRC>3" in library "SRCLIB!"
阅读(1664) | 评论(0) | 转发(0) |