On Wed, 22 Oct 2025 22:39:17 -0400, Joseph Reichman <[email protected]> 
wrote:

>What I am trying to do is send a tso test subcommand specifically the 
>qualify subcommand followed by the address and period and would 
>like to follow it with the code for the <enter key>

To restate your request, you want to issue TSO TEST commands from a program.

TPUT alone is not a solution. It sends a 3270 data stream which does not have 
access to attention keys (PF keys, enter key, PA keys, ...). The following are 
your choices.

1. TSO TEST is integrated into TSO environment which means the TSO STACK is 
integrated into TSO TEST. For assembler, I believe it's the STACK macro. 
Alternatively, REXX execs can be run from TSO TEST environment (e.g. %execname) 
allowing you to use PUSH "test-command to run". Remember, these stacked 
commands will only execute once control has been returned from the REXX exec.

2.  CL/Supersession scripts or TN3270 automation scripts. These have access to 
the 3270 screen and have the ability to send attention keys. Using TPUT, you 
send the command to the screen making sure the modified field has been set so 
that TSO will process it as the command. Alternatively, the script could copy 
the command and send enter but this would waste screen space.

3. TSO exits. While TSO TEST is active, exits could handle commands, 
subcommands or output.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to