<?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: Avoiding case sensitive in TRANWRD function. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110208#M22862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then how about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat text $50.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input text &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;This is my program&lt;/P&gt;&lt;P&gt;PROGRAM is mine&lt;/P&gt;&lt;P&gt;Change PROgram&lt;/P&gt;&lt;P&gt;ThisPrOGrAMworks&lt;/P&gt;&lt;P&gt;This program is my program&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while(index(upcase(text),"PROGRAM"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(text,index(upcase(text),"PROGRAM"),7)="progra~";&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text=tranwrd(text,"progra~","programming");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2012 15:13:42 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-08-31T15:13:42Z</dc:date>
    <item>
      <title>Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110205#M22859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a word PROGRAM that can be in differnt cases (lowcase,upcase,mixed) in each observation like Program , PROGRAM , program,PRogRam&lt;BR /&gt;.In what ever the case it may be or at whatever position of the word i have to change this into Programming.Since tranwrd function is case sensitive , unable to&amp;nbsp; convert this into required output.Is there any way that can be done wihtout impacting other strings or characters in a text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text&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;&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;&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;&amp;nbsp; Output&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;BR /&gt;ex: This is my program&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is my Programming&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROGRAM is mine&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;&amp;nbsp; Programming is mine.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change PROgram&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;&amp;nbsp;&amp;nbsp; Change Programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone clarify this.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 13:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110205#M22859</guid>
      <dc:creator>keen_sas</dc:creator>
      <dc:date>2012-08-31T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110206#M22860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't you get what you want by upcasing text when you use tranwrd?&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat text $50.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input text &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;This is my program&lt;/P&gt;&lt;P&gt;PROGRAM is mine&lt;/P&gt;&lt;P&gt;Change PROgram&lt;/P&gt;&lt;P&gt;ThisPrOGrAMworks&lt;/P&gt;&lt;P&gt;This program is my program&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text=tranwrd(upcase(text),"PROGRAM","programming");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 13:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110206#M22860</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-31T13:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110207#M22861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Art ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had already tried by this method . By using upcase/lowcase it will&amp;nbsp; even convert the other strings in the text into&amp;nbsp; UPCASE/LOWCASE.&amp;nbsp; the&amp;nbsp; other strings in the text should not&amp;nbsp; be altered they should&amp;nbsp; be in the same case as they are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the below output you can see&amp;nbsp; the other strings are&amp;nbsp; coverted into UPCASE. &lt;/P&gt;&lt;P&gt;THIS IS MY programming&lt;/P&gt;&lt;P&gt;programming IS MINE&lt;/P&gt;&lt;P&gt;CHANGE programming&lt;/P&gt;&lt;P&gt;THIS programming WORKS&lt;/P&gt;&lt;P&gt;THIS programming IS MY programming&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 14:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110207#M22861</guid>
      <dc:creator>keen_sas</dc:creator>
      <dc:date>2012-08-31T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110208#M22862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then how about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat text $50.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input text &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;This is my program&lt;/P&gt;&lt;P&gt;PROGRAM is mine&lt;/P&gt;&lt;P&gt;Change PROgram&lt;/P&gt;&lt;P&gt;ThisPrOGrAMworks&lt;/P&gt;&lt;P&gt;This program is my program&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while(index(upcase(text),"PROGRAM"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(text,index(upcase(text),"PROGRAM"),7)="progra~";&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text=tranwrd(text,"progra~","programming");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 15:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110208#M22862</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-31T15:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110209#M22863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... using Art's data ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data want;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;set have;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;do while (find(upcase(text),"PROGRAM"));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; substr(text,find(upcase(text),"PROGRAM"),7) = 'X*X*X*X';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;text = tranwrd(text,"X*X*X*X","Programming");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 15:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110209#M22863</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-08-31T15:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110210#M22864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can include FIND function modifier "i" which should allow you to remove the UPCASE funtion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 15:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110210#M22864</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-08-31T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110211#M22865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DN: You beat me to it.&amp;nbsp; I don't see any other advantage to using find over index.&amp;nbsp; And, Mike, he wanted lower case programming:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while (find(text,"program",'i'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; substr(text,find(text,"program",'i'),7) = 'X*X*X*X';&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text = tranwrd(text,"X*X*X*X","programming");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 15:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110211#M22865</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-31T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110212#M22866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Arthur Tabachneck wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I don't see any other advantage to using find over index. &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example I don't think there is any other advantage.&amp;nbsp; Startpos that's a different story.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 15:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110212#M22866</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-08-31T15:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110213#M22867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may I ask why STARTPOS should be so different ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 07:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110213#M22867</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2012-09-01T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110214#M22868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;P&gt;your point is well made - there is a useful extension to be implemented here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should suggest it at the SASware ballot - see &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-community-small" data-containerid="2007" data-containertype="14" data-objectid="2009" data-objecttype="14" href="https://communities.sas.com/community/support-communities/ballot"&gt;https://communities.sas.com/community/support-communities/ballot&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 07:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110214#M22868</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2012-09-01T07:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110215#M22869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was just thinking that STARTPOS makes FIND significantly different from INDEX.&amp;nbsp; More powerful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;99&amp;nbsp;&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input text $50.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;101&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; putlog 'before:' text=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startpos=find(text,'program','i',1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;103&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do until(startpos eq 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; substr(text,startpos,7) = 'PROGRAM';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;105&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startpos=find(text,'program','i',startpos+7);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;106&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;107&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; putlog 'during:' text=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;108&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text = tranwrd(text,"PROGRAM","programming");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;109&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; putlog 'after: ' text=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;110&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; putlog ' ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;before:text=This is my program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;during:text=This is my PROGRAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;after: text=This is my programming&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;before:text=PROGRAM is mine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;during:text=PROGRAM is mine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;after: text=programming is mine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;before:text=Change PROgram&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;during:text=Change PROGRAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;after: text=Change programming&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;before:text=ThisPrOGrAMworks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;during:text=ThisPROGRAMworks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;after: text=Thisprogrammingworks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;before:text=This program is my program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;during:text=This PROGRAM is my PROGRAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;after: text=This programming is my programming&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;before:text=programprogram program program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;during:text=PROGRAMPROGRAM PROGRAM PROGRAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;after: text=programmingprogramming programming programming&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 13:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110215#M22869</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-09-01T13:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110216#M22870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use PRXCHANGE instead of TRANWRD, then you can use the "i" modifier to ignore the case in the input string.&amp;nbsp; To convert variable TEXT into variable OUTPUT use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;output = prxchange('s/program/Programming/i',-1,text);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll leave as an exercise how to jazz it up so that the case of the P in Programming matches the original word. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 17:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110216#M22870</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-09-01T17:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110217#M22871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter: have I missed something?&amp;nbsp; I understand DN's points that that the modifier and startpos are extremely nice to have with the find function, but what is being suggested for the ballot?&amp;nbsp; To make the index function precisely the same as the find function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 17:35:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110217#M22871</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-01T17:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110218#M22872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Art&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the original idea.&lt;/P&gt;&lt;P&gt;Provide TRANWRD with the 'i' modifier. &lt;/P&gt;&lt;P&gt;&amp;nbsp; And while they are about it, they could add something similar for the scanning performed by the INPUT @'string' - probably via an INFILE statement option&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 20:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110218#M22872</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2012-09-01T20:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding case sensitive in TRANWRD function.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110219#M22873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm very much with Tom on this one. Not that it couldn't be done without RegEx - but RegEx is just so much more versatile to deal with such cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;&amp;nbsp; infile datalines truncover;&lt;BR /&gt;&amp;nbsp; input text $100.;&lt;BR /&gt;&amp;nbsp; datalines;&lt;BR /&gt;This is my program&lt;BR /&gt;PROGRAM is mine&lt;BR /&gt;Change PROgram&lt;BR /&gt;multiprogram vs time sharing&lt;BR /&gt;programmatic art&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;&amp;nbsp; set have;&lt;BR /&gt;&amp;nbsp; output = prxchange('s/(p)rogram\b/$1rogramming/i',-1,text);&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 01:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-case-sensitive-in-TRANWRD-function/m-p/110219#M22873</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-09-02T01:31:45Z</dc:date>
    </item>
  </channel>
</rss>

