The following figure shows the syntax for the valid host structure.
>>-level-1--variable-name--.------------------------------------> .--------------------------------------------------------------------------. V .-IS-. | >----level-2--var-1--+-+-PICTURE-+--+----+--picture-string--usage-clause--.-+-+->< | '-PIC-----' | +-floating-point--.------------------------------------+ +-.--varchar-string--.---------------------------------+ +-.--vargraphic-string--.------------------------------+ +-lob--.-----------------------------------------------+ +-datetime--.------------------------------------------+ +-rowid--.---------------------------------------------+ '-binary--.--------------------------------------------' floating-point |--+----------------------------------------+-------------------> | .-IS-. | | .-USAGE--+----+-. | '-+---------------+--+-COMPUTATIONAL-1-+-' +-COMP-1----------+ +-COMPUTATIONAL-2-+ '-COMP-2----------' >--+-------------------------+----------------------------------| | .-IS-. | '-VALUE--+----+--constant-' usage-clause |--+--------------------------------------------+---------------> | .-IS-. | | .-USAGE--+----+-. | '-+---------------+--+-+-BINARY----------+-+-' | +-COMPUTATIONAL-4-+ | | '-COMP-4----------' | +-+-PACKED-DECIMAL--+-+ | +-COMPUTATIONAL-3-+ | | +-COMP-3----------+ | | +-COMPUTATIONAL---+ | | '-COMP------------' | +-+-DISPLAY--------+--+ | '-display-clause-' | '---DISPLAY-1---------' >--+-------------------------+----------------------------------| | .-IS-. | '-VALUE--+----+--constant-' display-clause .-DISPLAY-. .-IS-. .-CHARACTER-. |--+---------+--SIGN--+----+--LEADING--SEPARATE--+-----------+--|
varchar-string .-IS-. |--49--var-2--+-PICTURE-+--+----+--picture-string-1-------------> '-PIC-----' .-IS-. .-USAGE--+----+-. >--+---------------+--+-BINARY----------+--+---------------------------------+--> +-COMPUTATIONAL-4-+ | .-IS-. | '-COMP-4----------' '-VALUE--+----+--numeric-constant-' .-IS-. >--.--49--var-3--+-PICTURE-+--+----+--picture-string-2----------> '-PIC-----' >--+----------------------------+--+-------------------------+--| | .-IS-. | | .-IS-. | | .-USAGE--+----+-. | '-VALUE--+----+--constant-' '-+---------------+--DISPLAY-' vargraphic-string .-IS-. |--49--var-2--+-PICTURE-+--+----+--picture-string-1-------------> '-PIC-----' .-IS-. .-USAGE--+----+-. >--+---------------+--+-BINARY----------+-----------------------> +-COMPUTATIONAL-4-+ '-COMP-4----------' >--+---------------------------------+--.-----------------------> | .-IS-. | '-VALUE--+----+--numeric-constant-' .-IS-. .-IS-. .-USAGE--+----+-. >--49--var-3--+-PICTURE-+--+----+--picture-string-2--+---------------+--DISPLAY-1--> '-PIC-----' >--+-------------------------+----------------------------------| | .-IS-. | '-VALUE--+----+--constant-'
lob .-IS-. .-USAGE--+----+-. |--+---------------+--SQL TYPE IS--+-+-CLOB---+--(--lob-length--+---+--)-+--| | +-DBCLOB-+ +-K-+ | | '-BLOB---' '-M-' | +-+-CLOB-LOCATOR---+------------------+ | +-DBCLOB-LOCATOR-+ | | '-BLOB-LOCATOR---' | '-+-CLOB-FILE---+---------------------' +-DBCLOB-FILE-+ '-BLOB-FILE---' datetime .-OF-. .-IS-. |--variable-name--FORMAT--+----+--+-DATE------+--+----+---------> +-TIME------+ '-TIMESTAMP-' >--format-options-----------------------------------------------| rowid |--SQL TYPE IS ROWID--------------------------------------------| binary .-IS-. .-USAGE--+----+-. |--+---------------+--SQL TYPE IS----+-BINARY---------+--(--length--)----| +-VARBINARY------+ '-BINARY VARYING-'