Page 1 of 1

Sequential stage and wildcards in the Filter

Posted: Wed Jul 13, 2005 2:36 pm
by chulett
Does the darn Filter command in the Sequential stage not support wildcards? :evil:

I need to process an unknown number of files in a directory using a wildcard pattern. Yes, all have the same metadata and there's no header row to worry about.

Rather than use a Folder stage with its potential size issues or a before-job script, I thought I could simply put the 'wildcarded' filename in the File Name field and put 'cat' in the Filter command. I tried putting '/dev/null' in the File Name and the full just 'cat #FILE_PATH#/XXX*.csv' command in the Filter command. Nope. I either get an Error 11 trying to View the data or it crashes my entire Designer session. :?

Has anyone done this? What is the trick?

In the meantime, I'm cat'ting the files before job to a fixed filename as a 'work around' but I'd really rather not do that if possible.

Posted: Wed Jul 13, 2005 2:51 pm
by Sainath.Srinivasan
Did you try writing the cat in a shell script and calling the script from your job?

Posted: Wed Jul 13, 2005 6:21 pm
by chulett
Hmmm... call the script in the Filter? Nope, didn't try that. Off we go.

Posted: Thu Jul 14, 2005 12:08 am
by roy
Hi,
Seems weird, as if the stage ignores the command and forces the value in the file path and not accepting wild cards.
I'm on 7.5 :shock:

Anyone got something different?

Re: Sequential stage and wildcards in the Filter

Posted: Thu Jul 14, 2005 5:47 am
by ray.wurlod
chulett wrote:Does the darn Filter command in the Sequential stage not support wildcards?
I am not aware of any darn command, therefore cannot advise how one might use it as a Filter command in a Sequential File stage. Is the darn command UNIX or DOS, or is it only used for SOX?

Posted: Thu Jul 14, 2005 6:52 am
by chulett
Argh! You said the 'S' word! :evil:

Posted: Thu Jul 14, 2005 8:38 pm
by ray.wurlod
My sweet apple-cheek'd mother taught me to darn SOX. :P

DS 7.5.1a

Posted: Sun May 06, 2007 9:52 pm
by nick.bond
Craig, (or anyone else)

did you find a solution to this? or only a work around? having the same problem as you had, very annoying!

Posted: Mon May 07, 2007 6:35 am
by chulett
I never did find a way to cat files to standard out such that the Filter could read them in as one continuous stream. I just fell back on cat to a fixed name either before job or more typically in a specific separate 'cat' job so that I don't need to repeat it if the processing job needs to be rerun.