Item Descriptor

Use the Item Descriptor portion of the SET DESCRIPTOR statement to set value for an individual field in a system-descriptor area.
Read syntax diagramSkip visual syntax diagram
Item Descriptor

|--+-+-TYPE------+-- = -+-literal_int_var-+-------------+-------|
   | +-LENGTH----+      '-literal_int-----'             |   
   | +-PRECISION-+                                      |   
   | +-SCALE-----+                                      |   
   | +-NULLABLE--+                                      |   
   | +-INDICATOR-+                                      |   
   | +-ITYPE-----+                                      |   
   | '-ILENGTH---'                                      |   
   |                                     (1)            |   
   +-+-DATA--+-- = -+-| Literal Number |-------+--------+   
   | '-IDATA-'      |                      (2) |        |   
   |                +-| Literal DATETIME |-----+        |   
   |                |                      (3) |        |   
   |                +-| Literal INTERVAL |-----+        |   
   |                |                   (4)    |        |   
   |                +-| Quoted String |--------+        |   
   |                '-input_var----------------'        |   
   |                                              (4)   |   
   +-+-NAME------------+-- = -+-| Quoted String |-----+-+   
   | +-EXTYPENAME------+      '-input_var-------------' |   
   | '-EXTYPEOWNERNAME-'                                |   
   '-+-SOURCEID----------+-- = -+-literal_int_var-+-----'   
     +-SOURCETYPE--------+      '-literal_int-----'         
     +-EXTYPEID----------+                                  
     +-EXTYPELENGTH------+                                  
     '-EXTYPEOWNERLENGTH-'                                  

Notes:
  1. See Literal Number
  2. See Literal DATETIME
  3. See Literal INTERVAL
  4. See Quoted String
Element Description Restrictions Syntax
input_var Host variable storing data for the specified item descriptor field Must be appropriate for the specified field Language-specific
literal_int Integer value ( > 0 ) assigned to the specified item descriptor field Restrictions depend on the keyword to the left of = symbol Literal Number
literal_int_var Variable having literal_int value Same as for literal_int Language-specific

For information on codes that are valid for the TYPE or ITYPE fields and their meanings, see Setting the TYPE or ITYPE Field.

For the restrictions that apply to other field types, see the individual headings for field types under Using the VALUE Clause.


Copyright© 2021 HCL Technologies Limited