<?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: how to ask SAS continuous to read data after the last variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457422#M115976</link>
    <description>&lt;P&gt;Here's what can be used to replace the INPUT statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input GenderType $ 1-5&amp;nbsp;&amp;nbsp; year 7-10&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30987"&gt;@11&lt;/a&gt; total comma6. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183164"&gt;@29&lt;/a&gt; AsofDate mmddyy10. @;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;input GenderType $ 40-44&amp;nbsp; year 46-49&amp;nbsp; @51 total comma6.&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/119374"&gt;@69&lt;/a&gt; AsofDate mmddyy10.;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;format asofdate yymmdd10.;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 17:52:28 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-04-25T17:52:28Z</dc:date>
    <item>
      <title>how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457411#M115969</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a line of raw data as follow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variables: GenderType Year Total Asofdate&lt;BR /&gt;ihe-M 1970 5,044 Retrieved: 03/14/2012 f-IHE 1970&amp;nbsp; 3,537 Retrieved: 03/14/2012&lt;BR /&gt;ihe-m 1980 5,874 Retrieved: 03/14/2012 f-IHE 1980&amp;nbsp; 6,223 Retrieved: 03/14/2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should have four gendertype but I can only read ihe-M and ihe-m.&amp;nbsp; How to ask SAS to pick up f-IHE and f-IHE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if I put @, it still won't read.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname Lesson08 '/home/coccus030/sasuser.v94/';&lt;BR /&gt;Data Lesson08.college09ds;&lt;BR /&gt;Infile '/home/coccus030/sasuser.v94/institutiondata.txt' firstobs=2;&lt;BR /&gt;Input GenderType &amp;amp; $6. Year 7-10 Total comma6. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183164"&gt;@29&lt;/a&gt; AsofDate mmddyy10.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 17:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457411#M115969</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-25T17:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457418#M115973</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202656"&gt;@elsalam&lt;/a&gt;&amp;nbsp;You asked the same question in another thread&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/unable-to-read-messy-raw-data/m-p/457417#M115972" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/unable-to-read-messy-raw-data/m-p/457417#M115972&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly do not duplicate the same questions over and over .. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 17:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457418#M115973</guid>
      <dc:creator>MarkWik</dc:creator>
      <dc:date>2018-04-25T17:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457421#M115975</link>
      <description>&lt;P&gt;Did you check the solution in your other post and did you notice double trailing (@@) which is used to hold the line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=basess&amp;amp;docsetTarget=n068wqvbjnndvjn17mqpoxdj7te7.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=basess&amp;amp;docsetTarget=n068wqvbjnndvjn17mqpoxdj7te7.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 17:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457421#M115975</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-04-25T17:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457422#M115976</link>
      <description>&lt;P&gt;Here's what can be used to replace the INPUT statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input GenderType $ 1-5&amp;nbsp;&amp;nbsp; year 7-10&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30987"&gt;@11&lt;/a&gt; total comma6. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183164"&gt;@29&lt;/a&gt; AsofDate mmddyy10. @;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;input GenderType $ 40-44&amp;nbsp; year 46-49&amp;nbsp; @51 total comma6.&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/119374"&gt;@69&lt;/a&gt; AsofDate mmddyy10.;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;format asofdate yymmdd10.;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 17:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457422#M115976</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-25T17:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457427#M115978</link>
      <description>I am self learning so I use SAS studio.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Whenever I put @@ at SAS studio, the output will keep running and never display the result.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;therefore, I thought SAS studio won't work with @@.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know computer language well enough to understand the issue so my thought might be kind of stupid.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Apr 2018 18:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457427#M115978</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-25T18:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457429#M115980</link>
      <description>&lt;P&gt;I ensure this code will work but I wonder whether or not it has another way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use @@ at SAS studio but it never display the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will continuous to run so I click cancel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 18:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457429#M115980</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-25T18:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457431#M115981</link>
      <description>&lt;P&gt;You can use @@, but you then have to change the INPUT statement.&amp;nbsp; For example, you can't tell SAS to move to column 29 to start reading the date.&amp;nbsp; If you do that, SAS will never get to the end of the line of data (hence you are seeing an infinite loop).&amp;nbsp; You would need to use a style of INPUT that keeps moving from left to right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the format is slightly different on the left vs. the right (two spaces vs. one space separating two of the variables), it's easier to just hard-code all the positions.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 18:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457431#M115981</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-25T18:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457462#M115988</link>
      <description>&lt;P&gt;Do you have any null values represented as spaces only?&amp;nbsp; There are none in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Variables: GenderType Year Total Asofdate
ihe-M 1970 5,044 Retrieved: 03/14/2012 f-IHE 1970  3,537 Retrieved: 03/14/2012
ihe-m 1980 5,874 Retrieved: 03/14/2012 f-IHE 1980  6,223 Retrieved: 03/14/2012&lt;/PRE&gt;
&lt;P&gt;If not then just use list mode input. Why not just read the text in the line to its own variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
  infile 'filename' firstobs=2 truncover ;
  input GenderType :$10. Year Total :$comma. AsOfType :$12. Asofdate :mmddyy. @@;
  format Asofdate yymmdd10. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457462#M115988</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-04-25T19:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to ask SAS continuous to read data after the last variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457841#M116131</link>
      <description>Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your code should work but I want to know the other way on how to&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-ask-SAS-continuous-to-read-data-after-the-last-variable/m-p/457841#M116131</guid>
      <dc:creator>elsalam</dc:creator>
      <dc:date>2018-04-26T17:39:18Z</dc:date>
    </item>
  </channel>
</rss>

