<?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 with multiple variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612076#M178520</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get why do you want ID1 and ID2 in the first row, but you can't do that with a single proc transpose due to duplicates. You can try out the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* We transpose the variables */
proc transpose data=have out=want(drop=_name_) ;
   var ID3 Date1 Amount Date2 Code1 Date3 Action1  Indicator1  Indicator2;
 run;

/* We copy ID1 and ID2 in the first line, twofirst variables of the new dataset */
 data wanted (drop=id1 id2);
 set have (keep=ID1 ID2 obs=1) want;
 if _n_=1 then do;
	col1=ID1;
	col2=ID2;
	output;
end;
else output;
run;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2019 16:54:30 GMT</pubDate>
    <dc:creator>JeanDo</dc:creator>
    <dc:date>2019-12-16T16:54:30Z</dc:date>
    <item>
      <title>PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611769#M178379</link>
      <description>&lt;P&gt;I am attempting to combine multiple account records with multiple variables into one observation with the TRANSPOSE procedure but I keep getting the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The ID1 value "_77144" occurs twice in the same BY group.&lt;/P&gt;
&lt;P&gt;ERROR: Too many bad BY groups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log generates repeated errors for the ID1 field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc transpose &lt;BR /&gt;data=libname.system_data&lt;BR /&gt;out=libname.revised_system_data;&lt;BR /&gt;by ID1;&amp;nbsp;&lt;BR /&gt;id ID2;&lt;BR /&gt;var ID3 Date1 Amount Date2 Code1 Date3 Action1 Indicator1 Indicator2; (these are the field values that need to be transposed)&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID1 and ID2 have different values but will be the same within each observation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need to separate the variables with an individual transpose for each one or will a do loop or arrays work within this procedure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance would be greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 01:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611769#M178379</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-14T01:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611782#M178388</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can you give an example of your input dataset, and what you are expecting as an output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 09:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611782#M178388</guid>
      <dc:creator>JeanDo</dc:creator>
      <dc:date>2019-12-14T09:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611788#M178394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that your input data have more than one record with the same couple of values for&amp;nbsp;ID1 and ID2.&lt;/P&gt;
&lt;P&gt;That's why SAS in unable to transpose properly the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it something which is considered as normal in your input data? In this case, how do you what result do you expect when there are 2 observations with the same ID1 and ID2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 11:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611788#M178394</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-14T11:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611809#M178411</link>
      <description>&lt;P&gt;Please copy the lines from the SAS log and paste into your message.&amp;nbsp; Make sure to use the Insert Code button, looks like {i}, so that the formatting is preserved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also post example data and desired output. Preferable as code that can be run to recreate the datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you are trying to do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input id1 id2 $ var1 var2 ;
cards;
1 new_name 10 20
2 new_name 30 40 
;
proc transpose data=have out=want ;
  by id1 ;
  id id2 ;
  var var1-var2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To produce this:&lt;/P&gt;
&lt;PRE&gt;Obs    id1    _NAME_    new_name

 1      1      var1        10
 2      1      var2        20
 3      2      var1        30
 4      2      var2        40&lt;/PRE&gt;
&lt;P&gt;Now if you have multiple observations per by group (ID1 values) then each one needs to have a distinct value of ID2 so that they will become a new variable in the output.&amp;nbsp; If not you have duplicates like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input id1 id2 $ var1 var2 ;
cards;
1 new_name 10 20
2 new_name 30 40 
2 new_name 50 60 
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you get this error message:&lt;/P&gt;
&lt;PRE&gt;112   proc transpose data=have out=want ;
113     by id1 ;
114     id id2 ;
115     var var1-var2;
116   run;

ERROR: The ID value "new_name" occurs twice in the same BY group.
NOTE: The above message was for the following BY group:
      id1=2
