IBM Z Workload Scheduler 9.5 - Creating the Long Term Plan and Current Plan
After defining the WorkStations, a calendar and an application (IBM Z Workload Scheduler 9.5 - Creating Workstations, Calendars and Applications), in this article we create the Long Term Plan and the Current Plan to run that application. The steps are very simple.
Long Term Plan
The Long Term Plan (LTP) is the long-term plan, built from the run cycles we have defined and the applications we created in previous posts. The long-term plan can cover several months and be changed later, adding or removing applications as needed.
From the TWS main panel, we go to option 2 - LTP.

We enter option 2 – Batch.

A message shows "LTP IS EMPTY", which means we have none yet. We create it with option 7 – Create.

I give it one year.

We type the job card for the job and press Enter. The job runs.
//CREALTP JOB CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),NOTIFY=&SYSUID,
// REGION=0M

Error EQQN032E when creating the LTP
It gives the following error:
EQQN032E UNABLE TO OPEN VSAM FILE EQQLTDS , VSAM RC = 0008, REASON = 0168
EQQN045E INCORRECT VSAM I/O REQUEST. DETAILED INFORMATION FOLLOWS:
EQQN045I ACTIVE TASK IS OPC/ESA BATCH . LOAD MODULE IS EQQLTCRE
EQQN045I I/O REQUEST IS FROM EQQLCLTP 20/10/20 17.36.06 UI73065 AT OFFSET +038
EQQN045I REQUESTED FUNCTION IS OPEN ON LOGICAL FILE LT , DDNAME EQQLTDS
EQQN045I ERROR CAUSE IS: PHYSICAL FILE IS NOT OPEN

The fix for errors EQQN032E and EQQN045E was to change parameter SUBSYS(CON) to the controller name (OPCC) in the BATCHOPT member (data set OPC.V950.PARM) and run the job again.

Now it ends successfully.


We go back to TWS and enter option 2 – LTP.

We check in the option that it was created correctly.


Current Plan
Now we create the Current Plan. We go back to the TWS main menu and enter option 3 – Daily Planning.

We enter option 2 – Extend.

We enter the hours the daily plan will be extended for. In my case, from 00:00 to 23:59.

If there is no job card for the job, we add one.

It ends successfully.


We enter TWS option 2.4 again and see the status of the Current Plan.

In option 5.2 we look for the applications that have been loaded.

Fix and rerun the job
Now we check the failed job of the application we created in previous tutorials. We enter option 5.4.

In LAYOUT ID we put OPCESA.

We type J to fix the job.

We change XGM to PGM. We press F3.

We rerun the job with the SJR command. Another panel appears, where we confirm with Y.


The job ends successfully.

In OPC all the operations show as completed.

We have now created the Long Term Plan and the Current Plan. We have also seen our test application run.
It ran correctly and, in the end, it was completed in the scheduler.