×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
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.
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists
http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.