<?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: ERROR: Import unsuccessful. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579553#M13461</link>
    <description>&lt;P&gt;What do you mean by "unsuccessful" ?&lt;/P&gt;
&lt;P&gt;Pleas post the log. What error messages are there ?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 04:32:04 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2019-08-07T04:32:04Z</dc:date>
    <item>
      <title>ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579547#M13460</link>
      <description>&lt;P&gt;%macro dev(yymmdd);&lt;BR /&gt;proc import datafile = "I:\CRMD\Vintage analysis\Core Banking Data\text data\DEVIATION\Deviation_Tracking_as_at_&amp;amp;yymmdd1..txt"&lt;BR /&gt;out = DEV.Deviation_Tracking_&amp;amp;yymmdd1.&lt;BR /&gt;dbms = dlm&lt;BR /&gt;replace;&lt;BR /&gt;delimiter = '|';&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;%DEV(yymmdd1);&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 03:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579547#M13460</guid>
      <dc:creator>Zizie</dc:creator>
      <dc:date>2019-08-07T03:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579553#M13461</link>
      <description>&lt;P&gt;What do you mean by "unsuccessful" ?&lt;/P&gt;
&lt;P&gt;Pleas post the log. What error messages are there ?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 04:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579553#M13461</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-08-07T04:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579560#M13464</link>
      <description>&lt;P&gt;I guess you want to call your macro with a date. The string "yymmdd1" is not a date.&lt;/P&gt;
&lt;P&gt;If yymmdd1 is a macro variable you created before, you forgot the ampersand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, post the log, using the {i} button.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 05:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579560#M13464</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-07T05:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579563#M13465</link>
      <description>below is the log&lt;BR /&gt;&lt;BR /&gt;ERROR: Physical file does not exist, I:\CRMD\Vintage analysis\Core Banking&lt;BR /&gt;Data\text&lt;BR /&gt;data\DEVIATION\Deviation_Tracking_as_at_20190731.txt.&lt;BR /&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.06 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Aug 2019 05:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579563#M13465</guid>
      <dc:creator>Zizie</dc:creator>
      <dc:date>2019-08-07T05:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579572#M13466</link>
      <description>&lt;P&gt;1) Pay attention to next error message:&lt;/P&gt;
&lt;PRE&gt;ERROR: Physical file does not exist, I:\CRMD\Vintage analysis\Core Banking
Data\text
data\DEVIATION\Deviation_Tracking_as_at_20190731.txt.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;why is file name broken into 3 lines ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;sas cannot find the file as it is written.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) You can't call the macro as you wrote&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%DEV(yymmdd1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;because&amp;nbsp;&lt;STRONG&gt;yymmdd1&amp;nbsp;&lt;/STRONG&gt; is not a date, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;already posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If is a macro variable previously assigned then it should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%DEV(&amp;amp;yymmdd1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Aug 2019 06:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579572#M13466</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-08-07T06:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579574#M13467</link>
      <description>&lt;P&gt;1) I suggest you to change the code into&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let yymmdd1 = 20090807;  /* adapt to desired date and format */&lt;BR /&gt;filename my_text "I:\CRMD\Vintage analysis\Core Banking Data\text data\DEVIATION\Deviation_Tracking_as_at_&amp;amp;yymmdd1..txt";

%macro dev(yymmdd);
proc import datafile = my_text
out = DEV.Deviation_Tracking_&amp;amp;yymmdd1.
dbms = dlm
replace;
delimiter = '|';
run;
%mend;
%DEV(&amp;amp;yymmdd1);   &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and check the log - is there same error for filename statement as before.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If possitive - fix it first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 06:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579574#M13467</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2019-08-07T06:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579582#M13469</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;PLEASE&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; use the&amp;nbsp;&lt;STRONG&gt;{i}&lt;/STRONG&gt; button for posting logs. Otherwise the horizontal formatting is lost, line breaks are inserted, and certain chracters and character sequences changed.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 06:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579582#M13469</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-08-07T06:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Import unsuccessful.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579676#M13480</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165183"&gt;@Zizie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;%macro dev(&lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;yymmdd&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;BR /&gt;proc import datafile = "I:\CRMD\Vintage analysis\Core Banking Data\text data\DEVIATION\Deviation_Tracking_as_at_&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;&amp;amp;yymmdd1&lt;/STRONG&gt;&lt;/FONT&gt;..txt"&lt;BR /&gt;out = DEV.Deviation_Tracking_&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;&amp;amp;yymmdd1&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;BR /&gt;dbms = dlm&lt;BR /&gt;replace;&lt;BR /&gt;delimiter = '|';&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;%DEV(yymmdd1);&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It looks very suspicious that you define the macro to use a parameter YYMMDD but use the macro variable YYMMDD1. So it is quite likely that what you think you pass to the macro is not quite what is used.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 15:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Import-unsuccessful/m-p/579676#M13480</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-07T15:35:18Z</dc:date>
    </item>
  </channel>
</rss>

