I am sending a file from UNIX to MAINFRAME server via connect direct. I am able to upload the file successfully.At the destination host, when the file is received it is not readable and not in the same format as I sent from the UNIX server.

1 Answer
1

Actually, that looks almost right. But if your maximum record length is 1500 characters (exclusive of the NL at the end of the line), your LRECL should be at least 1504. But don't skimp on the maximum - there's no cost or penalty to larger values (up to 32767). And NealB's correct - if this is a text file, you may need to specify a character-set translation - but I don't know how to do that in CONNECT:Direct.

On the Unix side, dd handles ASCII:EBCDIC — so you can fairly readily reformat the file before sending.
–
BRPocockDec 5 '11 at 19:37

1

Oh, if only it were that easy :-) There are many EBCDIC code pages, and you really need to know which one(s) you're talking about. I lost lots of hair over this issue years ago :-)
–
Ross PattersonDec 5 '11 at 20:20