View previous topic :: View next topic
|
Author |
Message |
rajeshwarch
New User
Joined: 24 Mar 2008 Posts: 29 Location: mumbai
|
|
|
|
Hi everybody,
I have to setup a weekly job. In this program i need to read a file based on from and to dates. the from and to dates are the current week range. for example the job is running on 5th sep 2009(night batch cycle) the date range should be 1st sep 2009 to 5th sep 2009.
Thanks,
vijay |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
There is a link to manuals at the top of the page. Click on it, find the COBOL Language Reference manual, and read up on functions INTEGER-OF-DATE and DATE-OF-INTEGER. You can use them to achieve your goal. |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
Even if u search the forum you will find post regarding this |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Keep in mind that functions INTEGER-OF-DATE, DATE-OF-INTEGER, etc were not introduced until COBOL/370.
If your version/release of COBOL is either OS/VS COBOL or VS/COBOL II, then review the Callable Date routines available in Language Environment (LE).
Note that LE needs to have been loaded into your LPAR by your system's staff.
Bill |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|