<?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: tranwrd() replace comma with linebreak in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85909#M9139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have used scan function for cases like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let a = 1,2,3,4,5;&lt;/P&gt;&lt;P&gt;data myoutput(drop=count);&lt;/P&gt;&lt;P&gt;retain count 0;&lt;/P&gt;&lt;P&gt;b='.';&lt;/P&gt;&lt;P&gt;do while (b ne '');&lt;/P&gt;&lt;P&gt;&amp;nbsp; count+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=scan("&amp;amp;a",count,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if b ne '' then output;&lt;/P&gt;&lt;P&gt;end ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asko &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2013 11:59:01 GMT</pubDate>
    <dc:creator>AskoLötjönen</dc:creator>
    <dc:date>2013-01-25T11:59:01Z</dc:date>
    <item>
      <title>tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85908#M9138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro variable with a comma separated list of numbers: %let a = 1,2,3,4,5. I'd like to create a sas data set now with one var called id that has 5 rows of which one row contains one number from the comma separated list. Just like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data myoutput;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input id 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I though I could mybe do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data myoutput;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input id 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;&amp;amp;linebreaklist;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;And create the Makrovariable &amp;amp;linebreaklist like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let linebreaklist = %sysfunc(tranwrd(%str(1,2,3,4,5),%str(,),\n));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course with the above statement I get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1\n2\n3\n4\n5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'd like to have&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how I'd have to specify the linebreak in the tranwrd() function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 09:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85908#M9138</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-01-25T09:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85909#M9139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have used scan function for cases like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let a = 1,2,3,4,5;&lt;/P&gt;&lt;P&gt;data myoutput(drop=count);&lt;/P&gt;&lt;P&gt;retain count 0;&lt;/P&gt;&lt;P&gt;b='.';&lt;/P&gt;&lt;P&gt;do while (b ne '');&lt;/P&gt;&lt;P&gt;&amp;nbsp; count+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=scan("&amp;amp;a",count,',');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if b ne '' then output;&lt;/P&gt;&lt;P&gt;end ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asko &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 11:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85909#M9139</guid>
      <dc:creator>AskoLötjönen</dc:creator>
      <dc:date>2013-01-25T11:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85910#M9140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Asko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, that's what I use now. I thought maybe there's a solution without a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 13:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85910#M9140</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-01-25T13:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85911#M9141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't do much computer programming withOUT loops.&amp;nbsp; This one has a loop too. Can you find it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a = 1,2,3,4,5;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;retain&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"&amp;amp;a"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;eof&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=eof &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;dsd&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ eq &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; @@;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _infile_ = a;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; n @@;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;return&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt; eof:&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;cards&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;!necessary evil!&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;;;;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 13:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85911#M9141</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-25T13:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85912#M9142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Of course I know where the loop is.&lt;/P&gt;&lt;P&gt;I just wanted to have something easier to look at without do while.&lt;/P&gt;&lt;P&gt;I found a hint about @@ in some other forum as well. But haven't found much about what it does. Do you know where I find that in the documentation or could you explain it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 16:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85912#M9142</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-01-25T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85913#M9143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could do it if you wanted a text file output (just replace the comma with the ascii crlf (which i think is '0a0d'x).&amp;nbsp; I don't think sas datasets work like that as you need to output a new row instead of just replacing the text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 16:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85913#M9143</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-01-25T16:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85914#M9144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INPUT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n0oaql83drile0n141pdacojq97s.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n0oaql83drile0n141pdacojq97s.htm"&gt;SAS(R) 9.3 Statements: Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 16:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85914#M9144</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-25T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85915#M9145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u just want result then try it,, if macro variable is nt necessary for u..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;x='1,2,3,4,5';&lt;/P&gt;&lt;P&gt;do i= 0 to length(x);&lt;/P&gt;&lt;P&gt;y=substr(x,i+1,1);&lt;/P&gt;&lt;P&gt;i=i+1;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop i x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 16:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85915#M9145</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2013-01-25T16:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85916#M9146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mmh, ok I see. So I'll have a look at @@ in the input statement and then decide whether I use this or the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx a lot for all your helpful answers - I learned a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 16:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85916#M9146</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-01-25T16:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85917#M9147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another factor may influence your decision here ... where do you plan to put this code?&amp;nbsp; The CARDS statement is not permitted inside a macro definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DN, I found that this small simplification is permissible:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_infile_="&amp;amp;a";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 17:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85917#M9147</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-01-25T17:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85918#M9148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let a=1,2,3,4,5;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filename list temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; file list;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; put "&amp;amp;a";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile list dsd ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; input id @@;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 23:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85918#M9148</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-25T23:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85919#M9149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input month $ sale;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;jan 2000&lt;/P&gt;&lt;P&gt;feb 1400&lt;/P&gt;&lt;P&gt;mar 2300&lt;/P&gt;&lt;P&gt;apr 3400&lt;/P&gt;&lt;P&gt;may 2700&lt;/P&gt;&lt;P&gt;jun 3200&lt;/P&gt;&lt;P&gt;july 800&lt;/P&gt;&lt;P&gt;aug 2900&lt;/P&gt;&lt;P&gt;sep 1700&lt;/P&gt;&lt;P&gt;oct 2100&lt;/P&gt;&lt;P&gt;nov 2600&lt;/P&gt;&lt;P&gt;dec 3200&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m looking to convert month in num as 1 2 3 ,&lt;/P&gt;&lt;P&gt;for that i m tring it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test1;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;mon_num=input(month,monname3.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its showing error. i need to short data by month. can we do it in short or sud i use if condition on each month????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 17:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85919#M9149</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2013-01-26T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd() replace comma with linebreak</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85920#M9150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input month $ sale;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;jan 2000&lt;/P&gt;&lt;P&gt;feb 1400&lt;/P&gt;&lt;P&gt;mar 2300&lt;/P&gt;&lt;P&gt;apr 3400&lt;/P&gt;&lt;P&gt;may 2700&lt;/P&gt;&lt;P&gt;jun 3200&lt;/P&gt;&lt;P&gt;july 800&lt;/P&gt;&lt;P&gt;aug 2900&lt;/P&gt;&lt;P&gt;sep 1700&lt;/P&gt;&lt;P&gt;oct 2100&lt;/P&gt;&lt;P&gt;nov 2600&lt;/P&gt;&lt;P&gt;dec 3200&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;format&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month_Num 8.;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;month_num=month(input(month||' 01, 2000',anydtdte20.0));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 21:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/tranwrd-replace-comma-with-linebreak/m-p/85920#M9150</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-01-28T21:57:04Z</dc:date>
    </item>
  </channel>
</rss>

