SET

LANSA Integrator

SET

The SET command can be used to set the current directory. This command also allows XML prefix to namespace mappings used during the XML creation process to be declared at the root scope or with element start and element end scope.

 

 

                                                          Optional

 

 SET ---- DIR ---------- directory path ------------------------->

 

      >-- OBJECT ------- *PREFIX -------------------------------->

                         *DEFAULTNS

 

      >-- PREFIX ------- prefix --------------------------------->

 

      >-- NAMESPACE ---- namespace ------------------------------|

 

Keywords

DIR

This keyword is used to specify the default directory.

OBJECT

This keyword is used to define an XML namespace. Depending on its usage, it can either be used to define a namespace in the root scope or within an element start and element end scope.

The possible values for the OBJECT keyword are:

  • *PREFIX
  • *DEFAULTNS

PREFIX

This keyword specifies an XML prefix and is only used with the OBJECT type of *PREFIX.

NAMESPACE

This keyword specifies an XML namespace and is used with the OBJECT type *PREFIX or *DEFAULTNS.

Example

 

SET OBJECT ( *DEFAULTNS ) NAMESPACE ( http://parts.com )

 

SET OBJECT ( *PREFIX ) PREFIX ( abc ) NAMESPACE ( http://salesorder.com )

 

Examples

RDML

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('SET DIR(/orders)') TO_GET(#JSMSTS #JSMMSG)

 

RDMLX

 

use builtin(jsmx_command) with_args(#jsmxhdle1 'set dir(/orders)') to_get(#jsmxsts #jsmxmsg)