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



"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 10/26/2016 05:51:59
PM:
----- Message from Booth Martin <booth@xxxxxxxxxxxx> on Wed, 26 Oct
2016 14:31:44 -0500 -----

To:

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

Subject:

CNTFLD & WRDWRAP and ACS

I am getting unexpected results with ACS 5250 using CNTFLD with WRDWRP:

* in edit mode the field wraps as I expect.
* However, when the edited field is written to the data file spaces
are inserted from the wrapped line.
* if the field is DSPATR(PR) the words wrap but each line ends with
letters from the wrapped word.

In other words, it makes CNTFLD pretty much useless. Has anyone else
found this? Am I missing something?

--
Booth Martin
www.martinvt.com
(802)461-5349


Booth,

I've used the CNTFLD in ACS 5250 without any problems. It seems to work
just like it always did. The field wraps, but doesn't necessarily break on
word divisions. That requires the WRDWRAP keyword. WRDWRAP will insert
spaces into the field in order to break on word spaces. If I really need
to clean it up, I'll unstring the field breaking on multiple spaces and
then string it back together with single spaces--that's pretty rare. (Of
course, I think I've only done this in COBOL programs, not any RPG that I
can recall. But language shouldn't really make a difference in how it
behaves.)

I'm on ACS 1.1.5.1 Build id: 6130 from March 21--newer versions are
available and may behave differently. But if they do, it's got to be a
bug. I'd open a PMR.

(Being Java there are other factors involved--host OS, JRE, etc. But I
still say it sounds like a bug--even though I haven't experienced it.)

Michael Quigley
Computer Services
The Way International
www.TheWay.org

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.