Page 1 of 1

File & data level validations

Posted: Sun Apr 01, 2007 11:24 pm
by Narayana
Hi,

I recently started working on DataStage PX and wanted to do file and data level validations. Please help by throwing some light on how to go ahead.

Regards,

Nari

Posted: Mon Apr 02, 2007 3:12 am
by rachitha
hi Narayana

Welcome aboard :)
What is the source and give the details of what validation you want to do.

Posted: Mon Apr 02, 2007 3:28 am
by kumar_s
Do you have any validation on the file name with Dates? As mentioned, you need to explain clearly on what exactly you looking for.

Posted: Mon Apr 02, 2007 4:34 am
by Narayana
my main aim is to know why we do validations in file level as i know checking the validation of the data for nulls, correct format, alpha characters in the numeric columns.

I hope it is clear.

Posted: Mon Apr 02, 2007 5:29 am
by vmcburney
There are implicit metadata validation and conversions that the stages perform without any code and explicit validation and conversion that you can encode into a Modify or Transformer stage via functions. Generally if data comes from a database most of it can be left as implicit - an integer field out of a database table will always be integer. If you have a free text field such as date or address you will want validation and conversion in one in a transformer to convert from character to date.

You could read every field in as varchar 255 and do validation and conversion on every single field but this is inefficient and time consuming and would only be required if the source data metadata was completely unreliable between each run.

Posted: Mon Apr 02, 2007 6:26 am
by Narayana
Thanks for your reply vmcburney...i could get good knowledge from your explanation about data validation.

but why do you we need file level validation and how do we do that using the stages in parallel extender.

Posted: Mon Apr 02, 2007 6:37 am
by chulett
As noted - perhaps you should define what you mean by 'file level validation'. Otherwise, people have to guess.

Posted: Mon Apr 02, 2007 9:49 pm
by Narayana
how should i do that....

Posted: Mon Apr 02, 2007 10:20 pm
by ray.wurlod
... are you the Moderator ?