<?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: PROC REPORT Warning: variable is not in report definition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856955#M82452</link>
    <description>&lt;P&gt;You have a comma on the end of your RUN statement instead of a semicolon. I've corrected it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data= test;
column var1 var2 var3;
define var1 / display "Group";
define var2 / display "Number";
define var3 / display "Checked";
&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Feb 2023 21:39:38 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-02-02T21:39:38Z</dc:date>
    <item>
      <title>PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856934#M82450</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m trying to display three variables, two are type character and one is numeric. I get the following warning for var3 which type is numeric and format is YESNO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report data= test;&lt;/P&gt;&lt;P&gt;column var1 var2 var3;&lt;/P&gt;&lt;P&gt;define var1 / display "Group";&lt;/P&gt;&lt;P&gt;define var2 / display "Number";&lt;/P&gt;&lt;P&gt;define var3 / display "Checked";&lt;/P&gt;&lt;P&gt;run,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run it and I get this warning:&amp;nbsp;var3 is not in report definition&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856934#M82450</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-02-02T20:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856953#M82451</link>
      <description>&lt;P&gt;Whenever you get an error in the log, you need to show us the &lt;STRONG&gt;ENTIRE &lt;/STRONG&gt;log for that PROC or for that DATA step. Please copy the &lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1663012019648.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75161i0E71B1489A6C9839/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1663012019648.png" alt="PaigeMiller_0-1663012019648.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 21:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856953#M82451</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-02T21:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856955#M82452</link>
      <description>&lt;P&gt;You have a comma on the end of your RUN statement instead of a semicolon. I've corrected it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data= test;
column var1 var2 var3;
define var1 / display "Group";
define var2 / display "Number";
define var3 / display "Checked";
&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 21:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856955#M82452</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-02-02T21:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856965#M82453</link>
      <description>&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 NOTE: ODS statements in the SAS Studio environment may disable some output features.
 73         
 74         PROC REPORT DATA= test NOWD MISSING SPLIT='~' SPACING=2
 75         style(header)=[background=white font_face=Arial font_size=8pt font_weight=bold]
 76         style(column)=[background=white font_face=Arial font_size=8pt font_weight=medium]
 77         style(report)=[rules=all frame=hsides cellpadding=1.2pt background=white font_face=Arial font_size=8pt
 77       ! font_weight=medium];
 78         
 79         columns var1 var2 var3;
 80         
 81         define var1 / display "GROUP" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
 82         define var2 / display "NUMBER" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
 83         define var3 / display "CHECKED" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
 84         
 85         run;
 
 WARNING: var3 is not in the report definition.
 NOTE: There were 113 observations read from the data set WORK.test.
 NOTE: PROCEDURE REPORT used (Total process time):
       real time           0.12 seconds
       cpu time            0.11 seconds
       
 
 86         ods rtf close;
 87         title;
 88         footnote;
 89         
 90         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 103        &lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 22:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/856965#M82453</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-02-02T22:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857000#M82454</link>
      <description>&lt;P&gt;With a dataset like you describe, the problem can't happen:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input var1 $ var2 $ var3;
datalines;
A B 1
;

PROC REPORT DATA= test NOWD MISSING SPLIT='~' SPACING=2
style(header)=[background=white font_face=Arial font_size=8pt font_weight=bold]
style(column)=[background=white font_face=Arial font_size=8pt font_weight=medium]
style(report)=[rules=all frame=hsides cellpadding=1.2pt background=white font_face=Arial font_size=8pt
font_weight=medium];

columns var1 var2 var3;

define var1 / display "GROUP" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
define var2 / display "NUMBER" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
define var3 / display "CHECKED" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt; 75         PROC REPORT DATA= test NOWD MISSING SPLIT='~' SPACING=2
 76         style(header)=[background=white font_face=Arial font_size=8pt font_weight=bold]
 77         style(column)=[background=white font_face=Arial font_size=8pt font_weight=medium]
 78         style(report)=[rules=all frame=hsides cellpadding=1.2pt background=white font_face=Arial font_size=8pt
 79         font_weight=medium];
 80         
 81         columns var1 var2 var3;
 82         
 83         define var1 / display "GROUP" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
 84         define var2 / display "NUMBER" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
 85         define var3 / display "CHECKED" style(column)=[cellwidth=3.0in asis=on just=center] style(header)=[just=center];
 86         
 87         run;
 
 NOTE: There were 1 observations read from the data set WORK.TEST.
 NOTE:  Verwendet wurde: PROZEDUR REPORT - (Gesamtverarbeitungszeit):
       real time           0.01 seconds
       user cpu time       0.01 seconds
       system cpu time     0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;My guess is that you do not have var3 in the dataset. Run PROC CONTENTS on dataset test and show us the output.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 08:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857000#M82454</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-03T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857381#M82465</link>
      <description>&lt;P&gt;Hi, I've ran proc contents. Var3 is in the dataset. Is it maybe that Var3 is type numeric but the format is YESNO? The type and format come from the imported dataset (I didn't create the dataset). How can I change the format or type?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857381#M82465</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-02-06T15:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857382#M82466</link>
      <description>&lt;P&gt;Sorry the semicolon was not added to the post but it was included the code when I ran it.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857382#M82466</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-02-06T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857384#M82467</link>
      <description>&lt;P&gt;I suspect you have some strange characters in your code that is causing SAS to not see VAR3 in the COLUMN statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is the note you get when you use a variable a DEFINE statement that is not listed in the COLUMN statement.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;212  proc report data=sashelp.class;
213    column name age  ;
214    define var3 / display ;
215  run;

WARNING: var3 is not in the report definition.
&lt;/PRE&gt;
&lt;P&gt;Retype the COLUMN statement and the DEFINE statement for VAR3 to make sure there are no hidden characters there.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857384#M82467</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-02-06T15:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT Warning: variable is not in report definition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857386#M82468</link>
      <description>&lt;P&gt;Thanks! It worked.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-Warning-variable-is-not-in-report-definition/m-p/857386#M82468</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-02-06T15:30:38Z</dc:date>
    </item>
  </channel>
</rss>

