Show TOC

NUMCV Conversion RoutineLocate this document in the navigation structure

Use
Features

When converting from an external into an internal format this checks whether the entry in the INPUT field is wholly numerical, whether it consists of digits only, possibly with blank spaces before and/or after. If yes, the sequence of digits is copied to the OUTPUT field, right-aligned, and the space on the left is filled with zeros ('0'). Otherwise the blank characters are removed from the sequence of digits, the result is transferred, left-aligned, into the output field, and this is then filled from the right with blank characters.

Converting from the internal format into the external format (conversion routine CONVERSION_EXIT_NUMCV_OUTPUT) does not produce any changes. The output field is set the same as the input field.

Example

Input and output fields are each 8 characters long. A conversion from the external to the internal format takes place:

  1. '1234 ' → '00001234'

  2. 'ABCD ' → 'ABCD '

  3. ' 1234 ' → '00001234'

  4. ' AB CD' → 'ABCD '