I am writing a set of programs that create, write and compile a set of SQLRPGLE programs. A lot of the code at the beginning of my program is repeated in every program I have, so it makes sense for me to put this into a reference source ... it is roughly of the form
H some h specs
D a load of d specs
/free
my nice free formatted code that I use everywhere
Then my metaprogram comes along and adds lots of code. At this point my program looks like this
/copy *libl/qrpgleref,myRefPgm
lots of nice rpg and sql
/end-free
When I compile this it doesn't work - I think this is because the program can't match up the /free and /end-free properly ... is that right? Or am I missing something more subtle here?
Cheers
I think you can, but why not add the
/freeand/end-freeanyway just in case there is confusion or problems in the future?