Page 1 of 1

File validation

Posted: Sun May 13, 2012 5:40 pm
by Venki-ds
Hi there ,


Please let me know the approach of header and trailer validation of unix file through sequence jobs .

we will be receiveing the file with header and trailer ,in the trailer it has a row count of the file .need to trigger the job if row count of the file matches with trailer count

Kiindly provide some logical approches .

Thanks in advance.

Re: File validation

Posted: Sun May 13, 2012 6:16 pm
by SURA
Just the trailer?

Code: Select all

execute cmd activity (to get total rows) -->execute cmd activity (to get trailer count from file)-->UserVariable (compare)-->
There are different ways to do it. You can do it as a routine, script level , Using DS Job etc.