<?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: Losing formatting from original data set when using a transpose task? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243671#M17367</link>
    <description>&lt;P&gt;I have some time to review your question. You are doing a special transposing data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dsd dlm='09'x;
input (LOANS_PRIOR_PIPELINE	PRIOR_PIPELINE_UPB	LOANS_ADDED	LOANS_ADDED_UPB	LOANS_FUNDED	LOANS_FUNDED_UPB	LOANS_DROPPED	LOANS_DROPPED_UPB	UPB_CHANGED	NET_PIPELINE_CHANGE	NET_PIPELINE_CHANGE_UPB	CURRENT_PIPELINE	CURRENT_PIPELINE_UPB) (: dollar32.);
cards;
828	$167,763,474	119	$30,995,015	150	$43,876,489	-3	-$492,500	-$106,669	-34	-$13,373,974	794	$154,282,831
;
run;
proc transpose data =have out=temp;run;
data temp;
 set temp;
 length id name $ 20;
 if findw(_name_,'UPB','_ ','i') then id='Amount';
  else id='Count';
 name=prxchange('s/^LOANS_|_UPB$//i',-1,strip(_name_));
run;
proc sort data=temp;by name;run;
proc transpose data=temp out=want;
by name;
id id;
var col1;
run;
data want;
 set want;
 format Amount dollar32.;
 drop _name_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Jan 2016 04:43:11 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-01-15T04:43:11Z</dc:date>
    <item>
      <title>Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243525#M17349</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a transpose task and when I do, I am losing the format of the values from the original data set.&amp;nbsp; I have gone into the transposed data set and manually changed the formats but they are not sticking.&amp;nbsp; Any ideas what I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original Data Set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1438i169D134C6E76CE4E/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture.PNG" title="Capture.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Transpose Data Set example of where I overrode the format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1439i21F5829649499E2D/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture1.PNG" title="Capture1.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results of transposed data set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1440i4FD402FDDE2BFC86/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture2.PNG" title="Capture2.PNG" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243525#M17349</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-01-14T17:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243528#M17350</link>
      <description>&lt;P&gt;A column can only have one format, so yes, when you transpose you'll lose the dollar formats and they'll all take one format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, &amp;nbsp;I don't think changes to the viewer are maintained, you have to change the formats via code or some other method in EG.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243528#M17350</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-14T17:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243534#M17351</link>
      <description>&lt;P&gt;I can't read the middle picture at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Comment on the data&amp;amp;colon;&amp;nbsp; It appears you have taken columns that refer to counts and dollar amounts and put them into a single column.&lt;/P&gt;
