Products Downloads


French version


 

Below is a list of the various edit codes for the OS/400:

 

Edit
Codes

Commas (1) Displayed

Decimal Points (1) Displayed

Sign Displayed When Negative Value

Blank Value of QDECFMT System Value

I Value of QDECFMT System Value

J Value of QDECFMT System Value

Leading Zero Suppressed

1

Yes

Yes

No sign

.00 or 0

,00 or 0

0,00 or 0

Yes

2

Yes

Yes

No sign

Blanks

Blanks

Blanks

Yes

3

 

Yes

No sign

.00 or 0

,00 or 0

0,00 or 0

Yes

4

 

Yes

No sign

Blanks

Blanks

Blanks

Yes

A

Yes

Yes

CR

.00 or 0

,00 or 0

0,00 or 0

Yes

B

Yes

Yes

CR

Blanks

Blanks

Blanks

Yes

C

 

Yes

CR

.00 or 0

,00 or 0

0,00 or 0

Yes

D

 

Yes

CR

Blanks

Blanks

Blanks

Yes

J

Yes

Yes

- (Minus) on right

.00 or 0

,00 or 0

0,00 or 0

Yes

K

Yes

Yes

- (Minus) on right

Blanks

Blanks

Blanks

Yes

L

 

Yes

- (Minus) on right

.00 or 0

,00 or 0

0,00 or 0

Yes

M

 

Yes

- (Minus) on right

Blanks

Blanks

Blanks

Yes

N

Yes

Yes

- (Minus) on left

.00 or 0

,00 or 0

0,00 or 0

Yes

O

Yes

Yes

- (Minus) on left

Blanks

Blanks

Blanks

Yes

P

 

Yes

- (Minus) on left

.00 or 0

,00 or 0

0,00 or 0

Yes

Q

 

Yes

- (Minus) on left

Blanks

Blanks

Blanks

Yes

Y (2)

 

 

 

 

 

 

Yes

Z (3)

 

 

 

 

 

 

Yes

 

Notes

(1)

The QDECFMT system value determines the decimal point character (period in U.S. usage), the character used to separate groups of three digits (comma in U.S. usage), and the type of zero suppression (depending on comma and period placement).

(2)

The Y edit code suppresses the farthest left zero of a date field that is three to six digits long or eight digits long.
It also suppresses the two farthest left zeros of a field that is seven positions long.
The Y edit code also inserts slashes (/) between the month, day, and year according to the following pattern:

nn/n
nn/nn
nn/nn/n
nn/nn/nn
nnn/nn/nn
nn/nn/nnnn

If the DATE keyword is specified with EDTCDE(Y), the separator character used is the job attribute DATSEP at run time. The slash (/) is the default DATSEP.

(3)

The Z edit code removes the sign (plus and minus) from a numeric field. The sign of the units position is changed to a hexadecimal F before the field is written.

 

↑ Top of page

  • Aucune étiquette