calendar

Command:

CALENDAR

Syntax:

CALENDAR USING <year-input> <month-input>.

Description:

The CALENDAR command displays a calendar for a given year year-input and month month-input. The year-input and month-input should be numeric values; if they are variables, their variable declarations must have numeric picture clauses. Any fractional component to year-input or month-input will be ignored, e.g., a year-input of 1957.75 will be processed as 1957.

CALENDAR does not support pre-Julian calendar dates, i.e., any date prior to August 1752.

Example Usage:

CALENDAR USING 2001 1.

CALENDAR USING year_var month_var.

See Also:

GETCALENDAR

Sample Program:

CALENDAR.CBL