11-14-2007 5:41 PM
Hi guys my problem is,
I have a struct which has the foll component of type c(7).
z_rate(7) type c.
I need to download this to a text file in a way that it shows just two decimal places but doesn not condense the rest of the space.
eg
11.00 nextvalNEXTVAL.....and so forth
at the moment the txt file appears like this
11.0000nextvalNEXTVAL.....and so forth
I am passing value to z_rate like this
data:source(4) type p dec 4.
buffer(4) type p dec 2.
buffer = source.
z_rate = buffer.
append struct.
Please advise.
Points assured
11-14-2007 5:45 PM
It looks ok.. May be you are not clearing the existing contents of the Z_RATE.
data:source(4) type p dec 4.
buffer(4) type p dec 2.
clear z_rate.
buffer = source.
z_rate = buffer.
append struct.
Regards,
Naimesh Patel
11-14-2007 5:43 PM
Sameer,
data:source(4) type p dec 2."instead of data:source(4) type p dec 4.
Regards
Aneesh.
11-14-2007 5:45 PM
It looks ok.. May be you are not clearing the existing contents of the Z_RATE.
data:source(4) type p dec 4.
buffer(4) type p dec 2.
clear z_rate.
buffer = source.
z_rate = buffer.
append struct.
Regards,
Naimesh Patel
11-14-2007 9:09 PM
u were abolutly right my friend !
mayb iam nt getting enuf sleep
rgds
Sameer