For example,
Current format of Address1:
111 Michigan Ave, NW
Correct Format is
111 Michigan Ave NW
But csv file has only
111 in the Address1 field.
I have spent way too much time on trying to fix it. I would appreciate any help! Thanks!
Here is my tcl xlt code that I call while copying Address1 field.
proc xlt_rmv_comma_Addr1 {} {
upvar xlateId xlateId
xlateInList xlateInList
xlateInTypes xlateInTypes
xlateInVals xlateInVals
xlateOutList xlateOutList
xlateOutTypes xlateOutTypes
xlateOutVals xlateOutVals
set xlateOutVals ” ”
set Addr1 ” ”
assign_list $xlateInVals Addr1
if [regexp {[,]} $Addr1] {
regsub -all {,} $Addr1 {} Addr1
set xlateOutVals $Addr1
echo “Corrected Address:” $xlateOutVals
} else {
set xlateOutVals $Addr1
}
}