Using CA Jobtrac Job Management r11 - How to forecast a SCL

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

Description:

CA Jobtrac JM 11.0 overview of how to forecast a SCL

Solution:

Things to kept in mind when running forecasts:

  • CA Datacom must be active.

  • CA Jobtrac JM must have been initialized.

  • If a forecast schedule is run for current date, late indicators can be posted to the event status.

  • Once a schedule is loaded to the forecast database, you can make changes through the ISPF interface.

  • All the events for a forecast token can be cleared off before schedule load. You can then start new, or you can load additional schedules.

  • If you attempt to specify the production database for a forecast, the forecast issues a message and terminates the forecast.

  • The forecast checkpoint looks and acts like the production schedule, but no events will submit.

You may get a report of SCL forecast for a date by running member FORECAST found in the CA Jobtrac JM SAMPJCL dataset.

You can use the member FORECAST in the SAMPJCL as a sample. The steps in this job perform the following operations:

  1. Run GJTRFCST, the forecast utility.

  2. Run GJTRJARC with options LIST,ALL to list out the jobs that are contained on the forecast checkpoint.

  3. Run the CA Easytrieve program GJTREZFC to report on the jobs on the forecast database.

Forecasting SCL uses the forecast database that was set up during the installation. (default, the database ID for this database is 0162 but may have been changed during the installation.

Only a single forecast database is allocated. Multiple users can use the same forecast database by using separate forecast tokens. Unlike tokens used in production, forecast tokens are used to separate forecast processing by different users or different forecasts by the same user. This allows for a single forecast database to service the needs of multiple users (A-Z, 0-7).

To simplify access when using a single forecast database, the default forecast database ID is defined in the FCSTDBID= parameter in the CA Jobtrac JM JOBTRA00 startup parameters in PPOPTION.

To forecast one or more schedules, run the GJTRFCST utility. For more information, see "GJTRFCST Utility" in the Schedule Creation Guide on page 348.

To access the forecast database:
You can use the FSWAP command in the ISPF online to swap between the production database and a specific forecast token on the forecast database.

For more information on the FSWAP command, see the Reference Guide.

        				CA-JOBTRAC r11 
COMMAND ===> fswap 1,0162                                     08/12/31   15:18
        Token: 7       DBID: 0161       JOBTRAC7 is active 
   
			Primary Commands 
RALL     -all events      ADD  -Add event           SYS OPTS -Global options 
J=evnm   -beg. w/ evnm    JTS  -Table services      SYS HOLS -Holiday calendars
K=status -w/ status       JCL  -Edit JCL            SYS CYCS -Cyclic calendars 
D=dep    -w/ deps         SCL  -Edit SCL            JCLTRAC  -JCL analysis 
B=bgname -in bus. grp.    OUT  -Sysout capture      ISERVE   -CA-GSS Editor 
T=hhmm   -by target time  GSO  -Generate schedules  EMAIL    -eMail Templates 
BUSGRP   -Business groups CPM  -Critical Path       FSWAP    -Forecast Swap  
 
       		 Scheduled Event Display Line Commands 
0 - CA-View sysout brwse I - Audit history        T - Create/Edit temp JCL 
A - Release dependencies L - Dependent jobstream  V - Volume pull list 
C - Cond code exceptions M - Manual actions       Y - CPM Info 
D - Delete event         O - Browse sysout        X - Resource dependency 
E - Edit JCL/SCL         P - Purge event          ? - View documentation 
F - Display DSN triggers Q - Sysview Jobsum       % - eMail List 
G - GSO                  R - Rerun/restart 
H - Event history        S - Select (detail) 

You can see forecast and the token you are using for forecasting '1' is token in this sample and the DBID=0162

       			    CA-JOBTRAC r11                SWAPPED FORECAST
COMMAND ===>                                                  08/12/31   15:22
  **FORECAST**        Token: 1       DBID: 0162       JOBTRAC7 is active 
 
     			 Primary Commands 
RALL     -all events      ADD  -Add event           SYS OPTS -Global options 
J=evnm   -beg. w/ evnm    JTS  -Table services      SYS HOLS -Holiday calendar
K=status -w/ status       JCL  -Edit JCL            SYS CYCS -Cyclic calendars
D=dep    -w/ deps         SCL  -Edit SCL            JCLTRAC  -JCL analysis 
B=bgname -in bus. grp.    OUT  -Sysout capture      ISERVE   -CA-GSS Editor 
T=hhmm   -by target time  GSO  -Generate schedules  EMAIL    -eMail Templates 
BUSGRP   -Business groups CPM  -Critical Path       FSWAP    -Forecast Swap 
   
     		Scheduled Event Display Line Commands 
0 - CA-View sysout brwse I - Audit history        T - Create/Edit temp JCL 
A - Release dependencies L - Dependent jobstream  V - Volume pull list 
C - Cond code exceptions M - Manual actions       Y - CPM Info 
D - Delete event         O - Browse sysout        X - Resource dependency 
E - Edit JCL/SCL         P - Purge event          ? - View documentation 
F - Display DSN triggers Q - Sysview Jobsum       % - eMail List 
G - GSO                  R - Rerun/restart 
H - Event history        S - Select (detail) 

To get back to the production database issue FSWAP PROD on the Jobtrac command line

           		          CA-JOBTRAC r11                    SWAPPED PROD
COMMAND ===> FSWAP PROD                                                 08/12/31   15:25
       Token: 7       DBID: 0161       JOBTRAC7 is active 
   
          		Primary Commands 
RALL     -all events      ADD  -Add event           SYS OPTS -Global options 
J=evnm   -beg. w/ evnm    JTS  -Table services      SYS HOLS -Holiday calendars
K=status -w/ status       JCL  -Edit JCL            SYS CYCS -Cyclic calendars 
D=dep    -w/ deps         SCL  -Edit SCL            JCLTRAC  -JCL analysis 
B=bgname -in bus. grp.    OUT  -Sysout capture      ISERVE   -CA-GSS Editor 
T=hhmm   -by target time  GSO  -Generate schedules  EMAIL    -eMail Templates 
BUSGRP   -Business groups CPM  -Critical Path       FSWAP    -Forecast Swap 
   
         		Scheduled Event Display Line Commands 
0 - CA-View sysout brwse I - Audit history        T - Create/Edit temp JCL 
A - Release dependencies L - Dependent jobstream  V - Volume pull list 
C - Cond code exceptions M - Manual actions       Y - CPM Info 
D - Delete event         O - Browse sysout        X - Resource dependency 
E - Edit JCL/SCL         P - Purge event          ? - View documentation 
F - Display DSN triggers Q - Sysview Jobsum       % - eMail List 
G - GSO                  R - Rerun/restart 
H - Event history        S - Select (detail) 

You can use the GJTRJARC archive utility to list the contents of the forecast. For more information, see the Reports, Maintenance, and Recovery Guide.

//LIST EXEC GJTRJARC,PARM='LIST,ALL,FORECAST=t'

You can use CA Easytrieve report GJTREZFC to report on the jobs in the forecast. For more information, see the Reports, Maintenance, and Recovery Guide.

Please see the Schedule Creation Guide Chapter 7 for additional information on forecasting.