WARNING: 1 BY groups omitted due to earlier errors.
NOTE: There were 3 observations read from the data set WORK.HAVE.
NOTE: The data set WORK.WANT has 2 observations and 3 variables.
&lt;/PRE&gt;
&lt;P&gt;You can either modify ID2 (or add more variables to the ID statement) so that each row in each by group as a unique name.&amp;nbsp; Or just remove the ID statement and let SAS make up the names.&lt;/P&gt;
&lt;PRE&gt;Obs    id1    _NAME_    COL1    COL2

 1      1      var1      10       .
 2      1      var2      20       .
 3      2      var1      30      50
 4      2      var2      40      60&lt;/PRE&gt;
&lt;P&gt;You can use the PREFIX option on the PROC statement to tell to use something other than COL as the basis for the new names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could add more variables to the BY statement so that each observation is uniquely identified.&amp;nbsp; Then each observations will produce values for only one variable.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Dec 2019 19:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/611809#M178411</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-14T19:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612060#M178514</link>
      <description>&lt;P&gt;Let me give an example of the data set and the expected layout of the output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID1 &amp;nbsp; &amp;nbsp; &amp;nbsp; ID2 &amp;nbsp;&amp;nbsp; ID3 &amp;nbsp; &amp;nbsp; &amp;nbsp; Date1 &amp;nbsp;&amp;nbsp; Amount&amp;nbsp; Date2&amp;nbsp; Code1&amp;nbsp; Date3&amp;nbsp; Action1 &amp;nbsp; Indicator1&amp;nbsp; Indicator2&lt;/P&gt;
&lt;P&gt;6666 &amp;nbsp; 7777&amp;nbsp; LP219&amp;nbsp; 7/20/19 &amp;nbsp; $100 &amp;nbsp; &amp;nbsp;&amp;nbsp; 8/1/19 &amp;nbsp; SDA &amp;nbsp;&amp;nbsp; 8/4/19 &amp;nbsp; &amp;nbsp; 007 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;6666 &amp;nbsp; 7777&amp;nbsp; SN015&amp;nbsp; 7/21/19 &amp;nbsp; $200 &amp;nbsp; &amp;nbsp; 8/4/19 &amp;nbsp; BND &amp;nbsp;&amp;nbsp; 8/15/19 &amp;nbsp; 192 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;6666 &amp;nbsp; 7777&amp;nbsp; BP123&amp;nbsp; 7/24/19 &amp;nbsp; $250 &amp;nbsp; &amp;nbsp; 8/12/19&amp;nbsp; COS &amp;nbsp; 8/18/19 &amp;nbsp; 308 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;6666 &amp;nbsp; 7777&amp;nbsp; CD954&amp;nbsp; 7/25/19 &amp;nbsp; $150 &amp;nbsp; &amp;nbsp; 8/15/19&amp;nbsp; DTE &amp;nbsp; 8/22/19 &amp;nbsp; 482 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;6666 &amp;nbsp; 7777&amp;nbsp; FF773 &amp;nbsp; 7/28/19 &amp;nbsp; $125 &amp;nbsp;&amp;nbsp; 8/24/19 &amp;nbsp; RUI &amp;nbsp;&amp;nbsp; 8/28/19 &amp;nbsp; 732 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ID1 and ID2 fields are the same for each observation which is why I included both fields in the by statement.&amp;nbsp; All the other variables have different values which I want to transpose onto one observation line. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output (with the respective variables) after the transpose should look like this layout:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID1&amp;nbsp; ID2&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID3_1 &amp;nbsp;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Date1_1&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Amount_1&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Date2_1 &amp;nbsp;Code1_1 &amp;nbsp;Date3_1 &amp;nbsp;Action1_1 &amp;nbsp;Indicator1_1 &amp;nbsp;Indicator2_1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ID3_2&amp;nbsp; &lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Date1_2&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Amount_2&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Date2_2&amp;nbsp; Code1_2&amp;nbsp; Date3_2&amp;nbsp; Action1_2&amp;nbsp; Indicator1_2&amp;nbsp; Indicator2_2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ID3_3&amp;nbsp; Date1_3&amp;nbsp; Amount_3&amp;nbsp; &lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Date2_3&amp;nbsp; Code1_3&amp;nbsp; Date3_3&amp;nbsp; Action1_3&amp;nbsp; Indicator1_3&amp;nbsp; Indicator2_3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ID3_4&amp;nbsp; Date1_3&amp;nbsp; Amount_4&amp;nbsp; Date2_4&amp;nbsp; Code1_4&amp;nbsp; Date3_4&amp;nbsp; Action1_4&amp;nbsp; Indicator1_4&amp;nbsp; Indicator2_4&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; cursor: text; display: inline; float: none; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ID3_5&amp;nbsp; Date1_3&amp;nbsp; Amount_5&amp;nbsp; Date2_5&amp;nbsp; Code1_5&amp;nbsp; Date3_5&amp;nbsp; Action1_5&amp;nbsp; Indicator1_5&amp;nbsp; Indicator2_5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the unique record starts at the ID3 field which is how I want the record to be arranged in the output.&lt;/P&gt;
&lt;P&gt;I'm trying to see if I can create an array that will give me this particular output layout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Any feedback is greatly appreciated.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 16:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612060#M178514</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T16:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612076#M178520</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get why do you want ID1 and ID2 in the first row, but you can't do that with a single proc transpose due to duplicates. You can try out the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* We transpose the variables */
proc transpose data=have out=want(drop=_name_) ;
   var ID3 Date1 Amount Date2 Code1 Date3 Action1  Indicator1  Indicator2;
 run;

