We receive PC data files (tab-delimited text) to import items into our system. Sometimes the item descriptions will contain invalid characters (CR, LF, etc.). So I have a procedure written to escape these characters.
I recently added the ellipsis character to list (constants defined in the program)... looking at the stream file using Notepad++ on my PC in hex, and viewing the same file on the IFS (in hex via wrklnk), it appears to be x'85'. But adding this removes lower case "e". The CCSID on the IFS file is 1252.
In the EBCDIC table, "e" = x'85'.
This conversion and CCSID always confuses the heck out of me... is this possible to escape in RPG?
I recently added the ellipsis character to list (constants defined in the program)... looking at the stream file using Notepad++ on my PC in hex, and viewing the same file on the IFS (in hex via wrklnk), it appears to be x'85'. But adding this removes lower case "e". The CCSID on the IFS file is 1252.
In the EBCDIC table, "e" = x'85'.
This conversion and CCSID always confuses the heck out of me... is this possible to escape in RPG?
Comment