If your DATA or IDATA field contains a character string, you must specify a value for LENGTH. If you specify LENGTH=0, LENGTH is automatically set to the maximum length of the string. The DATA or IDATA field can contain a literal character string of up to 368-bytes, or a character string derived from a character variable of a CHAR or VARCHAR data type. This provides a method to determine dynamically the length of a string in the DATA or IDATAfield.
If a DESCRIBE statement precedes a SET DESCRIPTOR statement, LENGTH is automatically set to the maximum length of the character field that is specified in your table.
This information is identical for ILENGTH. Use ILENGTH when you create a dynamic program that does not comply with the X/Open standard.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]