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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Job control?

840


How a source file is populated?

827


1)s.key generate 1 to 700 records today. tomorrow another 400 will updated how to update the records using s.key generator? 2)source is like :-- DB --> T/F stage1 --> seq1file T/f 1 is linking with T/F2 ---> seq 2 how to load the data? in source i given some conditions those r going in seq1. The another data will going to seq2 how to do this ?

1825


Name the different types of Lookups in Datastage?

985


Whats difference betweeen operational data stage (ods) and data warehouse?

889


Triggers,VIEW,Procedures

988


Explain Quality stage?

902


sed,awk,head

1215


what are .ctl(control files) files ? how the dataset stage have better performance by this files?

2508


What is a merge in datastage?

965


What is meta stage?

928


disign the complex job in u r project?(they are aksing only complex job design and then data flow...)

2251


What are the different layers in the information server architecture?

850


what is the use of surogate key in datastage

2061


What is apt_config in datastage?

914