<?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: Question with Regard to Referring to Observation Number Variable in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-with-Regard-to-Referring-to-Observation-Number-Variable/m-p/917306#M361337</link>
    <description>&lt;P&gt;Thanks so much for your help&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 05:45:30 GMT</pubDate>
    <dc:creator>JackZ295</dc:creator>
    <dc:date>2024-02-22T05:45:30Z</dc:date>
    <item>
      <title>Question with Regard to Referring to Observation Number Variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-with-Regard-to-Referring-to-Observation-Number-Variable/m-p/917196#M361292</link>
      <description>&lt;P&gt;Hi! I was trying to read in a data set into SAS, but I ran into the following issue in my log:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Some character data was lost during transcoding in column: sq105j_s at obs 3739.&lt;BR /&gt;WARNING: Some character data was lost during transcoding in column: sh102c at obs 14322.&lt;BR /&gt;WARNING: Some character data was lost during transcoding in column: db107_s at obs 16615.&lt;BR /&gt;WARNING: Some character data was lost during transcoding in column: ue115b at obs 21310.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to print out the data set and reference those observation numbers to see why those particular observations have issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I go about referring to the observation number in my SAS code (I know there is a built in SAS variable for observation number)? When I tried utilizing the _N_ variable, it didn't seem to work. Any input regarding this would be much appreciated! Thanks so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 17:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-with-Regard-to-Referring-to-Observation-Number-Variable/m-p/917196#M361292</guid>
      <dc:creator>JackZ295</dc:creator>
      <dc:date>2024-02-21T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question with Regard to Referring to Observation Number Variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-with-Regard-to-Referring-to-Observation-Number-Variable/m-p/917198#M361293</link>
      <description>&lt;P&gt;It really depends on what code you ran that produced those notes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just did something simple like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you could use the _N_ automatic variable in another data step to filter to just the observations mentioned in the log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data problems ;
  set have;
  if _n_ in (3739 14322 16615 21310);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But to really see what was in that data that caused the transcoding issue you will want to read it without transcoding. So you might want to add ENCODING=ANY dataset option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data problems ;
  set have (encoding=any);
  if _n_ in (3739 14322 16615 21310);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Feb 2024 17:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-with-Regard-to-Referring-to-Observation-Number-Variable/m-p/917198#M361293</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-02-21T17:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question with Regard to Referring to Observation Number Variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-with-Regard-to-Referring-to-Observation-Number-Variable/m-p/917306#M361337</link>
      <description>&lt;P&gt;Thanks so much for your help&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 05:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-with-Regard-to-Referring-to-Observation-Number-Variable/m-p/917306#M361337</guid>
      <dc:creator>JackZ295</dc:creator>
      <dc:date>2024-02-22T05:45:30Z</dc:date>
    </item>
  </channel>
</rss>

