<?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: Reg:Moving of Date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18161#M3530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually in the above table i will be having all the dates&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now i want another table having one obs i that i will give the raw file path and concatenate it with the dates&lt;BR /&gt;and if again i rerun the job it should move to the next date and it will concatenate with the path..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output in another table with single obs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw path&amp;nbsp; dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\raw&amp;nbsp; 12012011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i again rerun it the output with single obs table should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw path&amp;nbsp; dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\raw&amp;nbsp; 13012011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2011 07:22:55 GMT</pubDate>
    <dc:creator>sas_</dc:creator>
    <dc:date>2011-12-21T07:22:55Z</dc:date>
    <item>
      <title>Reg:Moving of Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18160#M3529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moving Data HI actually i am having dates in one table cal&lt;BR /&gt;actually i am having stdate and enddate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data l(drop=sdt edt);&lt;BR /&gt;input sdt$ 1-9 edt$ 10-20;&lt;BR /&gt;stdate =input(sdt,date9.);&lt;BR /&gt;enddate=input(edt,date9.);&lt;BR /&gt;format s1 E1 ddmmyy10.;&lt;BR /&gt;cards;&lt;BR /&gt;12jan2011 13jan2011&lt;BR /&gt;13jan2011 14jan2011&lt;BR /&gt;14jan2011 15jan2011&lt;BR /&gt;15jan2011 16jan2011&lt;BR /&gt;16jan2011 17jan2011&lt;BR /&gt;17jan2011 18jan2011&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i want the dates to got to one table with single observation as i run that it should move to another date like that&lt;/P&gt;&lt;P&gt;For Example the out put should be in another table with one obs so that i will resolve that&lt;BR /&gt;date in a macro and will make the infile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the date will be c:\raw\12012011\&lt;/P&gt;&lt;P&gt;so if i run that it will resolve to date 12012011 i will concatenae c:\raw\ to that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i&amp;nbsp; again run the job it shoul go to 13012011 it will be c:\raw\13012011\&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so if one single obs going to another table i will resove the date from that table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 06:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18160#M3529</guid>
      <dc:creator>sas_</dc:creator>
      <dc:date>2011-12-21T06:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Moving of Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18161#M3530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually in the above table i will be having all the dates&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now i want another table having one obs i that i will give the raw file path and concatenate it with the dates&lt;BR /&gt;and if again i rerun the job it should move to the next date and it will concatenate with the path..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output in another table with single obs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw path&amp;nbsp; dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\raw&amp;nbsp; 12012011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i again rerun it the output with single obs table should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw path&amp;nbsp; dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\raw&amp;nbsp; 13012011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 07:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18161#M3530</guid>
      <dc:creator>sas_</dc:creator>
      <dc:date>2011-12-21T07:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Moving of Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18162#M3531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you are asking.&amp;nbsp; The code in your initial post in confusing as well.&amp;nbsp; Why don't you just read the dates in, directly, using the date9. informat?&amp;nbsp; And why do you format variables that you don't have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More so, it would help for you to explain what your input file actually looks like, what file(s) you want as output, and what should be used as the decision rule(s).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 15:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18162#M3531</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-21T15:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:Moving of Date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18163#M3532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data l(drop=sdt edt);&lt;BR /&gt;input sdt$ 1-9 edt$ 10-20;&lt;BR /&gt;stdate =input(sdt,date9.);&lt;BR /&gt;enddate=input(edt,date9.);&lt;BR /&gt;format stdate enddate ddmmyy10.;&lt;BR /&gt;cards;&lt;BR /&gt;12jan2011 13jan2011&lt;BR /&gt;13jan2011 14jan2011&lt;BR /&gt;14jan2011 15jan2011&lt;BR /&gt;15jan2011 16jan2011&lt;BR /&gt;16jan2011 17jan2011&lt;BR /&gt;17jan2011 18jan2011&lt;BR /&gt;run;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;see actually i the above table i have the dates on which the loading to be happened&lt;/P&gt;&lt;P&gt;In the second table in one cell i will have the Sdate and Edate so i want one table&lt;BR /&gt;with one obs of date so that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;BR /&gt;Table 2&lt;BR /&gt;Sdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Path&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fpath &lt;BR /&gt;12012011&amp;nbsp;&amp;nbsp;&amp;nbsp; 13012011&amp;nbsp;&amp;nbsp; c/raw/&amp;nbsp;&amp;nbsp;&amp;nbsp; order.txt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c/raw/12012011/order.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the dates&amp;nbsp; to go to another table in the Infile path of the job i will&lt;BR /&gt;give Fpath in the macro so that it will take data from there daily&lt;/P&gt;&lt;P&gt;if the job again runs the date should increment so i will run for 13 date this is my aim &lt;BR /&gt;for the loading data based on date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Path&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fpath &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;13012011&amp;nbsp;&amp;nbsp;&amp;nbsp; 14012011&amp;nbsp;&amp;nbsp; c/raw/&amp;nbsp;&amp;nbsp;&amp;nbsp; order.txt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c/raw/13012011/order.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is messy refer the text file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 06:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reg-Moving-of-Date/m-p/18163#M3532</guid>
      <dc:creator>sas_</dc:creator>
      <dc:date>2011-12-22T06:41:55Z</dc:date>
    </item>
  </channel>
</rss>