&lt;P&gt;I would find that a very dangerous thing to do in a generic sense as the values are not going to be easy to use. What would the sum, mean or standard deviation of that combined column mean?&lt;/P&gt;
&lt;P&gt;What are you going to do with that data next?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are going to do something like this routinely learn to use proc datasets to change properties of datasets in place.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 18:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243534#M17351</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-14T18:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243546#M17352</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt; for this purpose only I am just wanting to generate an html file of this data to embed into an email.&amp;nbsp; My next step was to use code to do that that I found &lt;A href="http://support.sas.com/resources/papers/proceedings10/060-2010.pdf" target="_self"&gt;here&lt;/A&gt; unless I can come up with a better way.&amp;nbsp; EG exports it as an attachment.&amp;nbsp; Otherwise I have no plans to use transpose very often.&amp;nbsp; I simply wanted it to fit in the email more cleanly.&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/13879"&gt;@Reeza﻿&lt;/a&gt; I completely forgot about not having multipe data types in the same column.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 18:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243546#M17352</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-01-14T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243550#M17353</link>
      <description>&lt;P&gt;If it's for presentation purposes, you can covert it to a text field and apply the correct format. But it's a pretty manual tedious process.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 18:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243550#M17353</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-14T18:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243551#M17354</link>
      <description>&lt;P&gt;It may be that a report procedure such as&amp;nbsp;Proc Report or Tabulate&amp;nbsp;would be a better idea than transposing a dataset. Then formats and appearance options can be set.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 18:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243551#M17354</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-14T18:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243553#M17355</link>
      <description>&lt;P&gt;Cool.&amp;nbsp; I will give these ideas a try and report back.&amp;nbsp; You guys are awesome.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 19:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243553#M17355</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-01-14T19:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243587#M17356</link>
      <description>&lt;P&gt;Here is an example that uses Proc Tabulate to Stack and nest some values using a dataset you should have available:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;tabulate data=sashelp.cars;
   class make type;
   var msrp  enginesize horsepower;
   table make *(
                 msrp * (max*f=dollar10.2 min*f=dollar10.2 mean*f=dollar10.2)
                 enginesize *(min*f=best4. max*f=best4.)
                 horsepower *(max*f=6.1 min*f=6.1 mean*f=7.2)
                ),
          type
          /misstext=' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jan 2016 20:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243587#M17356</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-14T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243628#M17361</link>
      <description>&lt;P&gt;I am still struggling with this.&amp;nbsp; None of the options I have tried are working like I need it to.&amp;nbsp; Maybe if I show you the data I am trying to work with you would have another suggestion for me.&amp;nbsp; I attached an excel workbook with a "have" and "want" tab.&amp;nbsp; It could be that your suggestions would do this but I just haven't been able to get them to work.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 22:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243628#M17361</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-01-14T22:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243644#M17362</link>
      <description>&lt;P&gt;Yes. proc transpose somtimes will do that . It depends on how you transpose your data.&lt;/P&gt;
&lt;P&gt;Here is MERGE skill proposed by me , Matt and Arthur.T which can retain the original format from dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/2785-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/2785-2015.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 01:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243644#M17362</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-15T01:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243651#M17363</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;.&amp;nbsp; I am trying to figure out how to make this work like I need it to for my example on the "have" tab of the attached workbook.&amp;nbsp; I am not sure I understand how to apply this to what I need but I will try looking at it again in the morning with fresh eyes.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 02:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243651#M17363</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-01-15T02:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243667#M17364</link>
      <description>&lt;P&gt;Ok, I played around a little more and found a solution that works for me.&amp;nbsp; Disclaimer... it wouldn't be the most efficeint solution with a lot of data but for this small amount of variables it works pretty well.&amp;nbsp; I utilized proc sql and subqueries to pull the information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	select distinct
	'Prior Day Pipeline' as Metric, 
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'LOANS_PRIOR_PIPELINE') as Count,
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'PRIOR_PIPELINE_UPB') as UPB FORMAT=DOLLAR20.,
	1 as SortOrder
	from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p
	union
	select distinct
	'Committed to Pipeline' as Metric, 
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'LOANS_ADDED') as Count,
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'LOANS_ADDED_UPB') as UPB FORMAT=DOLLAR20.,
	2 as SortOrder
	from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p
	union
	select distinct
	'Funded' as Metric, 
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'LOANS_FUNDED') as Count,
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'LOANS_FUNDED_UPB') as UPB FORMAT=DOLLAR20.,
	3 as SortOrder
	from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p
	union
	select distinct
	'Removed from Pipeline' as Metric, 
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'LOANS_DROPPED') as Count,
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'LOANS_DROPPED_UPB') as UPB FORMAT=DOLLAR20.,
	4 as SortOrder
	from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p
	union
	select distinct
	'UPB Changed' as Metric, 
	(.) as Count,
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'UPB_CHANGED') as UPB FORMAT=DOLLAR20.,
	5 as SortOrder
	from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p
	union
	select distinct
	'Net Pipeline Change' as Metric, 
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'NET_PIPELINE_CHANGE') as Count,
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'NET_PIPELINE_CHANGE_UPB') as UPB FORMAT=DOLLAR20.,
	6 as SortOrder
	from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p
	union
	select distinct
	"Today's Pipeline" as Metric, 
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'CURRENT_PIPELINE') as Count,
	(SELECT TOTALS1 from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p2 where p2.Source = 'CURRENT_PIPELINE_UPB') as UPB FORMAT=DOLLAR20.,
	7 as SortOrder
	from FLOWFRED.FMFLOW_EMAILSNAP_PIVOT p
	order by SortOrder;
