how can u handle null values in transformer stage.

Answer Posted / prasad

take one stage variable

sV: if (IsNull(colum_name) or Column_name='') Then 0 Else 1

and in constraint use
sV=0 (null records will goes to one target)(we can handle null by using stage variable)

sV=1 (not null records will goes to another target)

Plz Correct me, if am wrong......

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between account and directory options ?

611


Can you explain how could anyone drop the index before loading the data in target in datastage?

879


How many types of stage?

664


what is flow of project?

1546


What is Ad-Hoc access? What is the difference between Managed Query and Ad-Hoc access?

2529






What are the various kinds of containers available in datastage?

553


What is data partitioning?

735


What is developer responsibilities in UAT (user acceptance testing and Post implementation phase?

1628


Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?

1773


What are the repository tables in datastage?

812


What are datastage sequences?

659


How to write a expression to display the first letter in Caps in each word using transformer stage ? Please let me know ASAP Thanks in advance...

1074


Name the command line functions to import and export the DS jobs?

693


How will you load you daily/monthly jobs datas in to Fact and Dimension table using datastage.

2981


What are the different plug-ins stages used in your projects?

612