OCONV Query (REVG) (AREV Specific)
At 26 OCT 1998 12:32:50AM Steve Smith wrote:
Is there any magic REVG OCONV parameter to turn
-25 (physically on file) to -0.25 (external format)?
OCONV(-25,'MD2') produces -.25
I'd like to see a leading zero.
TIA
Steve
stsm@ozemail.com.au
At 26 OCT 1998 09:55AM Matt Sorrell wrote:
Steve,
In AREV 3.12, you can add the option 'L' to the OCONV function to force a leading zero.
For example:
OCONV(-25,"MD2L") would display -0.25.
HTH,
Matt Sorrell
At 27 OCT 1998 02:30AM Steve Smith wrote:
Thanks, Matt. While this works in AREV, REVG does
not accept this formatting option in OCONVs.
At 28 OCT 1998 04:55PM Stephen Witt-Thompson wrote:
Steve:
RevG doesn't have the leading '0' conversion but you can add a single line to your code or symbolic to swap '-.' with '-0.' For example:
ANS=OCONV('-25','MD2')
SWAP '-.' WITH '-0.' IN ANS
That will give you the leading zero but won't add a leading zero to numbers less than -1 (e.g., -1.25).
mailto:switt-thompson@spectrumhr.com