BMC AMI Load FORMAT
GENERATED ALWAYS columns under FORMAT UNLOAD
Loading of GENERATED ALWAYS columns from data specified in the SYSREC file is generally prohibited unless you provide one of the following option:
- The OBID parameter is coded
- The specific override type value coded in the OVERRIDE specification.
CSV and DELIMITED
The CSV and DELIMITED options are functionally equivalent to each other, but they use different syntax. These options allow you to load data that has been unloaded in comma-separated-value (CSV) format. This data can originate from any product that generates CSV output, including BMC AMI Unload. In CSV-formatted data, a particular character separates each field from other fields. In most cases, a particular pair of characters encloses each non-numeric field.
For information specifically about CSV syntax, see CSV.
For information specifically about DELIMITED syntax, see DELIMITED.
Restrictions
- LOBs are not supported.
- Graphics are not supported.
- You must reference any DEFAULTIF or NULLIF clause by field name, not by position. Specifying a DEFAULTIF or NULLIF clause referenced by position causes a syntax error.
CSV
The following diagram shows CSV syntax:
The following table describes CSV syntax:
CSV syntax
TERMINATEDBY | Specifies a single character used to delimit fields of data The default is a comma (,). You cannot specify a null value for TERMINATEDBY. FORMAT CSV TERMINATEDBY is equivalent to FORMAT DELIMITED COLDEL. | ||
---|---|---|---|
ENCLOSEDBY | Specifies a single character used on the left side to enclose non-numeric fields of data The default is a double quotation mark (''). You can use an empty string to specify a null value for this option.
|
When you specify FORMAT CSV, BMC AMI Load assumes that the values for the TERMINATEDBY, ENCLOSEDBY, and AND options are in EBCDIC format.
NULLIF
NULLIF is a field specification. You can specify NULLIF clauses in either hexadecimal or string notation. NULLIF must reference the field by name, not position. For more information, see NULLIF-fieldSelection .
DEFAULTIF
DEFAULTIF is a field specification setting. You can specify DEFAULTIF clauses in either hexadecimal or string notation. DEFAULTIF must reference the field by name, not position. For more information, see DEFAULTIF-fieldSelection .
DELIMITED
You can use the following keywords with the FORMAT DELIMITED option.
DELIMITED syntax
COLDEL | Specifies the column delimiter used in the input file COLDEL is similar to TERMINATEDBY in CSV syntax. The default value is a comma. For ASCII and UTF-8 data, this is X'2C'; for EBCDIC data it is X'6B'. |
---|---|
CHARDEL | Specifies the character string delimiter used in the input file CHARDEL is similar to ENCLOSEDBY in CSV syntax. BMC AMI Load interprets any pair of character delimiters found between the enclosing character delimiters as a single character. For example, the phrase 'FRED''S JOB' is interpreted as 'FRED'S JOB'. BMC AMI Load recognizes these character delimiter pairs for only the CHAR and VARCHAR fields. Character string delimiters are required only when the string contains the CHARDEL character. However, you can put the character string delimiters around other character strings. The default value is a double quotation mark. For ASCII and UTF-8 data this is X'22'; for EBCDIC data, it is X'3F'. |
DECPT | Specifies the decimal point character used in the input file The default value is a period. For ASCII and UTF-8, the default is X'2E'. The only allowed delimiters for DECPT are the period (.) or the comma (,), or their equivalents in ASCII or Unicode. |
NULLIF
NULLIF is a field specification setting. You can specify NULLIF clauses in either hexadecimal or string notation. NULLIF must reference the field by name, not position. For more information, see NULLIF-fieldSelection.
DEFAULTIF
DEFAULTIF is a field specification setting. You can specify DEFAULTIF clauses in either hexadecimal or string notation. DEFAULTIF must reference the field by name, not position. For more information, see DEFAULTIF-fieldSelection.