Both commands will suck in program source code from a copybook – typically stored in QCPYLESRC. But there is one big difference between how the compile directives work in RPGLE and SQLRPGLE programs : in RPG ILE programs the /copy directive is expanded by sql preprocessor, but /include does not get expanded by SQLRPGLE code.

Read More

A copybook is a technique that us RPG PROGRAMMERS use to suck in piece of re-useable code without having to type it every time into lots of programs. A typical use of a copybook might be something like this scenario: Every program within an application uses the *LDA (Local Data Area) to store specific pieces

Read More