Quote:
|
Originally Posted by askdba123
Does db2 udb export have any additional features to specify ebcdic?
|
I don't think so.
I suppose sftp is taking the complete (ASCII) file as a single "record", i.e. with embedded newlines, and converting that to EBCDIC.
So on mainframe you will most likely receive something like "123 456 789", where the "blanks" are not EBCDIC blanks but "non-displayable characters" representing the ASCII LF character in EBCDIC.
I'm not familiar with sftp on mainframe, but maybe it has an option to generate multiple records instead of a single one with embedded line-feeds. I guess this option is the "AS TEXT" option, as opposed to "BINARY". (With FTP one would use the "TYPE ASCII" command, not the "TYPE BINARY".)
Also, make sure that the dataset into which sftp is writing has the correct record attributes, especially make sure the record type is "F" or "V", not "U".