SITE

LANSA Integrator

SITE

The SITE command allows special FTP server command execution by supplying host-dependent parameters to the remote FTP Server.

 

 SITE --------- COMMAND ------- command --------------------------|

 

Keywords

COMMAND

The command string to be executed.

Examples

For example, if your remote FTP server is an IBM i you might issue a NAMEFMT command to set the file location inside your remote session.

Setting NAMEFMT to 1 indicates to identify files in all IFS file locations, so all files and paths must be written in IFS notation (e.g. /home/dir).

Setting NAMEFMT to 0 indicates files are to be copied to and from the QSYS.LIB file system using a naming format library/file.member.

RDML

 

CHANGE FIELD(#JSMCMD) TO('SITE COMMAND(NAMEFMT 1)')

USE BUILTIN(JSM_COMMAND) WITH_ARGS(#JSMCMD) TO_GET(#JSMSTS #JSMMSG)

 

RDMLX

 

use builtin(jsmx_command) with_args(#jsmhandle 'site command(namefmt 1)') to_get(#jsmsts #jsmmsg)