An item and its null indicator are not defined in the same procedure and with the same storage type.
30
Cause . . . . . : An item defined with the NULLIND keyword and the item defined as the parameter for the NULLIND keyword must both be defined in the same procedure, or must both be defined in the global definitions of the module. Both items must be defined with the same storage type: static, static all-thread, automatic or parameter.
Recovery . . . : Change the definition of the items so they are both defined in the same procedure and with the same storage type.