1) Named Indicators
2) INFDS (file information data structure)
First, get rid of all uses of numbered indicators except perhaps for those used for some display file subfile functions. There are no other reasons to use the numbered general indicators. Alternatives have been available for 15 years or so.
Next, if you need a logical boolean variable, then just create one. You give it a data type of N for a stand-alone field or data structure subfield. Since you can define perhaps tens of thousands of these, it’s unlikely that you will ever “run out”.
Finally, if you’re using RPGLE and you “ran out” of general indicators, your program is far too complicated. Start breaking it up into simpler well defined modules and/or procedures. Why use RPGLE if you’re going to code the same as you did with RPG?