Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
I have been reading up on the free-form RPG that is part of IBM’s Technology Refresh 7. Something that isn’t immediately clear to me is whether or not the /COPY and /INCLUDE compiler directives are going to be allowed or not. I have read where they only allow /IF, /ELSE, and /ENDIF within a free-form statement. Is it safe to assume that the other directives can still be used as long as it’s not “within” a free-form statement? If not, that would be a problem since all our prototypes are stored outside of our applications.
In case you are wondering...I would try it myself, but we don't have everything installed yet to use it.
All directives can be used in the updated RPG IV implementation. There is not free vs fixed anymore.
The directives must begin in column 7 or later--no longer restricted to position 7.
The big change is the /IF directives since they can be used to control how code is compiled, they can be used within a statement that spans multiple lines.