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



Glad to know everything got solved. Thanks for let me know...


Best Regards,

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries



On Wed, Sep 30, 2009 at 8:34 AM, Brown, Stephen GLARC <> wrote:
I've now managed to get restore of edit codes from our old development box and everything is now working on new one. Must been something to do with the DSPEDTD not showing exactly what's has been set up. Anyway thanks for your time.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: 29 September 2009 14:13
To: RPG programming on the IBM i / System i
Subject: Re: Problems User define edit codes


The problem with DSPEDTD is that the parms don't really show their size. That is if, for example, you have a FRACMASK of three decimals it would show exactly as one of two decimals.

I did a short stint with user-defined edit fields some time ago. I really think that they are more problem than they are worth. They are too easy to modify by anyone, playing havoc with existing apps. I prefer to use edit masks inside my code.

Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries



On Tue, Sep 29, 2009 at 3:51 AM, Brown, Stephen      GLARC
<> wrote:
Initially I created the edit codes (CRTEDTD) as it appeared on display
(DSPEDTD) on old development box, then I decided to do a save obj /
FTP / restore from new box production. When displayed definitions look
the same.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: 29 September 2009 04:21
To: RPG programming on the IBM i / System i
Subject: Re: Problems User define edit codes


Stephen,

Forgot to ask: Did you do a SAVE/RESTORE of the edit code
(QSYS/QEDIT8, IIRC) or did you just copy the info as you saw it on the
older iSeries?

Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries



On Mon, Sep 28, 2009 at 5:19 PM, Brown, Stephen      GLARC
<> wrote:
Think I'll need to - I'll let you know how I get on.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: 28 September 2009 22:30
To: RPG programming on the IBM i / System i
Subject: Re: Problems User define edit codes


Stephen,

In Spain (and the rest of the EU) a comma (,) is used for a decimal
point. I did some tests with a small DSPF and got some error when
trying to display a field when the DECPNT parameter had a 'N'.

Do you still have access to the old iSeries? Could you recompile the
DSPF to a temp file and try to replicate the errors there? Maybe
there was a change in either the source code or in the edit code
definition...

Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries



On Mon, Sep 28, 2009 at 4:35 PM, Brown, Stephen      GLARC
<> wrote:
That's ok it my first time dealing with them.

That's why I decided to copy the objects over from the old box
rather than recreate then to make sure I had same definitions. The N
does look odd but again I just took it as it exists so therefore
this must have been asked for and is correct. I do know it's for our
Spanish users but that is all. I thought maybe the N stood for
something like *NONE but it doesn't appear to. Note, field was
originally 9,2 but has just changed to 11,2 - the edit code seems to
work for both definitions on our old box.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: 28 September 2009 21:29
To: RPG programming on the IBM i / System i
Subject: Re: Problems User define edit codes


Stephen,

My apologies if I'm insistent on the syntax part. I have done some
tests here and I have not found any problems but, Did you check if
the INTMASK and FRACMASK parms have the proper length? It seems to
me that the INTMASK is little long (they should be 9 and 2 spaces,
respectively).

Also, just curious, Why a 'N' as a decimal point?

It has been a long time since I last worked with User defined edit
codes, so I must been missing a lot of possibilities.

Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries



On Mon, Sep 28, 2009 at 2:24 PM, Brown, Stephen      GLARC
<Stephen.>
wrote:
Yes I copied the objects from the old machine to the new one to
make sure.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: 28 September 2009 18:02
To: RPG programming on the IBM i / System i
Subject: Re: Problems User define edit codes


Stephen,

Are you sure that your edit code def. is the same in both machines?
It could be that your edit masks differ in size...

Regards,

Luis Rodriguez
IBM Certified Systems Expert - eServer i5 iSeries



On Mon, Sep 28, 2009 at 10:14 AM, Brown, Stephen      GLARC
<> wrote:
Can anyone assist ?
We have just migrated to a news iSeries machine running V5R4M0.
Previous was running V5R3M0. The DSPF compiled ok on previous
version with FT03 marked change to field size included but didn't
compile on new box. The only difference I am aware of is the
change to OS. All other aspects are the same i.e code and edit
code definitions. I have changed the edit code description to see
if this makes a difference but no joy.

DSPFFD extract of compiled DSPF on Prev box
CHKAMT ZONED 11 2 11 58 Output 7 67
Field text . . . . . . . . . . . . . . . : Cheque Amount Keyboard
shift . . . . . . . . . . . . . : Y Editing Information Edit code
. . . . . . . . . . . . . . . : 8 Compile failure on New box 1640
FT03
A*********** CHKAMT 9Y 2O 7 69TEXT('Cheque Amount') 1641 FT03 A
CHKAMT 11Y 2O 7 67TEXT('Cheque Amount') 1650 A EDTCDE(8)
* CPD7520-* .
* CPD7528-*
CPD7520 20 1 Message . . . . : Keyword ignored because of error in
list of values. CPD7528 20 1 Message . . . . : Number of decimal
replace positions not valid.

EDTD Definition
                          Display Edit Description

Edit description . . . . . . . :   8

Integer mask . . . . . . . . . :               0
Decimal point character  . . . :   N
Fraction mask  . . . . . . . . :
Fill character . . . . . . . . :
Currency symbol  . . . . . . . :
Edit zero values . . . . . . . :   *YES
Negative status characters . . :
Positive status characters . . :
Left constant characters . . . :
Right constant characters  . . :
Text . . . . . . . . . . . . . :   Spanish editing w


------------------------------------------------------------------
-

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.