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:
For the IBM i you can specify:
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)