<?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 PCTL function with a large amount of variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232803#M42442</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using X=PCTL(I,variable1, variable2, variable3....) function to calculate percentiles, but I want to calculate percnetiles among&amp;nbsp;600 variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there anyway that i can simpelize the expression instead of listing every variable in the bracket?? That would be crazy!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sherri&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2015 20:21:37 GMT</pubDate>
    <dc:creator>SherriF</dc:creator>
    <dc:date>2015-11-02T20:21:37Z</dc:date>
    <item>
      <title>PCTL function with a large amount of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232803#M42442</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using X=PCTL(I,variable1, variable2, variable3....) function to calculate percentiles, but I want to calculate percnetiles among&amp;nbsp;600 variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there anyway that i can simpelize the expression instead of listing every variable in the bracket?? That would be crazy!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sherri&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232803#M42442</guid>
      <dc:creator>SherriF</dc:creator>
      <dc:date>2015-11-02T20:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: PCTL function with a large amount of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232804#M42443</link>
      <description>Do the variables have a naming convention? Are they all side by side? &lt;BR /&gt;&lt;BR /&gt;You could transpose the data and use BY processing as well.</description>
      <pubDate>Mon, 02 Nov 2015 20:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232804#M42443</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-02T20:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: PCTL function with a large amount of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232806#M42445</link>
      <description>Thank you for you response.&lt;BR /&gt;The variables' name look like this: load_2004,load_2005,load_2006,load_2007,load_2008,load_2009, l3r1-l3r100,l4r1-l4r100,l5r1-l5r100,l6r1-l6r100;&lt;BR /&gt; I can probably do transpose process, but i am not familiar with that  and it will easily mess up my data set. I am still wondering if this can be solved with PCTL function.</description>
      <pubDate>Mon, 02 Nov 2015 20:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232806#M42445</guid>
      <dc:creator>SherriF</dc:creator>
      <dc:date>2015-11-02T20:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: PCTL function with a large amount of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232807#M42446</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for you response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The variables' name look like this: load_2004,load_2005,load_2006,load_2007,load_2008,&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;load_2009, l3r1-l3r100,l4r1-l4r100,l5r1-l5r100,l6r1-l6r100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can probably do transpose process, but i am not familiar with that and it will easily mess up my data set. I am still wondering if this can be solved with PCTL function.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232807#M42446</guid>
      <dc:creator>SherriF</dc:creator>
      <dc:date>2015-11-02T20:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: PCTL function with a large amount of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232809#M42447</link>
      <description>Variable lists are what you're looking for:&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695105.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695105.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Why do you think transpose would mess up your dataset?</description>
      <pubDate>Mon, 02 Nov 2015 20:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232809#M42447</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-02T20:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: PCTL function with a large amount of variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232813#M42448</link>
      <description>&lt;P&gt;Thank you for your link. It is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After I tried several list methods, It turnes out the function can be written as x=PCTL(i, of variable:) and it worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason I dont prefer transpose process is because I am personally not familiar with it, and the data I am manipulating is very complicated alrealy for me, so in order to keep my logic clear for myself, I prefer this PCTL function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 21:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PCTL-function-with-a-large-amount-of-variables/m-p/232813#M42448</guid>
      <dc:creator>SherriF</dc:creator>
      <dc:date>2015-11-02T21:09:01Z</dc:date>
    </item>
  </channel>
</rss>

