<?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: need help to input sas code as a source file to SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355833#M83364</link>
    <description>&lt;P&gt;NOTE: 0 records were read from the infile "C:\Users\weig3\Desktop\CRF.sas".&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.WANT has 1 observations and 0 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 02:54:39 GMT</pubDate>
    <dc:creator>Defense</dc:creator>
    <dc:date>2017-05-04T02:54:39Z</dc:date>
    <item>
      <title>need help to input sas code as a source file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355828#M83360</link>
      <description>&lt;P&gt;I try to infile a sas file (CRF.sas) to sas using the following code. The output dataset is “Want”.&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; &lt;STRONG&gt;data&lt;/STRONG&gt; want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;infile "C:\Users\weig3\Desktop\CRF.sas" ;&lt;/P&gt;&lt;P&gt;input col $ &lt;STRONG&gt;1&lt;/STRONG&gt;-&lt;STRONG&gt;300&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The CRF.sas contain 6 line as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;The “want” contains only 4 line as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds the line “data data1 (label=”Demographics”);” is missing( Please see attached file for details.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone help me to avoid the error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 02:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355828#M83360</guid>
      <dc:creator>Defense</dc:creator>
      <dc:date>2017-05-04T02:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: need help to input sas code as a source file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355829#M83361</link>
      <description>&lt;P&gt;If you want us to test it, you should upload the text file.&amp;nbsp;To test it, I'd have to type it out and I don't do that on principle &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try changing LRECL on the infile statement and include the TRUNCOVER option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile "C:\Users\weig3\Desktop\CRF.sas" lrecl=300 truncover ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 May 2017 02:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355829#M83361</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-04T02:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: need help to input sas code as a source file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355831#M83362</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Attached is CRF.sas file&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 02:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355831#M83362</guid>
      <dc:creator>Defense</dc:creator>
      <dc:date>2017-05-04T02:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: need help to input sas code as a source file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355832#M83363</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Attached is CRF.sas file&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 02:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355832#M83363</guid>
      <dc:creator>Defense</dc:creator>
      <dc:date>2017-05-04T02:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: need help to input sas code as a source file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355833#M83364</link>
      <description>&lt;P&gt;NOTE: 0 records were read from the infile "C:\Users\weig3\Desktop\CRF.sas".&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.WANT has 1 observations and 0 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.03 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 02:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355833#M83364</guid>
      <dc:creator>Defense</dc:creator>
      <dc:date>2017-05-04T02:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: need help to input sas code as a source file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355838#M83367</link>
      <description>&lt;P&gt;My initial answer was correct in my tests.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 03:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355838#M83367</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-04T03:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: need help to input sas code as a source file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355938#M83403</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I did not add "&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; col $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;complete code is &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; want;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;infile&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;"C:\Users\weig3\Desktop\CRF.sas"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;lrecl&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;truncover&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; col $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Works. Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 12:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-help-to-input-sas-code-as-a-source-file-to-SAS/m-p/355938#M83403</guid>
      <dc:creator>Defense</dc:creator>
      <dc:date>2017-05-04T12:28:01Z</dc:date>
    </item>
  </channel>
</rss>

