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



I see a whole slew of e-mails with this topic and I don't have a chance to
read them.

I just noticed your suggestion below to use an edit code like 'X'.

Just so you know, this method loses the '-' at the end of the number and
will convert any negative numbers to one character. E.g. -1 => J, -2 =>
K, etc., up to R (I seem to recall -0 => '}' but not 100% sure), so the
space required is exactly the same as the number.

If the number can be negative, you'll have to use an edit word. E.g.
amtChar5 = %triml(%editw(amtNum4: '0 -'));

In this example, there are four spaces in the edit word to correspond to
the 4 digits in the number. The character field is one longer to allow
space for the '-'. %triml is used to remove the space to the left of the
number that is created by the '0' at the beginning of the number.

Sorry if this has no relation to the original question asked. It's been a
busy day.

Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295


Then just do an eval from 8/0 to 10/0. You won;t see the leading zeros
but they are there. If you want to see them you need an edit code like
'X'.



You said you are trying to validate dates? Is this process the way you
want to do it? It sounds very long and hard to me.

Are you using RPG or CL?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.