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



Hi, Bryce:

My mistake ... it looks like the compiler cuts off at column 80, regardless of /free or not. :-o

I misinterpreted the error messages I was seeing in the listing. I revised the test case, and ran more tests, and now I can clearly see that it does not like RPG /free statements that extend beyond column 80. D'Oh! :-o

Perhaps we should all open DCRs for this?

80 columns, how quaint. Just like punched-cards on the old IBM mainframes! ;-)

Cheers,

Mark S. Waterbury

> Bryce Martin wrote:
I created a source physical file with record length of 240 but it still only let me code to column 80. Everything after that was just a comment to the compiler. Are you using a compiler directive or something?


Thanks
Bryce Martin
Programmer/Analyst I
Ext. 4777



"Mark S. Waterbury" <mark.s.waterbury@xxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx
04/22/2009 03:09 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: More than 80 columns






Hi, David:

A quick experiment reveals that you can use up to 100 columns for source code for /free format. This is true for source physical files (where you can create a record length up to about 240 for use with SEU), and for stream files (where there is no imposed limit.)

From what I can tell, from error messages generated and the compiler listing, it appears to actually "cut off" at around column 103 ...? :-o

All the best,

Mark

> David Gibbs wrote:
Although I haven't tried it, I suspect the same limitations apply. I
doubt the parser is different when using a stream file.
david



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.