DataReader: cannot read right-justified numeric field

Hi,

My FMT looks like this:

<?xml version="1.0" encoding="UTF-8"?>

and my fix-length data looks like this:

a 100
b 200

when I try to read this data using the Data_Reader, i am getting this message:

WARN [INPUT_0] - amt (numeric) cannot be set to " 100" in field # 1 of record # 1

and my output file is empty…

Is there a workaround or fix to read numeric field that is right-justified with leading blanks in a fix-length data file?

Thanks,
al

Hi Al,
I can’t reproduce your problem. Which Clover version do you use?

Hi Agata,

I am using version 2.5.2

al

I run the graph under the 2.5.2 version with Universal Data Reader as well as with Fixlen Data Reader, and both run successfully.
Do you have space before end of line (the number has length 5)?

Hi Agata,

yes, i have 2 spaces in front of my amt… so it’s " 100" and " 200" are my amt values…

al

Hi, I really don’t know where the problem can be. Maybe setting locale could help.