sadly I am not on solaris...
I am bumbed now, it keeps changing everything to 0 now...
This should be very simple, just go to the last line, change the second field to 0 save file, end of story, no weird sed, no solaris,
var1=$(cat SocaFileFixed_Final | wc -l)
echo $var1
awk -F"|" -v v="$var1" ' $1==v {$2=0}' myfile
can't see why this doesn't work