× 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 have to add to this - this is from the Y keyboard shift attribute - there is another similar passage for the S keyboard shift, as well as considerations for choosing one against the other. I won't duplicate it all here, it's in the manual, in Chapter 1.

Vern

On 12/9/2010 7:54 AM, Elbert Cook wrote:
This is a clip from the V5R4 "DDS for Display Files" manual.

Negative numbers are handled as follows:
The user can type a negative number on input in one of two ways:
1.) Type the digits, then a minus. The minus sign (-) appears (hex 60) on
the display where it was typed in.
2.) Type the digits, then press the Field- key.

If you do not specify CHECK(RZ) or CHECK(RB), a brace (}) is displayed in
the farthest right position.




-----Original Message-----
From: Booth Martin [mailto:booth@xxxxxxxxxxxx]
Sent: Wednesday, December 08, 2010 9:44 PM
To: RPG programming on the IBM i / System i
Subject: Enter minus and the } character

I am not sure that what I am seeing is what I think I am seeing. Maybe
it has always been like this, but this seems like new behavior.

I have a DSPF with a 5/0 in a numeric field.**
**
ADDDAYS 5Y 0B 16 19EDTCDE(N)**
**
It worked just fine, and when Enter(-) was keyed, I would see the } at
the right side. It is what I expected.

I then changed a line of code up above, unrelated to this field, and the
screen would no longer compile. I tried various EDTCDE()s and finally,
in desperation I tried**

**ADDDAYS 5S 0B 16 19

Well didn't my socks fall off! It compiled fine, then I tried it out
and Enter(-) gave me the field with the number followed by an ordinary
minus sign ( no } ). It had not been processed; it behaved just like it
always has, except for displaying the number properly.

Has it always been like this, and I didn't realize it?

http://www.martinvt.com/Code_Samples/Date_Math/date_math.html is where
it happened, if you want to look at it

****


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.