<?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 change values for all the columns in a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820978#M324086</link>
    <description>&lt;P&gt;Ok, but before I figure out how to do this, what is the reason you want columns where every row has the value of 1? This seems like an odd thing to do. What is the next step of data analysis or reporting that you would do?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 17:50:14 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-06-29T17:50:14Z</dc:date>
    <item>
      <title>how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820971#M324082</link>
      <description>&lt;P&gt;Hello, I have a dataset like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_0-1656523986263.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72829iD9298AA784901072/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_0-1656523986263.png" alt="lydia_li_0-1656523986263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to update the values in each columns except columns with names containing bins, the value I want to assign is equal to 1, but I want to keep the original column names and re-name the new columns as bin_original column names. So how should I do that with a macro? expect I have 500 columns to modify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820971#M324082</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T17:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820972#M324083</link>
      <description>&lt;P&gt;Macros are probably not needed, but an ARRAY might help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, your description of what you want to do is not clear to me. Please provide a small example with 5 columns and 5 rows showing the data set before any change is applied, and then also showing the data set after any change is applied.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820972#M324083</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-29T17:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820976#M324084</link>
      <description>&lt;P&gt;This is before:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_0-1656524409831.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72830i98982E30751CD327/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_0-1656524409831.png" alt="lydia_li_0-1656524409831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is after:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_2-1656524563654.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72832iE7F8232F7656E3A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_2-1656524563654.png" alt="lydia_li_2-1656524563654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no change to the last columns for example, and the name will be updated as Bin_XXX&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820976#M324084</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820977#M324085</link>
      <description>and the original columns still contain in the dataset</description>
      <pubDate>Wed, 29 Jun 2022 17:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820977#M324085</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T17:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820978#M324086</link>
      <description>&lt;P&gt;Ok, but before I figure out how to do this, what is the reason you want columns where every row has the value of 1? This seems like an odd thing to do. What is the next step of data analysis or reporting that you would do?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820978#M324086</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-29T17:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820979#M324087</link>
      <description>yes, they only have 1 bin so after I set them to 1, I need to create a macro to calculate WOE and Information values for each of columns variables.</description>
      <pubDate>Wed, 29 Jun 2022 17:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820979#M324087</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T17:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820980#M324088</link>
      <description>&lt;P&gt;Agreed - wondering if a format may not do whatever is needed instead of needing new variables.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820980#M324088</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-29T17:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820984#M324091</link>
      <description>&lt;P&gt;This is an example for one variable:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_0-1656525198323.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72833i0AA48E68A33EF1AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_0-1656525198323.png" alt="lydia_li_0-1656525198323.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I should apply the function for each of the variables in the dataset&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820984#M324091</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820985#M324092</link>
      <description>I think the format is num as I need the variable to do the calculation</description>
      <pubDate>Wed, 29 Jun 2022 17:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820985#M324092</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T17:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820987#M324093</link>
      <description>&lt;P&gt;There are weight of evidence macros in SAS that you can find. These don't require columns of 1s. You can also compute weight of evidence in PROC HPBIN, again you don't need columns of 1s.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, percent of occurence/non-occurence can be computed via PROC FREQ or PROC MEANS (and probably several other ways) without creating these columns of 1s.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So, I think you should go down one of those paths, rather than create columns of 1s.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820987#M324093</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-29T18:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820990#M324094</link>
      <description>&lt;P&gt;so would you please show me how to use the following dataset to directly calculate WOE and IV if there is no need to adjust? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_0-1656525703917.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72834iBCE278E001F2125F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_0-1656525703917.png" alt="lydia_li_0-1656525703917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want each table to have a fromat like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_1-1656525780229.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72835i03371427CEFC9841/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_1-1656525780229.png" alt="lydia_li_1-1656525780229.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820990#M324094</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T18:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820991#M324095</link>
      <description>&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/prochp/prochp_hpbin_examples05.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/prochp/prochp_hpbin_examples05.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820991#M324095</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-29T18:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820992#M324096</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings13/095-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/095-2013.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820992#M324096</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-29T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820997#M324100</link>
      <description>&lt;P&gt;proc hpbin data=TEMP_INT WOE BINS_META=Mapping;&lt;BR /&gt;ods output Mapping=Mapping;&lt;BR /&gt;input DelinquentDays/numbin=4;&lt;BR /&gt;target DelinquentDays/level=nominal order=desc;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;what if I want to apply this HPBIN function to each of the column? What should I do? and what if there is some columns that I dont want to apply? maybe there is a exclusion list and all the columns not in the exclusion list need to go into the loop. is there a macro to do so? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820997#M324100</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820998#M324101</link>
      <description>&lt;P&gt;The INPUT statement can have as many variables as you want in it.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Also, TARGET must be a different variable than the INPUT variables.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820998#M324101</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-29T18:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820999#M324102</link>
      <description>&lt;P&gt;thanks, but I still need the solution for changing the value for each column, not just to 1, 1 is an example, so how to do that? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 18:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/820999#M324102</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T18:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821000#M324103</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/428731"&gt;@lydia_li&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;thanks, but I still need the solution for changing the value for each column, not just to 1, 1 is an example, so how to do that? Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know what this means.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 19:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821000#M324103</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-29T19:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821005#M324104</link>
      <description>&lt;P&gt;it means I still need the solution for this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is before:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_1-1656529511903.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72839iE73938C5ED10C7A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_1-1656529511903.png" alt="lydia_li_1-1656529511903.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is after:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lydia_li_2-1656529511840.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72838i76D392E1B78A2768/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lydia_li_2-1656529511840.png" alt="lydia_li_2-1656529511840.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no change to the last columns for example, and the name will be updated as Bin_XXX. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 19:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821005#M324104</guid>
      <dc:creator>lydia_li</dc:creator>
      <dc:date>2022-06-29T19:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821006#M324105</link>
      <description>&lt;P&gt;Well, if you are going to compute WOE, you do NOT need this. And I can't think of any good reason to create large numbers of columns where the values are all 1. So, I fall back to my position that just because it is possible to do such a thing does not mean you SHOULD do such a thing. Convince me that you really really really need this.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 19:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821006#M324105</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-29T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to change values for all the columns in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821007#M324106</link>
      <description>&lt;P&gt;Unless you're coding all columns the same, which usually isn't how you bin categories for Weight of Evidence there's no way to simplify this.&amp;nbsp;&lt;BR /&gt;Do you have a set of categories you want to test for a set of columns? If so, you can do that via an array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to do this separately for character or numeric set of variables.&lt;/P&gt;
&lt;P&gt;Here is a reference that illustrates how to refer to variables and datasets in a short cut list that can be used for arrays.&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have large set of lists you can generate the new/old names dynamically by querying sashelp.vcolumn to generate them in macro variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

array orig(5) var1 bc1 acb2 ade ref;
array new(5) new1-new5;

do i=1 to 5;
if orig(i) &amp;lt; 100 then new(i) = 1;
else if orig(i) &amp;lt; 200 then new(i) =  2;
....

end;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 19:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-change-values-for-all-the-columns-in-a-dataset/m-p/821007#M324106</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-29T19:12:43Z</dc:date>
    </item>
  </channel>
</rss>

