We assume that the current response for data set one is rspfile.
XSPEC> gain 1 0.98 ! The first data set's response is adjusted with a slope of 0.98.XSPEC> gain 1,,.03 ! The offset also is moved now by 0.03 channels.
XSPEC> gain ,, 1 0 ! Now the response is explicitly restored to the nominal value.
XSPEC> gain ,, 1.1 -.5 ! Now it is adjusted, with slope 1.1 and offset -0.05.
XSPEC> response 1 none ! The response is removed.
XSPEC> response rspfile ! rspfile.rsp is used as the response, the gain is reset to nominal.