need to Compare header date in file 1 with system date in file 2
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


need to Compare header date in file 1 with... Expand / Collapse
Author
Message
Posted 2/26/2007 9:40:52 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 4/22/2007 2:58:00 PM
Posts: 18, Visits: 1
I have 2 input files i.e file 1 and file2
file 1 is header file which contains date as 02/27/2006
file 2 contains system date
i have to compare file1 and file2 dates if they match i need to process otherwise needs to abend
how can i write Teradata sql

Help me in this regard
Thanks in advance and also thanks for earlier replys to my questions

Regards
Chinnababu
Post #6689
Posted 2/26/2007 11:18:35 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 8/24/2008 2:47:14 PM
Posts: 425, Visits: 398
You can do it via bteq,

import the file contents to a table, do an SQL comparison, use bteq .if statements to do further processing etc.

But don't you think it's better to do this job via your batch script itself ?

At least in Unix that's what I would have done. SQL is quite cumbersome for all this sort of work.
Post #6690
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 4:36am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.078. 8 queries. Compression Disabled.