<?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: How to make use of a variable in array definition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89490#M25521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way of doing what you want to do is to pass the needed information off to a call execute.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a='ABCDE';&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL EXECUTE (&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'data one;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set one;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array aa&lt;LI&gt; $ x1-x' || LEFT(PUT(length(a),2.)) || ';'&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ||'do i=1 to length(a);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=substr(a,i,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa&lt;I&gt;=j;&lt;/I&gt;&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; drop i j;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;'&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 21:39:34 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-08-09T21:39:34Z</dc:date>
    <item>
      <title>How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89489#M25520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;a='ABCDE';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEN&lt;/STRONG&gt;=length(a);&lt;/P&gt;&lt;P&gt;array aa&lt;LI&gt; $ &lt;STRONG&gt;x1-x5;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;do i=1 to length(a);&lt;/P&gt;&lt;P&gt;j=substr(a,i,1);&lt;/P&gt;&lt;P&gt;aa&lt;I&gt;=j;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop i j len;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want to change the code to make use of variable &lt;STRONG&gt;LEN&lt;/STRONG&gt; as part of definition of array , like:(I don't want to use x1-x5 here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;a='ABCDE';&lt;/P&gt;&lt;P&gt;LEN=length(a);&lt;/P&gt;&lt;P&gt;array aa&lt;LI&gt; $ &lt;STRONG&gt;&lt;STRONG&gt;x1-x||length(a)&lt;/STRONG&gt;;/&lt;/STRONG&gt;***Here is the problem*****/&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;do i=1 to length(a);&lt;/P&gt;&lt;P&gt;j=substr(a,i,1);&lt;/P&gt;&lt;P&gt;aa&lt;I&gt;=j;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop i j len;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise me ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 21:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89489#M25520</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-09T21:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89490#M25521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way of doing what you want to do is to pass the needed information off to a call execute.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a='ABCDE';&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL EXECUTE (&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'data one;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set one;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array aa&lt;LI&gt; $ x1-x' || LEFT(PUT(length(a),2.)) || ';'&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ||'do i=1 to length(a);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=substr(a,i,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa&lt;I&gt;=j;&lt;/I&gt;&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; drop i j;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;'&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 21:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89490#M25521</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-09T21:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89491#M25522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LEN and A cannot vary, so make them literals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;%let&lt;/SPAN&gt; a = ABCDE ;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;%let&lt;/SPAN&gt; LEN = &lt;SPAN style="color: #0000ff;"&gt;%sysfunc&lt;/SPAN&gt;( length(ABCDE) ) ;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; one;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;array&lt;/SPAN&gt; aa&lt;LI&gt; $ x1-x&amp;amp;&lt;SPAN style="color: #008080;"&gt;LEN.&lt;/SPAN&gt; ;&lt;/LI&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;do&lt;/SPAN&gt; i=&lt;SPAN style="color: #008080;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;to&lt;/SPAN&gt; &amp;amp;&lt;SPAN style="color: #008080;"&gt;LEN.&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;j=substr(&lt;SPAN style="color: #800080;"&gt;"&amp;amp;a"&lt;/SPAN&gt;,i,&lt;SPAN style="color: #008080;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;aa&lt;I&gt;=j;&lt;/I&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #0000ff;"&gt;end&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;drop&lt;/SPAN&gt; i j ;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #000080;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 01:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89491#M25522</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2012-08-10T01:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89492#M25523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What result do you want ? I think Hash Table maybe is a good choice.&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>Fri, 10 Aug 2012 02:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89492#M25523</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-10T02:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89493#M25524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Art,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very impressive&amp;nbsp; method!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my understanding,Does the essence of the call execute is treating these data step parts as strings and doing character operation such as using "||" to connect strings. then execute it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89493#M25524</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-10T14:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89494#M25525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes!&amp;nbsp; It executes as soon as the current datastep ends.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89494#M25525</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-10T14:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89495#M25526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ksharp!&lt;/P&gt;&lt;P&gt;I will be very appreciate if you run the SAS code as follow:&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;data one;&lt;/P&gt;&lt;P&gt;a='ABCDE';&lt;/P&gt;&lt;P&gt;LEN=length(a);&lt;/P&gt;&lt;P&gt;array aa&lt;LI&gt; $ x1-x5;&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;do i=1 to length(a);&lt;/P&gt;&lt;P&gt;j=substr(a,i,1);&lt;/P&gt;&lt;P&gt;aa&lt;I&gt;=j;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop i j len;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my expect result is I don't want to use " array aa&lt;LI&gt; $ x1-x5;"&lt;BR /&gt;I want to use a variable instead of an exact number to express the up-bond of the array.&lt;BR /&gt;such as I want use:"array aa&lt;/LI&gt;&lt;LI&gt; $ x1-x||length("ABCDE");"&lt;/LI&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I know hash is a very nice tool for join tables but I don't have any sense of making a connection between this problem with hash,&lt;/P&gt;&lt;P&gt;This sounds very interesting to me.&lt;/P&gt;&lt;P&gt;Would you like to share your idea with me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am very appreciate about it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89495#M25526</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-10T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89496#M25527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A SAS array is defined during compilation time of a data step and the number of array elements is fix. The length() statement is executed during execution time of a data step. That's why your approach can't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be worth that you explain us what problem you try to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only guess what KSharp has in mind but I assume it's about having your data in a long structure (so just adding elements to a hash during execution time) instead of having your data in a wide structure using an array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you eventually after something like below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one(drop=_:);&lt;BR /&gt;&amp;nbsp; length element $1;&lt;BR /&gt;&amp;nbsp; rownum+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input _a $;&lt;BR /&gt;&amp;nbsp; do _i=1 to length(_a);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; element=substr(_a,_i,1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;BR /&gt;ABCDE&lt;BR /&gt;FGHIJKL&lt;BR /&gt;MN&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc transpose data=one out=one(drop=_:) prefix=X;&lt;BR /&gt;&amp;nbsp; by rownum;&lt;BR /&gt;&amp;nbsp; var element;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2012 09:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89496#M25527</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-08-11T09:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89497#M25528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... another idea (works like CALL EXECUTE without using CALL EXECUTE) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;%let a=ABCDE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;filename x temp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;a = "&amp;amp;a";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;l = length(a);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;file x;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;put 'data one; a="&amp;amp;a"; array aa(*) $1 x1-x' l '; do j=1 to dim(aa); aa(j)=char(a,j); end; keep x:; run;';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;%include x;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;x1&amp;nbsp;&amp;nbsp;&amp;nbsp; x2&amp;nbsp;&amp;nbsp;&amp;nbsp; x3&amp;nbsp;&amp;nbsp;&amp;nbsp; x4&amp;nbsp;&amp;nbsp;&amp;nbsp; x5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;%let a=MIKE.DAVIS;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;x1&amp;nbsp;&amp;nbsp;&amp;nbsp; x2&amp;nbsp;&amp;nbsp;&amp;nbsp; x3&amp;nbsp;&amp;nbsp;&amp;nbsp; x4&amp;nbsp;&amp;nbsp;&amp;nbsp; x5&amp;nbsp;&amp;nbsp;&amp;nbsp; x6&amp;nbsp;&amp;nbsp;&amp;nbsp; x7&amp;nbsp;&amp;nbsp;&amp;nbsp; x8&amp;nbsp;&amp;nbsp;&amp;nbsp; x9&amp;nbsp;&amp;nbsp;&amp;nbsp; x10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2012 18:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89497#M25528</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2012-08-11T18:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to make use of a variable in array definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89498#M25529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you want varying number of variables , I recommend to use Patrick's code PROC TRANSPOSE.&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>Mon, 13 Aug 2012 02:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-make-use-of-a-variable-in-array-definition/m-p/89498#M25529</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-13T02:52:44Z</dc:date>
    </item>
  </channel>
</rss>

