<?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: filename statement import data in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498763#M15528</link>
    <description>&lt;P&gt;Maxim 4: Try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run your code, inspect the resulting dataset, and study the log.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 15:15:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-09-25T15:15:40Z</dc:date>
    <item>
      <title>filename statement import data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498760#M15527</link>
      <description>&lt;P&gt;I get 3 flat file witout header. Using coded as follows-&lt;BR /&gt;MAVHIC01 has data-------&lt;/P&gt;&lt;P&gt;1 john calgary&lt;BR /&gt;2 Arvi vancouver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DaTA.BKUP_00 has data---&lt;/P&gt;&lt;P&gt;1 fisher Reddeer&lt;BR /&gt;2 Ahmadi vancouver&lt;BR /&gt;&lt;BR /&gt;DaTA.BKUP_01 has data---&lt;/P&gt;&lt;P&gt;1 mario Ottwa&lt;BR /&gt;2 Julia winnipeg&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME SORTA1 ('/shared/uniki//Mq.FLAT.MAVHIC01'
                 '/shared/uniki/Mq.CMA.DaTA.BKUP_00'
                 '/shared/uniki/Mq.CMA.DaTA.BKUP_01'
                                 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have one .sas file which has input variables and code is as follows-&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;**    Pos  Field Name   Length;
INPUT @1   id                 2.    /* id          */
            @1   name    $     6.    /* employee name         */
            @1   city       $     20.    /* working city           */ &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now I wonder what will be in SORTA1 and how the data will be stored in id,name,city inputs.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 15:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498760#M15527</guid>
      <dc:creator>arv</dc:creator>
      <dc:date>2018-09-25T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: filename statement import data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498763#M15528</link>
      <description>&lt;P&gt;Maxim 4: Try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run your code, inspect the resulting dataset, and study the log.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 15:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498763#M15528</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-25T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: filename statement import data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498766#M15529</link>
      <description>&lt;P&gt;Without knowing whether the file referenced was using in an INFILE or FILE statement it is pretty hard to tell what may be going one.&lt;/P&gt;
&lt;P&gt;If that is used for INFILE with that exact input statement I suspect you will likely not like the contents of Name or City.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 15:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498766#M15529</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-25T15:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: filename statement import data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498770#M15531</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Yes, it is using INFILE as follows-&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data SORTA;
INFILE SORTA1 lrecl=150 RECFM=F;
%INCLUDE '/sas//me/refr/phis.sas';

The phis.sas file has input variables.
** Pos Field Name Length;
INPUT @1 id 2. /* id */
@1 name $ 6. /* employee name */
@1 city $ 20. /* working city */&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 16:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/498770#M15531</guid>
      <dc:creator>arv</dc:creator>
      <dc:date>2018-09-25T16:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: filename statement import data</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/499762#M15539</link>
      <description>&lt;P&gt;And, per &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s suggestion, did you try it?&amp;nbsp; What results did you get?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 03:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/filename-statement-import-data/m-p/499762#M15539</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-09-28T03:17:39Z</dc:date>
    </item>
  </channel>
</rss>

