Hello there.
If you don't intend to use extra RAM pages, i guess the easiest way is to use _editprog first, so that the program data automatically take all the available free RAM, and then _closeprog once you're done.
Those 2 ROM calls aren't on the wiki though, but you can find them in the official documentation (83psysroutines.pdf).