Using PARM keyword.
File level, Record format level, Field level
In primary file the records will be read and processed from beginning to end. This order is not changed. In fully procedural file the records will be read and processed in any order. The logic flow is controlled by the opcodes in RPG program.