Question

  Asked: Aug 2 2006   4:01 AM GMT
  Asked by: clitze


CR/LF


zSeries, TCP

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!

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on DataCenter and Networking.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Snapper70  |   Aug 2 2006  3:19PM GMT

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…

 

PeterMac  |   Aug 3 2006  7:40AM GMT

Sorry this is a bit vague, but a long time since I worked much with <a href="http://FTP." rel="nofollow">FTP.</a> 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.