<?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: doubt in TRUNCOVER infile option in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/doubt-in-TRUNCOVER-infile-option-in-SAS/m-p/487701#M127104</link>
    <description>&lt;P&gt;One aspect of datalines is automatic padding to 80 characters. Any line in a datalines block that has less than 80 characters is automatically extended. So truncover is only needed with datalines if you want to read more than 80 characters, or you work with delimited data and have possible empty fields at the end of a line.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 10:37:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-08-17T10:37:55Z</dc:date>
    <item>
      <title>doubt in TRUNCOVER infile option in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/doubt-in-TRUNCOVER-infile-option-in-SAS/m-p/487658#M127089</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have learnt about TRUNCOVER option and worked with the below code without providing the option in INFILE statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data sample;&lt;BR /&gt;length no $5.;&lt;BR /&gt;input no $;&lt;BR /&gt;datalines;&lt;BR /&gt;1&lt;BR /&gt;22&lt;BR /&gt;333&lt;BR /&gt;4444&lt;BR /&gt;55555&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am expecting data like below for the variable "No" as i have not provided TRUNCOVER option in INFILE satatement&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;4444&lt;/P&gt;&lt;P&gt;55555&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But to my surprise i am seeing data like this&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;333&lt;/P&gt;&lt;P&gt;4444&lt;/P&gt;&lt;P&gt;55555&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how this is working without providing TRUNCOVER option in the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me in understanding this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 08:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/doubt-in-TRUNCOVER-infile-option-in-SAS/m-p/487658#M127089</guid>
      <dc:creator>Swapnas</dc:creator>
      <dc:date>2018-08-17T08:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in TRUNCOVER infile option in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/doubt-in-TRUNCOVER-infile-option-in-SAS/m-p/487663#M127090</link>
      <description>&lt;P&gt;Truncover is not used anywhere in your post??&lt;/P&gt;
&lt;P&gt;This code:&lt;/P&gt;
&lt;PRE&gt;data sample;
length no $5.;
input no $;
datalines;
1
22
333
4444
55555
;
run;&lt;/PRE&gt;
&lt;P&gt;Is basically saying, read a string from the datalines up until the first space (unless you change the delimiter) and put that in no before moving the pointer on.&amp;nbsp; As there is one string per line you get one per output observations.&amp;nbsp; Exactly as you have coded it, no truncover used anywhere?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe this paper will help you:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi26/p009-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p009-26.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 08:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/doubt-in-TRUNCOVER-infile-option-in-SAS/m-p/487663#M127090</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-17T08:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in TRUNCOVER infile option in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/doubt-in-TRUNCOVER-infile-option-in-SAS/m-p/487701#M127104</link>
      <description>&lt;P&gt;One aspect of datalines is automatic padding to 80 characters. Any line in a datalines block that has less than 80 characters is automatically extended. So truncover is only needed with datalines if you want to read more than 80 characters, or you work with delimited data and have possible empty fields at the end of a line.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 10:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/doubt-in-TRUNCOVER-infile-option-in-SAS/m-p/487701#M127104</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-17T10:37:55Z</dc:date>
    </item>
  </channel>
</rss>

