IBM Support

Sending Fixed Length files with OFTP

Technote (troubleshooting)


How can fixed length files be sent with OFTP


The Trading Partner receiving the data file runs a Host Application that requires fixed length records

Resolving the problem

Since the records in the target system have a fixed length, it is necessary to:-

  • remove Carriage Returns (CR) or Linefeeds (LF) from the data to be sent, since the target system would consider these as regular characters and not as control characters
  • make sure that after removing the LFs and CRs the length of the file is a whole-number multiple of the record size that has been agreed with the trading partner and which is configured in your system. This can be values like 80 or 128 characters per record

So for a 80 character record length, the transmitted file length can have sizes such as. 240, 320 bytes, but not 241 or 319.

Document information

More support for: Sterling B2B Integrator

Software version: 5.0, 5.1, 5.2, 5.2.1, 5.2.2, 5.2.3, 5.2.4,

Operating system(s): Platform Independent

Reference #: 1626491

Modified date: 08 March 2013

Translate this page: