<?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: want to take every third variable from the array of variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52118#M14331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; text-align: -webkit-auto; font-size: medium;"&gt;hi ... you could always have SAS write a KEEP statement ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;filename x temp;&lt;/STRONG&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;file x;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;put 'keep';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;do j=1 to 13 by 3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; put 'dfm' j&amp;nbsp; ' bal' j;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;put ';';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;data stuff;&lt;P&gt;input (dfm1-dfm14) (: $1.) bal1-bal14;&lt;/P&gt;&lt;P&gt;%include x ;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;Y Y Y Y Y N Y N Y N Y Y N y 22 12 14 151 56 58 56 89 87 45 63 26 111 78&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 04:42:27 GMT</pubDate>
    <dc:creator>MikeZdeb</dc:creator>
    <dc:date>2011-11-22T04:42:27Z</dc:date>
    <item>
      <title>want to take every third variable from the array of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52114#M14327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have hundred of variable. I provide a smaller dataset for the illustration purpose.And I want to&amp;nbsp; make it through Arrays.I want to take every third variable from the array of variables Dfm and bal series starting from first varible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;I_have; &lt;/P&gt;&lt;P&gt;input&lt;/P&gt;&lt;P&gt;Dfm1$ Dfm2$ Dfm3$ Dfm4$ Dfm5$ Dfm6$ Dfm7$ Dfm8$ Dfm9$ Dfm10$ Dfm11$ Dfm12$ Dfm13$ Dfm14$ bal1 bal2 bal3 bal4 bal5 bal6 bal7 bal8 bal9 bal10 bal11 ball2 bal13 ball4; &lt;/P&gt;&lt;P&gt;Datalines&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;Y Y Y Y Y N Y N Y N Y Y N y 22 12 14 151 56 58 56 89 87 45 63 26 111 78&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;I_wanna; &lt;/P&gt;&lt;P&gt;input&lt;/P&gt;&lt;P&gt;Dfm1$ Dfm4$ Dfm7$ Dfm10$ Dfm13$ bal1 bal4 bal7 bal10 bal13; &lt;/P&gt;&lt;P&gt;Datalines&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;Y Y Y N N 22 151 56 45 111&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 21:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52114#M14327</guid>
      <dc:creator>gim</dc:creator>
      <dc:date>2011-11-21T21:48:31Z</dc:date>
    </item>
    <item>
      <title>want to take every third variable from the array of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52115#M14328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but today appears to be one of my brute force days.&amp;nbsp; However, I think that the following accomplishes what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data I_have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input (Dfm1-Dfm14 bal1-bal14)($);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Datalines;&lt;/P&gt;&lt;P&gt;Y Y Y Y Y N Y N Y N Y Y N y 22 12 14 151 56 58 56 89 87 45 63 26 111 78&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length keep $32767;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set I_have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array d(*) dfm:;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array b(*) bal:;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_ eq 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do i=1 to dim(d);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if mod(i,3) eq 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep=catx(' ',keep,vname(d(i)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do i=1 to dim(b);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if mod(i,3) eq 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keep=catx(' ',keep,vname(b(i)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call symput('keep',put(keep,$32767.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data I_wanna;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set I_have (keep=&amp;amp;keep.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 22:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52115#M14328</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-21T22:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: want to take every third variable from the array of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52116#M14329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "take"?&amp;nbsp; What are you going to do with them?&lt;/P&gt;&lt;P&gt;Why not normalize the dataset? Then you could "take" them by using a WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;data vertical ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set have ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; array _1 dfm: ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; array _2 bal: ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do week = 1 to dim(_1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dfm = _1(week);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bal = _2(week);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; keep week dfm bal;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set vertical;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where mod(week,3)=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 23:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52116#M14329</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-11-21T23:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: want to take every third variable from the array of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52117#M14330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;Data have;
input
Dfm1$ Dfm2$ Dfm3$ Dfm4$ Dfm5$ Dfm6$ Dfm7$ Dfm8$ Dfm9$ Dfm10$ Dfm11$ Dfm12$ Dfm13$ Dfm14$ bal1 bal2 bal3 bal4 bal5 bal6 bal7 bal8 bal9 bal10 bal11 ball2 bal13 bal14;
Datalines;
Y Y Y Y Y N Y N Y N Y Y N y 22 12 14 151 56 58 56 89 87 45 63 26 111 78
;
run; 
data _null_;
 set sashelp.vcolumn(keep=libname memname name where=(libname='WORK' and memname='HAVE')) end=last;
 if _n_ eq 1 then call execute('data want;set have;keep&amp;nbsp; ');
 if mod(input(substr(name,anydigit(name)),best8.),3) eq 1 then call execute(name);
 if last then call execute(';run;');
run;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 03:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52117#M14330</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-22T03:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: want to take every third variable from the array of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52118#M14331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; text-align: -webkit-auto; font-size: medium;"&gt;hi ... you could always have SAS write a KEEP statement ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;filename x temp;&lt;/STRONG&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;file x;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;put 'keep';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;do j=1 to 13 by 3;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; put 'dfm' j&amp;nbsp; ' bal' j;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;put ';';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;data stuff;&lt;P&gt;input (dfm1-dfm14) (: $1.) bal1-bal14;&lt;/P&gt;&lt;P&gt;%include x ;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;Y Y Y Y Y N Y N Y N Y Y N y 22 12 14 151 56 58 56 89 87 45 63 26 111 78&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 04:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52118#M14331</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-11-22T04:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: want to take every third variable from the array of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52119#M14332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Art,&lt;/P&gt;&lt;P&gt;I made some changes to your code.&amp;nbsp; Happy Thanksgiving!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: green; font-size: 10pt;"&gt;/*********************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; kp $&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;32767&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; I_have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; d(*) dfm:;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; b(*) bal:;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; i=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; dim(d) &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kp=catx(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;,kp,vname(d(i)),vname(b(i)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; symput(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 10pt;"&gt;'kp'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;,put(kp,&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;$32767.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;stop&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; wanna;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; I_have (keep=&amp;amp;kp);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 14:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52119#M14332</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2011-11-22T14:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: want to take every third variable from the array of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52120#M14333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Art. You are great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 05:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/want-to-take-every-third-variable-from-the-array-of-variables/m-p/52120#M14333</guid>
      <dc:creator>gim</dc:creator>
      <dc:date>2011-11-23T05:19:49Z</dc:date>
    </item>
  </channel>
</rss>

