<?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: Diff Between Missover and Truncover in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47593#M12781</link>
    <description>The SAS support website &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  has a wealth of information and DOC for what you're asking.  A search at the site using your keywords generates several hits.  Also, a Google advanced search using the keywords below also provides many hits:&lt;BR /&gt;
&lt;BR /&gt;
+missover +truncover site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Also, you can add the following PUTLOG (new with SAS 9) statement to generate additional diagnostics with your DATA step to see how SAS handles the various conditions.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.2 DOC on INFILE statement:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000146932.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000146932.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS support DOC starting page (recommend bookmarking this page):&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/" target="_blank"&gt;http://support.sas.com/documentation/&lt;/A&gt;</description>
    <pubDate>Thu, 18 Sep 2008 13:03:25 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2008-09-18T13:03:25Z</dc:date>
    <item>
      <title>Diff Between Missover and Truncover</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47592#M12780</link>
      <description>Hi can any one help me by giving correct defonotion for missover and truncover with examples.</description>
      <pubDate>Thu, 18 Sep 2008 05:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47592#M12780</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2008-09-18T05:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Between Missover and Truncover</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47593#M12781</link>
      <description>The SAS support website &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  has a wealth of information and DOC for what you're asking.  A search at the site using your keywords generates several hits.  Also, a Google advanced search using the keywords below also provides many hits:&lt;BR /&gt;
&lt;BR /&gt;
+missover +truncover site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Also, you can add the following PUTLOG (new with SAS 9) statement to generate additional diagnostics with your DATA step to see how SAS handles the various conditions.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.2 DOC on INFILE statement:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000146932.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000146932.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS support DOC starting page (recommend bookmarking this page):&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/" target="_blank"&gt;http://support.sas.com/documentation/&lt;/A&gt;</description>
      <pubDate>Thu, 18 Sep 2008 13:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47593#M12781</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-18T13:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Between Missover and Truncover</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47594#M12782</link>
      <description>Hi All,&lt;BR /&gt;
          I have a Ascii file which is fixed width length. In the SAS program, I am reading the file through Infile option. I have data as below:&lt;BR /&gt;
&lt;BR /&gt;
1201            2008-10-31                                             5702345678   2334&lt;BR /&gt;
First column I should read as : 1&lt;BR /&gt;
Second Column: 201&lt;BR /&gt;
Third Column:&lt;BR /&gt;
Fourth: 2008-10-31&lt;BR /&gt;
Fifth:&lt;BR /&gt;
Sixth:&lt;BR /&gt;
Seventh:&lt;BR /&gt;
Eigth:570&lt;BR /&gt;
Ninth:2345678&lt;BR /&gt;
tenth:&lt;BR /&gt;
Eleventh:2334&lt;BR /&gt;
&lt;BR /&gt;
But when I use infile option it is only reading first three columns and rest columns are empty even though some of the columns are having data.&lt;BR /&gt;
&lt;BR /&gt;
Here is my code snippet.&lt;BR /&gt;
data _null_;&lt;BR /&gt;
filename temp "/mydir/filename.txt";&lt;BR /&gt;
libname wip '$PWD/old';&lt;BR /&gt;
&lt;BR /&gt;
data wip.basic_xtrct;&lt;BR /&gt;
infile temp truncover;&lt;BR /&gt;
input @1 first $1.&lt;BR /&gt;
        @2 Second $3.&lt;BR /&gt;
        @3 Third      $10.&lt;BR /&gt;
run;  &lt;BR /&gt;
&lt;BR /&gt;
Can you please help me in solving this issue.</description>
      <pubDate>Fri, 31 Oct 2008 14:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47594#M12782</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-31T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Between Missover and Truncover</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47595#M12783</link>
      <description>Your INPUT statement is using the "@" pointer incorrectly, providing an offset location (column pointer position) within your data record.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Language Dictionary: INPUT Statement discussion (with ref to "column pointer" usage)&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000146292.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a000146292.htm&lt;/A&gt;</description>
      <pubDate>Fri, 31 Oct 2008 15:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47595#M12783</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-31T15:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Between Missover and Truncover</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47596#M12784</link>
      <description>Hi:&lt;BR /&gt;
  As Scott suggested, the doc on column pointer control may prove useful. In addition, it helps to see the data in a "fixed pitch font", where the letter 'i' takes up the same amount of physical space on the line as the letter 'w':&lt;BR /&gt;
[pre]&lt;BR /&gt;
0   0    1    1    2    2    3     &lt;BR /&gt;
1...5....0....5....0....5....0...&lt;BR /&gt;
1201 2008-10-31   5702345678 2334&lt;BR /&gt;
abbbc2008-10-31defggghhhhhhhijjjj&lt;BR /&gt;
xyyyz2008-10-30klmnnnooooooopqqqq&lt;BR /&gt;
[/pre]&lt;BR /&gt;
          &lt;BR /&gt;
In the above example, I've taken your data and made it appear in a fixed font. I've added some "column info" above your data. So, you can see that position 1 (or @1) in the input line holds the value '1'. The date 2008-10-31 starts in position 6 (or @6) -- it may only be the 4th variable you read, but it starts in position 6 on the input line (each . represents a column position -- I've only shown the starting 1 and 5 in the column info).&lt;BR /&gt;
 &lt;BR /&gt;
Similarly, your value '570' starts in position 19 or @19 and your value '2334' starts in position 30 or @30.... so working with this "fixed pitch" view of your data, may help you figure out the correct INPUT statement. In order to use column pointer control effectively, ALL your data lines must line up the same way, in the same columns, when you look at them in NOTEPAD. (I made a couple of extra dummy datalines, so you could see everything "line up".)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 31 Oct 2008 17:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Diff-Between-Missover-and-Truncover/m-p/47596#M12784</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-10-31T17:26:14Z</dc:date>
    </item>
  </channel>
</rss>

