I am loading sas data converted to csv into DB2. one problem is when I setup tables in DB2, I added keys and the keys are usually the merge by columns. and these keys are not nullable. So if in sas data, key is null then when I load into DB2, the entries with null key would be rejected automatically. And my uat and prod data might not match. how can I overcome this? is it a good way if I transferred null to empty string so it wouldnt be rejected by db2?
If we are talking about strings, yes it could be done this way.
Remember that the key still needs to be unique.
I think yuo should take care of your data quality problem first before loading to DB2.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.