Ariba,
You should only need Tcl for the last issue (assuming you are using an Xlate). Everything else should be accomplishable within your Xlate.
I am certain many folks have various Xlate Tcl scripts to remove the dashes from the SSN.
If you want to discuss this off line email me at michiliman@comcast.net
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.