<?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 array in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/908467#M358493</link>
    <description>&lt;P&gt;data v ;&lt;BR /&gt;input id vstestcd $ vsorres vsorresu $ ;&lt;BR /&gt;cards ;&lt;BR /&gt;101 sbp 120 mmhg&lt;BR /&gt;101 dbp 90 mmhg&lt;BR /&gt;101 hr 78 permin&lt;BR /&gt;101 pr 85 permin &lt;BR /&gt;102 sbp 120 mmhg&lt;BR /&gt;102 dbp 90 mmhg&lt;BR /&gt;102 hr 78 permin&lt;BR /&gt;102 pr 85 permin &lt;BR /&gt;;&lt;BR /&gt;i need the below output using the array/transpose from the above data&amp;nbsp;&lt;BR /&gt;ID&amp;nbsp; &amp;nbsp; SBP&amp;nbsp; &amp;nbsp;DBP HR&amp;nbsp; &amp;nbsp; &amp;nbsp;PR&amp;nbsp; &amp;nbsp; V1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v4 &lt;BR /&gt;101&amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp;90&amp;nbsp; &amp;nbsp; 78&amp;nbsp; &amp;nbsp; &amp;nbsp; 85&amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; permin&amp;nbsp; &amp;nbsp;permin&lt;BR /&gt;102&amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp;90&amp;nbsp; &amp;nbsp; 78&amp;nbsp; &amp;nbsp; &amp;nbsp; 85&amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; permin&amp;nbsp; &amp;nbsp;permin&lt;/P&gt;</description>
    <pubDate>Sat, 16 Dec 2023 10:16:29 GMT</pubDate>
    <dc:creator>112211</dc:creator>
    <dc:date>2023-12-16T10:16:29Z</dc:date>
    <item>
      <title>array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/908467#M358493</link>
      <description>&lt;P&gt;data v ;&lt;BR /&gt;input id vstestcd $ vsorres vsorresu $ ;&lt;BR /&gt;cards ;&lt;BR /&gt;101 sbp 120 mmhg&lt;BR /&gt;101 dbp 90 mmhg&lt;BR /&gt;101 hr 78 permin&lt;BR /&gt;101 pr 85 permin &lt;BR /&gt;102 sbp 120 mmhg&lt;BR /&gt;102 dbp 90 mmhg&lt;BR /&gt;102 hr 78 permin&lt;BR /&gt;102 pr 85 permin &lt;BR /&gt;;&lt;BR /&gt;i need the below output using the array/transpose from the above data&amp;nbsp;&lt;BR /&gt;ID&amp;nbsp; &amp;nbsp; SBP&amp;nbsp; &amp;nbsp;DBP HR&amp;nbsp; &amp;nbsp; &amp;nbsp;PR&amp;nbsp; &amp;nbsp; V1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v4 &lt;BR /&gt;101&amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp;90&amp;nbsp; &amp;nbsp; 78&amp;nbsp; &amp;nbsp; &amp;nbsp; 85&amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; permin&amp;nbsp; &amp;nbsp;permin&lt;BR /&gt;102&amp;nbsp; 120&amp;nbsp; &amp;nbsp; &amp;nbsp;90&amp;nbsp; &amp;nbsp; 78&amp;nbsp; &amp;nbsp; &amp;nbsp; 85&amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; mmhg&amp;nbsp; &amp;nbsp; permin&amp;nbsp; &amp;nbsp;permin&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2023 10:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/908467#M358493</guid>
      <dc:creator>112211</dc:creator>
      <dc:date>2023-12-16T10:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/908482#M358504</link>
      <description>&lt;P&gt;Assuming there is only one set of values per ID you could use two PROC TRANSPOSE steps and then merge the results.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=v out=numbers;
  by id;
  id vstestcd ;
  var vsorres;
run;
proc transpose data=v out=characters suffix=_units;
  by id;
  id vstestcd ;
  var vsorresu ;
run;

data want ;
  merge numbers characters;
  by id;
  drop _name_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1702741833841.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91614i2A8CA055ABA2EAC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1702741833841.png" alt="Tom_0-1702741833841.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2023 15:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/908482#M358504</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-16T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/908487#M358508</link>
      <description>&lt;P&gt;Isn't this a report?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=v;
column id (vsorres vsorresu),vstestcd;
define id / group;
define vsorres / "Value" analysis;
define vsorresu / "Unit" display;
define vstestcd / "" across;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Dec 2023 16:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/908487#M358508</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-12-16T16:59:07Z</dc:date>
    </item>
  </channel>
</rss>

