SQL [TYPE] [IS] XML AS CLOB(lob-length)
Where lob-length is a value between 1 and 2147483647 expressed either as a number or a number followed by K (kilobytes), M (megabytes), or G (gigabytes).
01 xmlclob1-hv-name SQL TYPE IS XML AS CLOB(2M).
01 xmlclob1-hv-name. 03 xmlclob1-hv-name-len PIC S9(9) COMP-5. 03 xmlclob1-hv-name-val PIC X(2097152).
SQL [TYPE] [IS] XML AS BLOB-FILE SQL [TYPE] [IS] XML AS CLOB-FILE SQL [TYPE] [IS] XML AS DBCLOB-FILE
01 xmlblob-file1-hv-name SQL TYPE IS XML AS BLOB-FILE.
01 xmlblob-file1-hv-name. 49 xmlblob-file1-hv-name-name-length PIC S9(9) COMP-5. 49 xmlblob-file1-hv-name-data-length PIC S9(9) COMP-5. 49 xmlblob-file1-hv-name-file-option PIC S9(9) COMP-5. 49 xmlblob-file1-hv-name-name PIC X(255).
01 xmlclob-file1-hv-name SQL TYPE IS XML AS CLOB-FILE.
01 xmlclob-file1-hv-name. 49 xmlclob-file1-hv-name-name-length PIC S9(9) COMP-5. 49 xmlclob-file1-hv-name-data-length PIC S9(9) COMP-5. 49 xmlclob-file1-hv-name-file-option PIC S9(9) COMP-5. 49 xmlclob-file1-hv-name-name PIC X(255).
01 xmldbclob-file1-hv-name SQL TYPE IS XML AS DBCLOB-FILE.
01 xmldbclob-file1-hv-name. 49 xmldbclob-file1-hv-name-name-length PIC S9(9) COMP-5. 49 xmldbclob-file1-hv-name-data-length PIC S9(9) COMP-5. 49 xmldbclob-file1-hv-name-file-option PIC S9(9) COMP-5. 49 xmldbclob-file1-hv-name-name PIC X(255).