I am fairly new to RPG and primarily write in RPG-Free. The RPG Cycle with the Primary file is something I've dealt with slightly in older programs still using the fixed format. I'm trying to utilize this in a program I'm writing (in Free) and have it working for the most part. The problem I'm running into is printing the Grand Totals when I reach the last record.
if I check If *INLR = *ON;
it doesn't print but if I check the control level in fixed it will work.
So I guess the question is, how do you check the Control level in RPG-Free? Am I stuck with using the fixed format for the *INLR?
Thanks
if I check If *INLR = *ON;
it doesn't print but if I check the control level in fixed it will work.
Code:
IF *INLR = *ON;
WRITE GRDTOT;
//nothing prints
ENDIF;
/END-FREE
CLR WRITE GRDTOT
*Prints fine
Thanks





Comment