Applying Business Rules on xml files

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Applying Business Rules on xml files

Post by sairamkrish »

Hi,

Would like to know whether it is possible to apply simple business rules like Alphanum check/If Else logic while reading from a xml file. I know that these business rules can be incorporated using a parallel transformer, but am not too sure whether i can use parallel transformer for this. Also i could see xml transformer stage in palatte. Please help me with identifying the correct stage for this.


Thanks
Krish
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Post by sairamkrish »

Would like to add this to my above requirement...After reading the xml file and applying the business rules i need to load the data into db2 tables on AIX.

Thanks
Krish
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

There are a couple of ways to answer this...first, once you've successfully read the XML document with XMLInput, then it's "just DataStage"...so you can do anything with the values of data that you would if they came from any other source........ second, you do have the option, if desired, for doing certain amounts of data validation via XML Schema. There's a performance hit, but you can check the "validation" box on the XMLInput Stage and it will perform automatic XML Schema validation (which could be doing things like datatype validation, data value against an enumerated list, checking occurs limits, etc.).... The XML Transformer is a very different stage --- it lets you invoke your own XSLT....

Ernie
roblew
Charter Member
Charter Member
Posts: 123
Joined: Mon Mar 27, 2006 7:32 pm
Location: San Ramon

Post by roblew »

Hi, I'm sort of new to XML in general, but have requirements to build some rather simple jobs to move XML data into SQL Server, then back to XML. The transformations involved are substring, concatenating, removing/adding columns, etc.

Is there a drawback of using the XML Transform with XSLT, compared to using the parallel transformer? My instinct says that maintaining these XSLT files for business rules will be a pain in the a$$ to maintain. Therefore, I think that having any business logic/rules inside the Parallel transforms would be a better long-term solution. Plus, with the metadata repository, it would allow for better sharing, maintenance, and documentation of all business logic. Am I thinking along the correct lines?

Would there be any key benefit for using XSLT over Parallel transformations in DataStage?
Post Reply