The oconv() function converts a value from its internal format to its external equivalent, according to the processing code being applied.
oconv(str.exp, conv.exp)
str.exp | String to convert from its internal format to its external equivalent. |
conv.exp | Processing code used in the conversion. |
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")
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