<?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: Base SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493396#M129785</link>
    <description>&lt;P&gt;no, there are 505 variable in YR1001 out of which 504 start with 'S00'.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 13:06:30 GMT</pubDate>
    <dc:creator>vishalrajpoot3</dc:creator>
    <dc:date>2018-09-07T13:06:30Z</dc:date>
    <item>
      <title>Adding a new column to YR1001 data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493367#M129776</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me to understand how can i get a new column added to set sashelp.yr1001. The new column should be the percentage of total of the column of YR1001.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my code, I am getting the below error and everything is written in log window.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR: Array subscript out of range at line 81 column 43.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Code -&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=sashelp.yr1001 noprint;&lt;BR /&gt;output out=abc (drop= _&amp;nbsp; : ) sum= sum_1 - sum_504;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data ab1;&lt;BR /&gt;set sashelp.yr1001;&lt;BR /&gt;if _n_ = 1 then set abc;&lt;BR /&gt;array z(*) s0:;&lt;BR /&gt;do i = 1 to dim(z);&lt;BR /&gt;if z(i)=. then z(i)=1;&lt;BR /&gt;end;&lt;BR /&gt;array x(*) p1 - p504;&lt;BR /&gt;array y(*) sum:;&lt;BR /&gt;do i = 1 to dim(x);&lt;BR /&gt;if x(i)=. then x(i)=(y(i)/z(i))/100;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493367#M129776</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2018-09-07T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493373#M129777</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are only 503 columns in sashelp.yr1001 whose name begins with "S0" so your array z has one element&lt;/P&gt;
&lt;P&gt;less than the others.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 12:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493373#M129777</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-07T12:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493396#M129785</link>
      <description>&lt;P&gt;no, there are 505 variable in YR1001 out of which 504 start with 'S00'.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493396#M129785</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2018-09-07T13:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493401#M129788</link>
      <description>&lt;P&gt;Post test data in the form of a datastep using the code window (it is the {i} above post area), only need a few rows:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no other way we can infer what you are working with.&amp;nbsp; One of the three arrays has not enough elements, most likely one is y as the other two are looped by dim().&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493401#M129788</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-07T13:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493406#M129789</link>
      <description>&lt;P&gt;Not on my computer :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;143  proc sql;
144      SELECT count(*) INTO :nvar
145      FROM dictionary.columns
146      WHERE LIBNAME="SASHELP" AND MEMNAME="YR1001"
147      AND NAME LIKE "S0%";
148  quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.05 seconds
      cpu time            0.00 seconds


149
150  %put &amp;amp;=nvar.;
NVAR=     503
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Try to print the dimensions of each of your arrays to see if they match :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dimz=dim(z);&lt;/P&gt;
&lt;P&gt;put dimz=;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493406#M129789</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-07T13:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493416#M129793</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i change the array size from 504 to 503 code is working fine. But when i go through the properties of Yr1001 there are 505 variables in it. Is something i am missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name:&lt;/TD&gt;&lt;TD&gt;YR1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Description:&lt;/TD&gt;&lt;TD&gt;M-competition 1001 Series, Annual&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Type:&lt;/TD&gt;&lt;TD&gt;Table&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Location:&lt;/TD&gt;&lt;TD&gt;SASHELP.YR1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Rows:&lt;/TD&gt;&lt;TD&gt;126&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Columns:&lt;/TD&gt;&lt;TD&gt;505&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Date created:&lt;/TD&gt;&lt;TD&gt;Aug 10, 2017, 7:35:46 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Date modified:&lt;/TD&gt;&lt;TD&gt;Aug 10, 2017, 7:35:46 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493416#M129793</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2018-09-07T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493418#M129794</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
	SELECT NAME
	FROM dictionary.columns
	WHERE LIBNAME="SASHELP" AND MEMNAME="YR1001"
	AND NAME NOT LIKE "S0%";
	;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS Output&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure SQL: Query Results" frame="box" rules="all" cellpadding="5" cellspacing="0"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Column Name&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;T&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;S1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493418#M129794</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-07T13:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493419#M129795</link>
      <description>&lt;P&gt;The output provided tells me very little.&amp;nbsp; There may be 505 columns, but what are those columns.&amp;nbsp; Post test data in the form of a datastep:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493419#M129795</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-07T13:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493420#M129796</link>
      <description>&lt;P&gt;Can I ask, how do you know this, there is no YR1001 dataset in SASHELP on my install?&amp;nbsp; Hence why I keep asking for test data.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493420#M129796</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-07T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493422#M129797</link>
      <description>&lt;P&gt;There is such a dataset on my SAS install. I just discovered its existence so i cannot tell you more than that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit : Sas 9.4 / windows 7&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493422#M129797</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-07T13:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493424#M129798</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Studio and SAS University Edition, in libraries ,in both the option this YR1001 is there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493424#M129798</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2018-09-07T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493430#M129803</link>
      <description>&lt;P&gt;there is 505 column and only first column is 'T' and rest 504 starts with 'S0'.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493430#M129803</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2018-09-07T13:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493431#M129804</link>
      <description>&lt;P&gt;Yep, not on mine.&amp;nbsp; I think this clearly shows why test data should be screen one when posting questions in future, I will push this as suggestion for the forums.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493431#M129804</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-07T13:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493435#M129805</link>
      <description>&lt;P&gt;No, S1000 begins with "S1".&lt;/P&gt;
