<?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 ERROR: Format references are not allowed: in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-Format-references-are-not-allowed/m-p/758767#M25206</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would like to highlight rows in a table output using&amp;nbsp; proc tabulate but only get this error messages&amp;nbsp; "ERROR: Format references are not allowed:"&lt;/P&gt;&lt;P&gt;This is how I programmed my test:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. at first create format for specific colors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format lib=work;&lt;BR /&gt;value temp&lt;/P&gt;&lt;P&gt;1=red&lt;BR /&gt;2=purple&lt;BR /&gt;3=orange&lt;BR /&gt;4=pink&lt;BR /&gt;6=yellow&lt;BR /&gt;other=blue;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. then apply this format in ODS/proc tabulate statement :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file=....;&lt;/P&gt;&lt;P&gt;proc tabulate data=_input_data order=data S=[foreground=black];&lt;BR /&gt;class x / style={background=temp.};&lt;BR /&gt;class y/ style=&amp;lt;parent&amp;gt;;&lt;BR /&gt;var _some_variable;&lt;/P&gt;&lt;P&gt;table x*y,_some_variable;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x-variable contains values such as 1,2,3,4&lt;/P&gt;&lt;P&gt;y-variable contains classification values such as '01','02',.....'05.4.3'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Now I'm expecting to get x and y highlighted based on the values in x&lt;/P&gt;&lt;P&gt;No success, only above mentioned error-message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 12:24:45 GMT</pubDate>
    <dc:creator>nieminek</dc:creator>
    <dc:date>2021-08-02T12:24:45Z</dc:date>
    <item>
      <title>ERROR: Format references are not allowed:</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-Format-references-are-not-allowed/m-p/758767#M25206</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would like to highlight rows in a table output using&amp;nbsp; proc tabulate but only get this error messages&amp;nbsp; "ERROR: Format references are not allowed:"&lt;/P&gt;&lt;P&gt;This is how I programmed my test:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. at first create format for specific colors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format lib=work;&lt;BR /&gt;value temp&lt;/P&gt;&lt;P&gt;1=red&lt;BR /&gt;2=purple&lt;BR /&gt;3=orange&lt;BR /&gt;4=pink&lt;BR /&gt;6=yellow&lt;BR /&gt;other=blue;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. then apply this format in ODS/proc tabulate statement :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file=....;&lt;/P&gt;&lt;P&gt;proc tabulate data=_input_data order=data S=[foreground=black];&lt;BR /&gt;class x / style={background=temp.};&lt;BR /&gt;class y/ style=&amp;lt;parent&amp;gt;;&lt;BR /&gt;var _some_variable;&lt;/P&gt;&lt;P&gt;table x*y,_some_variable;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x-variable contains values such as 1,2,3,4&lt;/P&gt;&lt;P&gt;y-variable contains classification values such as '01','02',.....'05.4.3'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Now I'm expecting to get x and y highlighted based on the values in x&lt;/P&gt;&lt;P&gt;No success, only above mentioned error-message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 12:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-Format-references-are-not-allowed/m-p/758767#M25206</guid>
      <dc:creator>nieminek</dc:creator>
      <dc:date>2021-08-02T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Format references are not allowed:</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-Format-references-are-not-allowed/m-p/758803#M25207</link>
      <description>&lt;P&gt;If the values you want to highlight are the row or column headers for a CLASS variable that would go into a CLASSLEV statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the format you show is only for numeric variables I have to assume it applies to your X variable.&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=_input_data order=data S=[foreground=black];&lt;BR /&gt;class x y;
classlev x / style={background=temp.};
classlev y/ style=&amp;lt;parent&amp;gt;;
var _some_variable;

table x*y,_some_variable;

run;&lt;/PRE&gt;
&lt;P&gt;But you may need to provide some data and more details of what you actually want the appearance to look like&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-Format-references-are-not-allowed/m-p/758803#M25207</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-03T14:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Format references are not allowed:</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-Format-references-are-not-allowed/m-p/759002#M25208</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine and solution is easy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 12:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-Format-references-are-not-allowed/m-p/759002#M25208</guid>
      <dc:creator>nieminek</dc:creator>
      <dc:date>2021-08-03T12:09:26Z</dc:date>
    </item>
  </channel>
</rss>

