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



My reply also had a function in SQL to reformat the field data...

I guess I'm still not sure what problem Buzz needs to solve.

-Eric

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Monday, April 07, 2014 3:21 PM
To: Midrange Systems Technical Discussion
Subject: Re: MIDRANGE-L Digest, Vol 13, Issue 525

Buzz

One of the other replies gives you a solution without going to RPG - I
think - the one with the REPEAT function.

That one gets the length of the fully-trimmed value and uses that to get
the number of leading blanks you need.

Good luck!
Vern

On 4/7/2014 3:17 PM, Buzz Fenner wrote:
On Mon, 7 Apr 2014 16:50:41, Eric DeLong wrote:

How did you define "field"? If it is NOT varchar (or DDS Varying), then
the trim will be ineffective, due to >the fixed length default behavior of
padding blanks.

Hmm, unfortunately it's not Varying so I may have to resort to a small rpg
program where I can get the data into a varying field and do the string
manipulation.

Thanks...





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.