View previous topic :: View next topic
|
Author |
Message |
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi All,
This is in continuation with my previous post. Since this is kind of a different question, guessing this should be another post ...
My query is ... Is it possible to do a SEND TEXT or any kind of display to a specfic TERMINAL from a non-terminal task.
Like suppose I say, a task has been initiated using the START command and I know for sure a terminal , say T001, is active terminal for the CICS region. The STARTed task could be
1. associated with T001 itself
2. associated with some other terminal
3. not associated with any other terminal (START done without TERMID option)
Is it possible to send a message ( using SEND TEXT preferrably ) to the T001 terminal itself. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Binop,
If the task that's attempting to issue SEND TEXT API's is not attached to a terminal, then the most straightforward method is to START another task, using the TERMID option (the target terminal).
IIRC, if a task is not assigned to a termid, then there was a rather "different" method of issuing SEND API's to a designated termid, via the ROUTE API. But it's been a while since I've seen or done it this way.
Bill |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi Bill,
Thanks a lot again...
Will look into the ROUTE API to do the display... will post the results soon ... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Is it possible to do a SEND TEXT or any kind of display to a specfic TERMINAL from a non-terminal task. |
You are starting down a very risky path, IMHO. In these days of dynamic terminal allocation and deallocation, what happens to your task (and the region) when you attempt to send a message to a terminal that is not even defined to the CICS region at the time? What happens if that terminal is allocated to a data entry clerk -- will that person know what to do when the data input function is interrupted by your message? Will that person even SEE the message or will the person just hit the ENTER key hit to get to the next input screen?
If you have not done so, you REALLY need to talk to your CICS support person (or group) about exactly what you are attempting to accomplish and get some assistance in determining the best way to accomplish your goal. |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi Robert,
Apologies if I gave the wrong idea ...
While posting the query I had just mentioned it as a random terminal. The actual scenario is am initiating a task, which based on a CWA variable might create one or more STARTed tasks to do the necessary processing. The output from all this should come to the terminal from where the first task was initiated. Was planning to send the Terminal ID to the new tasks and then use it there to ROUTE the messages back to the main terminal.
Hi Bill,
Made the ROUTE API to work to send a message to a TERMINAL which is not associated with the task.... .. Thanks a ton again ... Need to now fine tune and see if the same fits for my client system .. |
|
Back to top |
|
|
|