View previous topic :: View next topic
|
Author |
Message |
jpraveenreddy
New User
Joined: 30 Nov 2007 Posts: 28 Location: mysore
|
|
|
|
Hi friends,
When I am moving value into the fields additional zeros are being padded.Can any one suggest me how to avoid zero padding? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
jpraveenreddy wrote: |
Hi friends,
When I am moving value into the fields additional zeros are being padded.Can any one suggest me how to avoid zero padding? |
Move to a field that is the same length as the source field. Or move to a numeric edited field with zero suppression. |
|
Back to top |
|
|
raghumale
New User
Joined: 21 Feb 2008 Posts: 6 Location: banglore
|
|
|
|
hi Reddy
maintain both sizes are same. |
|
Back to top |
|
|
revel
Active User
Joined: 05 Apr 2005 Posts: 135 Location: Bangalore/Chennai-INDIA
|
|
|
|
Hi praveen
Quote: |
When I am moving value into the fields additional zeros are being padded.Can any one suggest me how to avoid zero padding? |
In case of numeric data item ie;
Code: |
01 A PIC 9(04).
01 B PIC 9(02). |
lets assume you are having value 12 in B
you are moving
B TO A
Since A is a type of Numeric data item the value always filling from right most side to left..
ie
Code: |
A is [] [] [] [] 4 bytes
B is [] [] value 12 |
when u moved B TO A
it will from right ie
[] [] [] []
0 0 1 2 here left 2 bytes will padded with zero use always EDITING ITEMS
ie Declare
A has
So Zero will be supressed in above case |
|
Back to top |
|
|
jpraveenreddy
New User
Joined: 30 Nov 2007 Posts: 28 Location: mysore
|
|
|
|
Hi All,
Thanx for ur suggetions.
TO Raghu: I did what u said.Now issue is solved. |
|
Back to top |
|
|
|