<?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 program to be check that dataset  have been updated  yesterdayor not? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35306#M8692</link>
    <description>Hi,&lt;BR /&gt;
programs to check datasets that they have been updatedto day .Then check the contents of the datasets for data from yesterday.&lt;BR /&gt;
&lt;BR /&gt;
if condition false then the program should  check again in 30 min. if true then run all programs.&lt;BR /&gt;
&lt;BR /&gt;
This process basically to shedules the job in batch&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
chandra</description>
    <pubDate>Thu, 31 Jul 2008 10:47:55 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-07-31T10:47:55Z</dc:date>
    <item>
      <title>program to be check that dataset  have been updated  yesterdayor not?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35306#M8692</link>
      <description>Hi,&lt;BR /&gt;
programs to check datasets that they have been updatedto day .Then check the contents of the datasets for data from yesterday.&lt;BR /&gt;
&lt;BR /&gt;
if condition false then the program should  check again in 30 min. if true then run all programs.&lt;BR /&gt;
&lt;BR /&gt;
This process basically to shedules the job in batch&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
chandra</description>
      <pubDate>Thu, 31 Jul 2008 10:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35306#M8692</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-31T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: program to be check that dataset  have been updated  yesterdayor not?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35307#M8693</link>
      <description>Hi Chandra.&lt;BR /&gt;
For information on dataset creation / last modification date, check the Contents procedure, or the SASHELP.VTABLE view.&lt;BR /&gt;
For comparing datasets, use the Compare procedure.&lt;BR /&gt;
To make SAS wait, you can use the SLEEP function within a Data step.&lt;BR /&gt;
For conditionnal executing of SAS programs, see what you can do with macro language.&lt;BR /&gt;
Regards;&lt;BR /&gt;
Olivier</description>
      <pubDate>Thu, 31 Jul 2008 13:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35307#M8693</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-07-31T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: program to be check that dataset  have been updated  yesterdayor not?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35308#M8694</link>
      <description>Hi Oliver,&lt;BR /&gt;
&lt;BR /&gt;
THANKS FOR REPLAY . COULD YOU PLEASE SEND ME IF U HAVE ANY SAMPLE CODE FOR THAT &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
THANKS,&lt;BR /&gt;
CHANDRA.</description>
      <pubDate>Fri, 01 Aug 2008 08:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35308#M8694</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-01T08:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: program to be check that dataset  have been updated  yesterdayor not?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35309#M8695</link>
      <description>The SAS support website &lt;A href="http://support.sas.com" target="_blank"&gt;http://support.sas.com&lt;/A&gt;  is chock full of code samples and SAS documentation, which can be amazingly helpful with learning the SAS language to hone one's skills.&lt;BR /&gt;
&lt;BR /&gt;
Another option is to use GOOGLE.COM or another search engine to search the SAS.COM site for code snippets and SAS User Group SUGI/SGF technical papers on these and other SAS programming topics.&lt;BR /&gt;
&lt;BR /&gt;
Lastly, the SAS-L list archives are also a wealth of information for your benefit and ever-increasing knowledge opportunity.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;</description>
      <pubDate>Sat, 02 Aug 2008 21:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35309#M8695</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-08-02T21:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: program to be check that dataset  have been updated  yesterday or not?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35310#M8696</link>
      <description>Hi,&lt;BR /&gt;
here is some sample (untested!) code you can start with. Have a look in doc for PROC COMPARE and SYSINFO for details.&lt;BR /&gt;
About the rechecking, I suggest that you use a scheduling tool for that, such as cron in UNIX.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%macro checkdata;&lt;BR /&gt;
&lt;BR /&gt;
	data _null_;&lt;BR /&gt;
		dsid = open('libname.table');&lt;BR /&gt;
		updated_dt = attrn(dsid, 'MODTE');&lt;BR /&gt;
		if "&amp;amp;SYSDATE9"D eq datepart(updated_dt) the call symput('UPDATED','Y');&lt;BR /&gt;
		else call symput('UPDATED','N');&lt;BR /&gt;
	run;&lt;BR /&gt;
	&lt;BR /&gt;
	%if &amp;amp;UPDATED eq Y %then %do;&lt;BR /&gt;
	&lt;BR /&gt;
		proc compare data=lib.today compare=lib.yesterday;&lt;BR /&gt;
			...;&lt;BR /&gt;
		run;&lt;BR /&gt;
		&lt;BR /&gt;
		%if &amp;amp;SYSINFO ne 0 %then %do;&lt;BR /&gt;
			%include "program.sas";&lt;BR /&gt;
		%end;&lt;BR /&gt;
		&lt;BR /&gt;
	%end;&lt;BR /&gt;
&lt;BR /&gt;
%mend checkdata;&lt;BR /&gt;
&lt;BR /&gt;
%checkdata;</description>
      <pubDate>Thu, 07 Aug 2008 11:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/program-to-be-check-that-dataset-have-been-updated-yesterdayor/m-p/35310#M8696</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-08-07T11:33:39Z</dc:date>
    </item>
  </channel>
</rss>

