Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to design a calender using cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to design a calender using cobol
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

Site Director


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

PostPosted: Sun Mar 25, 2007 10:32 am    Post subject:
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    Post subject: Re: design a calender using cobol
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

Site Director


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

PostPosted: Sun Mar 25, 2007 2:25 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Design of ISPF panel prino TSO/ISPF 2 Wed Jan 25, 2017 10:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us