Page 1 of 1

Sequntial File failing with grep command in filter.

Posted: Wed Nov 18, 2009 11:24 am
by RaviReena
Hi,

I am reading a a file using sequential stage with a grep command in Filter property.If there is no data in the file for my grep command , it is throwing an error :Filter Status 256.

But when there is no records I do not want my job fails throwing an error.

any help greatly appreciated.

Posted: Wed Nov 18, 2009 4:19 pm
by ray.wurlod
Change the command to detect file size and perform the grep conditionally upon that.

Sequntial File failing with grep command in filter

Posted: Thu Nov 19, 2009 8:48 pm
by RaviReena
Actually there are other records in the file which are not matching the grep command, In that case i can't check by file size right?

any suggestion Ray?

Posted: Thu Nov 19, 2009 9:11 pm
by ray.wurlod
grep twice, the second time conditional on the exit status of the first being zero.

Sequntial File failing with grep command in filter.

Posted: Thu Nov 19, 2009 9:51 pm
by RaviReena
Can we pass the grep command twice on Filter property in sequential file file stage? If so can you tell me how to pass it like what is the syntax should looks like?

Posted: Thu Nov 19, 2009 9:55 pm
by ray.wurlod
grep command 1 && grep command 2