hi
I have sequential text files that have $ amounts prefixed to the value and there are several columns.
How do i strip them before i laod them to orcale tables.
Should i define the COLA under seq stage as varchar2 and in oracle as a regular number(8,3)
EG:
Col A ColB ( in oracle )
$4455.444 4455.444
thanks
rxs0005
Strip $ sign from Sequential file
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 503
- Joined: Wed Jun 29, 2005 8:14 am
Re: Strip $ sign from Sequential file
use this function in transformer and then load it in the table -->
Convert("$","",Column A)
Convert("$","",Column A)
Re: Strip $ sign from Sequential file
Yes. There are many ways to strip the dollar sign, one such way would be to use the EReplace function.rxs0005 wrote:Should i define the COLA under seq stage as varchar and in oracle as a regular number(8,3)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 21
- Joined: Fri Nov 04, 2005 11:31 am
Re: Strip $ sign from Sequential file
several ways are there .
you can use shell script to remove $
sed 's/\$//g' < file name>
you can use this script for other files.
it is faster.
regards
manoj
you can use shell script to remove $
sed 's/\$//g' < file name>
you can use this script for other files.
it is faster.
regards
manoj