/* We copy ID1 and ID2 in the first line, twofirst variables of the new dataset */
 data wanted (drop=id1 id2);
 set have (keep=ID1 ID2 obs=1) want;
 if _n_=1 then do;
	col1=ID1;
	col2=ID2;
	output;
end;
else output;
run;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 16:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612076#M178520</guid>
      <dc:creator>JeanDo</dc:creator>
      <dc:date>2019-12-16T16:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612084#M178524</link>
      <description>&lt;P&gt;So you need to do a double transpose. But first you need to add a variable so that each existing rows can be uniquely identified.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
 input ID1 ID2 ID3 $ Date1 :mmddyy. Amount :comma. Date2 :mmddyy. Code1 $ Date3 :mmddyy. Action1 Indicator1 Indicator2 ;
cards;
6666 7777 LP219 7/20/19 $100 8/1/19 SDA 8/4/19 007 1 0
6666 7777 SN015 7/21/19 $200 8/4/19 BND 8/15/19 192 1 0
6666 7777 BP123 7/24/19 $250 8/12/19 COS 8/18/19 308 1 0
6666 7777 CD954 7/25/19 $150 8/15/19 DTE 8/22/19 482 1 0
6666 7777 FF773 7/28/19 $125 8/24/19 RUI 8/28/19 732 1 0
;

data step1;
 set have;
 by id1 id2;
 if first.id2 then row=0;
 row+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So transpose it once to get it into one tall skinny table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=step1 out=step2;
  by id1 id2 row ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then transpose it again to get it into the wide-wide table format you requested.&amp;nbsp; You can add a SORT step to change the order that the variables get created if you want.&amp;nbsp; Note that you will need to add a FORMAT statement to attach any needed formats (like for your date varaibles).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=step2;
  by id1 id2 _name_ row;
run;

proc transpose data=step2 out=want(drop=_name_) delim=_;
  by id1 id2 ;
  id _name_ row ;
  format date: date9. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Lets print the example to see what it looks like:&lt;/P&gt;
&lt;PRE&gt;170   proc print data=want width=min;
171     id id1 id2 ;
172   run;

NOTE: There were 1 observations read from the data set WORK.WANT.&lt;/PRE&gt;
&lt;PRE&gt;          Action1_ Action1_ Action1_ Action1_ Action1_
 ID1  ID2     1        2        3        4        5    Amount_1 Amount_2 Amount_3 Amount_4 Amount_5

6666 7777     7       192      308      482      732      100      200      250      150      125


 ID1  ID2  Date1_1   Date1_2   Date1_3   Date1_4   Date1_5   Date2_1   Date2_2   Date2_3   Date2_4

6666 7777 20JUL2019 21JUL2019 24JUL2019 25JUL2019 28JUL2019 01AUG2019 04AUG2019 12AUG2019 15AUG2019

                                                                      Indicator1_ Indicator1_ Indicator1_
 ID1  ID2  Date2_5   Date3_1   Date3_2   Date3_3   Date3_4   Date3_5       1           2           3

