oconv() Function

The oconv() function converts a value from its internal format to its external equivalent, according to the processing code being applied.

Syntax

oconv(str.exp, conv.exp)

Parameter(s)

str.exp

String to convert from its internal format to its external equivalent.

conv.exp

Processing code used in the conversion.

Example(s)

This example converts check.amount to external format, using the "mr2" conversion.

print oconv(check.amount,"mr2")

This example converts check.date to external format, using the "d" conversion.

print oconv(check.date,"d")

See Also

Conversion Expression, d (Date) Processing Code, date Command, BASIC Functions, iconv() Function, m (Mask) Processing Code, Masking, mc (Mask Character) Processing Code, mp (Mask Packed Decimal) Processing Code, set-date-std Command, Statements and Functions, t (Text Extraction) Processing Code, t (Translate) Processing Code, time() Function, User Exits