Run Global Resolves for CA 7 Calendars

Document ID : KB000027968
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

How frequently should you perform Global RESOLV in CA 7?

Answer:

It is recommended that you do a CA 7 global RESOLV twice annually - at some point between January 01 and June 30, and again between July 01 and December 31 - after the next year's calendars have been built. Global RESOLVs should be done in batch (using the Batch Terminal Interface). The syntax for the command is:

RESOLV,OLDYR=*,TEST=NO,PRINT=YES/NO,SCAL=xx

The PRINT can be YES or NO. YES will cause a lot of output and you should be sure that the batchout data set is large enough to handle this. You do not have to put the SCAL parameter on the RESOLV command. If you leave this off, all base calendars are subject to the RESOLV command. Once again, this could cause a lot of output, so be sure that the batchout data set is large enough.

Note that you can also use the JOB= keyword with a generic value to control the scope of jobs to be included in a particular RESOLV command execution.

Always check the RESOLV output to be sure that all schedules have been resolved successfully.

Also be sure to check the RESOLV output for message 'SRC1-117 (W) ID MULTIPLE SCHEDULES AT LEAST ONE DAY'. This message indicates two or more SCHDIDs are scheduled to process on the same day. This message may indicate a scheduling error was made. You need to determine if the job should process multiple times on the same day. If it should, this is an informational message. If not, then you can add DUPDATE=YES to the RESOLV command to see what date(s) are duplicately scheduled so that the schedule can be corrected.

You can use the LSCHD command to determine if you have any expired schedules or if there are schedules that will expire after June 30 or December 31. Between January 1 and June 30, you can enter the following command to see any schedules that will expire July 1:

LSCHD,JOB=*,ST=JUL

OR to see schedules that will expire December 31, enter:

LSCHD,JOB=*,ST=JAN

There is also a command you can enter to see if you have any currently expired schedules:

LSCHD,JOB=*,ST=EXP

A RESOLV will remove any manual modification(s) done via the SCHDMOD panel to schedules. Before resolving schedules, you can do this command to see if any have been SCHDMODed:

LSCHD,JOB=*,ST=MOD

Base calendars are required for schedule resolution and can be generated through either batch or online facilities. To use the online facility (DB.2.8), a CA 7 calendar PDS must be allocated and identified to CA 7. See the CA 7 Systems Programmer Guide for information on enabling online calendar maintenance. Processing of base calendars for resolution of schedules is the same, regardless of whether they were generated using the batch or online facilities.  There is also a perpetual calendar option (PCAL) that will automatically generate new calendars when needed.

Calendars can also be generated in batch through the CA 7 CALENDAR macro. Macro keywords are used for calendar definition and the macro is assembled and link-edited using standard procedures. Base calendars are link-edited to the CA 7 LOADLIB or a specified calendar library, and are stored in the form of bit masks which represent available and unavailable processing days for the year. Each calendar defines a single year comprised of 12 months with a starting and ending year boundary that can be crossed only in the first or 12th month.

Use the PRINT command to produce a month-by-month listing of a calendar. PRINT produces output that reflects the beginning and ending days of each month, holidays or any other non-processing days that were defined when the calendar was produced. The PRINT command is described in the CA 7 Command Reference Guide.

Whenever a calendar-oriented processing schedule expires (at the end of June or the end of the year) or the scheduling frequency is redefined for any other reason, it again becomes necessary to resolve the schedule. Options on the RESOLV command are provided for resolving all or any subsets of those tasks scheduled with a single command.

Additional Information:

The RESOLV command is fully described in the CA 7 Command Reference Guide.

 

As always, please contact CA Technologies support for CA 7 if you have further questions.