<?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: array to create new character variables based on the defined numeric arrays in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645185#M192834</link>
    <description>thanks, i have figured out a way though, Putting * inside {} solves the problem other wise array out of bound exception  problem pops in. Don't know why.</description>
    <pubDate>Tue, 05 May 2020 07:40:39 GMT</pubDate>
    <dc:creator>sahoositaram555</dc:creator>
    <dc:date>2020-05-05T07:40:39Z</dc:date>
    <item>
      <title>array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645103#M192773</link>
      <description>&lt;P&gt;Hi, I have a dataset. I'm supposed to use array to solve this issue.So i have to create 4 new variables based on these vis variables.ex: if vis1=1 then visit1="Y"......and so on. I have written a code below but it's throwing errors . i would be grateful if someone help me know which step i'm going wrong fundamentally . I'm ready to receive feedback on improvising my array using skills, as i'm a beginner level learner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a;&lt;BR /&gt;length subjid 5 vis1 3 vis2 3 vis3 3 vis4 3 ;&lt;BR /&gt;input subjid vis1 vis2 vis3 vis4;&lt;BR /&gt;cards;&lt;BR /&gt;10111 1 1 . 1&lt;BR /&gt;10112 1 1 1 1&lt;BR /&gt;10113 1 . . .&lt;BR /&gt;10114 . 1 . 1&lt;BR /&gt;10115 . . . 1&lt;BR /&gt;;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;set a;&lt;BR /&gt;array visits{4} vis1-vis4;&lt;/P&gt;
