<?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: Can someone explain this code to me? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240866#M44529</link>
    <description>I understand&lt;BR /&gt;Thanks Mohamed.</description>
    <pubDate>Fri, 25 Dec 2015 17:27:54 GMT</pubDate>
    <dc:creator>ablo</dc:creator>
    <dc:date>2015-12-25T17:27:54Z</dc:date>
    <item>
      <title>Can someone explain this code to me?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240808#M44496</link>
      <description>&lt;P&gt;The objective here is to output a raw data file. I know that Put and File are used to write raw data file. I am not sure here there is INFILE which is used to read data, cards, missover and &amp;nbsp;text and lrecl?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;infile cards missover length=l;&lt;BR /&gt;length text $ 50;&lt;BR /&gt;input text $varying50. l;&lt;BR /&gt;file aprdata pad lrecl=80;&lt;BR /&gt;put text;&lt;BR /&gt;datalines;&lt;BR /&gt;Akron 04/05/99 04/09/99 175.00 298.45&lt;BR /&gt;Brown 04/12/99 05/01/99 125.00 326.78&lt;BR /&gt;Carnes 04/27/99 04/29/99 125.00 174.24&lt;BR /&gt;Denison 04/11/99 04/12/99 175.00 87.41&lt;BR /&gt;Fields 04/15/99 04/22/99 175.00 378.96&lt;BR /&gt;Jamison 04/16/99 04/23/99 125.00 346.28&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 14:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240808#M44496</guid>
      <dc:creator>ablo</dc:creator>
      <dc:date>2015-12-24T14:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this code to me?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240815#M44497</link>
      <description>&lt;P&gt;First let us make sure that you know that:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DATALINES (or CARDS)&lt;/STRONG&gt; Informs SAS that the input data resides inside the code (in-stream data) and immediately follows the DATALINES (or CARDS) statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Senond thing is:&lt;/P&gt;
&lt;P&gt;You may use the INFILE statement with the DATALINES (or CARDS) to process instream data and still utilize other INFILE options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here in your example INFILE options&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;missover&lt;/STRONG&gt; and &lt;STRONG&gt;&amp;nbsp;length=&lt;/STRONG&gt; are utilized in reading the in-stream data. Both you can read about here &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000188182.htm" target="_self"&gt;INFILE Statement&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Finally, based on previous posts by you i can understand that you are preparing for the base certification. And what i hope is you do not be confused by this sample data code with the book. This code generate data used in the book and you are not asked to know every thing in that code at least for the base exam. You are not going to get any questions out of the exam scopes or reading difficult raw data not covered in the certification book.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 16:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240815#M44497</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-24T16:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this code to me?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240860#M44523</link>
      <description>&lt;P&gt;Hi Mohammed,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you tell me why they have 'text' there?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 17:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240860#M44523</guid>
      <dc:creator>ablo</dc:creator>
      <dc:date>2015-12-25T17:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this code to me?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240862#M44525</link>
      <description>&lt;P&gt;"text" is just a variable name, you can replaced by any valid name...&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 17:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240862#M44525</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-25T17:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this code to me?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240863#M44526</link>
      <description>&lt;P&gt;ok, but what does it do to the put statement? I know that put is the same as input but for writing data to an external file. Usually we have several variable for the number of column in the put statement but here we have "text" only.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 17:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240863#M44526</guid>
      <dc:creator>ablo</dc:creator>
      <dc:date>2015-12-25T17:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this code to me?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240865#M44528</link>
      <description>&lt;P&gt;because as you can see. They red each line in the data lines as one string variable.&lt;/P&gt;
&lt;P&gt;To get a better idea run the code without puting to file&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
infile cards missover length=l;
length text $ 50;
input text $varying50. l;

datalines;
Akron 04/05/99 04/09/99 175.00 298.45
Brown 04/12/99 05/01/99 125.00 326.78
Carnes 04/27/99 04/29/99 125.00 174.24
Denison 04/11/99 04/12/99 175.00 87.41
Fields 04/15/99 04/22/99 175.00 378.96
Jamison 04/16/99 04/23/99 125.00 346.28
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Dec 2015 17:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240865#M44528</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-25T17:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone explain this code to me?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240866#M44529</link>
      <description>I understand&lt;BR /&gt;Thanks Mohamed.</description>
      <pubDate>Fri, 25 Dec 2015 17:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-someone-explain-this-code-to-me/m-p/240866#M44529</guid>
      <dc:creator>ablo</dc:creator>
      <dc:date>2015-12-25T17:27:54Z</dc:date>
    </item>
  </channel>
</rss>

