I have a program that has a combination of SQL and non SQL code. It CHAINS to a file with a that has a field that sometimes contains a null value. It produces an I/O error on that CHAIN command when it encounters this. I've been able to get around this in non SQL programs by using the ALLWNULS (sp) option on the compile command. There doesn't appear to be an option to do this on the CRTSQLRPGI command. One solution is to change that CHAIN operation to an SQL select (I believe there are some SQL options for handling nulls). I'd rather leave the CHAIN operation in place if possible.
Any ideas?
Any ideas?
Comment