`man sed` is your friend here. Making a few assumptions, I guess these should work for you:
sed -e 's/REF\*SY\*[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/REF*SY*111111111/g'
perl -pe 's/REF\*SY\*[0-9]{9}REF*SY*111111111/g'
`man sed` is your friend here. Making a few assumptions, I guess these should work for you:
sed -e 's/REF\*SY\*[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/REF*SY*111111111/g'
perl -pe 's/REF\*SY\*[0-9]{9}REF*SY*111111111/g'