<?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: Reading Raw data file using double trailing @@ in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564622#M11073</link>
    <description>&lt;P&gt;brilliant. learned something new today i.e. &amp;amp; modifier. Do you know the difference between &amp;amp; modifier and : modifier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Awaos&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jun 2019 04:17:18 GMT</pubDate>
    <dc:creator>awais</dc:creator>
    <dc:date>2019-06-08T04:17:18Z</dc:date>
    <item>
      <title>Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564617#M11071</link>
      <description>&lt;P&gt;Please see below the data (from a dat file) I am trying to read. I know that I need to use @@ to read the file but for some reason I am unable to do this through my program. please note that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the first variable (Name) has&amp;nbsp;two words separated by an space,&amp;nbsp;I used column format to read this variable. However, the way the data is, it is causing other issues. &amp;nbsp;When I don't put double trailing, I get just the first four rows on the left and when I apply @@ the program would run indefinitely .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366ff"&gt;&lt;U&gt;Data&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Robin&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;S&amp;nbsp;&amp;nbsp;&amp;nbsp; 28&amp;nbsp;&amp;nbsp; 41 Bald Eagle&amp;nbsp;&amp;nbsp;R 102 244 Barn Owl&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;R 50 110&lt;/P&gt;&lt;P&gt;Osprey&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;&amp;nbsp; R&amp;nbsp;&amp;nbsp; 66 180 Cardinal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;S &amp;nbsp;&amp;nbsp; 23&amp;nbsp;&amp;nbsp;&amp;nbsp;31 Goldfinch&amp;nbsp;&amp;nbsp; S&amp;nbsp; 11&amp;nbsp;&amp;nbsp; 19&lt;/P&gt;&lt;P&gt;Golden Eagle &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R 100 234 Crow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;S &amp;nbsp;&amp;nbsp; 53&amp;nbsp;100 Magpie&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;S&amp;nbsp; 60&amp;nbsp;&amp;nbsp;&amp;nbsp; 90&lt;/P&gt;&lt;P&gt;Elf Owl&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;R&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp; 27 Condor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;R 140&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;FONT color="#3366ff"&gt;Program&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;data bird;&lt;BR /&gt;infile '/folders/myfolders/MyRawData/Birds.dat';&lt;BR /&gt;input Name $1-13 Jungle $ Min Max @@;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="dgrid-scroller"&gt;&lt;DIV class="dgrid-content ui-widget-content"&gt;&lt;DIV class=" dgrid-row ui-state-default dgrid-row-odd"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 08 Jun 2019 03:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564617#M11071</guid>
      <dc:creator>awais</dc:creator>
      <dc:date>2019-06-08T03:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564621#M11072</link>
      <description>&lt;P&gt;As long as you always have more than one space after the name, you can use the ampersand modifier:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data bird;
*infile '/folders/myfolders/MyRawData/Birds.dat';
length name $20 jungle $1;
input Name &amp;amp; Jungle Min Max @@;
datalines;
Robin                  S    28   41 Bald Eagle  R 102 244 Barn Owl    R 50 110
Osprey                R   66 180 Cardinal      S    23   31 Goldfinch   S  11   19
Golden Eagle      R 100 234 Crow           S    53 100 Magpie      S  60    90
Elf Owl                R   15   27 Condor        R 140  300
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 04:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564621#M11072</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-06-08T04:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564622#M11073</link>
      <description>&lt;P&gt;brilliant. learned something new today i.e. &amp;amp; modifier. Do you know the difference between &amp;amp; modifier and : modifier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Awaos&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 04:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564622#M11073</guid>
      <dc:creator>awais</dc:creator>
      <dc:date>2019-06-08T04:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564624#M11074</link>
      <description>&lt;P&gt;Both are features of list directed input. : reads the next token and then applies an informat to that token. &amp;amp; defines the next token as everything until more than one space is encountered. The two modifiers can be combined.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 04:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564624#M11074</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-06-08T04:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw data file using double trailing @@</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564625#M11075</link>
      <description>&lt;P&gt;I kind of looks like you have at least 13 characters for the name. Why not just use a format to read the name?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data bird;
  input Name $13. Jungle $ Min Max @@;
*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8;
cards;
Robin         S   28   41 Bald Eagle    R  102  244 Barn Owl      R   50  110
Osprey        R   66  180 Cardinal      S   23   31 Goldfinch     S   11   19
Golden Eagle  R  100  234 Crow          S   53  100 Magpie        S   60   90
Elf Owl       R   15   27 Condor        R  140  300
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it is really hard to see what you file looks like when you paste it into the body of you question (without using the pop-ups that preserve formatting) because the forum editor thinks you are typing paragraphs and not only uses a non-fixed width font but can remove spaces and end of lines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2019 04:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-Raw-data-file-using-double-trailing/m-p/564625#M11075</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-08T04:41:23Z</dc:date>
    </item>
  </channel>
</rss>

