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


  • Subject: Re: BIF Nesting
  • From: David Gibbs <david@xxxxxxxxxxxx>
  • Date: Sat, 12 Feb 2000 07:34:52 -0600

At 06:42 AM 02/12/2000 , Jeff Crosby wrote:
>I want the actual length of a field and was under the impression you
>could nest BIFs as in the following:
>         Eval      Len = %Size(%Trim(SomeField))
>The compiler (CRTRPGMOD) gives me "RNF0321 - Parameter %TRIM(SOMEFIELD)
>for %SIZE is not valid;  %SIZE is ignored."

%size returns the defined length of a field, not the length of the 
contents.  As I recall from other discussions (may be from RPG400-L) the 
value %size returns is determined at compile time, not run time.

Depending on what version you have, you might be able to use the %len 
bif.  Otherwise, try doing a CHECKR for *blank.  That will give you the 
right most position that does not contain a blank.

david

p.s. Although I'm not going to be a nag about it, this question is probably 
more appropriate in the RPG400-L list.

--
| Internet: david@midrange.com
| WWW:      http://www.midrange.com/david
|
| This message was written and delivered using 100%
| post-consumer (recycled) data bits.

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.