I am reviewing some RPG logic, in conjunction with a question I posted about a week ago. I think the way this logic is written doesn't suit the needs of what I'm looking to be the end result. Below is the code in question...
*IN88 CABEQ*ON ITSN
ELRET CABEQ0 ITSN
ELRET IFGT 0
ELRETT IFGT 0
ELRETS IFGT 0
I've probably included more code than needed. Essentially, I'm looking to see that if ELRET and ELRETT and ELRETS are greater than 0, to go to bypass. It looks like my program isn't doing this, based on the results from last week's run. I've attempted to change the second and third IFGT to ANDGT; however, when I go to compile, I get an error code 50 (I believe, but don't quote me on that.).
I was hoping if someone could confirm for me that my suspicions are right and that the code needs to be altered to ensure that all the IFGT lines are evaluated together.