This is a case of mis-used commands. MV allows for many ways to skin a cat.
In this case, the <> is the most effecient. You can use the function
EXTRACT, FIELD and OCONV but the <> is the best.

Unless you/ve inherited code from over 25 years ago, the <> wins. Back then,
the <> didn't exist and you had to use EXTRACT which caused people to
consider FIELD.

The only advantage to using OCONV with the G conversion is if you want more
than a single element, aka G0*2 or [EMAIL PROTECTED] (sic).

It's almost a no brainer to use <>. The others are all too cumbersome and
don't read that easily.

My 2 cents.
Mark Johnson
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 14, 2007 3:22 PM
Subject: RE: [U2] OCONV Extraction Question


> Doug,
>
> Any reason you need to use OCONV() instead of FIELD()?
>
> Brian
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of D
> Sent: Wednesday, November 14, 2007 1:05 PM
> To: [email protected]
> Subject: [U2] OCONV Extraction Question
>
> VAR1 = 'SAM':@VM:'TRUDY'
> CRT OCONV(VAR1,'WHATEVER')
>
> What replaces WHATEVER, so that I can see the value "SAM"? I cannot find
in
> the documentation or remember for that matter how to extract a single
value
> using the OCONV function.
>
> Thanks in advance,
> Doug
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material not intended for Public use.
> Any review, retransmission, dissemination or other use of, or taking of
any action in reliance upon, this information by persons or entities other
than the intended recipient is
> strictly prohibited. If you received this communication in error, please
notify the sender and delete the material from any and all computers or
devices.
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to