OPEN

LANSA Integrator

OPEN

The OPEN command creates a new XML file or replaces an existing file.

 

                                                         Required

 

 OPEN ---- FILE ------------ file path -------------------------|

 

Keywords

FILE

This keyword is used to specify the file name and path of the xml file.

It is recommended to use the forward slash as the path separator and to avoid the use of the DOS drive designator.

The format of the path should be as follows:

For Windows you can specify:

  • Absolute path
    For example:
    /orders/order.xml
    C:/orders/order.xml

    C:\orders\order.xml


    or
  • Relative path.
    For example, orders/order.xml (note, no '/' at the start), in which case the order.xml file must reside in the orders directory under the JSM Instance directory on your server.

For the IBM i you can specify:

  • Absolute path.
    For example:
    /orders/order.xml

    or
  • Relative path.
    For example, orders/order.xml (note, no '/' at the start), in which case the order.xml file must reside in the orders directory under the JSM Instance directory on your server.

Note: Whatever directory structure you specify must already exist.

This keyword is mandatory.

Examples

RDML

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('OPEN FILE(ORDER.XML)') TO_GET(#JSMSTS #JSMMSG)

 

RDMLX

 

use builtin(jsmx_command) with_args(#jsmxhdle1 'open file(order.xml)') to_get(#jsmxsts #jsmxmsg)