On Thursday, January 13, 2022 at 9:48:01 AM UTC-5, techie21 IT wrote:
> Hi,
>
> How can we declare primary file in a fully free format RPGLE program
Simple answer - you can't. When fully free-form RPG was introduced the decision was taken to not support primary/secondary files. The cycle is not taught in schools and is rarely used in modern programs.
>also how to avoid *RNF7421-Operands are not compatible with the type of operator.
You have used "+" signs to continue a line when no such continuation marker is needed. Normally the only continuations needed in expressions is when a literal has to stretch over multiple lines. So just remove the "+"s and all will be well - assuming the rest of the syntax is kosher of course.