SAS issue
Sometimes when users open in SAS SAS datasets written by S/T, SAS will give the following warning:
NOTE: Data file DISK_Z.ERROR_W1.DATA is in a format that is native to another host, or the file
encoding does not match the session encoding. Cross Environment Data Access will be used,
which might require additional CPU resources and might reduce performance.
There are 2 reasons why SAS would give such a warning:
a) data representation of the dataset does not correspond to the current SAS platform / architecture.
Example: a SAS dataset was created using Win32 data representation. It can be opened in SAS on Win 32 / Win 64 without getting any warnings (providing that it uses the right encoding, see below). At the same time if one creates a 64 bit SAS dataset he will be able to open it without seeing the warning in SAS 64 bit running on Windows. But if the same file is opened in SAS 32 bit running on Windows, the warning will be shown. Why is that? I guess that is just how SAS works.
I mentioned in the previous reply that S/T v.12 could use the user defined data presentation incorrectly - I was wrong, the latest build of S/T v.12 / v.13 does not have this problem;
b) "file encoding does not match the session encoding" - this is important part of the message which is normally ignored by the user.
When one installs SAS he is given the option to install additional languages. Otherwise the only English build is installed. In this case the session encoding, used by default, is US ASCII (that is kind of strange because this is one the simplest and oldest encodings). In Stat/Transfer GUI we don't even allow uses to set this encoding (US ASCII) because we support far more advanced encodings (i.e. they include US ASCII plus more) such as ISO-8951-1, ISO-8951-15, WIN1252.
Therefore, when the user, using English build of 32 bit Windows (i.e. the default S/T encoding is Win1252 ), creates a 32 bit SAS dataset with Win32 data representation and opens later such a dataset in SAS 32 bit running on Windows he _will get the warning. And the reason will be that the file encoding Win1252 does not correspond to the SAS default one (US ASCII).
At this point if the user wants to avoid getting the warning he can:
a) change the SAS settings / session encoding to make sure that it corresponds to the one used by the file (and since he is the one who created the file he must know the used encoding);
b) run SAS in UTF-8 mode and make S/T write the output SAS dataset in UTF-8 encoding;
How does he change the session encoding, runs SAS in UTF-8 mode ? - the user has to read SAS documentation to obtain that information.