Hello, I am a new RPGLE developer and I came across this error that I cannot figure out. Not much information about it online either. So...
I tried to include only the important bits of my code. I may have left out or put in too much info, so if anything else is needed please let me know.
First the error message:
Line 78 is where I call the ISEOUTFile procedure: ISEOUTFile(RankArray); I believe the error is in the procedure, but it doesn't say which line.
From debugging, I saw that the 2 parameters for EDIMONITCL is SavDocLst(a character of len 100), and a Wrkrank(packed 2:0) like it's suppose to be.
RPGLE
EDIMONITCL (CL Program)
I tried to include only the important bits of my code. I may have left out or put in too much info, so if anything else is needed please let me know.
First the error message:
Code:
Message ID . . . . . . : RNQ0202 Severity . . . . . . . : 99 Message type . . . . . : Inquiry Date sent . . . . . . : 07/11/17 Time sent . . . . . . : 15:40:41 Message . . . . : The call to ISEOUTFILE ended in error (C G D F). Cause . . . . . : RPG procedure EDIRPT01 in program ISE/EDIRPT01 at statement 007800 called program or procedure ISEOUTFILE, which ended in error. If the name is *N, the call was a bound call by procedure pointer.
From debugging, I saw that the 2 parameters for EDIMONITCL is SavDocLst(a character of len 100), and a Wrkrank(packed 2:0) like it's suppose to be.
RPGLE
Code:
DCL-PROC ISEOUTfile;
DCL-PI ISEOUTfile;
RankArray packed (2:0) Dim(10);
END-PI ;
DCL-S SavDocLst Char(100);
DCL-S x packed(2:0);
For x = 1 to %Elem(RankArray);
WrkRank = RankArray(x);
// does something in sql (all errors checked out on this part)
Callp CrtSubMail(WrkRank:SavDocLst);
Callp EDIMONITCL(SavDocLst:WrkRank); //ERROR HERE
/////////////////////////////////////////////////////////////////////////////////////////////////////
DCL-PROC CrtSubMail;
DCL-PI CrtSubMail Char(100);
WrkRank Packed(2:0);
SavDoclst Char(100);
END-PI ;
DCL-S WkFirst Char(1);
DCL-S SAVDOC Char(10) ;
Dow sqlcode = 0;
If WkFirst = 'Y';
SavDoclst = %trim(SAVDOC);
WkFirst = 'N';
Else;
SavDoclst = %trim(SavDoclst) + '' + %trim(SAVDOC);
Endif;
enddo;
Return SavDoclst ;
END-PROC CrtSubMail;
EDIMONITCL (CL Program)
Code:
PGM PARM(&SUBJECT &RANK) DCL VAR(&SUBJECT) TYPE(*CHAR) LEN(100) DCL VAR(&RANK) TYPE(*DEC) LEN(2 0) // does stuff here






Comment