0 pts.
 CR/LF
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

Answer Wiki:
Why try to get FTP itself to modify the file? Conceptually FTP is supposed to transfer files unmodified. That said I know there are versions of FTP that do all sorts of odd things. I think the old modem software Procomm would do that or even Kermit. Kermit being a mainframe favorite. However, it maybe simpler to create a temporary file with the appended control sequence. I seem to remember REXX macros would let you do this on one line (it has been nearly 20 years). Send that.
Last Wiki Answer Submitted:  August 2, 2006  9:03 am  by  Mortree   0 pts.
All Answer Wiki Contributors:  Mortree   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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…

 920 pts.

 

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.

 0 pts.