&lt;P&gt;/*below step i'm using to create the new variables in the same order as above /*&lt;BR /&gt;array visitc{4} $1 _6thvisit_F _18thvisit_F _30thvisit_F _42thweek_F;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do i=1 to 4;&lt;BR /&gt;if visits{i}=. then visitsc{i}="N";&lt;BR /&gt;else if visits{i}=1 then visitsc{i}="Y";&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 21:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645103#M192773</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2020-05-04T21:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645104#M192774</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;but it's throwing errors&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the log,&amp;nbsp; all parts, code, Notes, WARNINGS and ERRORS, with nothing chopped out.&lt;/P&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 May 2020 21:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645104#M192774</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-04T21:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645106#M192775</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109034"&gt;@sahoositaram555&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just correct the typo(s) &lt;FONT face="courier new,courier"&gt;visitc&lt;/FONT&gt; vs. &lt;FONT face="courier new,courier"&gt;visit&lt;FONT color="#FF00FF"&gt;s&lt;/FONT&gt;c&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 21:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645106#M192775</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-05-04T21:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645109#M192777</link>
      <description>25         GOPTIONS ACCESSIBLE;&lt;BR /&gt;26         data ph_visits1;&lt;BR /&gt;27         set t_ph_visits;&lt;BR /&gt;28         array visits{4} vis1-vis4;&lt;BR /&gt;ERROR: Alphabetic prefixes for enumerated variables (vis1-vis4) are different.&lt;BR /&gt;ERROR: Too few variables defined for the dimension(s) specified for the array visits.&lt;BR /&gt;29         array visitsc{4} $1  _6thvisit_F _18thvisit_F _30thvisit_F _42thweek_F;&lt;BR /&gt;30         do i=1 to 4;&lt;BR /&gt;31         if visits{i}=. then visitsc{i}="N";&lt;BR /&gt;ERROR: Undeclared array referenced: visitsc.&lt;BR /&gt;ERROR: Variable visitsc has not been declared as an array.&lt;BR /&gt;32         else if visits{i}=1 then visitsn{i}="Y";&lt;BR /&gt;ERROR: Undeclared array referenced: visitsc.&lt;BR /&gt;ERROR: Variable visitsc has not been declared as an array.&lt;BR /&gt;33         end;&lt;BR /&gt;34         run;</description>
      <pubDate>Mon, 04 May 2020 21:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645109#M192777</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2020-05-04T21:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645112#M192779</link>
      <description>@FreelanceReinhard, Thanks for the pick. while few of the errors got resolved, below 2 errors are still existing.&lt;BR /&gt;ERROR: Alphabetic prefixes for enumerated variables (vis1-vis4) are different.&lt;BR /&gt;ERROR: Too few variables defined for the dimension(s) specified for the array visits.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 May 2020 21:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645112#M192779</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2020-05-04T21:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645118#M192786</link>
      <description>&lt;P&gt;The code in your log does not exactly match the code in your initial post. I copied the code from your initial post, corrected the typo and got no error messages.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 22:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645118#M192786</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-05-04T22:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645128#M192793</link>
      <description>I have found a way out, thank you very much. well initially there was this typo error then warnings helped me to resolve the issues.&lt;BR /&gt;The issue that remains is it is only working for vis1 perfectly, for other columns like vis2...vis4, the condition is not working, basically the newly formed columns are just blank, no warning, no errors.  can you suggest what could be the issue? or if you could please tell how to make the loop run over columns then it would be helpful.&lt;BR /&gt;the modification that i have made to the code is below:&lt;BR /&gt;array old{*}  vis: ;&lt;BR /&gt;array new{*} $ phvis1-phvis5;&lt;BR /&gt;do i=1 to dim(old);&lt;BR /&gt;   if old[i]=. then new[i]="N";else new[i]="Y";&lt;BR /&gt;end;</description>
      <pubDate>Mon, 04 May 2020 22:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645128#M192793</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2020-05-04T22:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645133#M192794</link>
      <description>&lt;P&gt;Show us the log, all parts, code, Notes, WARNINGS and ERRORS, with nothing chopped out.&lt;/P&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 May 2020 23:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645133#M192794</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-04T23:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645135#M192795</link>
      <description>&lt;P&gt;I suspect that those two things are related.&amp;nbsp; Your first error was saying you where trying to make a enumerated variable list using start and stop names that had different prefix characters.&amp;nbsp; Your second error seems to be that the OLD array that you defined using the VIS: variable list only has one variable.&amp;nbsp; &amp;nbsp;Look carefully at the names of your variables.&amp;nbsp; Perhaps re-type the code that you think is saying&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;VIS1 - VIS4&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to make sure that there are not any strange hidden characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example you might have used a lowercase L instead of the digit 1.&amp;nbsp; My mother used to do that when I got her a computer. She was used to typewriters that did not have a 1 key as the lowercase L could be used impress the same symbol onto the page.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 00:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645135#M192795</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-05T00:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645158#M192817</link>
      <description>&lt;P&gt;I can't see the problem. I just copied your code and it worked as you wished.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;length subjid $5 vis1-vis4 3 ;&lt;BR /&gt;input subjid $ vis1-vis4;&lt;BR /&gt;cards;&lt;BR /&gt;10111 1 1 . 1&lt;BR /&gt;10112 1 1 1 1&lt;BR /&gt;10113 1 . . .&lt;BR /&gt;10114 . 1 . 1&lt;BR /&gt;10115 . . . 1&lt;BR /&gt;;run;&lt;BR /&gt;&lt;BR /&gt;data want(drop =i);&lt;BR /&gt;set a;&lt;BR /&gt;array visits{4} vis1-vis4;&lt;BR /&gt;array visitsc{4} $ _6thvisit_F _18thvisit_F _30thvisit_F _42thweek_F;&lt;BR /&gt;do i=1 to 4;&lt;BR /&gt;if visits{i}=. then visitsc{i}="N";&lt;BR /&gt;else if visits{i}=1 then visitsc{i}="Y";&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=want;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;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amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 04:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645158#M192817</guid>
      <dc:creator>HansGelders</dc:creator>
      <dc:date>2020-05-05T04:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645185#M192834</link>
      <description>thanks, i have figured out a way though, Putting * inside {} solves the problem other wise array out of bound exception  problem pops in. Don't know why.</description>
      <pubDate>Tue, 05 May 2020 07:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645185#M192834</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2020-05-05T07:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: array to create new character variables based on the defined numeric arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645275#M192868</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109034"&gt;@sahoositaram555&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;thanks, i have figured out a way though, Putting * inside {} solves the problem other wise array out of bound exception problem pops in. Don't know why.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can either tell SAS how many variables should be in the array.&amp;nbsp; Or let it count.&amp;nbsp; If you are letting it count you don't need put in anything except the name and the variable list.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either give it a list of variables or give it a count and let if generate the variable names.&lt;/P&gt;
&lt;P&gt;You can use curly braces {}, square brackets [] or parentheses ().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So all of these statements create the same array named VIS that references the variables VIS1,VIS2,VIS3 and VIS4.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array vis [4];
array vis vis1-vis4;
array vis [*] vis1-vis4;
array vis {*} vis1-vis4;
array vis (*) vis1-vis4;
array vis vis1-vis4;
array vis [4] vis1 vis2-vis4;
array vis vis1 vis2-vis4;
array vis vis1 vis2 vis3 vis4;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 May 2020 12:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-to-create-new-character-variables-based-on-the-defined/m-p/645275#M192868</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-05T12:47:46Z</dc:date>
    </item>
  </channel>
</rss>

