Vous êtes sur la page 1sur 64

IBM Tivoli Workload Scheduler for z/OS for Schedulers - Global Framework Team

Friday Apr 22 , 2009

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

How to create new APPLICATION in TWS


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

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.

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.

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 Type 1 from TWS menu for creating a new APPLICATION

1.

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.

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)

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.

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.

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.

10

How to add job in application(Contd)


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.

11

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.

12

Steps to set internal dependency(Contd)


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

13

Steps to set internal dependency(Contd)


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

14

Steps to set internal dependency(Contd)


Screen shot showing 4 more internal dependencies.

15

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

16

Steps to set external dependency (contd)


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

17

Steps to set external dependency (contd)


Select the job on which there is dependency and press F3

18

Steps to set external dependency (contd)


Screen showing external dependency

19

Steps to set external dependency (contd)


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.

20

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

21

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


Enter the work station name and press enter

22

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


Select the work station and press Enter

23

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


Select the destination

24

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


Enter the V command above to vary work station status

25

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


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.

26

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


Work station with updated status

27

Load the Application in the CURRENT PLAN


Type 5.1 to load the Applications in the TWS.

28

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


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.

29

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


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.

30

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


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

31

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


Fill the application ID field

32

How to monitor any batch / job


Go to option 5.3 from TWS menu

33

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.

34

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)

35

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.

36

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

37

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


Type MR in order to release the job.

38

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.

39

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.

40

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.

41

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


Type B against the job

42

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

43

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


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.

44

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

45

Error handling (contd..)


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

46

Error handling (contd..)


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

currently use.

47

Error handling (contd..)


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.

48

Error handling (contd..)


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

49

Error handling (How to restart a JOB)


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

50

Error handling (How to Force complete a job)


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

51

JCL variable table


Go to option 9

52

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

53

JCL variable table (contd)


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.

54

JCL variable table (contd)


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

55

Steps to create JCL variable table


In order to create the table, go to option 2

56

Steps to create JCL variable table


Type Create to create the variable table.

57

Steps to create JCL variable table


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

58

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.

59

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

60

How to cancel the batch (Contd..)


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

61

How to cancel the batch (Contd..)


Use option D to delete the application from current plan.

62

63

Vous aimerez peut-être aussi