I have two sql states popping up that I cannot explain why they are coming up. They only come up in a specific scenario that I am unable to duplicate and I am not sure what I would learn if I did. Below is the code.
22002 requiring indicator variables, none of the fields are null capable and no left joins. What else could cause a null to come through?
22003 numeric value out of range, all fields are defined exactly as they are in the dds and no math is being done.
My only thought is that this process is being run during a process that has commit control, could trying to get uncommitted data cause the issue.
22002 requiring indicator variables, none of the fields are null capable and no left joins. What else could cause a null to come through?
22003 numeric value out of range, all fields are defined exactly as they are in the dds and no math is being done.
My only thought is that this process is being run during a process that has commit control, could trying to get uncommitted data cause the issue.
Code:
Dcl-Ds orderInfo qualified; priority packed(1); shipVia packed(2); lineOfBusiness char(3); enterDate packed(7); enterTime packed(6); End-Ds; Exec Sql Select Dopsqt, Dooxnb, Dow5cg, Dmd0dt, Dmaztm Into :Orderinfo From Oeorst Join Oeordr On Dmcomp = Docomp And Dmjwnb = Dojwnb Where Docomp = :Company And Dojwnb = :Order# And Dojxnb = :Shipto# Fetch First Row Only;
Comment