Top Banner
IBM Tivoli Workload Scheduler for z/OS for Schedulers - Global Framework Team Friday Apr 22 , 2009
64
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hands-on TWS V1 0

IBM Tivoli Workload Scheduler for z/OSfor Schedulers

- Global Framework Team

Friday Apr 22 , 2009

Page 2: Hands-on TWS V1 0

2

Topics How to create new APPLICATION in TWS How to add job in application Modify and copy an application Steps to set internal dependency Steps to set external dependency How to make Work station as offline/Active How to load the Application in the CURRENT PLAN for execution How to monitor any batch / job How to put manual hold/release on Job How to edit JCL in TWS How to restart a JOB Error handling Force complete a job Steps to create JCL variable table How to cancel the batch

Page 3: Hands-on TWS V1 0

3

How to create new APPLICATION in TWS

Step 1. Type M.TWS in ISPF Primary Option Menu and press ENTER

Page 4: Hands-on TWS V1 0

4

How to create new APPLICATION in TWS (contd….)

Then use option 1 to reach TIVOLI WORKLOAD SCHEDULER menu. Option 1 is for Development subsystem where all our development will take place.

Page 5: Hands-on TWS V1 0

5

How to create new APPLICATION in TWS (contd….)

“TIVOLI WORKLOAD SCHEDULER” menu. This is the main menu in

which we are going to use most of the options.

Page 6: Hands-on TWS V1 0

6

How to create new APPLICATION in TWS (contd….) Application means a bunch of jobs grouped together. Application can be created in two ways: -

1. Create a new Application

2. Copy from an existing Application

1. Type 1 from TWS menu for creating a new APPLICATION

Page 7: Hands-on TWS V1 0

7

How to create new APPLICATION in TWS (contd….)

