Thanks for the answer, but:
The value newschema is a variable. I'm running all this inside a ksh shell script, so I can't, interactivity, enter any values. They're all read from a temporary file.
I tried substituting the newschema value in the SED command line using the standard KSH $, but...