RE: Issues with code page conversion..grateful for any help

<[email protected]> Wed, 1 Apr 2026 15:03:47 +0200
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <[email protected]>
Hello all,

Just for those who contibuted to this issue ...

At the end of the day it was quite simple actually ...

1.  Before the data was outputted I changend the CCSID of the Jop to CCSID(870)

   -- Exec Sql CALL QSYS2.QCMDEXC('CHGJOB CCSID(870)');

2. Create outfile as UTF8

 exec sql                          
CALL QSYS2.IFS_WRITE(             
PATH_NAME => trim(:Path),         
LINE => '',                       
END_OF_LINE => 'NONE',            
FILE_CCSID => 1208,     
OVERWRITE => 'REPLACE')           
;                                 

3. Wite to Output  

exec sql                      
CALL QSYS2.IFS_WRITE(         
PATH_NAME   => trim(:Path),   
LINE        => trim(:data),   
OVERWRITE   => 'APPEND',      
END_OF_LINE => 'CRLF');       

-- 
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.