<?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: Transposing vars using array function in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Transposing-vars-using-array-function/m-p/6706#M153</link>
    <description>Try something like:&lt;BR /&gt;
Data Step2;&lt;BR /&gt;
  set step1;&lt;BR /&gt;
  result = var1/var2;&lt;BR /&gt;
run;&lt;BR /&gt;
proc transpose data=step2 out=step3(drop=_:) prefix=Result;&lt;BR /&gt;
  by date;&lt;BR /&gt;
  var result;&lt;BR /&gt;
  id obs;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=step3;&lt;BR /&gt;
run;</description>
    <pubDate>Tue, 05 Feb 2008 15:32:37 GMT</pubDate>
    <dc:creator>advoss</dc:creator>
    <dc:date>2008-02-05T15:32:37Z</dc:date>
    <item>
      <title>Transposing vars using array function</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Transposing-vars-using-array-function/m-p/6705#M152</link>
      <description>Hi folks!&lt;BR /&gt;
&lt;BR /&gt;
I´m trying to perform a division using an array.&lt;BR /&gt;
The information I have are in columns and I wanna change then to line at same divide them.&lt;BR /&gt;
&lt;BR /&gt;
Example raw file:&lt;BR /&gt;
&lt;BR /&gt;
Date   -  Var1 - Var2 - obs&lt;BR /&gt;
Jan/06 -  200  - 1000  -  1&lt;BR /&gt;
Jan/06 -  300  - 1000  -  2&lt;BR /&gt;
Jan/06 -  400  - 1000  -  3&lt;BR /&gt;
Jan/06 -  500  - 1000  -  4&lt;BR /&gt;
&lt;BR /&gt;
after process the desirable result (Var1 / Var2) follow as show bellow&lt;BR /&gt;
&lt;BR /&gt;
jan/06 - 0.2 - 0.3 - 0.4 - 0.5&lt;BR /&gt;
&lt;BR /&gt;
Thanks

Message was edited by: Carlos</description>
      <pubDate>Fri, 01 Feb 2008 19:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Transposing-vars-using-array-function/m-p/6705#M152</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-01T19:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing vars using array function</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Transposing-vars-using-array-function/m-p/6706#M153</link>
      <description>Try something like:&lt;BR /&gt;
Data Step2;&lt;BR /&gt;
  set step1;&lt;BR /&gt;
  result = var1/var2;&lt;BR /&gt;
run;&lt;BR /&gt;
proc transpose data=step2 out=step3(drop=_:) prefix=Result;&lt;BR /&gt;
  by date;&lt;BR /&gt;
  var result;&lt;BR /&gt;
  id obs;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=step3;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 05 Feb 2008 15:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Transposing-vars-using-array-function/m-p/6706#M153</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2008-02-05T15:32:37Z</dc:date>
    </item>
  </channel>
</rss>

