I have a control file. I am trying to add logic for column "QUALIFYING":
- when the value is NULL, it needs to be set to ‘F’.
- when the value is ‘x’ it needs to be set to ‘T’
options (ERRORS=1000, SKIP=1)
load data
infile '/clients/vca2/data/API/ADHOC_LOAD/MASTER_VCA_Reminder_setup_references.csv'
replace
into table VCABARK_CDI_DV.MASTER_REMINDER_SETUP
fields terminated by '|'
OPTIONALLY ENCLOSED BY '"' AND '"'
trailing nullcols
(
VI_Reminder_Id FILLER,
WW_Id,
Ranking,
WW_Desc ,
VS_Desc FILLER,
VCA_Client_Desc,
Do_Not_Display ,
Qualifying ,
IsNull,
Batch_Date expression "(SELECT RUNTIME FROM VCABARK_CDI_DV.RUNTIME_API)",
Region CONSTANT "US"
)