<?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 Need Help! WARNING: The variable in the DROP, KEEP, or RENAME list has never been referenced. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672196#M201981</link>
    <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I tried many ways and I cannot get this warning message away.&amp;nbsp; What did I do wrong?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE QUERY_FOR_PROCESS_REQUEST AS 
SELECT t2.ID_PRODT, 
t1.Price, 
t1.coupon,
t1.PriceAsofDateTime
FROM process_request t1
INNER JOIN arm_mapping t2 ON (t1.BenchmarkSecurityProduct = t2.New_PMA_Service);
QUIT;

proc print data=QUERY_FOR_PROCESS_REQUEST;
run;

data prices(rename=(Price=RATE_PRCE_TBA Coupon=pct_cpn PriceAsofDateTime=DT_MKT)
keep=ID_PRODT PRCE_TBA pct_cpn DT_MKT);
set QUERY_FOR_PROCESS_REQUEST;
run;

proc print data=pms_arm_prices;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;WARNING: The variable Price in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable Coupon in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable PriceAsofDateTime in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;NOTE: There were 574 observations read from the data set QUERY_FOR_PROCESS_REQUEST.&lt;BR /&gt;NOTE: The data set PMS_ARM_PRICES has 574 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 21:00:54 GMT</pubDate>
    <dc:creator>niejung</dc:creator>
    <dc:date>2020-07-24T21:00:54Z</dc:date>
    <item>
      <title>Need Help! WARNING: The variable in the DROP, KEEP, or RENAME list has never been referenced.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672196#M201981</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I tried many ways and I cannot get this warning message away.&amp;nbsp; What did I do wrong?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE QUERY_FOR_PROCESS_REQUEST AS 
SELECT t2.ID_PRODT, 
t1.Price, 
t1.coupon,
t1.PriceAsofDateTime
FROM process_request t1
INNER JOIN arm_mapping t2 ON (t1.BenchmarkSecurityProduct = t2.New_PMA_Service);
QUIT;

proc print data=QUERY_FOR_PROCESS_REQUEST;
run;

data prices(rename=(Price=RATE_PRCE_TBA Coupon=pct_cpn PriceAsofDateTime=DT_MKT)
keep=ID_PRODT PRCE_TBA pct_cpn DT_MKT);
set QUERY_FOR_PROCESS_REQUEST;
run;

proc print data=pms_arm_prices;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;WARNING: The variable Price in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable Coupon in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;WARNING: The variable PriceAsofDateTime in the DROP, KEEP, or RENAME list has never been referenced.&lt;BR /&gt;NOTE: There were 574 observations read from the data set QUERY_FOR_PROCESS_REQUEST.&lt;BR /&gt;NOTE: The data set PMS_ARM_PRICES has 574 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 21:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672196#M201981</guid>
      <dc:creator>niejung</dc:creator>
      <dc:date>2020-07-24T21:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help! WARNING: The variable in the DROP, KEEP, or RENAME list has never been referenced.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672202#M201982</link>
      <description>&lt;P&gt;Please show us the log, intact, with nothing chopped out, so we can see where these WARNINGs appear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you copy the log, copy it as text, and paste it into the window that opens when you click on the &amp;lt;/&amp;gt; icon. DO NOT SKIP THIS STEP.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 21:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672202#M201982</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-07-24T21:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help! WARNING: The variable in the DROP, KEEP, or RENAME list has never been referenced.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672207#M201983</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I figured out the solution.&amp;nbsp; I rename the columns inside PROC SQL.&amp;nbsp; I don't need to do extra steps in dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 21:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672207#M201983</guid>
      <dc:creator>niejung</dc:creator>
      <dc:date>2020-07-24T21:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help! WARNING: The variable in the DROP, KEEP, or RENAME list has never been referenced.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672218#M201987</link>
      <description>&lt;P&gt;FYI: Anytime that have a Rename and Drop/Keep list in the same data set options the Drop/Keep list has to use the "old" name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If had done the Rename on the SET statement the Keep would work as written. A matter of timing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was going to ask why you didn't just rename in the Proc SQL and completely avoid that data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And since you were using a data set created with only those variables to begin with I was questioning why a KEEP at all???&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 21:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672218#M201987</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-24T21:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help! WARNING: The variable in the DROP, KEEP, or RENAME list has never been referenced.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672261#M202006</link>
      <description>&lt;P&gt;The dataset options are processed in alphabetical order.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DROP=
KEEP=
RENAME=
WHERE=&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You are trying to rename&amp;nbsp;PriceAsofDateTime to DT_MKT, but that variable is not in the list of variables you kept from the source dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 04:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672261#M202006</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-25T04:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help! WARNING: The variable in the DROP, KEEP, or RENAME list has never been referenced.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672276#M202017</link>
      <description>&lt;P&gt;D&lt;/P&gt;
&lt;P&gt;K&lt;/P&gt;
&lt;P&gt;R&lt;/P&gt;
&lt;P&gt;W&lt;/P&gt;
&lt;P&gt;happens to be alphabetical order, if that helps you remember the order.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 07:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Help-WARNING-The-variable-in-the-DROP-KEEP-or-RENAME-list/m-p/672276#M202017</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-25T07:50:21Z</dc:date>
    </item>
  </channel>
</rss>

