Page 1 of 1

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

PostPosted: Sun Sep 05, 2010 12:58 pm
by isai_22
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.

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

PostPosted: Sun Sep 05, 2010 6:14 pm
by Robert Sample
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.