<?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: Create new rows from one row on one data set &amp;amp; Use of Combobox on SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/229989#M41664</link>
    <description>&lt;P&gt;you may try using the output statements to output every record. Something like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data hvae;
input variable $ value1-value6;
/*format value1-value6 percent10.2.;*/
cards;
q 20 15 10 5 1 .10
;

data want;
set hvae;
output;
array vs(6) value1-value6;
variable="1-q";
do i  = 1 to  6;
vs(i)=100-vs(i);
end;
output;
run;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2015 01:08:32 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2015-10-15T01:08:32Z</dc:date>
    <item>
      <title>Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/229982#M41661</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can i create the second data set by using only the first data set? I couldn't get how i could add a new row. I will give values to the ones on the Dq row.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Also, Is it possible to create a combobox which forms the values on the q row by using the second data set. I would like to do this with an option like the hlookup on excel. Is it possible to create a workaround on SAS with another method?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/502i1F34FD2AD563201A/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Data Set 1.png" title="Data Set 1.png" /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/503iB2AA2B6BED8D458B/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Data Set 2.png" title="Data Set 2.png" /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thank you.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Can.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/229982#M41661</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-10-14T21:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/229989#M41664</link>
      <description>&lt;P&gt;you may try using the output statements to output every record. Something like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data hvae;
input variable $ value1-value6;
/*format value1-value6 percent10.2.;*/
cards;
q 20 15 10 5 1 .10
;

data want;
set hvae;
output;
array vs(6) value1-value6;
variable="1-q";
do i  = 1 to  6;
vs(i)=100-vs(i);
end;
output;
run;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 01:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/229989#M41664</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-10-15T01:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230020#M41677</link>
      <description>&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thank you Jagadishkatam,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;You really helped me in the best way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I needed to change&amp;nbsp;raw data to see datas like %20 %15 %10 %5 %1 %0.1. I also couldn't get the created datas like 80.00% 85.00% 90.00% 95.00% 99.00% 99.90%. Is it possible to see format of data like %20 without changing raw data.I also want to see new row's datas like %80.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input variable $ value1-value6;
format value1-value6 percent10.2;
cards;
&lt;FONT size="4"&gt;&lt;STRONG&gt;q .20 .15 .10 .05 .01 .001&lt;/STRONG&gt;&lt;/FONT&gt;
;

data want;
set hvae;
output;
array vs(6) value1-value6;
variable="1-q";
*format value1-value6 percent10.2;
do i  = 1 to  6;
vs(i)=100-vs(i);
end;
output;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Created Data Set&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/506i8405E83C208F2977/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="percent.png" title="percent.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 07:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230020#M41677</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-10-15T07:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230261#M41743</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Also, I would like to know how I can create the values on the Dq row that you can see on the table above by using array. I couldn't do it with the array I have created below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;variable="Dq";
do z = 1 to 6;
array new{6} value1-value6(1.07 1.14 1.22 1.36 1.63 1.95);
new(z);
end;
output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2015 11:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230261#M41743</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-10-16T11:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230294#M41750</link>
      <description>The second record issue will be resolved if you simply try vs(i)=1-vs(i);</description>
      <pubDate>Fri, 16 Oct 2015 14:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230294#M41750</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-10-16T14:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230299#M41751</link>
      <description>&lt;P&gt;Yes, Thanks a lot. I didn't realize it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as i understand i need to change raw data to get datas like %20 etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you also help me about Dq row.How can i add determined datas to Dq row by using array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230299#M41751</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-10-16T14:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230303#M41752</link>
      <description>&lt;P&gt;you could try like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data hvae;
input variable $ value1-value6;
cards;
q .20 .15 .10 .05 .01 .001
;

data want;
set hvae;
array vs1(6) value1-value6;
do i  = 1 to  6;
vs1(i)=vs1(i);
end;
output;
array vs2(6) value1-value6;
variable="1-q";
do i  = 1 to  6;
vs2(i)=1-vs2(i);
end;
output;
array new(6) (1.07 1.14 1.22 1.36 1.63 1.95);
array vs3(6) value1-value6;
variable="Dq";
do z = 1 to 6;
vs3(z)=new(z);
end;
output;
/*format value1-value6 percent10.2;*/
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230303#M41752</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-10-16T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create new rows from one row on one data set &amp; Use of Combobox on SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230306#M41754</link>
      <description>&lt;P&gt;Thank you for your interest &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Because of you i improved my array skills &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-new-rows-from-one-row-on-one-data-set-amp-Use-of-Combobox/m-p/230306#M41754</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-10-16T14:56:47Z</dc:date>
    </item>
  </channel>
</rss>

