How do u set a default value to a column if the column value
is NULL?

Answer Posted / subhash

we can use
NullToValue(Col_Name, Default_Value)
or
NullToempty(Col_Name)functions in tranformaer stage.

Or
If the source is sequential file then, we have an option in
seq file ==> Formats ===> Filed Defaults ==>"Null Field
Value" --> we can set default value for it.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the job parameters?

703


What are the processing stages?

640


8000 jobs r there i given commit, suddenly job will abort? what happens? 2)diff b/t transformer stage & filter stage? 3)how to load the data in the source?

1780


Does datastage support slowly changing dimensions ?

659


What are the different types of lookups in datastage?

626






for example You have One Table with 4 Columns (Mgr ID, Department ID, Salary, Employee ID). Can you find out the Average Salary and Number of Employee present per Department and Mgr

772


Difference between sequential file and data set?

641


What are the main differences you have observed between 7.x and 8.x version of datastage?

618


What are the various kinds of the hash file?

661


how many rows sorted in sort stage by default in server jobs

3554


What are the enhancements made in datastage 7.5 compare with 7.0?

707


What are routines in datastage?

773


Triggers,VIEW,Procedures

800


What is the difference between passive stage and active stage?

820


Name the third party tools that can be used in datastage?

611