So I could use the exact same 'CHANGE' syntax on Universe, then?  That would
be ideal -- even though I'm only converting the one character -- so could
use CONVERT --  but if the same syntax will work as on UD then that's even
better!

Does this work with the exact same syntax? Where 
        NEWARRAY = CHANGE(OLDARRAY,SVM,VM)
Would change the char(252) to char(253) in the string 'OLDARRAY'


Thanks a mil,
Susan

-----Original Message-----
From: Georgia L. Pritchett [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 27, 2004 12:59 PM
To: U2 Users Discussion List
Cc: [EMAIL PROTECTED]
Subject: RE: Help on uv syntax, please[Scanned]

Actually CONVERT will only work to replace 1 character with 1 other
character (well, it's more complicated than that because you provide
a list of character to replace and another list of character to
use for replacement but it's positionally dependant).  It's
what I use for converting 1 single character to another single
character myself.

But the CHANGE function, which is available in Universe, is
more powerful since it can take a substring and convert
it to a different length substring.  So you convert all
the OUT's in your string to IN's.  

Georgia Pritchett

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Behalf Of Kishor Parmar
>
> 
> I use CONVERT expression1 TO expression2 IN variable
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Susan Joslyn
> Sent: 27 April 2004 17:48
> To: [EMAIL PROTECTED]
> Subject: Help on uv syntax, please
> 
> Hi.
> Anybody got the syntax for universe for changing one string to another
> in an
> array?  Mostly I use it for changing a subvalued field into a
> multivalued
> one.
> 
> In Unidata, for example, its
>       NEWARRAY = CHANGE(OLDARRAY,SVM,VM)
> 
> I'm looking for a similar function in universe.  
> 
 



-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to