Pattern Action File Coding Help
Posted: Mon Aug 10, 2015 1:56 pm
Hello,
I've been trying to do some work with the Pattern Action File for Rulesets and have been looking at the IBM knowledge center site here,
http://www-01.ibm.com/support/knowledge ... alues.html
but am running into problems successfully running a job with a ruleset with a conditional pattern specification.
For example, suppose I have a pattern that DataStage recognizes as this
A|B|?|^|G|G|F|D|E|> where A, B, D, E, F, and G are all classes that I've specificed, suppose for values of "?" where "?" equals a specific value like "metal chassis", I wanted to output a specific value in one of my output columns, how would I edit this command for it to work correctly?
A|B|?|^|G|G|F|D|E|>
*?|^= "metal chassis"
Copy "specialpattern" {OutputColumn}
where OutputColumn is just a column I defined in the Dictionary File.
Is there a default ruleset that I can use as a template or some editing to the above command that I can do for the ruleset to do this task?
Thanks!
I've been trying to do some work with the Pattern Action File for Rulesets and have been looking at the IBM knowledge center site here,
http://www-01.ibm.com/support/knowledge ... alues.html
but am running into problems successfully running a job with a ruleset with a conditional pattern specification.
For example, suppose I have a pattern that DataStage recognizes as this
A|B|?|^|G|G|F|D|E|> where A, B, D, E, F, and G are all classes that I've specificed, suppose for values of "?" where "?" equals a specific value like "metal chassis", I wanted to output a specific value in one of my output columns, how would I edit this command for it to work correctly?
A|B|?|^|G|G|F|D|E|>
*?|^= "metal chassis"
Copy "specialpattern" {OutputColumn}
where OutputColumn is just a column I defined in the Dictionary File.
Is there a default ruleset that I can use as a template or some editing to the above command that I can do for the ruleset to do this task?
Thanks!