quit;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here was the final dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1464i1295954EBB22AFEB/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture4.PNG" title="Capture4.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the "labels" for the rows by hard coding them.&amp;nbsp; I then used subqueries to pull the variable I needed from the proper observation.&amp;nbsp; I did this for each observation and created the dataset by using a union for each observation.&amp;nbsp; I also added a sort order number for each union to ensure the rows sorted the way I wanted them to appear in my new dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not giving up on the paper that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt; pointed me to.&amp;nbsp; I am sure there is a more efficient solution using that method.&amp;nbsp; I am going to sit down and study it as soon as I get time.&amp;nbsp; Thanks to all of you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 03:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243667#M17364</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-01-15T03:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243669#M17365</link>
      <description>&lt;P&gt;As a giant hint, you're much more likely to get working code when you post data as a data step. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 03:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243669#M17365</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-15T03:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243670#M17366</link>
      <description>&lt;P&gt;Use an array, VLABEL&amp;nbsp;and PUTN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have;
metric=23456; format metric comma12.;
data2=25678832; format data2 dollar21.;
data3=4; format data3 8.;
data4=0.1; format data4 percent8.1;
data5=0.9; format data5 8.;

label metric="Data 1" data2="Metric 1" data3="Test ME!!!" data4='Data 4' data5='This is awesome';
run;

data want;
set have;

length var_label var_char  $50.;
format var_label var_char  $50.;

array tp(*) metric data2-data5;

do i=1 to dim(tp);
var_format=vformat(tp(i));
var_char=putn(tp(i), var_format);
var_label=vlabel(tp(i));
output;
end;

keep var_char var_label;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jan 2016 03:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243670#M17366</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-15T03:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243671#M17367</link>
      <description>&lt;P&gt;I have some time to review your question. You are doing a special transposing data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dsd dlm='09'x;
input (LOANS_PRIOR_PIPELINE	PRIOR_PIPELINE_UPB	LOANS_ADDED	LOANS_ADDED_UPB	LOANS_FUNDED	LOANS_FUNDED_UPB	LOANS_DROPPED	LOANS_DROPPED_UPB	UPB_CHANGED	NET_PIPELINE_CHANGE	NET_PIPELINE_CHANGE_UPB	CURRENT_PIPELINE	CURRENT_PIPELINE_UPB) (: dollar32.);
cards;
828	$167,763,474	119	$30,995,015	150	$43,876,489	-3	-$492,500	-$106,669	-34	-$13,373,974	794	$154,282,831
;
run;
proc transpose data =have out=temp;run;
data temp;
 set temp;
 length id name $ 20;
 if findw(_name_,'UPB','_ ','i') then id='Amount';
  else id='Count';
 name=prxchange('s/^LOANS_|_UPB$//i',-1,strip(_name_));
run;
proc sort data=temp;by name;run;
proc transpose data=temp out=want;
by name;
id id;
var col1;
run;
data want;
 set want;
 format Amount dollar32.;
 drop _name_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jan 2016 04:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/243671#M17367</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-15T04:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Losing formatting from original data set when using a transpose task?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/245186#M17433</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt; I have quickly tried your idea and it seems to work.&amp;nbsp; My SQL unions have also resolved the issue.&amp;nbsp; I appreciate everyone's help.&amp;nbsp; This thread provides several ways to work through this.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 14:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Losing-formatting-from-original-data-set-when-using-a-transpose/m-p/245186#M17433</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-01-21T14:23:19Z</dc:date>
    </item>
  </channel>
</rss>

