IBM Support

How to convert a file from Connect:Direct z/OS, EBCDIC, to Connect:Direct Windows, ASCII, in Simplified Chinese.

Question & Answer


Question

How to convert a file from Connect:Direct z/OS, EBCDIC, to Connect:Direct Windows, ASCII, in Simplified Chinese.

Answer

First you must know what codepage was used to create the source file.  In this case IBM-1388 was used. 
This codepage would be put in the "source codepage".  The Windows PC Codepage for Simplified Chinese
is IBM-936 and this is a Unicode Codepage and as a result is available to Unix Systems Services. 

The "destination codepage" depends on the default codepage used by the destination operating system.  In this
case IBM-936 was not successful, and UTF-8 as the "destination codepage" was successful.  This was because
the default codepage for the receiving operating system was UTF-8. 

The TO SYSOPTS must have DATATYPE(TEXT) to ensure the CR/LF is added to the end of each record and
XLATE(NO) is required to ensure the file does not go through translation on the Connect:Direct Windows side
of the transmission.

TESTPROC PROCESS PNODE=pnode.node.name -
                              SNODE=snode.node.name
JS010 COPY FROM(PNODE DSN='input.file.name' -
          SYSOPTS="CODEPAGE=(source codepage,destination codepage)") -
TO(SNODE DSN='output\file\name' - 
          SYSOPTS="DATATYPE(TEXT) XLATE(NO)" - 
          DISP=RPL)

[{"Product":{"code":"SSFGBN","label":"IBM Sterling Connect:Direct for z\/OS"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Mapping and Translation","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG2759

Document Information

Modified date:
17 December 2019

UID

swg21563989