how to validate data

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
tanaya.deshpande@tieto.co
Participant
Posts: 94
Joined: Sun Jul 18, 2010 11:35 pm

how to validate data

Post by tanaya.deshpande@tieto.co »

Hi

My source columns are varchar ,decimal and Numeric
how can I validate them in transformer...
abhilashnair
Participant
Posts: 284
Joined: Fri Oct 13, 2006 4:31 am

Post by abhilashnair »

What exactly is your requirement? What is the stage you are using to read the data ? What is the target? Please provide more details
tanaya.deshpande@tieto.co
Participant
Posts: 94
Joined: Sun Jul 18, 2010 11:35 pm

Post by tanaya.deshpande@tieto.co »

My source is a .csv file which I am reading from sequential stage
I guess I will need to validate them in transformer stage..
my target is a DB2 stage
abhilashnair
Participant
Posts: 284
Joined: Fri Oct 13, 2006 4:31 am

Post by abhilashnair »

Are the column data types of the target DB2 in sync with your source data? If yes, you can just import the metadata and do a straight move. If there are any not null fields in your target, you may need to handle nulls in transformer before loading the DB2.
tanaya.deshpande@tieto.co
Participant
Posts: 94
Joined: Sun Jul 18, 2010 11:35 pm

Post by tanaya.deshpande@tieto.co »

actualy this is the requirement ..I need to show that the data coming from source file is valid..
samyamkrishna
Premium Member
Premium Member
Posts: 258
Joined: Tue Jul 04, 2006 10:35 pm
Location: Toronto

Post by samyamkrishna »

Do you know what is the valid data or is there any requirement saying what exactly is valid data. Based on what the requirement is you have to do the validation.

So what exactly is Valid data for you?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Make use of the IsValid() function. That and ask yourself - what does an invalid varchar look like?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Business rules!! You need to become aware of the business rules that you have to enforce (for example a person's name may not contain a numeric character) and then implement these using DataStage logic. There is no "one size fits all" solution.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply