<?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: PROC TRANSPOSE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362075#M85499</link>
    <description>&lt;P&gt;ok, will do, thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2017 19:41:21 GMT</pubDate>
    <dc:creator>JHE</dc:creator>
    <dc:date>2017-05-26T19:41:21Z</dc:date>
    <item>
      <title>PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362063#M85493</link>
      <description>&lt;P&gt;I run the SAS code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; LOBCode(lobname1,lobname2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;PROC SQL feedback;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*CREATE TABLE Paid_Claims_Final&amp;amp;lobname1 AS */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE Paid_Final&amp;amp;lobname1 AS&lt;/P&gt;&lt;P&gt;SELECT DISTINCT&lt;/P&gt;&lt;P&gt;CODE.LOB,&lt;/P&gt;&lt;P&gt;CODE.Category,&lt;/P&gt;&lt;P&gt;TEMP.Code AS Code,&lt;/P&gt;&lt;P&gt;TEMP.CODE_DESCRIPTION,&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;SUM(TEMP.Current_Payable) FORMAT=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;dollarx10.2&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; AS TOTAL_CURRENT_PAYABLE,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;SUM(TEMP.Original_Payable) FORMAT=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;dollarx10.2&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; AS ORIGINAL_PAYABLE,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;COUNT(TEMP.CLCL_ID) AS TOTAL,&lt;/P&gt;&lt;P&gt;STRIP(temp.MONTH) AS MONTH&lt;/P&gt;&lt;P&gt;FROM PAYMNT&amp;amp;lobname1 TEMP&lt;/P&gt;&lt;P&gt;INNER JOIN REWORKI.CODE CODE on Code.Code=TEMP.CODE&lt;/P&gt;&lt;P&gt;GROUP BY CODE.LOB,CODE.Category,TEMP.CODE,&lt;/P&gt;&lt;P&gt;TEMP.CODE_DESCRIPTION,&lt;/P&gt;&lt;P&gt;STRIP(temp.MONTH)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;HAVING TEMP.Rework_Claim=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; AND CODE.LOB=&amp;amp;lobname2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;/************************************************************/&lt;/P&gt;&lt;P&gt;Proc Sort data=work.Paid_Final&amp;amp;lobname1 out=work.Paid_FinalSort&amp;amp;lobname1;&lt;/P&gt;&lt;P&gt;by LOB;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/****************************************************************************/&lt;/P&gt;&lt;P&gt;PROC TRANSPOSE DATA=Paid_FinalSort&amp;amp;lobname1 OUT=Paid_Final&amp;amp;lobname1.TRANS (DROP=_NAME_);&lt;/P&gt;&lt;P&gt;ID MONTH;&lt;/P&gt;&lt;P&gt;BY LOB Category Code CODE_DESCRIPTION ORIGINAL_PAYABLE TOTAL_CURRENT_PAYABLE;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; LOBCode;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Go tthe error message:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: Data set WORK.PAID_FINALSORT1300 is not sorted in ascending sequence. The current BY group has ORIGINAL_PAYABLE = $1.841,67&lt;/P&gt;&lt;P&gt;and the next BY group has ORIGINAL_PAYABLE = $49,49.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;LOBCode&lt;/I&gt;&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'1300'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Please see attach log file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thank &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362063#M85493</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-05-26T19:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362068#M85495</link>
      <description>&lt;P&gt;So you sort the data set BY LOB. &amp;nbsp;What makes you think it would be in order:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BY LOB Category Code CODE_DESCRIPTION ORIGINAL_PAYABLE TOTAL_CURRENT_PAYABLE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you mean to include a VAR statement in PROC TRANSPOSE?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362068#M85495</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-26T19:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362071#M85496</link>
      <description>&lt;P&gt;If I sort by Month, might be worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362071#M85496</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-05-26T19:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362072#M85497</link>
      <description>&lt;P&gt;Sort by month dse nto workign either...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure what should do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362072#M85497</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-05-26T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362074#M85498</link>
      <description>&lt;P&gt;Well, you're doing the right thing. &amp;nbsp;You will have to fiddle with the code until you get something that works. &amp;nbsp;Just one suggestion: &amp;nbsp;get rid of all the macro language entirely. &amp;nbsp;Hard-code everything. &amp;nbsp;That gives you a chance of figuring out what the error messages mean. &amp;nbsp;Once you have a program that works, then you can worry about converting it to a macro.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362074#M85498</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-26T19:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362075#M85499</link>
      <description>&lt;P&gt;ok, will do, thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE/m-p/362075#M85499</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-05-26T19:41:21Z</dc:date>
    </item>
  </channel>
</rss>

