INSTRUCTING ARDUINO TO RECALL A PREVIOUSLY GIVEN VALUE

I think all of you have put your finger on the button. Can I use other variables to include the lines:

if (incomingByte == 'X') {
Xstepper.enableOutputs();
Ystepper.disableOutputs();
Xstepper.move(n);
Xstepper.runToPosition();

within the scope of variable n?

is the idea of storing the variable using SRAM ridiculous?

Best, arthur