MEMCONVERT converts the data in a source buffer from the specified source codepage to a specified target codepage, stores the result in a target buffer, and returns a size_t 1 value that indicates the number of bytes that are written to the target buffer. It will also take an optional parameter t that specifies the technique to use in the conversion.
>>-MEMCONVERT(p,n,c,q,m,d-+----+-)----------------------------->< '-,t-'
The buffer lengths must be nonnegative and must have a computational type. The buffer lengths are converted to type size_t.
If either buffer length is zero, the result is zero.
The code page must have a computational type and is converted to type FIXED BINARY (31,0). The code page must specify a valid, supported code page.