This was a program using freeform statements.

Here's how I got it to work:
https://blog.richardschoen.net/2026/02/my-sql-rpg-program-wont-compile.html

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx

------------------------------

message: 2
date: Fri, 6 Feb 2026 20:31:55 +0100
from: Daniel Gross <daniel@xxxxxxxx>
subject: Re: Are SQL statement lines limited to 80 characters ?

The RPG reference says this:

-> https://www.ibm.com/docs/en/i/7.6.0?topic=functions-sql

And this:

-> https://www.ibm.com/docs/en/i/7.6.0?topic=specifications-free-form-st
-> atements#freestmt

The essence is:

- in **free there is no limitation of the statement length

- in /free (or "column-limited free-form source") everything after column 80 has to be preceded by // and therefore is a comment

So there shouldn't be a problem with source after column 80 in **free source.

Which error message is emitted by the pre-compiler? Does RDi flag the statement as invalid?

HTH
Daniel

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-2026 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.