If the script has been modified, but not saved, you'll be asked if you would like to save changes to that script before you close it. If you close a script without saving, you lose all changes made since the last time you saved it. Before closing an untitled script, Rexx Center displays the Save As dialog box and suggests that you name and save the script.
You can also close a script by using the Close icon on the main window.