SAS datafile

  • Hello everybody,

    Let me cover this topic one more time in hope that you will either add it into FAQ or will just respond to the users directly (i.e. dont just close the ticket without reading it).

    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.

    Please let me know if you have any further questions regarding this topic. 
    Thanks, 
    Dmitry

    August 24, 2015, 18:18
    User photo
    Dmitry Basko 
    Circle Systems
    • Hello Steve,

      You are absolutely correct, that is just a CEDA warning that can be safely ignored. 
      I am reassigning the ticket to myself. Chances are the data representation set by the user may not correspond to the actual one written to the output SAS dataset. I noticed that problem when was working on SPSS /PLinux change but did not have time to verify my assumption before leaving. I am going to do that first thing after I finish with all opened OEM cases and PLinux stuff.

      PS: the user sent the error report.

      Thanks, 
      Dmitry

      August 22, 2015, 17:24
      User photo
      Elizabeth Cain 
      Circle Systems
      • duh you are right !!!!.....It reversed in my head, thought he is converting from stata or excel..., that is why did not make sense to me

        August 19, 2015, 11:14
        User photo
        Steven Dubnoff 
        Circle Systems
        • Hello Ed:

          The output representation should match the version of SAS that you are using -- it is not clear from your post which one you are using.

          I should emphasize that that is not a SAS error. It is a warning. It is only telling you that the file is being read by SAS's cross-platform code (CEDA) and not by the code that is native to the platform on which it is running. This may or may not result in marginally slower SAS performance, but it will not affect SAS's ability to read the file.

          If you can't get rid of it and it really bothers you, do a proc copy in SAS and that will cure the problem.

          Best,

          Steve

          August 19, 2015, 11:11
          User photo
          Steven Dubnoff 
          Circle Systems
          • He clearly is writing:

            >> 
            I just downloaded Stat Transfer 13 and am having trouble converting datafiles to SAS data files. 
            I tried converting data from Stata v14 and Excel but get the same message. 
            >> 
            He is complaining about a SAS warning.

            S

            August 19, 2015, 11:07
            • i tried changing that 32-bit SAs and i got the same error

              August 19, 2015, 11:04
              User photo
              Elizabeth Cain 
              Circle Systems
              • Hi Steve:

                One thing is not clear to me here. He is reading SAS file, and why this option is under Sas-Writing.?

                eliz

                August 19, 2015, 11:03
                User photo
                Elizabeth Cain 
                Circle Systems
                • Hi Ed;

                  One more thing to try. Your file was written for a different platform that you are currently using. One thing you can try to go to sas-writing and change sas data representation option.

                  Thanks

                  Elizabeth

                  August 19, 2015, 11:01
                  User photo
                  Steven Dubnoff 
                  Circle Systems
                  • This does not require an error report. It is not an error. SAS is telling him it can read the file, but it was written for a different platform than the one he is using. Generally, if he adjusts the "SAS Data Representation" option on the "SAS Writing" tab, it will go away. Even if if it does not SAS will only be marginally slower reading the file.

                    S

                    August 19, 2015, 10:53
                    User photo
                    Elizabeth Cain 
                    Circle Systems
                    • Hi Ed:

                      Could you please go to log tab and press send error report. In the description you can reference this ticket number. You will have a choice to attach your input file, check box to check.

                      Thanks

                      Elizabeth

                      August 19, 2015, 10:50
                      Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.