Previous Topic: CharacterNext Topic: Date


Picture (Numeric/Text, Numeric/Character)

A picture edit pattern may use an edit pattern that specifies alphanumeric, numeric, and alphabetic specifiers. The pattern can be associated with either a numeric or character variable. If alphabetic or alphanumeric specifiers are used, then the variable must be capable of storing alphabetic data.

The characters and/or digits are extracted from the input based on the edit pattern. The resulting value is then stored in the variable.

If the field is associated with a character or character string, then no domain conversion is performed. If the string is a varying length string, then it is set to the actual length of the extracted data. If the variable is a numeric variable, then the data is converted to the proper domain and stored in the variable.

Note that when the associated variable is numeric, the picture can contain only Z and 9 specifiers, and literal characters. This prevents a non-numeric value from being extracted which could not be converted to a numeric domain.