This is in the UD documentation for ICONV:
3 Invalid date for āDā conversion code only
and
3 Date was converted correctly, but month and day were inverted in input value.
Examples on UD 7.2:
Value to convert: ?1/31/2010
Conv Code: ?D4
OCONV: 1/31/2010 to 1/31/2010 Status: 1
ICONV: 1/31/2010 to 15372 Status: 0
Value to convert: ?1/13/2010
Conv Code: ?D4
OCONV: 1/13/2010 to 1/13/2010 Status: 1
ICONV: 1/13/2010 to 15354 Status: 0
Value to convert: ?13/1/2010
Conv Code: ?D4
OCONV: 13/1/2010 to 13/1/2010 Status: 1
ICONV: 13/1/2010 to 13/1/2010 Status: 3
Value to convert: ?13/1/2010
Conv Code: ?D4/DMY
OCONV: 13/1/2010 to 13/1/2010 Status: 1
ICONV: 13/1/2010 to 15354 Status: 0
The UD manual seems a little off - when I got the status = 3 I didn't get a
valid ICONV. Also it also states it ignores the "/DMY" on the ICONV - but using
it gives me the valid ICONV with a Status of 0.
hth
Colin Alfke
Calgary, Canada
> From: stevenson.chas
>
> For ICONV & OCONV the UV documentation says:
>
> The STATUS function reflects the result of the conversion:
> Value Description
> 0 The conversion is successful.
> 1 An invalid string is passed to the OCONV function;
> the original string is returned as the value of the conversion.
> If the invalid string is the null value, null is returned.
> 2 The conversion code is invalid.
> 3 Successful conversion of possibly invalid data.
>
> 0,1,2 ok.
> But:
> "3 Successful conversion of possibly invalid data." ? ! ?
>
> What's THAT?
> An example, anyone?
>
> tia,
> cds
>
> P.S. We're talking STATUS() *function*, not *statement*. There's a
> STATUS statement, but that's an entirely different animal.
_________________________________________________________________
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users