
ASCII to EBCDIC Comp & Comp-3 Fields
Hi. Sounds like cobol. I don't know why you posted here, but here are some
items that may help..... Excuse please....
ASCII and EBCDIC are 2 different character sets with different sort
sequences. I think you are confused. You should be able to FTP in binary mode
with no problems or conversions.
But if you have to convert ASCII to EBCDIC or visa versa in cobol., you can
specify a CODE-SET in the File control statement to specify the format of the
individual files used for input and/or output.. There is also a code-set
commmand in the environment section(I think) to specify format for all files
in the program. There is a default if this command is not used in you source
code..
Comp-3 are packed fields where a number uses 4 bytes instead of the full 8
bytes. This should not have anything to do with FTP as long as the mode is
binary.
Hope some of this helps.
Quote:
>Anyone know how to format ASCII fields so that when they are FTP'd to an IMS
>(EBCDIC) environment they are formatted as either Comp or Comp-3 fields?
>Thx.