Instead of OPNQRYF, today we see a lot more use of embedded SQL.
To compile the program, create a CL similar to the run time CL with
3. CRT … calls to create your rpg program
Run this CL to create the program
You will want to save this CL for future compiles.