<?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 how to generate customised report  with certain conditions in sas 9.3 in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-generate-customised-report-with-certain-conditions-in-sas/m-p/318537#M17503</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My inputa dat set is as below mentioned in sas code:&lt;/P&gt;&lt;P&gt;So input data set contains amt column as character data type(as it is having both numeric and character values)&lt;/P&gt;&lt;P&gt;but in final report i want to show numeric rows of column amt as numeric with some format and charcater rows as character.&lt;/P&gt;&lt;P&gt;expected outp&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tmp;
name="megha";
amt="17000000.03";
flg="N";
output;
name="Alok";
amt="12200000.04";
flg="N";
output;
name="Bittu";
amt="Bit";
flg="C";
output;
name="Cittu";
amt="Cit";
flg="C";
output;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ut is attached in excel sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2016 12:20:39 GMT</pubDate>
    <dc:creator>megha_sinha</dc:creator>
    <dc:date>2016-12-13T12:20:39Z</dc:date>
    <item>
      <title>how to generate customised report  with certain conditions in sas 9.3</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-generate-customised-report-with-certain-conditions-in-sas/m-p/318537#M17503</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My inputa dat set is as below mentioned in sas code:&lt;/P&gt;&lt;P&gt;So input data set contains amt column as character data type(as it is having both numeric and character values)&lt;/P&gt;&lt;P&gt;but in final report i want to show numeric rows of column amt as numeric with some format and charcater rows as character.&lt;/P&gt;&lt;P&gt;expected outp&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tmp;
name="megha";
amt="17000000.03";
flg="N";
output;
name="Alok";
amt="12200000.04";
flg="N";
output;
name="Bittu";
amt="Bit";
flg="C";
output;
name="Cittu";
amt="Cit";
flg="C";
output;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ut is attached in excel sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-generate-customised-report-with-certain-conditions-in-sas/m-p/318537#M17503</guid>
      <dc:creator>megha_sinha</dc:creator>
      <dc:date>2016-12-13T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate customised report  with certain conditions in sas 9.3</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-generate-customised-report-with-certain-conditions-in-sas/m-p/318549#M17508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am afraid it is unsafe to download office files, so I can't see your output. &amp;nbsp;If you want to see mixed formats in one column in your output,then the simplest way is to create a character field to hold all the data, and then set each of your data items into that, for example:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  length output_column $50;
  output_column=put(number_var,z5.);
  output;
  output_column=text_variable;
  output;
  output_column=put(date_variable,date9.);
  output;
  ...
run;&lt;/PRE&gt;
&lt;P&gt;So in each case I take a variable, convert it to text (if needed) and store the result in output_column. &amp;nbsp;Then that output column can be displayed in your report. &amp;nbsp;In SAS (as with all structured data) you cannot have a column with mixed types, but text kind of covers everything.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-generate-customised-report-with-certain-conditions-in-sas/m-p/318549#M17508</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-12-13T12:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate customised report  with certain conditions in sas 9.3</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-generate-customised-report-with-certain-conditions-in-sas/m-p/318550#M17509</link>
      <description>&lt;P&gt;You better split the amt variable into two variables: amt_n for numeric and amt_c for alphanumeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't do it &amp;nbsp;on yout input then you can do it like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data temp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;length amt_n 8 amt_c $8; &amp;nbsp;/* adapt length to max number of characters &amp;nbsp;*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if indexc(locase(amt),'abcdefghijklmnopqrstuvwxyz') &amp;gt; 0&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; then amt_c = amt;&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; else amt_n = input(amt, best 12.2); &amp;nbsp; /* addapt informat as needed */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; run;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-generate-customised-report-with-certain-conditions-in-sas/m-p/318550#M17509</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-12-13T13:05:58Z</dc:date>
    </item>
  </channel>
</rss>

