View previous topic :: View next topic
|
Author |
Message |
sobana
New User
Joined: 11 Nov 2006 Posts: 3
|
|
|
|
Hi,
Can any one explain me how to design a calender using COBOL |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
While your request looks straight forward, it actually covers a lot of ground.
What kind of calendar do you want to create? Will this calendar actually be a set of "rules" (i.e - it knows when are holidays, "end-of-month" cutoffs, counts business days by skipping weekends, etc..). Do you want to present the months as a "block" that shows which dates fall on which day of the week (like the calendar you see when you right-click on the time on the bottom-right corner of your pc and select "adjust date/time").
If you describe what tasks your calendar will be used for, we should be able to offer suggestions.
Also, if you consider your calendar as though you were going to use it with pencil and paper, you will discover the kinds of information that will make your calendar work. Knowing how you will use the result will help design it. Depending on just want you want, completing the definition will go a long way towards implementation. |
|
Back to top |
|
|
sobana
New User
Joined: 11 Nov 2006 Posts: 3
|
|
|
|
Hi,
Thanks for your reply.I need to design a calender in Batch mode like our desktop calender ie (like the calendar you see when you right-click on the time on the bottom-right corner of your pc and select "adjust date/time"). |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
It is better to provide too much detail rather than not much at all. . .
Wnat do you want to provide or use as input? Current date? Some other date? A range of dates?
Do you want to print a report that looks like the calendar on the pc? If so, do you want one month on a page or ?
If this is a training exercise, an easy way to proceed is to specify the day-of-the-week your calendar begins on and the starting date. If you want to show the year, you will specify that as input too. You might also look into the newer date functions available in cobol.
Once you determine your starting date, the calendar may be build using arrays - one to build the calendar "vertically" and another to produce the output horizantally. How you build the output array(s) will depend on how you want the output to appear on the page. |
|
Back to top |
|
|
|