RPGIV @ Work

A unique site for RPG and System i Lovers

Welcome!

Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

/COPY Print E-mail
User Rating: / 0
PoorBest 
Written by Chamara Withanachchi   
/COPY

This tip originally appeared on: Bryan Meyers's Web site


/Copy members are considered to be fixed format syntax, even if you code the /Copy statement in a free format block of code. If the /Copy member contains free format syntax, you should enclose the free format code in the /Copy member in its own /Free and /End-free delimiters. In the primary source member, you need not code /End-free before you code the /Copy directive:


In the primary source member, you need not code /End-free before you code the /Copy directive:


	/Free
	   ...
	/Copy library/srcfile, member
	   ...
	/End-free

You can also indent the /Copy directive, if you wish, instead of beginning in column 7.


Incidentally, the conditional compilation directives(/Define, /Undefine, /If, /Elseif, /Else, /Endif, and /Eof) also work in free format syntax. And, contrary to IBM's documentation, you can also indent these directives in free format syntax.


<Previous   Next>