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 "SWD.CCD.FUNLOAD.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 ?
Release : 3.0
Component : BRIGHTSIDE 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 "SWD.CCD.FUNLOAD.CCD1050" -f -ec 285 "CCD1050.TXT"
zowe zos-files command:
https://docs.zowe.org/stable/web_help/docs/zowe_zos-files_download_data-set.html
Coded character set identifiers table shows the CCSIDs that are supported in z/OS® Connect: