I'm not completely clear on what you're saying. I take it that the
problem occurs when attempting to save the program (with the ENTER key);
not when trying to run the program.
I also take it that you have a copy of the program, with some parts left
out, already stored in a global variable.
I'm not sure, but you might get by with less memory if you put the
quoted (surrounded by ' ' delimiters) name and the stack and then press
EDIT (which has an effect similar to the 48S series VISIT) rather than
placing the program itself on the stack before editing it.
I'd check for unneeded variables, and purge any found to free up some
memory. Consider temporarily copying some variables to another device
(your PC if you have the cable, otherwise by IR to another 48, or to a
49G that has the 49G to 49G cable plus the 48 series adapter).
If that doesn't do it, then note that by default, ENTER saves a copy of
the stack, and for commands that take arguments from the stack, a copy
of the arguments (or the argument count for commands like \->LIST or
DROPN that take an indefinite number of arguments). This can use up some memory.
So press LeftShift MODES, then MISC, and then press STK and ARG, to free
up some memory by disabling saving the last stack and arguments (enable
them again when you're all done).
If that still doesn't do it, then note that ENTER also, by default,
saves a copy of each of the last 4 the command line strings.
So from the same menu, press CMD twice to discard the last command lines
that are currently saved, and try again.
If that still doesn't do it, then press CMD once to temporarily disable
last command lines saving, but note that I'm not sure what would happen
if there's still not enough memory to put the program on the stack; I
believe the result would be that the command line would be lost, so save
this for the last resort.
Well, now you see why some of us consider 32K to be "not enough" for
some things.
By "skip to a particular program line", do you mean when
single-stepping? If so, then edit the program to place a HALT command
before that line, and when single-stepping, press CONT (LeftShift ON) to
get to the HALT command.
Regards
James