DQPARSEINPUTLEN Function

Sets the default length of parsed input, and returns a string indicating its previous value.

Valid in: DATA step, PROC SQL, and SCL

Syntax

DQPARSEINPUTLEN('input-length')

Required Argument

input-length

specifies the input length for parsing functions. DQPARSEINPUTLEN returns the previous value of the input length.

Details

The DQPARSEINPUTLEN function specifies the input length anticipated by parsing functions. If REMOVE is specified, the override value is removed and the input limit is set to the default value. Valid values for the input length are as follows:
  • SHORT
  • LONG
  • AUTO
  • REMOVE
The DQPARSEINPUTLEN function returns a value that indicates the previous value of the input length. If the value NOTSET is returned, the override value is not set. Possible values for the previous input length are as follows:
  • SHORT
  • LONG
  • AUTO
  • NOTSET

Example: DQPARSEINPUTLEN Function

The following example sets the default input length to SHORT. The previous value of the parse input length is returned as the value of oldDEFAULT.
oldDefault= dqParseInfPutLen('short');