<?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: Wrong type of format for data type in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470548#M21072</link>
    <description>&lt;P&gt;I meant "what is the code you run when it fails, and what is the data against which you run that code?"&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 11:05:38 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-06-15T11:05:38Z</dc:date>
    <item>
      <title>Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470534#M21065</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to apply formatting to spanned header rows with the help of format but not able to do so and i am getting warning of Wrong type of format for data type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The strange thing is that its working fine with SASHELP.class dataset but not working with my original data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i place only one dataset in tagset excelxp the things are working fine but my requirement is to have 22 reports in same excelsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As sample code working fine and my required code not working , can you guide how can i move ahead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 09:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470534#M21065</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-15T09:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470535#M21066</link>
      <description>&lt;P&gt;Please post some example datasets (in data steps) with which we can test code, and the code you tried.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 10:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470535#M21066</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-15T10:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470536#M21067</link>
      <description>&lt;P&gt;What can we say, no test data, no code, no required output, no log, nothing.&amp;nbsp; All we have here is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wrong type of format&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, my response is, correct the format.&amp;nbsp; I don't see how you would "apply a format" to a spanned header, spanned headers in proc report - if indeed that is what you ues - forms:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;columns("Some text to put across values" &amp;lt;variable&amp;gt; &amp;lt;variable&amp;gt;);
define &amp;lt;variable&amp;gt; / "Label for the variable" format=...;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 10:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470536#M21067</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-15T10:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470538#M21068</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $color
'Class' ='lightyellow'
;

run;
ods Tagsets.ExcelXP style=sasweb
file='"Desktop\Table.xml' 
options(orientation='landscape' sheet_name="Index" embedded_titles='yes'  );
title justify=left "Additional Tables – Data Cut &amp;amp;dcut" ;
proc report data=sashelp.class split='*' headskip spanrows spacing=0 nowd style(header)=[fontweight=bold background=$color. ];
columns ("Class" age sex height);
define age/display  order=data style(column)=[cellwidth=100 just=left font_weight=bold] "age" 
                  style(header)=[just=center]  ;
define sex/display  order=data style(column)=[cellwidth=800 just=left ] "sex" 
                  style(header)=[just=center]  ;
define height/display  order=data style(column)=[cellwidth=800 just=left ] "height" 
                  style(header)=[just=center]  ;
run;
ods Tagsets.ExcelXP close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the code which i have used for my data.the issue is that it is working fine for this one .&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 10:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470538#M21068</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-15T10:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470542#M21069</link>
      <description>&lt;P&gt;And what are you doing when it fails?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 10:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470542#M21069</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-15T10:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470546#M21070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not getting what is the issue with Code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 10:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470546#M21070</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-15T10:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470547#M21071</link>
      <description>&lt;P&gt;I would hazard a guess that this:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;fontweight&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;bold background&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;color&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is where your issue lies.&amp;nbsp; The format $color. is not applied to any actual data here, thus it looks incorrect to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you put style items on the proc report line they apply to the whole proc report, hence have nothing really to do with the data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, without any idea of what you are trying to achieve its hard to say, but that background statement would likely need to be associated with a variable which has character information like "Class".&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470547#M21071</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-15T11:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470548#M21072</link>
      <description>&lt;P&gt;I meant "what is the code you run when it fails, and what is the data against which you run that code?"&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470548#M21072</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-15T11:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470558#M21073</link>
      <description>&lt;P&gt;There is no issue in it as it is working on SASHELP.CLASS data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have taken it from here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Colouring-spaning-column-headers-in-different-colour-with-PROC/td-p/35759" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Colouring-spaning-column-headers-in-different-colour-with-PROC/td-p/35759&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470558#M21073</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-15T11:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470559#M21074</link>
      <description>&lt;P&gt;There are 20 variables and 5400 rows where i am running the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like sashelp.class , dataset has character variables and numeric variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why proc report not highlighting spanned rows for this one only.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470559#M21074</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-15T11:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470560#M21075</link>
      <description>&lt;P&gt;Since the WARNING is most probably coming from the structure of the data and not its contents, just posting a data step with all the columns and, say, 3 observations, along with the code used, would be sufficient for diagnosing and testing.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470560#M21075</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-15T11:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470565#M21076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the data.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