Write the details of the Application to be created like APPLICATION ID, TYPE should be A. Set PRIORITY as 5, give Owner and authority group ID and write OPER in the Command line. All the fields filled below are the mandatory fields (except for the TEXT fields which need to filled.

Page 8: Hands-on TWS V1 0

8

How to create new APPLICATION in TWS (contd….)1. Copy from an existing Application

In order to copy an application from an existing application, then go to LIST (option 3)

Page 9: Hands-on TWS V1 0

9

How to create new APPLICATION in TWS (contd….)

The following screen appear. Give the application name from which you want to copy. You can give the whole name or partial name.

Page 10: Hands-on TWS V1 0

10

How to create new APPLICATION in TWS (contd….)

Type Create if you want to create a new application. You can also modify, copy , delete applications from here. Type the appropriate options as mentioned.

Page 11: Hands-on TWS V1 0

11

How to add job in application

Enter work station name operator id and job name. Here the Workstation id is DMMY, operator id is 001 and the job /

operation is DAR0FST.

Page 12: Hands-on TWS V1 0

12

DARG0FST and DARG0LST are dummy jobs. These jobs are used to ensure the beginning and completion of the Application successfully. These jobs are always have DMMY workstation. The operator id of first and last job should be 001 and 255 and rest operation can have operator id with a gap of 10.

You can add jobs by putting R against the row (below the Row cmd) in order to repeat the rows.

How to add job in application…(Contd…)

Page 13: Hands-on TWS V1 0

13

Steps to set internal dependency

Dependency between two job in the same application is referred as internal. As shown in the Screen shot internal dependency can be set by using operator id. Job DARG0AB1/2/3 has the internal dependency on first dummy job. DARGLST has dependency on all the above job.

Page 14: Hands-on TWS V1 0

14

If the number of internal dependency is more than 8 use S.1 row command and press enter

Steps to set internal dependency…(Contd…)

Page 15: Hands-on TWS V1 0

15

Enter either operation ID or Operation name and press enter and F3.

Steps to set internal dependency…(Contd…)

Page 16: Hands-on TWS V1 0

16

Screen shot showing 4 more internal dependencies.

Steps to set internal dependency…(Contd…)

Page 17: Hands-on TWS V1 0

17

Steps to set external dependency

Dependency between two job present in different application is referred as external. Use row command S.1 in front of job for which external dependency needs to be set up

Page 18: Hands-on TWS V1 0

18

n the next screen enter the application ID to select the operation from that application OR enter the operation name and press enter.

Steps to set external dependency (contd…)

Page 19: Hands-on TWS V1 0

19

Select the job on which there is dependency and press F3

Steps to set external dependency (contd…)

Page 20: Hands-on TWS V1 0

20

Screen showing external dependency

Steps to set external dependency (contd…)

Page 21: Hands-on TWS V1 0

21

Screen showing one external dependency for job DARG0AB1. The number ‘1’ in the column Morepreds Ext indicates that there is 1 external dependency for that job.

Steps to set external dependency (contd…)

Page 22: Hands-on TWS V1 0

22

How to make Work station as offline/Active Workstations define both - the type of work we are running, and where it runs. defines what the operation is, a job, a started task, a system automation

command, etc.. and where it is to be processed. Each workstation supports only one type of activity and each operation in an application is related to one workstation

Use option 5.5 from main menu

Page 23: Hands-on TWS V1 0

23

Enter the work station name and press enter

How to make Work station as offline/Active (Contd..)

Page 24: Hands-on TWS V1 0

24

Select the work station and press Enter

How to make Work station as offline/Active (Contd…)

Page 25: Hands-on TWS V1 0

25

Select the destination

How to make Work station as offline/Active (contd…)

Page 26: Hands-on TWS V1 0

26

Enter the V command above to vary work station status

How to make Work station as offline/Active (contd..)

Page 27: Hands-on TWS V1 0

27

Write ‘O’ or ‘F’ or ‘A’ in the ‘NEW STATUS’ field and ‘R’, ‘L’, or ‘E’ in the ‘STARTED OPERATIONS’ field as applicable and press ‘F3’.

How to make Work station as offline/Active (contd..)

Page 28: Hands-on TWS V1 0

28

Work station with updated status

How to make Work station as offline/Active (contd..)

Page 29: Hands-on TWS V1 0

29

Load the Application in the CURRENT PLAN

Type 5.1 to load the Applications in the TWS.

Page 30: Hands-on TWS V1 0

30

Enter application name and press enter. The fields mentioned below are the mandatory fields. The Automatic DEP and RESOLVE REQUIRED fields should be Y if we want the application to look for any external dependencies. The default values are ‘N’, but we should keep it as ‘Y’.

Load the Application in the Current plan (contd..)

Page 31: Hands-on TWS V1 0

31

Press enter three times till it reaches to deadline time. TWS will automatically pick up the current date, Current time and deadline date. Enter deadline time as 23.59 and press F3. All the applications should have the same input arrival time if you want those applications to look for the external dependencies.

Load the Application in the Current plan (contd..)

Page 32: Hands-on TWS V1 0

32

To check whether the application is loaded properly, type 5.3 in the main menu.

Load the Application in the Current plan (contd..)

Page 33: Hands-on TWS V1 0

33

Fill the application ID field

Load the Application in the Current plan (contd..)

Page 34: Hands-on TWS V1 0

34

How to monitor any batch / job

Go to option 5.3 from TWS menu

Page 35: Hands-on TWS V1 0

35

How to monitor any batch

The following screen will appear. If you know the job name, you may give the operation name, else you may give D* or P* or as applicable. You may also give the application name to see all the jobs under that application.

Page 36: Hands-on TWS V1 0

36

How to monitor any batch

We have provided D*, so we are now able to see all the jobs starting with D. You can see all the jobs that are currently executing and their status ( E – Error, C – Completed, W – Waiting, Etc)

Page 37: Hands-on TWS V1 0

37

How to put manual hold/release on Job

The following job is in waiting status (Status is W i.e. waiting). Type ‘MH’ against the job.

Page 38: Hands-on TWS V1 0

38

How to put manual hold/release on Job (contd..)

The job / operation is now held. The operation HOLD flag is changed from ‘N’ to ‘Y’. Also the message appears “Operation Held”

Page 39: Hands-on TWS V1 0

39

How to put manual hold/release on Job (contd..)

Type ‘MR’ in order to release the job.

Page 40: Hands-on TWS V1 0

40

How to put manual hold/release on Job (contd..) The operation hold flag is changed from ‘Y’ to ‘N’. Also the message is

displayed “Operation Released”.

Page 41: Hands-on TWS V1 0

41

How to edit JCL in TWS

For doing any temporary changes, type ‘J’ in front of the job and edit the JCL for any changes required.

Page 42: Hands-on TWS V1 0

42

How to edit JCL in TWS

Do the changes and press F3 to save the changes else type cancel to discard all the changes.

Note: All the changes will be temporary changes. None of the lib would

be updated.

Page 43: Hands-on TWS V1 0

43

How to see the details of the job in execution in TWS

Type ‘B’ against the job

Page 44: Hands-on TWS V1 0

44

How to see the details of the job in execution in TWS (contd..)

The following screen will appear. You can go to different options to see the required details

Page 45: Hands-on TWS V1 0

45

For Example, if you want to see the immediate predecessor and successor of the particular job, then go to option 4.

Type P and S indicate whether it is a predecessor or a successor.

How to see the details of the job in execution in TWS (contd..)

Page 46: Hands-on TWS V1 0

46

Error handling

Type 5.4 from TWS main menu in order to see more options of error handling.

Page 47: Hands-on TWS V1 0

47

Error handling (contd..)

IF you know the job name or the application id , then mention it, else give *.

Page 48: Hands-on TWS V1 0

48

Select the layout. Here OPCESA is the standard layout that we

currently use.

Error handling (contd..)

Page 49: Hands-on TWS V1 0

49

You will be able to see all the jobs in error and their errors. Type Extend command to see the meaning of all the different options.

Error handling (contd..)

Page 50: Hands-on TWS V1 0

50

The following screen will appear. You can see the description of all the options. Now type SUPPRESS in order to come out of this.

Error handling (contd..)

Page 51: Hands-on TWS V1 0

51

Error handling (How to restart a JOB)

Type RC in front if the job in order to restart the job from a particular step.

Page 52: Hands-on TWS V1 0

52

Error handling (How to Force complete a job)

Type C in front if the job in order to force complete the job.

Page 53: Hands-on TWS V1 0

53

JCL variable table

Go to option 9

Page 54: Hands-on TWS V1 0

54

JCL variable table (contd…)

The following screen will appear. Enter the options as required.

1. To browse any existing table

2. To Create, modify , delete a table

3. To print the table

Page 55: Hands-on TWS V1 0

55

For Example, if you want to browse any table, then enter option 1. The following screen will appear. If you know the table name then enter the name, else type *. All the tables will be displayed. Type S in front of the table that that you want to see. Type S in front of the table that that you want to see.

JCL variable table (contd…)

Page 56: Hands-on TWS V1 0

56

You can see all the variables that are defined under that particular table.

JCL variable table (contd…)

Page 57: Hands-on TWS V1 0

57

Steps to create JCL variable table

In order to create the table, go to option 2

Page 58: Hands-on TWS V1 0

58

Steps to create JCL variable table

Type Create to create the variable table.

Page 59: Hands-on TWS V1 0

59

Steps to create JCL variable table

Enter the variable table name that you want to create and owner ID

Page 60: Hands-on TWS V1 0

60

Steps to create JCL variable table

The following screen will appear. Enter all the parameters as required – Variable table name, owner ID and description of the table. Enter the name of variable and their default value. The field value required should be Y.

Page 61: Hands-on TWS V1 0

61

How to cancel the batch

Make the work station offline (as explained earlier) and use option 5.2 from TWS main menu to list the application

Page 62: Hands-on TWS V1 0

62

How to cancel the batch (Contd..)

Enter the name of application or * to list down all the applications

Page 63: Hands-on TWS V1 0

63

Use option “D” to delete the application from current plan.

How to cancel the batch (Contd..)

Page 64: Hands-on TWS V1 0

64