&lt;P&gt;Maybe you want to modify your z array definition to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;array z(*) s:;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493435#M129805</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-09-07T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493436#M129806</link>
      <description>&lt;P&gt;Ohhh yes, that was the only issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493436#M129806</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2018-09-07T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493440#M129808</link>
      <description>&lt;P&gt;Looks like this is solved now -- but just to explain why some people have YR1001 and others don't.&amp;nbsp;&amp;nbsp;yr1001.sas7bdat is distributed with SAS/ETS, and at least parts of ETS are included in SAS University Edition.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 14:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493440#M129808</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-09-07T14:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493518#M129828</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214824"&gt;@vishalrajpoot3&lt;/a&gt;: I don't think this is solved yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The initial proc means was:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.yr1001 noprint;
  output out=abc (drop= _  : ) sum= sum_1 - sum_504;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That will create sums for T and s0001--s0996. I don't think that is what was wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following, I think, does accomplish the task correctly:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.yr1001 (drop=t) noprint;
  output out=abc sum= xsum_1 - xsum_504;
run;

data ab1 (drop=xsum: i);
  set sashelp.yr1001;
  if _n_ = 1 then set abc;
  array z(*) xsum:;
  do i = 1 to dim(z);
    if missing(z(i)) then z(i)=1;
  end;
  array x(*) p1 - p504;
  array y(*) s:;
  do i = 1 to dim(x);
    if x(i)=. then x(i)=(y(i)/z(i))/100;
  end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 15:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/493518#M129828</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-09-07T15:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/495483#M130772</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you assigning 1 for missing value, why this is not showing in output data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is the code I came with as solution-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=sashelp.yr1001 noprint;&lt;/P&gt;&lt;P&gt;output out=abc (drop= _&amp;nbsp; : ) sum= add_1 - add_504;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ab1 (drop=add:);&lt;/P&gt;&lt;P&gt;set sashelp.yr1001;&lt;/P&gt;&lt;P&gt;if _n_ = 1 then set abc;&lt;/P&gt;&lt;P&gt;array z(*) S:;&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; do i = 1 to dim(z);&lt;/P&gt;&lt;P&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;&amp;nbsp; if z(i)=. then z(i)=1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;array x(*) p1 - p504;&lt;/P&gt;&lt;P&gt;array y(*) add_:;&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; do i = 1 to dim(x);&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; if x(i)=. then x(i)=(z(i)/y(i))*100;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-new-column-to-YR1001-data/m-p/495483#M130772</guid>
      <dc:creator>vishalrajpoot3</dc:creator>
      <dc:date>2018-09-13T19:52:57Z</dc:date>
    </item>
  </channel>
</rss>

