If any script has been modified, but not saved, you'll be asked if youu 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.
If the script has never been saved at all (ie, it was a newly created script), then Rexx Center always displays the Save As dialog box and suggests that you name and save the script.