<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Importing file into SAS EG and Importing same file into SAS Viya - then comparing them in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Importing-file-into-SAS-EG-and-Importing-same-file-into-SAS-Viya/m-p/559287#M7565</link>
    <description>&lt;P&gt;Please see the information provided in this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Studio/Import-Pipe-Delimited-File-into-SAS-Viya/m-p/551901#M7412" target="_self"&gt;https://communities.sas.com/t5/SAS-Studio/Import-Pipe-Delimited-File-into-SAS-Viya/m-p/551901#M7412&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To put it simply, its possible for their to be variance when using PROC IMPORT between different SAS Interfaces (SAS EG v. SAS Viya). The example in the link is more drastic than yours, in that it completely changes the formats from character to number ( or the other way around). Where in your case the PROC IMPORT steps, across both EG and Viya, recognize the variable as character and the actual format/informat is where the variance occurs. To ensure consistency between the two, you should explicitly define the types and lengths to ensure it's the format you need instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 12:32:10 GMT</pubDate>
    <dc:creator>tsap</dc:creator>
    <dc:date>2019-05-16T12:32:10Z</dc:date>
    <item>
      <title>Importing file into SAS EG and Importing same file into SAS Viya - then comparing them</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-file-into-SAS-EG-and-Importing-same-file-into-SAS-Viya/m-p/559183#M7564</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Hi,&lt;BR /&gt;I imported a file using the import utility in SAS EG and I imported the same file using the following &lt;BR /&gt;PROC IMPORT command and everything was good except for the format and informat values. See below.&lt;BR /&gt;
/* Assign your library names */

libname mesahome "/sasshare/prd/AUDIT/BlackMESA/";

PROC IMPORT OUT = mesahome.blackmesa_RFC_predict_feb19_2
       DATAFILE= '/sasshare/prd/AUDIT/BlackMESA/blackmesa_RFC_predict_feb19.csv'
       DBMS=DLM REPLACE;
       DELIMITER = ",";
       GETNAMES = YES;
       GUESSINGROWS=10000;
RUN;

Field Data Type using above code in SAS Viya

Property           Value
Label              Objvalue
Name               Objvalue
Length             8
Type               Numeric
Format             BEST12
Informat           BEST32


Field  Data Type from SAS EG import

Property           Value
Label              Objvalue
Name               Objvalue
Length             8
Type               Numeric
Format             BEST8
Informat           BEST8&lt;BR /&gt;&lt;BR /&gt;Bruce












&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 May 2019 22:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-file-into-SAS-EG-and-Importing-same-file-into-SAS-Viya/m-p/559183#M7564</guid>
      <dc:creator>BruceTao</dc:creator>
      <dc:date>2019-05-15T22:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Importing file into SAS EG and Importing same file into SAS Viya - then comparing them</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Importing-file-into-SAS-EG-and-Importing-same-file-into-SAS-Viya/m-p/559287#M7565</link>
      <description>&lt;P&gt;Please see the information provided in this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Studio/Import-Pipe-Delimited-File-into-SAS-Viya/m-p/551901#M7412" target="_self"&gt;https://communities.sas.com/t5/SAS-Studio/Import-Pipe-Delimited-File-into-SAS-Viya/m-p/551901#M7412&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To put it simply, its possible for their to be variance when using PROC IMPORT between different SAS Interfaces (SAS EG v. SAS Viya). The example in the link is more drastic than yours, in that it completely changes the formats from character to number ( or the other way around). Where in your case the PROC IMPORT steps, across both EG and Viya, recognize the variable as character and the actual format/informat is where the variance occurs. To ensure consistency between the two, you should explicitly define the types and lengths to ensure it's the format you need instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 12:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Importing-file-into-SAS-EG-and-Importing-same-file-into-SAS-Viya/m-p/559287#M7565</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-05-16T12:32:10Z</dc:date>
    </item>
  </channel>
</rss>

