Not getting Negitive balances in sas dataset

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
venugopal81
Participant
Posts: 49
Joined: Sat Mar 26, 2005 12:19 am

Not getting Negitive balances in sas dataset

Post by venugopal81 »

I have changed current_bal field from varchar to numeric. Because I need to shown the negative balances in SAS.

But, some of the records are rejected and shown this warrning message.

Field
0: Import warning at record 21592:
"Current_Bal" has import error and no default value; data: {1 0 0 . 0 0 -}, at offset: 507


source: source.csv

Please advise me.

thanks
venu
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi All,
Can anyone help with this?
(venugopal81 your more then welcome to submit a solution if you have 1 by now)
Thanks,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What kind of numeric did you redefine this column as? Does it have 2 decimal places? It is better to keep this as a text column and then apply a datatype conversion to decimal (StringToDecimal) inside the job. Basically the error is that "100.00-" cannot be parsed. Perhaps it is the trailing zero - which is why the StringToDecimal() function is better as you can specify the format accordingly.
Post Reply