I am working on a project where we use WTX on zOS. We basically process files and feed the output to various downstream system. We build the maps on PC and port them to zOS via FTP and use DTXCMDSV to run them with overriding parametres . Now we are dealing with lot of files where UTF8 encoding is used. If the in put files use basic latin characters in UTF8 then there is no problem in mapping. as each character is mapped as one byte . However when the files have any other characters (Thai/Japanese/Korean) , each characters occupy multiple bytes(usually 3). So when we have to map say 40 characters MID function would give me 40 english characters but only 13 Thai characters and an extra byte that is not in any character set. What I want is some way the rule should map 40 character english as well as thai.
I am aware this works well on windows. If we make the Data language as UTF8. However it does not work if we port it to zOS.
Is there a way to handle this ?
I have been searching this but could not get anything .
Edit:added some more details