hi,
i want to transfer a file by a batch-job (which is running on the mainframe) from a mainframe to a windows system. the file should be transferred in binary mode. the problem is that i need the cr/lf at the end of the records in the file after i transferred the file to the windows system. do you know how i can set the parameters for the ftp to solve the problem. thanks in advance!
Software/Hardware used:
ASKED:
August 2, 2006 4:01 AM
UPDATED:
August 12, 2011 8:59 AM
A question might be – why do you want a BINARY transfer of CR/LF delimited data? Is the mainframe data in fixed record length, do you need EBCDIC to ASCII translation to take place…
Sorry this is a bit vague, but a long time since I worked much with FTP. Seem to remember there was a command defined to specify record structure in FTP, but not sure how widely this is implemented – try command ‘STRU R’ to specify record structured file, this should send EOR control sequence after each record. Should be CR/LF in Ascii mode not sure in Binary. Worth a try anyway. Only other option is as per previous replies try to do formatting before you transmit file.