SRETAIN - Retain Source Format

This Natural profile parameter specifies that all existing sources have to be saved in their original encoding format.

Possible settings ON The original code page of an existing Natural source is retained.

If the profile parameter SUTF8 is defined as well, new sources will be saved in UTF-8 format.

OFF For existing Natural sources with format UTF-8 the encoding will not be changed. Existing sources with other encodings will be saved using the current code page.
Default setting ON  
Dynamic specification yes  
Specification within session no  


  1. This parameter only takes effect if sources are edited in a Natural Single Point of Development environment, because otherwise sources which have an encoding that is different from the current code page cannot be opened anyway.
  2. When new sources are created, they will be saved either in the current code page format or in UTF-8 format, depending on the setting of profile parameter SUTF8. This is independent of the setting of SRETAIN.
  3. If a source can not be saved in the target code page format, because this code page does not define all characters contained in the source, a message is displayed which allows the user to choose whether he/she wants to remove the problematic characters or cancel the save process.
  4. See also Profile Parameters in the Unicode and Code Page Support documentation.