I am using SAS EG 6.1 and if I run selected code, it disappears after executing (on pressing F3) so is there a way to keep the executing code as well.
What do you mean by disappearing?
If you chose not to replace previous results, your selected code will pop up in a new program node in the process flow.
I mean...it deletes after running the code.
You haven't defined a keyboard macro for F3?
If is t really disappears, talk to SAS tech support.