If you write a user-defined function in PL/I, DB2 passes some string-locator descriptors to the PL/I procedure.
In order for such a program to run correctly under Enterprise PL/I, you must compile the program with the CMPAT(V2) or CMPAT(V1) option.