In ILE Cobol you can:

77 w-giorno        pic  9(1) value zero.  

 ACCEPT w-giorno from DAY-OF-WEEK       
 display " today is " w-giorno     
         ".th day of the week".   

Good luck. 

        Domenico Finucci

-----Messaggio originale-----
Da: Riyadi, Agus [mailto:Agus.Riyadi@xxxxxxx]
Inviato: mercoledì 20 luglio 2005 13.23
A: COBOL Programming on the iSeries/AS400
Oggetto: [COBOL400-L] Day of the week

Hi All,

Could some one help me.
How to retrive 'Day of the week' in COBOL ? 
In CL there is a statement to retrive this (RTVSYSVAL  SYSVAL(QDAYOFWEEK)
RTNVAR(&SDAYOFWEEK)), but I don't know the declaration for this return

Agus R


The information in this email (and any attachments) is confidential. 
If you are not the intended recipient, you must not use or disseminate the
If you have received this email in error, please immediately notify me by
"Reply" command 
and permanently delete the original and any copies or printouts thereof. 
Although this email and any attachments are believed to be free of any virus
other defect that might affect any computer system into which it is received
and opened, 
it is the responsibility of the recipient to ensure that it is virus free
and no responsibility 
is accepted by American International Group, Inc. or its subsidiaries or
affiliates either 
jointly or severally, for any loss or damage arising in any way from its
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.