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
Explain datastage architecture?
What is "fatal error/rdbms code 3996" error?
Why fact table is in normal form?
State the difference between an operational datastage and a data warehouse?
Why do you need stage variables?
What are the enhancements made in datastage 7.5 compare with 7.0?
Can you implement SCD2 using join, transformer and funnel stage?
Can anyone tell me a difficult situation who have handled while creating Datastage jobs?
Why do we use link partitioner and link collector in datastage?
What are the main differences you have observed between 7.x and 8.x version of datastage?
How to read multiple files using a single datastage job if files have the same metadata?
how many rows sorted in sort stage by default in server jobs
How a source file is populated?
How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?
Can you explain how could anyone drop the index before loading the data in target in datastage?