<?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 Date formats and proc report formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-formats-and-proc-report-formats/m-p/206716#M38416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seek help on&amp;nbsp; the following questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I've a data like &lt;STRONG&gt;2014-11-04T17:04:59&lt;/STRONG&gt; in one of the variable. How to convert it to &lt;STRONG&gt;04NOV2011?&amp;nbsp; &lt;/STRONG&gt;Basically I need to format the variable to date9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I could not get a title with the code below. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS tagsets.excelxp file='/usr/sas/tir/work/log_table.xls' style=statistical&lt;/P&gt;&lt;P&gt;&amp;nbsp; options(autofilter='ALL'&amp;nbsp; sheet_name='log_analysis'&amp;nbsp; sheet_interval='none');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; title1 'Log Analysis Report';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc Report data=log_table box nowd missing out=work.log_table_final &lt;/P&gt;&lt;P&gt;&amp;nbsp; style(header) = {background=white foreground=black FONT_WEIGHT = bold bordertopcolor=black borderleftcolor=white &lt;/P&gt;&lt;P&gt;&amp;nbsp; borderrightcolor=white borderbottomcolor=black}; &lt;/P&gt;&lt;P&gt;&amp;nbsp; columns fname1 Date_TimeStamp1 date Status processid1 userid1 Details;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define fname1/style(header)=[background=lightgreen] width =45&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Date_TimeStamp1/style(header)=[background=lightgreen] width =16&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Date/style(header)=[background=lightgreen] width =10&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Status/ style(header)=[background=lightgreen]&amp;nbsp; width =5 display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define processid1/ style(header)=[background=lightgreen] width =10&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define userid1/ style(header)=[background=lightgreen] width =20&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Details/style(header)=[background=lightgreen] width =60&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need title at the 'centre' of the first cell in my .xls file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. How to rename variable in proc report? e.g. I need to rename &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Date_TimeStamp1&lt;/STRONG&gt; to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Date TimeStamp1&lt;/STRONG&gt;. I need&amp;nbsp; a space between the variable between date and timestamp1. Incase if I'm renaming this variable like rename &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date_TimeStamp1='&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date TimeStamp1'n in the datastep, how to define this variable &lt;STRONG style="font-size: 13.3333330154419px;"&gt;Date TimeStamp1 &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; in proc report?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 14:14:30 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2015-08-25T14:14:30Z</dc:date>
    <item>
      <title>Date formats and proc report formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats-and-proc-report-formats/m-p/206716#M38416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seek help on&amp;nbsp; the following questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I've a data like &lt;STRONG&gt;2014-11-04T17:04:59&lt;/STRONG&gt; in one of the variable. How to convert it to &lt;STRONG&gt;04NOV2011?&amp;nbsp; &lt;/STRONG&gt;Basically I need to format the variable to date9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I could not get a title with the code below. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS tagsets.excelxp file='/usr/sas/tir/work/log_table.xls' style=statistical&lt;/P&gt;&lt;P&gt;&amp;nbsp; options(autofilter='ALL'&amp;nbsp; sheet_name='log_analysis'&amp;nbsp; sheet_interval='none');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; title1 'Log Analysis Report';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc Report data=log_table box nowd missing out=work.log_table_final &lt;/P&gt;&lt;P&gt;&amp;nbsp; style(header) = {background=white foreground=black FONT_WEIGHT = bold bordertopcolor=black borderleftcolor=white &lt;/P&gt;&lt;P&gt;&amp;nbsp; borderrightcolor=white borderbottomcolor=black}; &lt;/P&gt;&lt;P&gt;&amp;nbsp; columns fname1 Date_TimeStamp1 date Status processid1 userid1 Details;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define fname1/style(header)=[background=lightgreen] width =45&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Date_TimeStamp1/style(header)=[background=lightgreen] width =16&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Date/style(header)=[background=lightgreen] width =10&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Status/ style(header)=[background=lightgreen]&amp;nbsp; width =5 display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define processid1/ style(header)=[background=lightgreen] width =10&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define userid1/ style(header)=[background=lightgreen] width =20&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define Details/style(header)=[background=lightgreen] width =60&amp;nbsp; display;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need title at the 'centre' of the first cell in my .xls file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. How to rename variable in proc report? e.g. I need to rename &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Date_TimeStamp1&lt;/STRONG&gt; to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Date TimeStamp1&lt;/STRONG&gt;. I need&amp;nbsp; a space between the variable between date and timestamp1. Incase if I'm renaming this variable like rename &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date_TimeStamp1='&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Date TimeStamp1'n in the datastep, how to define this variable &lt;STRONG style="font-size: 13.3333330154419px;"&gt;Date TimeStamp1 &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; in proc report?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats-and-proc-report-formats/m-p/206716#M38416</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2015-08-25T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats and proc report formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats-and-proc-report-formats/m-p/206717#M38417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Use format datetime9.&lt;/P&gt;&lt;P&gt;2. In the options( ) you need options (embedded_titles='Yes')&lt;/P&gt;&lt;P&gt;3. define Date_TimeStamp1/"Date TimeStamp1" style(header)=[background=lightgreen] width =16&amp;nbsp; display;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats-and-proc-report-formats/m-p/206717#M38417</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-08-25T14:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date formats and proc report formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-formats-and-proc-report-formats/m-p/206718#M38418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) put(input(full_date_time_var,e8601dt.),date9.)&lt;/P&gt;&lt;P&gt;2) Excel does not show headers/footers by default - this is an Excel problem.&amp;nbsp; If you go into print preview mode you will see them.&amp;nbsp; If you want a subheading in the data use compute block:&lt;/P&gt;&lt;P&gt;compute before;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line "a line to place in front of output";&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;** Edit: Good point PaigeMiller, forgot about the embed option.&lt;/P&gt;&lt;P&gt;3) You do not want to rename a variable name, you want to alter the label associated with the variable:&lt;/P&gt;&lt;P&gt;define data_timestamp1 / label="Date Timestamp1";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-formats-and-proc-report-formats/m-p/206718#M38418</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-25T14:30:26Z</dc:date>
    </item>
  </channel>
</rss>

