Page 1 of 1

Pattern Matching

Posted: Tue Mar 08, 2005 9:37 am
by vskr72
Have a small issue in Pattern matching. Scenario is;

1. I have a directory that has a bunch of files that I need to search for a specific pattern repeteadly
2. Directory is fixed but the pattern for search will change every time, so, I cannot hardcode a search pattern.
3. Everytime, when I run the parent job I am storing these search pattern in a sequential file.

Pls let me knwo if there is any way to automate this process.

Thanks

Kumar

Posted: Tue Mar 08, 2005 9:52 am
by ArndW
Kumar,

offhand I would say the solution is (or ought to be) parameters. Which stage/methodology are you using? Is it in a sequencer or server job?

Pattern Matching

Posted: Tue Mar 08, 2005 12:35 pm
by vskr72
I am using it in a Sequencer. Is ther a way to use in Server Jobs.

Mostly the stages used are ODBC, Seq and Hash files. Thanks

Kumar.

[quote="ArndW"]Kumar,

offhand I would say the solution is (or ought to be) parameters. Which stage/methodology are you using? Is it in a sequencer or server job?[/quote]

Posted: Tue Mar 08, 2005 3:53 pm
by ray.wurlod
How are you performing the search?

Yes, it can be done in a Server job, in a number of ways. The obvious one, the Folder stage, is only good for a small number of small files, due to a known bug.

The search can also be performed in a Routine (perhaps invoked from a Routine activity), which is probably the easiest way to pick up a parameter value.