Hi Rajiv436,
I won't add any new solution but you mentioned EG and the fact that the "code automaticall erased".
The behavior you report is the one available with the Program Editor.
Since SAS8.2, you have access to the Enhanced Editor and the code remains.
From the VIEW menu, you should have the choice between using the Enhanced editor and the Program Editor.
Said that, if you want to use the Program Editor with SAS, you can usually press the F4 key to recall the code
Is EG "SAS Enterprise Guide"?
EG only has the Enhanced Editor, I think.
Cheers,
Damo
... View more