Transfer a file by a batch job

pts.
Tags:
TCP
zSeries
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!

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Snapper70
    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 pointsBadges:
    report
  • PeterMac
    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.
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following