<?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: recreate table in sas using an existing  data set-reshaping of data-- in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549087#M8608</link>
    <description>&lt;P&gt;Thanks a lot for solution and suggestion&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will keep in mind in next post...&lt;/P&gt;</description>
    <pubDate>Sun, 07 Apr 2019 03:31:23 GMT</pubDate>
    <dc:creator>sdeswal</dc:creator>
    <dc:date>2019-04-07T03:31:23Z</dc:date>
    <item>
      <title>recreate table in sas using an existing  data set-reshaping of data--</title>
      <link>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549023#M8598</link>
      <description>&lt;P&gt;proc transpose gives me a table like in document...&lt;/P&gt;&lt;P&gt;I am trying to write a code so that i can have format like 341/367(93%)--- where 93% is % of row total &amp;amp;&lt;/P&gt;&lt;P&gt;367 is row total so i need:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;341/367(93%)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 26/367(7%) similar format for rest of table. i am able to do it as&lt;/P&gt;&lt;P&gt;a separate variable in table. but i want to replace value of cutoof60 &amp;amp; 61 in new dataset with new values.&lt;/P&gt;&lt;P&gt;i am making a mistake please help me to rectify the code...&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 09:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549023#M8598</guid>
      <dc:creator>sdeswal</dc:creator>
      <dc:date>2019-04-06T09:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: recreate table in sas using an existing  data set-reshaping of data--</title>
      <link>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549029#M8599</link>
      <description>&lt;P&gt;Please DO NOT use Office documents for posting such simple things as code, logs or textual data.&lt;/P&gt;
&lt;P&gt;Use the "little running man" for code like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tot1;
set tot_trsps;
if trgp_trt=1 then
 cutoff60= put(cutoff60,3.0)||'/'|| put((cutoff60+cutoff61),3.0)||'('||put((cutoff60/(cutoff60+cutoff61))*100,3.1)||'%)';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is obvious that you try to convert a variable "in place", which is not possible. SAS variables cannot be of type numeric and character within the same step or dataset.&lt;/P&gt;
&lt;P&gt;Create a new variable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cutoff60_char = put(cutoff60,3.0)||'/'|| put((cutoff60+cutoff61),3.0)||'('||put((cutoff60/(cutoff60+cutoff61))*100,3.1)||'%)';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Apr 2019 11:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549029#M8599</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-06T11:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: recreate table in sas using an existing  data set-reshaping of data--</title>
      <link>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549032#M8600</link>
      <description>&lt;P&gt;PS example data should NEVER be posted in pictures, as that forces everyone else to type data manually off the screen, which means unnecessary work and introduces opportunities for mistakes.&lt;/P&gt;
&lt;P&gt;Use data steps with datalines instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tot_trsps;
input trgp_trt cutoff60 cutoff61;
datalines;
1 341 26
2 367 22
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Apr 2019 11:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549032#M8600</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-06T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: recreate table in sas using an existing  data set-reshaping of data--</title>
      <link>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549087#M8608</link>
      <description>&lt;P&gt;Thanks a lot for solution and suggestion&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will keep in mind in next post...&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 03:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/recreate-table-in-sas-using-an-existing-data-set-reshaping-of/m-p/549087#M8608</guid>
      <dc:creator>sdeswal</dc:creator>
      <dc:date>2019-04-07T03:31:23Z</dc:date>
    </item>
  </channel>
</rss>

