<?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: Combine raw data as a new data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150497#M297962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;l_jingn / chouchou,&lt;/P&gt;&lt;P&gt;The message is telling your that:&amp;nbsp; 'C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route1.dat'&amp;nbsp;&amp;nbsp; does not exist check for a typo ....&lt;/P&gt;&lt;P&gt;what happens next is that it will check 'route1.dat' does exist in the current directory ( initial directory the . )&amp;nbsp; in your case 'C:\Users\l_jingn'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The dataset is still not existing there, so the error with that name is given.&lt;/P&gt;&lt;P&gt;As this is run-time error processing stops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More easy to get all files in a directory is using wildcarding:&lt;/P&gt;&lt;P&gt;for example a dir listing showing the first 10 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename ikke '/folders/myfolders' ; &lt;/P&gt;&lt;P&gt;data _null ;&lt;BR /&gt;&amp;nbsp; length filename filenmcr $250 ;&lt;BR /&gt;&amp;nbsp; retain _nfl 1 eovfl 1 ;&lt;BR /&gt;&amp;nbsp; infile ikke(*.sas) filename=filenmcr eov=eovfl eof=tailer end=endfl ; &lt;BR /&gt;&amp;nbsp; input;&amp;nbsp;&amp;nbsp; _nfl=_nfl+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if ( eovfl ) then link header; eovfl=0; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (_nfl &amp;lt;10) then do; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _nfl&amp;nbsp; _infile_ ;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;return;&lt;/P&gt;&lt;P&gt;header:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename=filenmcr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "---&amp;nbsp; f"filenam" --"e ; _nfl=1 ;&lt;BR /&gt;return;&lt;BR /&gt;tailer:&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "total records" _nfl / ; &lt;BR /&gt;return;&amp;nbsp; &lt;BR /&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 07:57:37 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-08-06T07:57:37Z</dc:date>
    <item>
      <title>Combine raw data as a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150496#M297961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, when I submit the code below, the log says:&lt;/P&gt;&lt;P&gt;NOTE: The variable ReadIt exists on an input data set, but was also specified in an I/O&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement option.&amp;nbsp; The variable will not be included on any output data set.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Physical file does not exist, C:\Users\l_jingn\route1.dat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ReadIt=route1.dat lastfile=0 RouteID=&amp;nbsp; Origin=&amp;nbsp; Dest=&amp;nbsp; Distance=. Farelst=. FareBusiness=.&lt;/P&gt;&lt;P&gt;FareEcon=. FareCargo=. output=. _ERROR_=1 _N_=1&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set SASUSER.RAWDATA.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.NEWROUTE may be incomplete.&amp;nbsp; When this step was stopped there were&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 observations and 9 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.NEWROUTE was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;CODE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;filename in ('C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route1.dat'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route2.dat'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route3.dat'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route8.dat'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route9.dat'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route10.dat');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data work.newroute;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sasuser.rawdata;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile in filevar=readit end=lastfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while(lastfile=0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input @1 RouteID $7. @8 Origin $3. @11 Dest $3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @14 Distance 5. @19 Farelst 4.&lt;/P&gt;&lt;P&gt; @23 FareBusiness 4. @27 FareEcon 4.&lt;/P&gt;&lt;P&gt; @31 FareCargo 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;QUESTION:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've already specified the physical place of my raw data , why log continues saying that&amp;nbsp; "Physical file does not exist, C:\Users\l_jingn\route1.dat."?&lt;/P&gt;&lt;P&gt;How can I let the code find where my raw data is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 02:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150496#M297961</guid>
      <dc:creator>chouchou</dc:creator>
      <dc:date>2014-08-06T02:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Combine raw data as a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150497#M297962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;l_jingn / chouchou,&lt;/P&gt;&lt;P&gt;The message is telling your that:&amp;nbsp; 'C:\Users\l_jingn\Documents\My SAS Files(32)\9.3\route1.dat'&amp;nbsp;&amp;nbsp; does not exist check for a typo ....&lt;/P&gt;&lt;P&gt;what happens next is that it will check 'route1.dat' does exist in the current directory ( initial directory the . )&amp;nbsp; in your case 'C:\Users\l_jingn'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The dataset is still not existing there, so the error with that name is given.&lt;/P&gt;&lt;P&gt;As this is run-time error processing stops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More easy to get all files in a directory is using wildcarding:&lt;/P&gt;&lt;P&gt;for example a dir listing showing the first 10 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename ikke '/folders/myfolders' ; &lt;/P&gt;&lt;P&gt;data _null ;&lt;BR /&gt;&amp;nbsp; length filename filenmcr $250 ;&lt;BR /&gt;&amp;nbsp; retain _nfl 1 eovfl 1 ;&lt;BR /&gt;&amp;nbsp; infile ikke(*.sas) filename=filenmcr eov=eovfl eof=tailer end=endfl ; &lt;BR /&gt;&amp;nbsp; input;&amp;nbsp;&amp;nbsp; _nfl=_nfl+1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if ( eovfl ) then link header; eovfl=0; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (_nfl &amp;lt;10) then do; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _nfl&amp;nbsp; _infile_ ;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;return;&lt;/P&gt;&lt;P&gt;header:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filename=filenmcr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "---&amp;nbsp; f"filenam" --"e ; _nfl=1 ;&lt;BR /&gt;return;&lt;BR /&gt;tailer:&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "total records" _nfl / ; &lt;BR /&gt;return;&amp;nbsp; &lt;BR /&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 07:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150497#M297962</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-06T07:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Combine raw data as a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150498#M297963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What type of SAS installation do you have? If it's not local but on a server, that server can't see data on your local C drive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 08:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150498#M297963</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-08-06T08:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combine raw data as a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150499#M297964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I suspect he is using the UE edition.&amp;nbsp; Have a look at:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/53/333.html"&gt;http://support.sas.com/kb/53/333.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 09:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150499#M297964</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-08-06T09:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combine raw data as a new data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150500#M297965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not the UE editon as the it is BI/DI server approach running Unix. The error message would give Unix namings.&lt;/P&gt;&lt;P&gt;Not a BI/DI server running as the default directory is wrong according that note. It is set to a configuration directory not the user home.&lt;/P&gt;&lt;P&gt;Indeed that note is showing the cause as described.&amp;nbsp; When a file is not found it will try the current directory.&lt;/P&gt;&lt;P&gt;If you do not a give a path it is the current directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the error message is a windows-related one (C:\...) as the current directory and the intention was to read form that one I am assuming it is a local SAS installation.&lt;/P&gt;&lt;P&gt;The only other way to get this is using a remote connection (Connect/Eguide) where at the Windows server side the user has been defined but the user has placed the data on the desktop.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 09:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-raw-data-as-a-new-data-set/m-p/150500#M297965</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-06T09:41:51Z</dc:date>
    </item>
  </channel>
</rss>

