<?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: Difference in dates not working..proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-dates-not-working-proc-report/m-p/108362#M258701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, in your use of the intck function, put quotes around days.&amp;nbsp; i.e.:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;tt=intck('days',today(),date1);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Your title also has a problem.&amp;nbsp; Move the macro variable to within the quotes.&amp;nbsp; i.e.:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;title&amp;nbsp; "Report for the day &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &amp;amp;t1&lt;/SPAN&gt;." ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 18:55:05 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-10-26T18:55:05Z</dc:date>
    <item>
      <title>Difference in dates not working..proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-dates-not-working-proc-report/m-p/108361#M258700</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;i am working some date functions ..but diff b.n the dates is showing some else in the column "days of delay"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the out put i.e report is attached in word document ...please let me what is the wrong with date function i used ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALLU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is....................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import dataFILE='C:\Users\galax_allu\Desktop\br1.csV'&amp;nbsp; dbms=csv out=allu.br2 replace ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data allu.br3 ;&lt;/P&gt;&lt;P&gt;set allu.br2 ;&lt;/P&gt;&lt;P&gt;format date1 ddmmyy10.;&lt;/P&gt;&lt;P&gt;informat date1 ddmmyy10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let t1=%sysfunc(today(),ddmmyy10.);&lt;/P&gt;&lt;P&gt;%PUT &amp;amp;T1;&lt;/P&gt;&lt;P&gt;proc report data=allu.br3 nowd headskip;&lt;/P&gt;&lt;P&gt;column brnum brname region (regname) bankname brokamt sheme&amp;nbsp; date1&amp;nbsp; tt;&lt;/P&gt;&lt;P&gt;title "Allu and co sub-borker company";&lt;/P&gt;&lt;P&gt;title&amp;nbsp; "Report for the day" &amp;amp;t1 ;&lt;/P&gt;&lt;P&gt;define brnum /&amp;nbsp; 'brokerage number';&lt;/P&gt;&lt;P&gt;define brname / 'broker name' width =6;&lt;/P&gt;&lt;P&gt;define region/ DISPLAY 'region' ;&lt;/P&gt;&lt;P&gt;define regname / GROUP 'Region Belongs to' WIDTH=32;&lt;/P&gt;&lt;P&gt;define brokamt / analysis 'brokamt';&lt;/P&gt;&lt;P&gt;define sheme /&amp;nbsp; 'SCHEME' STYLE=[FOREGROUND=YELLOW];&lt;/P&gt;&lt;P&gt;define date1/ display 'Date of Invoice';&lt;/P&gt;&lt;P&gt;define tt/ 'Days of delay' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK AFTER REGNAME / SUMMARIZE ;&lt;/P&gt;&lt;P&gt;COMPUTE AFTER REGNAME;&lt;/P&gt;&lt;P&gt;REGNAME= TRIM(REGNAME)||' TOTAL ' ;&lt;/P&gt;&lt;P&gt;ENDCOMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute tt ;&lt;/P&gt;&lt;P&gt;tt=intck(days,today(),date1);&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMPUTE SHEME;&lt;/P&gt;&lt;P&gt;IF SHEME="LP" THEN CALL DEFINE (_row_,'STYLE','STYLE=[FOREGROUND=RED]');&lt;/P&gt;&lt;P&gt;ENDCOMP;&lt;/P&gt;&lt;P&gt;compute after _page_ / style={bordertopcolor=black bordertopwidth=2};&lt;/P&gt;&lt;P&gt;line ' ';&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the out put i.e report is attached in word document ...please let me what is the wrong with date function i used ?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10889i35251775514C7658/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="reportss.jpg" title="reportss.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 18:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-dates-not-working-proc-report/m-p/108361#M258700</guid>
      <dc:creator>allurai0412</dc:creator>
      <dc:date>2012-10-26T18:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in dates not working..proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-dates-not-working-proc-report/m-p/108362#M258701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, in your use of the intck function, put quotes around days.&amp;nbsp; i.e.:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;tt=intck('days',today(),date1);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Your title also has a problem.&amp;nbsp; Move the macro variable to within the quotes.&amp;nbsp; i.e.:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;title&amp;nbsp; "Report for the day &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; &amp;amp;t1&lt;/SPAN&gt;." ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 18:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-dates-not-working-proc-report/m-p/108362#M258701</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-26T18:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in dates not working..proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-dates-not-working-proc-report/m-p/108363#M258702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Mr Arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 02:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-dates-not-working-proc-report/m-p/108363#M258702</guid>
      <dc:creator>allurai0412</dc:creator>
      <dc:date>2012-11-11T02:50:56Z</dc:date>
    </item>
  </channel>
</rss>

