Use ZOWE CLI to script pulling some files from the mainframe for off mainframe processing.
Here's a typical command -
zowe zos-files download data-set "IPRFX.IQUAL.CCD1050" -f "CCD1050.TXT"
This pulls data from mainframe down to the local environment. However it seems to have problems with the “[“ (x’B1’) and “]” (x’BB’) characters. These appear at the non-mainframe side as “£” and “¨”.
How to solve the problem ?
Zowe CLI
Mainframe is using EBCDIC codepage (for example 037 for US, 285 for UK), while local PC is using ASCII codepage.
Use the encoding option with the ZOWE zos-file download command
--encoding | --ec (string)
For example, if the mainframe codepage is 285 United Kingdom, use the following command:
zowe zos-files download data-set "IPRFX.IQUAL.CCD1050" -f -ec 285 "CCD1050.TXT"