I don't recall anything built-in, but...
Here is an I-type expression that will strip everything except hexadecimal
notation characters from @RECORD:
@RECORD; CONVERT('0123456789ABCDEF', '', @1); CONVERT(@2, '', @1)
Change @RECORD to some other field as desired.
If you really want to create an ICONV/OCONV function, you can do that too if
you are using UniVerse.
Something like this:
FUNCTION UXXXX( STATUS, VALUE, TYPE )
IF TYPE THEN
* ICONV()
TEMP = CONVERT('0123456789ABCDEF', '', VALUE)
RESULT = CONVERT(TEMP, '', VALUE)
END ELSE
* OCONV()
RESULT = VALUE
END
STATUS = 0
RETURN (RESULT)
END
Catalog as $XXXX and use as the conversion in the dictionary as UXXXX.
Best regards,
Henry Unger
Hitech Systems, Inc.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jacques G.
Sent: Thursday, September 03, 2009 11:43 AM
To: U2 Users List
Subject: [U2] Looking for an OCONV/ICONV
Is there an OCONV/ICONV I could use to filter out characters invalid for an
hexadecimal notation ? Ei anything other than 01234567890ABCDEF ? I had a
cheat sheet for special ICONV/OCONV statements but I've seemed to have
misplaced it.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users