5 16 4 WRITE

LANSA Integrator

5.16.4 WRITE

When the WRITE command of this service is executed the following steps occur:

The service determines if the output Unicode content needs to be archived.

The service determines the encoding to apply to the output Unicode content to convert it to byte content.

If the HOST keyword is not present the byte content is written to a local file, else the FTP put protocol is used to write the remote file.

To write a file to the local file system, only requires the FILE keyword.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

WRITE

FILE

value

Mandatory. File Path.

ENCODING

 

Optional. See ENCODING.
Default encoding is UTF-8.

ARCHIVE

 

Optional. See ARCHIVE.

 

To write a file to a remote file system using the FTP protocol requires the HOST keyword.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

WRITE

HOST

value

Conditional. FTP server.

FILE

value

Mandatory. File Path.

ENCODING

 

Optional. See ENCODING.
Default encoding is UTF-8.

ARCHIVE

 

Optional. See ARCHIVE.

USER

value

Mandatory. User.

PASSWORD

value

Mandatory. Password.

NAMEFMT

0

Optional. Path name format. library/file.member.

1

Path name format. /directory/directory/file.

DATALINK

*PASV

Optional. Default. Data channel connection mode.

*PORT

Data channel connection mode.

MODE

*BINARY

Optional. Default. Data transfer mode.

*ASCII

Data transfer mode.