You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature or enhancement request related to a problem or limitation? Please describe
In order to issue consecutive TSO commands on the same address space using Zowe CLI, I need to issue the first command, copy the address space, then send additional data/commands using subsequent Zowe CLI commands and using the address space from my initial command. This workflow is a bit counterintuitive for somebody using Zowe CLI in a terminal and makes it difficult to respond to TSO prompts, work with REXX scripts, etc.
Describe your enhancement idea
Add a command to the zowe zos-tso command group that starts a looping prompt that:
Creates an address space
Allows the user to enter data/commands
Sends the data/commands to TSO
Gets any output from TSO and prints it to stdout in the terminal
Repeats 2-4 until the user issues an interrupt (ctrl+c)
Stops the address space
Describe alternatives you've considered
No alternative exists within Zowe CLI. Users could build a script to do this kind of thing.
Provide any additional context
As a temporary solution, for those interested in a sample Python script (tested on Windows with Python 3.12) that provides this kind of interactive TSO behavior:
importsubprocessimportshlex# Note: Zowe CLI must be running in daemon mode# Execute a console command defined by the cmd parameter and returns the command output (stdout)defissue_cmd(cmd: str) ->str:
returnsubprocess.run(shlex.split(cmd), stdout=subprocess.PIPE).stdout.decode('utf-8').strip()
# Initialize a TSO address spacekey=issue_cmd("zowe tso start as --sko")
if(key!=''): # Confirm that we have an address space keytry:
while(1): # Loop until we receive a keyboard interrupt (CTRL+C)print(issue_cmd('zowe tso send as '+key+' --data "'+input('> ') +'"'))
exceptKeyboardInterrupt:
print('Got keyboard interrupt. Stopping address space...')
issue_cmd('zowe tso stop as '+key) # Stop the address spaceelse:
print('Failed to initialize TSO address space. Exiting...')
The text was updated successfully, but these errors were encountered:
Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.
Is your feature or enhancement request related to a problem or limitation? Please describe
In order to issue consecutive TSO commands on the same address space using Zowe CLI, I need to issue the first command, copy the address space, then send additional data/commands using subsequent Zowe CLI commands and using the address space from my initial command. This workflow is a bit counterintuitive for somebody using Zowe CLI in a terminal and makes it difficult to respond to TSO prompts, work with REXX scripts, etc.
Describe your enhancement idea
Add a command to the
zowe zos-tso
command group that starts a looping prompt that:Describe alternatives you've considered
No alternative exists within Zowe CLI. Users could build a script to do this kind of thing.
Provide any additional context
As a temporary solution, for those interested in a sample Python script (tested on Windows with Python 3.12) that provides this kind of interactive TSO behavior:
The text was updated successfully, but these errors were encountered: