﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Advanced Analytics User Group  / need to Compare header date in file 1 with system date in file 2 / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Thu, 04 Dec 2008 02:38:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: need to Compare header date in file 1 with system date in file 2</title><link>http://www.teradata.com/teradataforum/Topic6689-22-1.aspx</link><description>You can do it via bteq, &lt;br&gt;&lt;br&gt;import the file contents to a table, do an SQL comparison, use bteq .if statements to do further processing etc.&lt;br&gt;&lt;br&gt;But don't you think it's better to do this job via your batch script itself ?&lt;br&gt;&lt;br&gt;At least in Unix that's what I would have done. SQL is quite cumbersome for all this sort of work.</description><pubDate>Mon, 26 Feb 2007 23:18:35 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>need to Compare header date in file 1 with system date in file 2</title><link>http://www.teradata.com/teradataforum/Topic6689-22-1.aspx</link><description>I have 2 input files i.e file 1 and file2&lt;br&gt;file 1 is header file which contains date as 02/27/2006&lt;br&gt;file 2 contains system date &lt;br&gt;i have to compare file1 and file2 dates if they match i need to process otherwise needs to abend &lt;br&gt;how can i write Teradata sql &lt;br&gt;&lt;br&gt;Help me in this regard&lt;br&gt;Thanks in advance and also thanks for earlier replys to my questions&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;Chinnababu&lt;br&gt;</description><pubDate>Mon, 26 Feb 2007 21:40:52 GMT</pubDate><dc:creator>chinnababu</dc:creator></item></channel></rss>