<?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: Cross tab query in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Cross-tab-query/m-p/565740#M11239</link>
    <description>&lt;P&gt;Thanks Reeza.. It worked.. I was doing proc transpose before but guess i was doing something wrong and was not getting the right output. But this time i got it..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rgds, Anil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 03:40:14 GMT</pubDate>
    <dc:creator>aj34321</dc:creator>
    <dc:date>2019-06-13T03:40:14Z</dc:date>
    <item>
      <title>Cross tab query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Cross-tab-query/m-p/565738#M11237</link>
      <description>&lt;P&gt;Hi there.. Need help on the below. Request if someone can help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pleas note: Below decision status - these are not only the decisions made, but it may contain any status from&amp;nbsp; a list of some 50 decision status - which is not show in this sample below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this dataset:&lt;/P&gt;
&lt;P&gt;data have; &lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;length Appln_key $18 Transit_Decsn $35 desision_seq $16;&lt;BR /&gt;input Appln_key $ Transit_Decsn $ desision_seq $;&lt;BR /&gt;datalines;&lt;BR /&gt;APP121000000000001,APPLICATION_WITHDRAWN_DURING_EDIT,DECISION_CODE_1&lt;BR /&gt;APP121000000000001,APPLICATION_WITHDRAWN,DECISION_CODE_2&lt;BR /&gt;APP121000000201001,APPLICATION_WITHDRAWN_DURING_EDIT,DECISION_CODE_1&lt;BR /&gt;APP121000000201001,APPLICATION_AUTO_DECISION_APPROVED,DECISION_CODE_2&lt;BR /&gt;; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to get this output.&lt;BR /&gt;data want; &lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;length Appln_key $18 DECISION_CODE_1 $35 DECISION_CODE_2 $35;&lt;BR /&gt;input Appln_key $ DECISION_CODE_1 $ DECISION_CODE_2 $;&lt;BR /&gt;datalines;&lt;BR /&gt;APP121000000000001,APPLICATION_WITHDRAWN_DURING_EDIT,APPLICATION_WITHDRAWN&lt;BR /&gt;APP121000000201001,APPLICATION_WITHDRAWN_DURING_EDIT,APPLICATION_AUTO_DECISION_APPROVED&lt;BR /&gt;; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Cross-tab-query/m-p/565738#M11237</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2019-06-13T03:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cross tab query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Cross-tab-query/m-p/565739#M11238</link>
      <description>&lt;P&gt;Have you tried PROC TRANSPOSE?&lt;/P&gt;
&lt;P&gt;That should work here, if not, post the code and we can help tell you where to fix it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-long-to-wide-using-proc-transpose/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/how-to-reshape-data-long-to-wide-using-proc-transpose/&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37860"&gt;@aj34321&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi there.. Need help on the below. Request if someone can help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this dataset:&lt;/P&gt;
&lt;P&gt;data have; &lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;length Appln_key $18 Transit_Decsn $35 desision_seq $16;&lt;BR /&gt;input Appln_key $ Transit_Decsn $ desision_seq $;&lt;BR /&gt;datalines;&lt;BR /&gt;APP121000000000001,APPLICATION_WITHDRAWN_DURING_EDIT,DECISION_CODE_1&lt;BR /&gt;APP121000000000001,APPLICATION_WITHDRAWN,DECISION_CODE_2&lt;BR /&gt;APP121000000201001,APPLICATION_WITHDRAWN_DURING_EDIT,DECISION_CODE_1&lt;BR /&gt;APP121000000201001,APPLICATION_AUTO_DECISION_APPROVED,DECISION_CODE_2&lt;BR /&gt;; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to get this output.&lt;BR /&gt;data want; &lt;BR /&gt;infile datalines delimiter=','; &lt;BR /&gt;length Appln_key $18 DECISION_CODE_1 $35 DECISION_CODE_2 $35;&lt;BR /&gt;input Appln_key $ DECISION_CODE_1 $ DECISION_CODE_2 $;&lt;BR /&gt;datalines;&lt;BR /&gt;APP121000000000001,APPLICATION_WITHDRAWN_DURING_EDIT,APPLICATION_WITHDRAWN&lt;BR /&gt;APP121000000201001,APPLICATION_WITHDRAWN_DURING_EDIT,APPLICATION_AUTO_DECISION_APPROVED&lt;BR /&gt;; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Cross-tab-query/m-p/565739#M11238</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-13T03:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cross tab query</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Cross-tab-query/m-p/565740#M11239</link>
      <description>&lt;P&gt;Thanks Reeza.. It worked.. I was doing proc transpose before but guess i was doing something wrong and was not getting the right output. But this time i got it..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rgds, Anil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 03:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Cross-tab-query/m-p/565740#M11239</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2019-06-13T03:40:14Z</dc:date>
    </item>
  </channel>
</rss>

