Skip to main content

Hello,

in Micro Focus COBOL I am creating a text file. File is defined like this:

select bankd-file assign to f-bankd-file
file status is wx-fstat
organization sequential.

fd bankd-file.
****************
01 bankd-rec pic x(01).

After that I do standard open output bankd-file and write


Is there any possibility to setup code page for file? It's created in utf8 (I think by default) but I importing this file to environment which needs this file in cp1251.

Or is there some easy way to convert file encoding? I can't use any third party solution. It must all be done in COBOL (or some Windows system command line routine).

Thanks for any help.


#COBOL