HELP: Write XML data to a file
TYPE: OBJECT
SYNTAX: XML(NET.{},FILE='str'/STREAM/DUMMY,FIOMODE=STOP/APPEND/OVERWRITE,EMPTYFILE=INFO/WARNING/ERROR/DELETE,FALLOC(),REMOVE,RENAME='str',REMAIN,APPEND,FLUSH,METHOD.{},CCSID='str'/DEFAULT/ASCII/EBCDIC/SYSTEM/LOCAL,BOM,KEPBOM,ELF2NL,CHRMODE=STOP/IGNORE/SUBSTITUTE/IDENTITY/TRANSLIT,SUBCHAR[num/SYSTEM...],SYSTABLE=ICONV,USRTABLE='str'/NPAS/SEPA/DELA/DLAX,ONEMAP,COMBINED=NFD/NFC/AUTO/ON/OFF,REPORTFILE='str'/STDOUT/STDERR,COMPRESS.{},ENCRYPT/ENC.{},ENCODE/COD.{},ARCHIVE/LIB.{},FRCREC,LANG='str',PLATFORM=WIN/UNX/ZOS/USS/VSE/BS2/MAC,OWNER='str',ENVID='str',HASH(),SIGNATURE.{},NOMKDIR,ATTRIB(),AVSCAN(),PREPROCESS[()...],POSTPROCESS/PSTPRO[()...])
Write XML formats FLAM elements containing parsed XML data. The output is a valid XML document. The output XML can be formatted using 3 different methods:
The XML output is written in blocks and encoded in UTF-8 with line feed (0xA) as line delimiter unless a CCSID is supplied, in which case character conversion is performed.
If writing XML, the semantics of read modes (read.*()) change as follows:
For compression, encryption, encoding and archiving, one of the supported methods can be used. For each of these methods, specific parameters can be set to control the conversions. The output file can be written to a local or remote system.
STRING: FILE='str'/STREAM/DUMMY - Name/URL of file to write [''==origin.ext]
STREAM - Read from stdin or write to stdoutDUMMY - Read EOF or write nothingNUMBER: FIOMODE=STOP/APPEND/OVERWRITE - Error handling if the same file is used again [APPEND]
STOP - Stop processing with an errorAPPEND - Add the new data to the existing file or memberOVERWRITE - Overwrite the existing file or memberNUMBER: EMPTYFILE=INFO/WARNING/ERROR/DELETE - Define special handling for empty files [NONE]
INFO - Print info to the logWARNING - Print warning to the log (completion code 1)ERROR - Stop procession with error and special completion codeDELETE - Delete the empty file (nothing written)SWITCH: REMAIN - Remain existing files (don't overwrite) [FALSE]SWITCH: APPEND - Append data to this file or add member to archive [FALSE]SWITCH: FLUSH - Enforce flush in front of close file [FALSE]SWITCH: KEPBOM - Keep byte order mark for faster conversionSWITCH: FRCREC - Enforce record orientation on record oriented devices [FALSE]SWITCH: NOMKDIR - Don't create path if path not exists [FALSE]