Batch FTP Question – Server to Mainframe

pts.
Tags:
390
Development
IBM DB2
Mainframe
I recently tested a batch FTP which gets a file from a Unix server and downloads to a flat file on an IBM mainframe. When I run this on our test box, it creates a fixed block flat file of 128 bytes. When I run the exact same batch FTP on our production box, exact same server, it creates a variable blocked file of 256 bytes. Why would this be? Different data pools or FTP defaults? Any suggestions on how I can make the production box produce a fixed block 128 byte file? Any help would be appreciated.

Answer Wiki

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

set the mode to binary , it probably took the data and translated it to unicode-ascii

Discuss This Question: 3  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
  • PscJohnD
    The default File Control Block (FCB) parameters are different on your test and production mainframes. When FTPing to a mainframe you should normally override the default Record Format (RECFM) and Logical Record Length (LRECL) using the SITE subcommand. When executing the FTP on the mainframe, use (for example): SITE RECFM=FB LRECL=80 When executing the FTP on the server, use (for example): QUOTE SITE RECFM=FB LRECL=80 (quote indicates that the site subcommand applies to the remote location)
    0 pointsBadges:
    report
  • Z9ba01
    check you FTPDATA member located at DD SYSFTPD in the JCL for the FTP started task. This is where the FTP defaults such as blocksize,Recfm,Lrecl, etc.. are located.
    0 pointsBadges:
    report
  • Rootkit
    I'm thinking that it might have to be with the definition of how big a "block" is which is usually a disk format issue. The bigger (capacity) the drive is, the more sectors get strung together to make a logical block. For instance, when you open Notepad and type "Hi!" when you save it, you don't subtrack only 3bytes from the file system. Instead you find out what how big a single block is.
    0 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