Decimal field with Trailing negative signs
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The complication I had was that the Amount was the final column in the delimited sequential file.
eg.
ORDERA,ITEMA,12345.67-
ORDERA,ITEMB,98765.43
When defining the Amount column as a decimal (with "packed=no" and "sign position=trailing"), the row was dropped with the message in the log:
SF_ReadPayment,0: Field "AMOUNT" with 'delim=end' did not consume entire input, at offset: 99
Because this is an adhoc throw-away job, I read the column in as a Varchar and used DSguru2B's "string manipulation" method.
However, it would've been nicer if it could've been handled in the read stage.
eg.
ORDERA,ITEMA,12345.67-
ORDERA,ITEMB,98765.43
When defining the Amount column as a decimal (with "packed=no" and "sign position=trailing"), the row was dropped with the message in the log:
SF_ReadPayment,0: Field "AMOUNT" with 'delim=end' did not consume entire input, at offset: 99
Because this is an adhoc throw-away job, I read the column in as a Varchar and used DSguru2B's "string manipulation" method.
However, it would've been nicer if it could've been handled in the read stage.