Read through the section in the help file about source code manipulation. Specifically the following commands: PRGEDIT, PRGSET, USE, EXEC