CSV

Synopsis

HELP:   Write a data field based on separators and optional enclosing characters (CSV - RCF4180)
TYPE:   OBJECT
SYNTAX: CSV(COLNAM='str',CHRSET=NONE/SYSTEM/ASCII/UCS1/UTF8/EBCDIC/UCS2BE/UTF16BE/UCS2LE/UTF16LE/UCS4BE/UTF32BE/UCS4LE/UTF32LE/LOCAL,SEPCHR[num/COMMA/COLON/SEMICOLON/TABULATOR/BLANK...],FLDMTD=ALWAYS/IFREQ/NONE,FLDCHR=num/QUOTATION/APOSTROPHE/GRAVEACCENT/PARENTHESES/RBRACKETS/SBRACKETS/BRACES/CBRACKETS/ABRACKETS,RECDLM=HOST/BIN/TXT/NL/USS/LF/UNIX/CR/OLDMAC/CRLF/WINDOWS/DLM/SYSTEM,ALIGN=num,NOCHECK/NOCHEK/NOCHK,NOESCP,FLATTX)

Description

This object is used to write a column as one manifestation of columns in the CSV format. The field separator, field enclosing character and record delimiter can be configured as needed.

A special behavior is implemented for brackets. If one of the opening brackets "(<{[" is selected as field enclosing character, then the fields of the column start with the specified bracket and end with the corresponding closing bracket.

If the data field contains the field enclosing character, then this character is escaped by doubling the character.

An alignment can be used to pad each cell of a column with whitespace characters to make the sheet human readable.

Arguments