- 论坛徽章:
- 0
|
本帖最后由 穆-Mu 于 2011-03-21 10:31 编辑
小弟刚写了段代码如下
D CEERANO PR EXTPGM('CEERANO')
D P_SEED LIKE(I_SEED)
DP_RANDOM LIKE(F_RANDOM)
DI_SEED S 10I 0 INZ(0)
DF_RANDOM S 8F
DRNDNBR S 10I 0
DMAXNBR S 10I 0 INZ(4000)
DMINNBR S 10I 0 INZ(3000)
DI S 4 0
/free
FOR I = 1 BY 1 TO 11 ;
CALLP CEERANO(I_SEED:F_RANDOM);
RNDNBR = %DECH(F_RANDOM:30:29)*(MAXNBR-MINNBR)+MINNBR;
DSPLY RNDNBR ;
ENDFOR;
*inlr = *on;
return;
/end-free
代码从网上看的,14编译后没有错误,‘Program T1 placed in library XXXX. 00 highest severity. Created on 03/18/11’
然后call 程序出现错误
Error occurred while calling program or procedure *LIBL/CEERANO (C G D F).
F1进去
如下
Message . . . . : Error occurred while calling program or procedure
*LIBL/CEERANO (C G D F).
Cause . . . . . : RPG procedure T1 in program XXXX/T1 at statement 17
attempted to call program or procedure *LIBL/CEERANO, but was unable to
access the program or procedure, the library, or a required service program.
If the name is *N, the call was a bound call by procedure pointer.
继续F10如下
4>> CALL PGM(T1)
Cannot resolve to object CEERANO. Type and Subtype X'0201' Authority
X'0000'.
Function check. MCH3401 unmonitored by T1 at statement 0000000017,
instruction X'0000'.
Error occurred while calling program or procedure *LIBL/CEERANO (C G D F).
Error occurred while calling program or procedure *LIBL/CEERANO (C G D F).
Library B_DETECTOR added to library list.
Library B_DETECTOR removed from library list.
求高手解释咋回事儿。。怎么搞能对。。。 |
|