binding directory是一种特殊类型的object, 其类型为*BNDDIR, 在Service Program和CRTBNDRPG中会用到.
这种object有点类似于LIBL, 是一个目录(directory), 存放的是一些指定的object, 这些object只能有两种类型:①service pgm, ②Module.
BNDDIR
The BNDDIR keyword specifies the list of binding directories that are used in symbol resolution.
When creating a program using CRTBNDRPG, the library list is searched at the time of the compile. When creating a module using CRTRPGMOD, the library list is searched when the module is used to create a program or service rogram.
Control-Specification Keywords If BNDDIR is specified on both the control specification and on the command, all binding directories are used for symbol resolution. The BNDDIR on the control specification does not override the BNDDIR on the command.
If the BNDDIR keyword is not specified, then the value specified on the command is used.
You cannot use the BNDDIR, ACTGRP, or STGMDL command parameters or
keywords when creating a program with DFTACTGRP(*YES).
关于Binding Directory相关的几个常用命令:
CRTBNDDIR
DSPBNDDIR
DLTBNDDIR
ADDBNDDIRE
RMVBNDDIRE
WRKBNDDIR
WRKBNDDIRE
使用binding directory的一个实例:
DSPBNDDIR BNDDIR(RPGISCOOL/BM11S1S2) OUTPUT(*PRINT)
The printout looks like this:
*...+....1....+....2....+....3....+....4....+....5....+....6....+....7...
Display Binding Directory
5769SS1 V4R4M0 990521
Binding Directory . . . . . . : BM11S1S2 Libra
--------Creation---------
Object Type Library Date Time
M11 *MODULE *LIBL 06/08/99 10:10:43
S1 *SRVPGM *LIBL 06/11/99 09:07:42
S2 *SRVPGM *LIBL 06/11/99 09:07:49
Now, we can create our program by the binder command:
CRTPGM PGM(RPGISCOOL/PM11S1S2) MODULE(RPGISCOOL/M10)
BNDDIR(RPGISCOOL/BM11S1S2) ACTGRP(QILE)
阅读(1654) | 评论(0) | 转发(0) |