FCOPY Reference Manual (32212-90008)

Chapter 5 57
FCOPY Functions
BCDICIN/BCDICOUT
Restrictions
You cannot use BCDICOUT with CHAR, CLEAR, KANA, OCTAL, HEXO, or HEX.
Notes
When you use BCDICIN or BCDICOUT with the SUBSET function, the system makes
conversions first.
Five BCDIC character codes can be converted to ASCII in either of two ways. FCOPY
translates them as shown in table 5-1:
Refer to appendix C for a complete list of conversion codes.
The maximum number of fields you can specify is 255.
The translation function does not apply to user labels. If a file contains user labels, FCOPY
does not translate them.
Examples
The example below copies FILE1 to FILE2, converting all characters from BCDIC to ASCII,
except for those in columns 1 through 5 and 10 through 30:
>FROM=FILE1;TO=FILE2;BCDICIN=(1,5;10:30),EXCLUDE
The example below copies FILE1 to FILE2, converting only characters in columns 1
through 5 and 10 through 30 from ASCII to BCDIC:
>FROM=FILE1;TO=FILE2; BCDICOUT=(1,5;10:30)
Table 5-1. BCDIC to ASCII Conversion
BCDIC ASCII
& and + +
% and ( (
# and = =
@ and ' '