WRAPRECORD (FTP client and server) statement
Use the WRAPRECORD statement to specify how the FTP server or client treats an incoming data record longer than the logical record in which it is to be stored.
- Server
- This setting applies when transferring data sets to the server's system.
- Client
- This setting applies when transferring data sets to the client's system.
Syntax
.-WRAPRECORD FALSE------. >>-+-----------------------+----------------------------------->< '-WRAPRECORD--+-TRUE--+-' '-FALSE-'
Parameters
- TRUE
- Indicates that data is wrapped to the next record if no new-line character is encountered before the logical record length is reached.
- FALSE
- Indicates that data is truncated if no new-line character is encountered before the logical record length is reached. This is the default. If TRUNCATE is also set to FALSE, an error is set and the file transfer fails.
Examples
Truncate data if no new-line character
is encountered before the logical record length is reached:
WRAPRECORD FALSE
Results
If WRAPRECORD is specified and the data is multibyte characters, it is possible that wrapping will occur in the middle of a multibyte character, making the data unusable by some applications.