On Saturday, April 20, 2019 at 6:35:16 AM UTC-4,
jd...@arcor.de wrote:
I have to process a PC file in IFS with codepage 819 that uses hexcode 09 as separator when I display it with F10. When I do a CPYFRMSTMF to a database file, the separator byte is replaced by several (3 or 4) blanks (hexcode 40). Thus I'm losing the
information about where the separators should be. I tried to copy the file in IFS changing the codepage to 1252 but only had the same result afterwards. Would be great if anybody had an idea.
I would suggest that you take a look at using Open Access for the purpose. I wrote an article describing a basic CSV handler here:
http://ibmsystemsmag.com/ibmi/developer/rpg/input_handlers/ and made the handelr more genric an added features here: http:/
/ibmsystemsmag.com/ibmi/developer/rpg/flexible_input_handlers/
The code for both is available for download and the modification for you to use it with this file should be trivial. All you should need to do is to modify the call to CSV_open to spcify your x'09' separator.
Once you have recompiled the handler just add the HANDLER keyword and pams to the definition of the input file for the program that reads the file that you plan to output with CPYFRMSTMF. Then forget all about the vagaries of CPYFRMSTMF and enjoy life!
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)