<?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 sql transform equivalent in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sql-transform-equivalent-in-sas/m-p/890695#M351938</link>
    <description>&lt;P&gt;I have the following type of code in sql:&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;TRANSFORM &lt;SPAN class=""&gt;Max&lt;/SPAN&gt;(ConfigValue)
&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; Config_ID
&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; TABLE_01
&lt;SPAN class=""&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; Config_ID
PIVOT ConfigField &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;how do i convert it in sas to get the same result ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338236"&gt;@fja&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 05:31:48 GMT</pubDate>
    <dc:creator>TB10</dc:creator>
    <dc:date>2023-08-24T05:31:48Z</dc:date>
    <item>
      <title>sql transform equivalent in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-transform-equivalent-in-sas/m-p/890695#M351938</link>
      <description>&lt;P&gt;I have the following type of code in sql:&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE class=""&gt;TRANSFORM &lt;SPAN class=""&gt;Max&lt;/SPAN&gt;(ConfigValue)
&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; Config_ID
&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; TABLE_01
&lt;SPAN class=""&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; Config_ID
PIVOT ConfigField &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;how do i convert it in sas to get the same result ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338236"&gt;@fja&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 05:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-transform-equivalent-in-sas/m-p/890695#M351938</guid>
      <dc:creator>TB10</dc:creator>
      <dc:date>2023-08-24T05:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: sql transform equivalent in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-transform-equivalent-in-sas/m-p/890696#M351939</link>
      <description>&lt;P&gt;if it is the same case as from this stackoverflow thread:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/16691853/transform-and-pivot-in-access-2013-sql" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/16691853/transform-and-pivot-in-access-2013-sql&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then use proc Transpose (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1xno5xgs39b70n0zydov0owajj8.htm):" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1xno5xgs39b70n0zydov0owajj8.htm):&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data TABLE_01;
  infile cards dlm="|";
  input Config_ID  (ConfigField ConfigValue) (:$20.) ;
cards;
11|         Name  |        Basic
11|      Version  |         1.01
11|        Owner  |         Jack
12|         Name  |     Advanced
12|      Version  |         1.03
12|        Owner  |         Andy
;
run;
proc print;
run;


proc transpose data=TABLE_01 out=TABLE_02(drop=_NAME_);
  by Config_ID;
  id ConfigField;
  var ConfigValue;
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 05:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-transform-equivalent-in-sas/m-p/890696#M351939</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-08-24T05:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: sql transform equivalent in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sql-transform-equivalent-in-sas/m-p/890746#M351969</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/443657"&gt;@TB10&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have the following type of code in sql:&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;TRANSFORM &lt;SPAN class=""&gt;Max&lt;/SPAN&gt;(ConfigValue)
&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; Config_ID
&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; TABLE_01
&lt;SPAN class=""&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; Config_ID
PIVOT ConfigField &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how do i convert it in sas to get the same result ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does that gibberish code do?&amp;nbsp; Show an example input.&amp;nbsp; Describe the change you want to make.&amp;nbsp; Show the resulting output for that input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to calculate some type of maximum value then I you might want to start with PROC SUMMARY.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sql-transform-equivalent-in-sas/m-p/890746#M351969</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-24T13:24:42Z</dc:date>
    </item>
  </channel>
</rss>

