Specifying escape codes

Use the -ec option to specify escape characters for file transfers.

Syntax

–ec cc:cc:cc:cc: . . .
cc:cc:cc:cc: . . .
Specifies a list of characters to escape during conversion of characters between ASCII and EBCDIC code pages. Use this parameter to enable successful "round-trip" transfer of characters that do not transfer successfully from ASCII to EBCDIC and back again. Only numeric characters, 0-9, and the uppercase alphabet characters, A-F, can be used. No lowercase characters can be used. If you specify the following in your rccbuild command, for example, the EBCDIC characters 0x00, 0x0D, 0x15 and 0x25 are escaped:
-ec 00:0D:15:25
In addition to what is specified with this option, the following EBCDIC characters are escaped:
  • 0x15
  • 0x0D
  • The character that is converted to 0x00 in the code page specified in the client_codepage (-k) option
  • The character that is converted to 0x0D in the code page specified in the client_codepage (-k) option
  • The character that is converted to 0x1A in the code page specified in the client_codepage (-k) option
For example, if IBM-1047 is specified in the server_codepage ( -r ) option, and IBM-850 is specified in the client_codepage (-k) option, the code conversion from IBM-1047 to IBM-850 is as follows:
IBM-1047 IBM-850
0x00 0x00
0x0D 0x0D
0x1C 0x1A
The following EBCDIC characters are also escaped: 0x15, 0x0D, 0x00, 0x1C.

Platforms

z/OS® MVS™, z/OS UNIX® System Services