CREATE
The CREATE command creates an archive file and makes it the current archive for this instance of the ZipService. The current archive is the archive upon which subsequent ADD and GET commands operate.
If the specified file path for the new archive already exists, then it will be replaced by the CREATE command.
CREATE ----- FILE -------- file path -------------------------|
Keywords
FILE |
Specifies the file path of the archive to be created. The file path consists of: Path to the file (optional). If you do not specify the path, or if you specify a relative path, the file will be created relative to the JSM instance directory. The path name must conform to the naming rules of the target file system. File name (required). The file name must conform to the naming rules of the target file system. File extension (optional). The file extension should be .zip to ensure the file can be correctly recognized and processed by other applications. |
Examples
RDML
USE BUILTIN(JSM_COMMAND) WITH_ARGS('CREATE FILE(MYARCHIVE.ZIP)') TO_GET(#JSMSTS #JSMMSG)
RDMLX
use builtin(jsmx_command) with_args(#jsmxhdle1 'create file(myarchive.zip)') to_get(#jsmxsts #jsmxmsg)