6666 7777 24AUG2019 04AUG2019 15AUG2019 18AUG2019 22AUG2019 28AUG2019      1           1           1

          Indicator1_  Indicator1_  Indicator2_  Indicator2_  Indicator2_  Indicator2_  Indicator2_
 ID1  ID2      4            5            1            2            3            4            5

6666 7777      1            1            0            0            0            0            0
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 17:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612084#M178524</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-16T17:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612090#M178527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you expect something like this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
	select max(total) into: max_obs from (select count(*) as total from have group by ID1, ID2);
quit;

data want;
	set have;
	by ID1 ID2;
	
 	array ID3_(&amp;amp;max_obs) $;
 	array Date1_(&amp;amp;max_obs);
	array Amount_(&amp;amp;max_obs);
	array Date2_(&amp;amp;max_obs);
	array Code1_(&amp;amp;max_obs) $;
	array Date3_(&amp;amp;max_obs);
	array Action1_(&amp;amp;max_obs) $;
	array Indicator1_(&amp;amp;max_obs);
	array Indicator2_(&amp;amp;max_obs);
 	
 	if first.ID2 then do;
		counter=0;
		call missing(of ID3_(*));
		call missing(of Date1_(*));
		call missing(of Amount_(*));
		call missing(of Date2_(*));
		call missing(of Code1_(*));
		call missing(of Date3_(*));
		call missing(of Action1_(*));
		call missing(of Indicator1_(*));
		call missing(of Indicator2_(*));
	end;
	
 	counter+1;
 	
 	retain ID3_;
 	retain Date1_;
	retain Amount_;
	retain Date2_;
	retain Code1_;
	retain Date3_;
	retain Action1_;
	retain Indicator1_;
	retain Indicator2_;
 	
 	do i=1 to dim(ID3_);
		ID3_(counter)=ID3;
		Date1_(counter)=Date1;
		Amount_(counter)=Amount;
		Date2_(counter)=Date2;
		Code1_(counter)=Code1;
		Date3_(counter)=Date3;
		Action1_(counter)=Action1;
		Indicator1_(counter)=Indicator1;
		Indicator2_(counter)=Indicator2;
	end;
	
	format Date: MMDDYY8.;

	if last.ID2 then output;
	drop ID3 Date1 Amount Date2 Code1 Date3 Action1 Indicator1 Indicator2 counter i;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Dec 2019 17:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612090#M178527</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-16T17:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612108#M178537</link>
      <description>&lt;P&gt;The code does create a single observation but when I generate the output, I still have four fields missing (ID3, Date2, Code1 and Date3).&amp;nbsp; Do I need to perform one more transpose for these variables?&amp;nbsp; Please advise.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 18:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612108#M178537</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T18:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612122#M178542</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;No, no.&amp;nbsp; You're splitting the variables up.&amp;nbsp; I want to transpose the entire string from each observation while keeping it intact.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That does not make any sense.&amp;nbsp; What string are you talking about?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 18:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612122#M178542</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-16T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612149#M178549</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The code does create a single observation but when I generate the output, I still have four fields missing (ID3, Date2, Code1 and Date3).&amp;nbsp; Do I need to perform one more transpose for these variables?&amp;nbsp; Please advise.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc transpose without a VAR statement will only work on numeric variables.&amp;nbsp; Are the missing variables character?&lt;/P&gt;
