Use
the TRUNCATE statement to specify what action should be taken if WRAPRECORD
FALSE is specified, and it is determined that an input record is longer
than the LRECL of the new file.
- Server
- This setting applies when transferring files to the server's system.
- Client
- This setting applies when transferring files to the client's system.
Syntax
.-TRUNCATE TRUE-------.
>>-+---------------------+-------------------------------------><
'-TRUNCATE--+-TRUE--+-'
'-FALSE-'
Parameters
- TRUE
- Specifies that TRUNCATING records is allowed. Even if it is determined
that records were truncated, file transfer continues and a warning
message is issued when the transfer is complete.
- FALSE
- Specifies that TRUNCATING records is not allowed. If it is determined
that records are truncated, then set an error, and fail the file transfer.
If the option WRAPRECORD TRUE is set, the long records are wrapped,
not truncated, and no error is set.
Examples
FTP detects a record longer than
LRECL, sets an error of 1 003 and fails the transfer of the file.
WRAPRECORD TRUE
TRUNCATE FALSE