cobol code to find the day of the week and day of the year



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

cobol code to find the day of the week and day of the year

Postby isai_22 » Sun Sep 05, 2010 12:58 pm

Hi

Can someone help me to get the logic or in-built function in cobol to find the day of the week and day of the year.
isai_22
 
Posts: 5
Joined: Mon Jul 26, 2010 8:34 am
Has thanked: 0 time
Been thanked: 0 time

Re: cobol code to find the day of the week and day of the year

 

Re: cobol code to find the day of the week and day of the year

Postby Robert Sample » Sun Sep 05, 2010 6:14 pm

There is no built in function to do this in COBOL. However, you can easily do it with the Language Environment callable functions that are available to COBOL. Go to the IBM web site and find manual SA22-7562, Language Environment Programming Reference for your version of z/OS. This will give you the function names and parameters required to get the day of week and day of year.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post