INPUT statement

Hello,

in first, scuse me because i don’t speack very well english.

My problem is :

in the INPUT statement (local map), i define my data £HR-CHRONO in (P7)

  • MAP
    1 MEMBRE (A8)
    1 £MAP-LOCAL
    2 £NM-CHAINE-PTE (A7)
    2 £NM-JOB (A8)
    2 £DT-CHRONO (P7)
    2 REDEFINE £DT-CHRONO
    3 £DT-CHRONO-D (D)
    2 £HR-CHRONO (P7)
    2 £NM-PROG (A8)
    2 £NO-FIC-CHAINE (N2,0)
    2 £ZN-TY-ENRGT-EDIT (A1)
    2 £ZN-FINDESCR (A7)
    2 £JOB-NAME (A10)
    2 £ERREUR (A60)

in the program, in my local map :

INPUT MARK *MEMBRE /
[…]
8T ‘HEURE : ’ (DPI) *IN £MAP-LOCAL.£HR-CHRONO
(AD=MILT’_') //
[…]

but when i run the program, my data £HR-CHRONO is writing in 8 characters O_0.

I don’t understand why he is displayed in 8 characters.

can someone help me please?

hi,

i resolve my problem, just add an edit mask

8T ‘HEURE : ’ (DPI) *IN £MAP-LOCAL.£HR-CHRONO
(AD=MILT’_’ EM=9(7)) //

Bonjour Arkonara,
C’est excellent que tu as résolu ton problème; quand à ton “mauvais anglais”, j’aimerais bien te suggérer le “Google translate”:

Bonne chance,
Nikolay
(je travaille à Montréal, alors … :slight_smile:

A quick explanation nevertheless:

the mysterious 8th character is the SIGN, which will become obvious when printing a number like -1234567 without an edit mask.

You could also try SG=OFF (turns off space for the sign)

8T ‘HEURE : ’ (DPI) *IN £MAP-LOCAL.£HR-CHRONO
(AD=MILT’_’ SG=OFF) //