hands-on tws v1 0

Post on 22-Oct-2014

133 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

IBM Tivoli Workload Scheduler for z/OSfor Schedulers

- Global Framework Team

Friday Apr 22 , 2009

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

3

How to create new APPLICATION in TWS

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

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.

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.

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

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.

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)

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.

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.

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.

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…)

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.

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…)

15

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

Steps to set internal dependency…(Contd…)

16

Screen shot showing 4 more internal dependencies.

Steps to set internal dependency…(Contd…)

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

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…)

19

Select the job on which there is dependency and press F3

Steps to set external dependency (contd…)

20

Screen showing external dependency

Steps to set external dependency (contd…)

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…)

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

23

Enter the work station name and press enter

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

24

Select the work station and press Enter

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

25

Select the destination

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

26

Enter the V command above to vary work station status

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

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..)

28

Work station with updated status

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

29

Load the Application in the CURRENT PLAN

Type 5.1 to load the Applications in the TWS.

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..)

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..)

32

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

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

33

Fill the application ID field

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

34

How to monitor any batch / job

Go to option 5.3 from TWS menu

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.

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)

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.

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”

39

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

Type ‘MR’ in order to release the job.

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”.

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.

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.

43

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

Type ‘B’ against the job

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

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..)

46

Error handling

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

47

Error handling (contd..)

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

48

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

currently use.

Error handling (contd..)

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..)

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..)

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.

52

Error handling (How to Force complete a job)

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

53

JCL variable table

Go to option 9

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

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…)

56

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

JCL variable table (contd…)

57

Steps to create JCL variable table

In order to create the table, go to option 2

58

Steps to create JCL variable table

Type Create to create the variable table.

59

Steps to create JCL variable table

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

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.

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

62

How to cancel the batch (Contd..)

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

63

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

How to cancel the batch (Contd..)

64

top related