On 30/08/2009, at 11:35 AM, Laine, Rogers wrote:

The record length=3615 and FB on the Z.

The file on the I is not predefined, it is defined by the FTP job.

You can determine the record length of the created file using the DSPFD command.

Your problem is caused by not predefining the target file. FTP doesn't know the record length of the data being sent. The receiving FTP client has to create a target file to hold the data. For stream files that easy: each 'record' is ended by an EOL character (or pair) so the data is simply dumped in the file. For fixed-length records that's harder. The target has to guess at an appropriate record length. I think the iSeries FTP server uses 1024 bytes. Thus 3615 / 1024 = 3 records.

What is the syntax of the TYPE command?

Run HELP within your FTP client to see this. It's a standard FTP sub- command however not all clients support the EBCDIC option. Whether you get anything 'helpful' depends on the quality of your FTP client.

You can also request server help by using your FTP client's remote help function. If it doesn't provide one then use quote help.

If the target file ought to have a proper record layout then you should use DDS or SQL to predefine it, otherwise you can use your FTP client to create a physical file with the correct record length. See the iSeries FTP Client help for the QUOTE subcommand and the CRTP special FTP Server subcommand.

Simon Coulter.
FlyByNight Software OS/400, i5/OS Technical Specialists

Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
ASCII Ribbon campaign against HTML E-Mail / \

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].