IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to design a calender using cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sobana

New User


Joined: 11 Nov 2006
Posts: 3

PostPosted: Sun Mar 25, 2007 10:10 am
Reply with quote

Hi,

Can any one explain me how to design a calender using COBOL
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Mar 25, 2007 10:32 am
Reply with quote

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
View user's profile Send private message
sobana

New User


Joined: 11 Nov 2006
Posts: 3

PostPosted: Sun Mar 25, 2007 12:20 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Mar 25, 2007 2:25 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top