I concur with Simon. An OCONV works on an internal date and converts
it to external form. The 20101102 is therefore being treated as
internal form, 20 thousand or so days on from day 1.

On Nov 9, 8:57 pm, Williams <[email protected]> wrote:
> I need help regarding the piece of code below:
>
>     SUBROUTINE TEST.DATES
>     $INSERT I_COMMON
>     $INSERT I_EQUATE
>    
>     CALC.DATE = '20101102'
>     DAY.STR = OCONV(CALC.DATE,'DWA')
>
>     PRINT DAY.STR
>
> END
>
> The system returns SUNDAY. I expect this to be TUESDAY because 20101102 is
> Tuesday.
>
> Anybody with idea please.
>
> Williams

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to