&lt;P&gt;You might need to replicate the process for the numeric and character variables separately in the first PROC TRANSPOSE. To get just the character variables add a var statement like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;VAR _character_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Depending on whether ID1 and ID2 are character or numeric you might need to filter their value out at some point from the transposed data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also some useful macros that have been posted that make this process easier.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 19:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612149#M178549</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-16T19:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612151#M178550</link>
      <description>&lt;P&gt;Unfortunately, this code creates one long string and doesn't separate by ID1 and ID2.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 18:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612151#M178550</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T18:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612155#M178553</link>
      <description>&lt;P&gt;Yes, the other fields are character formatted so let me make the adjustment on my end and let you know the outcome.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 19:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612155#M178553</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T19:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612178#M178557</link>
      <description>&lt;P&gt;Could I go back to the data set and convert all the fields (even the dates) into text fields and use the var _character_ statement?&amp;nbsp; Let me know.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 19:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612178#M178557</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T19:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612181#M178560</link>
      <description>PROC TRANSPOSE will convert them.  Try using VAR _ALL_ ;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Dec 2019 19:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612181#M178560</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-16T19:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612204#M178576</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;mentioned, the task can be made a lot simpler using the %transpose macro. e..g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
 input ID1 ID2 ID3 $ Date1 :mmddyy. Amount :comma. Date2 :mmddyy. Code1 $ Date3 :mmddyy. Action1 Indicator1 Indicator2 ;
cards;
6666 7777 LP219 7/20/19 $100 8/1/19 SDA 8/4/19 007 1 0
6666 7777 SN015 7/21/19 $200 8/4/19 BND 8/15/19 192 1 0
6666 7777 BP123 7/24/19 $250 8/12/19 COS 8/18/19 308 1 0
6666 7777 CD954 7/25/19 $150 8/15/19 DTE 8/22/19 482 1 0
6666 7777 FF773 7/28/19 $125 8/24/19 RUI 8/28/19 732 1 0
;

filename tr url 'https://raw.githubusercontent.com/art297/transpose/master/transpose.sas';
%include tr ;

%transpose(data=have, out=want, by=ID1 ID2, autovars=all, delimiter=_)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 20:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612204#M178576</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2019-12-16T20:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612220#M178587</link>
      <description>&lt;P&gt;The var _ALL_ statement gets all the variables into a column but when I run the second PROC TRANSPOSE statement, I get the following note: &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: No variables to transpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my current code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data step1;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by ID1 ID2;&lt;/P&gt;
&lt;P&gt;if first.ID2 then row=0;&lt;/P&gt;
&lt;P&gt;row+1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc transpose data=step1 out=step2;&lt;/P&gt;
&lt;P&gt;by ID1 ID2 row;&lt;/P&gt;
&lt;P&gt;var _ALL_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc transpose data=step2 out=step3 (drop=_name_) delim=_;&lt;/P&gt;
&lt;P&gt;by ID1 ID2;&lt;/P&gt;
&lt;P&gt;id _name_ row;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;"HERE IS WHERE THE NOTE THAT STATES NO VARIABLES TO TRANSPOSE"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output table has all the necessary fields but does not populate any data. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know what I am missing.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 21:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612220#M178587</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T21:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612224#M178590</link>
      <description>Same problem with PROC TRANSPOSE defaulting to only looking for numeric variables.  Add VAR COL1; to that step.&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Dec 2019 21:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612224#M178590</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-16T21:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612229#M178591</link>
      <description>&lt;P&gt;To the first PROC TRANSPOSE statement or the second PROC TRANSPOSE statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the first PROC TRANSPOSE procedure, the output table (step2) has all the data and the field names needed to complete the second PROC TRANSPOSE statement.&amp;nbsp; Here is the layout:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID1&amp;nbsp; ID2 &amp;nbsp; row &amp;nbsp; NAME OF FORMER VARIABLE &amp;nbsp;&amp;nbsp; LABEL OF FORMER VARIABLE &amp;nbsp; COL1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The values in the COL1 are arranged correctly and match with the field name values in the NAME/LABEL OF FORMER VARIABLE columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 21:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612229#M178591</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T21:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TRANSPOSE with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612233#M178593</link>
      <description>&lt;P&gt;I added the var COL1 code to the second PROC TRANSPOSE statement and it produced the output in the layout that I need in order to facilitate reporting.&amp;nbsp; I'm set.&amp;nbsp; I'll look at that macro to automate the process.&amp;nbsp; Thanks for the assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 21:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-TRANSPOSE-with-multiple-variables/m-p/612233#M178593</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-12-16T21:56:33Z</dc:date>
    </item>
  </channel>
</rss>

