View previous topic :: View next topic |
Author |
Message |
saraswathi Beginner
Joined: 08 Dec 2006 Posts: 14 Topics: 8
|
Posted: Tue Apr 29, 2008 1:52 am Post subject: Suppression of leading zeros in EASYTRIEVE |
|
|
hi,
i need to suppress the leading zeros using easytrieve.
--------------- Code: |
FILE ATTRIB
A-Data 1 5 P
*
FILE MRGEFILE
M-Data 1 9 N
*
JOB INPUT (ATTRIB KEY (A-Data) )
IF EOF ATTRIB
STOP
END-IF
M-Data = A-Data
PUT MRGEFILE
------------- |
Above is my code
My input data is
The o/p is
but desired o/p is 12345678
please help me. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12381 Topics: 75 Location: San Jose
|
Posted: Tue Apr 29, 2008 10:15 am Post subject: |
|
|
saraswathi,
Write it as a report and it will automatically suppress the leading zeroes |
|
Back to top |
|
 |
jctgf Beginner
Joined: 05 Nov 2006 Posts: 89 Topics: 36
|
Posted: Sat May 31, 2008 4:32 pm Post subject: |
|
|
to suppress leading zeros u just need to declare the variable number of decimal positions.
for example, declare
instead of
easytriev will automatically interpret it as a ''value'' field and will suppress all the leading zeros.
regards. |
|
Back to top |
|
 |
|
|