infile datalines truncover;
input subject dose cohort $ 9-16  day grade aerel $ 22-33 aeser $ 34-37 teae $ 38-41 ;
datalines;
100 0.3 Cohort1 34 3 Not related Yes Yes 
101 0.2 Cohort4 98 4 Related     No  Yes
102 0.7 Cohort6 32 1             Yes No 
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Spanned rows starting from variable day to teae where there is issue.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470565#M21076</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-15T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470569#M21077</link>
      <description>&lt;P&gt;Please post the code you use for reporting that dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470569#M21077</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-15T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470574#M21078</link>
      <description>&lt;P&gt;And did you try putting Other in the format declaration as given in that post you refer me to, I don't see it in the code you post here and they specifically talk about that error and provide a possible workaround.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470574#M21078</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-15T12:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470578#M21079</link>
      <description>&lt;P&gt;I made up this code, it produces a yellow background and no WARNING:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $color
'Numbers' = 'lightyellow'
;
run;

data test;
infile datalines truncover;
input subject dose cohort $ 9-16  day grade aerel $ 22-33 aeser $ 34-37 teae $ 38-41 ;
datalines;
100 0.3 Cohort1 34 3 Not related Yes Yes 
101 0.2 Cohort4 98 4 Related     No  Yes
102 0.7 Cohort6 32 1             Yes No 
;
run;

ods Tagsets.ExcelXP style=sasweb
file='$HOME/sascommunity/table.xml' 
options(orientation='landscape' sheet_name="Index" embedded_titles='yes'  );

proc report data=test split='*' headskip spanrows spacing=0 nowd style(header)=[fontweight=bold background=$color. ];
columns (subject dose cohort ("Numbers" day grade aerel aeser teae));
define subject/display  order=data style(column)=[cellwidth=100 just=left font_weight=bold] "Subject" 
                  style(header)=[just=center]  ;
define dose/display  order=data style(column)=[cellwidth=100 just=left ] "Dose" 
                  style(header)=[just=center]  ;
define cohort/display  order=data style(column)=[cellwidth=100 just=left ] "Cohort" 
                  style(header)=[just=center]  ;
define day/display  order=data style(column)=[cellwidth=100 just=left ] "Day" 
                  style(header)=[just=center]  ;
define grade/display  order=data style(column)=[cellwidth=100 just=left ] "Grade" 
                  style(header)=[just=center]  ;
define aerel/display  order=data style(column)=[cellwidth=100 just=left ] "aerel" 
                  style(header)=[just=center]  ;
define aeser/display  order=data style(column)=[cellwidth=100 just=left ] "aeser" 
                  style(header)=[just=center]  ;
define teae/display  order=data style(column)=[cellwidth=100 just=left ] "teae" 
                  style(header)=[just=center]  ;
run;
ods Tagsets.ExcelXP close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470578#M21079</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-15T12:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470969#M21083</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code works for me as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue occurs only when i keep all datasets in same tagset.I tried my code only for one dataset and in that case it is working absolutely fine , but when i include other datasets, at that time issue arises.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 04:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470969#M21083</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-18T04:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470972#M21084</link>
      <description>&lt;P&gt;This is going nowhere. Post ALL relevant datasets and ALL relevant code, so we can diagnose it. Don't make us pry the information out of your nose bit by bit.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 06:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470972#M21084</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-18T06:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong type of format for data type</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470975#M21085</link>
      <description>&lt;P&gt;Thanks a lot for your help on this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as it is not working , i am revering my code to old one and leave the formatting stuffs beside the task.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 06:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Wrong-type-of-format-for-data-type/m-p/470975#M21085</guid>
      <dc:creator>draroda</dc:creator>
      <dc:date>2018-06-18T06:11:29Z</dc:date>
    </item>
  </channel>
</rss>

