0% found this document useful (0 votes)
184 views12 pages

How To Create TSA Service and Test It

This document provides instructions for creating and debugging a batch routine and service in TSM: 1. Create a batch routine and associated program and batch records to cater to requirements. 2. Create a TSA.Service record with a work profile defining the number of agents, which should be more than one for multi-threaded services and one for single-threaded. 3. Clear relevant queues and start the TSM service and newly created service to run and debug the batch routine, using the tRun command to specify the agent number.

Uploaded by

Zareen Zia Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views12 pages

How To Create TSA Service and Test It

This document provides instructions for creating and debugging a batch routine and service in TSM: 1. Create a batch routine and associated program and batch records to cater to requirements. 2. Create a TSA.Service record with a work profile defining the number of agents, which should be more than one for multi-threaded services and one for single-threaded. 3. Clear relevant queues and start the TSM service and newly created service to run and debug the batch routine, using the tRun command to specify the agent number.

Uploaded by

Zareen Zia Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

1. Create a batch routine which will cater ur requirement.

2. Now create PGM.File record of ur routine like below

3. Now create its BATCH like below

4. Now create TSA.Service record, you need to provide work profile here where you will define no
of agents. If your service will be multi-threaded, ur agents should be more than one and for
single threaded service, one agent is enough.
5. Now for testing in debug mode, compile ur batch routine with debug.
6. From classic, stop TSM service and your service.
Service is already stopped.
7. Now take another classic session by alt+D and open DBT here. DBT > JQL
8. Now clear queues by following commands:
CLEAR-FILE F.TSA.STATUS
CLEAR-FILE F.OFS.REQUEST.DETAIL
CLEAR-FILE F.OFS.MESSAGE.QUEUE
CLEAR-FILE F.OFS.RESPONSE.QUEUE
Clear other queues as well.
9. Now, start the TSM and you service.
10. Now run TSM from below command,
TRUN START.TSM –DEBUG
See your service is running on agent 15.
11. Now run agent 15 to debug ur service with below command
tRun tSA 15

My service was stopped on TSM as no data was found in routine selection criteria so I again start
it after updating the data and a new agent is assigned to it which is 21

Now you can debug ur service from here.

You might also like