× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 19-Aug-2014 14:45 -0500, Englander, Douglas wrote:

Scott, Thank you for the reply. I appreciate that.
<<SNIP>> When I move the first /COPY and have both begin in
column 9, the compile fails because the compiler is not
recognizing the data structure definition in the first /COPY

I am using the *NONE option for the RPGPPOPT parameter.


The reply by Scott noted that "If you want /COPY information to be seen by the SQL precompiler when the /COPY is coded in a column other than column 7, you will need to use the RPGPPOPT(*LVL1) or RPGPPOPT(*LVL2) compilation option."

<<SNIP>>
Am I doing something wrong?

I would expect that a good approach would be to follow the advice that was given, and compile with either of the special values *LVL1 or *LVL2, instead of either the specified or defaulted special value of *NONE on the RPG Pre-Processor Options (RPGPPOPT) parameter.? Having done so, the RPG pre-processor should be invoked to expand the /COPY directives that would not be recognized by the SQL pre-compiler per their not appearing as fixed-format directives; i.e. instead of the slash having been written in column-7, the slash for the /COPY directive appeared in column-9, thus "considered to be 'free-form' by the SQL precompiler."


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.