<?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: How to use index function and tranwrd function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-index-function-and-tranwrd-function/m-p/88656#M289458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like a typo, instead of di you have specified id in the Tranwrd call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2013 08:36:57 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2013-03-26T08:36:57Z</dc:date>
    <item>
      <title>How to use index function and tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-index-function-and-tranwrd-function/m-p/88655#M289457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;I Created dataset as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;data sushil.tsk1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;input subjid$ InvestigatorName$5-25;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;datalines;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1001 Ramachandiran&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1002 Umabadi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1003 Seshadi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1004 Mandadi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1005 Kodumudivenu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1006 Vadivelu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1007 SevadiKesavamoorhty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;1008 Semmadirajan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;I wrote the code, to find the position of "di" in Investigator variable and replace the "di" with Change but its not working Could any one help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;data sushil.task1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;set sushil.tsk1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Inv_Pos = index(InvestigatorName,'id');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Inv_Change = Tranwrd(InvestigatorName,'id','CHANGE');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;Using this Code Required Output is not coming Could any one help me &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 07:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-index-function-and-tranwrd-function/m-p/88655#M289457</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2013-03-26T07:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use index function and tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-index-function-and-tranwrd-function/m-p/88656#M289458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like a typo, instead of di you have specified id in the Tranwrd call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 08:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-index-function-and-tranwrd-function/m-p/88656#M289458</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-03-26T08:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use index function and tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-index-function-and-tranwrd-function/m-p/88657#M289459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes thank you i got that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-index-function-and-tranwrd-function/m-p/88657#M289459</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2013-03-26T13:11:02Z</dc:date>
    </item>
  </channel>
</rss>

