Re: Are SQL statement lines limited to 80 characters ?

Richard Schoen <richard-DiTrGpQEJGItADg8e/3/[email protected]>
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <CH0PR12MB52503360E19B6D659ECCE918B766A@CH0PR12MB5250.namprd12.prod.outlook.com>
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-DiTrGpQEJGItADg8e/3/[email protected]

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

message: 2
date: Fri, 6 Feb 2026 20:31:55 +0100
from: Daniel Gross <[email protected]>
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
-- 
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.