26 Feb 2007
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.
You must sign in to leave a comment.

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