CREATE

LANSA Integrator

CREATE

The CREATE command allows a directory to be created on the remote FTP server.

 

 CREATE --------- DIR ---------- directory path ------------------|

 

Keywords

DIR

Directory path name. This value can be a relative or absolute path.

Examples

RDML

To create a directory named UPLOAD under the root directory:

 

CHANGE FIELD(#JSMCMD) TO('CREATE DIR(/upload)')

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

 

or to create a directory named UPLOAD under the current working directory:

 

CHANGE FIELD(#JSMCMD) TO('CREATE DIR(upload)')

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

 

RDMLX

To create a directory named UPLOAD under the root directory:

 

use builtin(jsmx_command) with_args(#jsmhandle 'create dir(/upload) ') to_get(#jsmsts #jsmmsg)

 

or to create a directory named UPLOAD under the current working directory:

 

use builtin(jsmx_command) with_args(#jsmhandle 'create dir(upload) ') to_get(#jsmsts #jsmmsg)