Hi Williams,

I think the routine should be written like this:

    SUBROUTINE TEST.DATES
    $INSERT I_COMMON
    $INSERT I_EQUATE

    CALC.DATE = '20101102'
    DAY.STR = OCONV(ICONV(CALC.DATE,"D2"),'DWA')

    PRINT DAY.STR

END


That system should return TUESDAY because the OCONV should be used on
a D2 format

Regards
Mahmoud Elhawary


On Nov 9, 10: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