Class IssueTso


  • public class IssueTso
    extends Object
    Class to handle issue command to TSO
    Version:
    1.0
    Author:
    Frank Giordano
    • Constructor Detail

      • IssueTso

        public IssueTso​(ZOSConnection connection)
        IssueTso constructor
        Parameters:
        connection - connection information, see ZOSConnection object
    • Method Detail

      • issueTsoCommand

        public IssueResponse issueTsoCommand​(String accountNumber,
                                             String command)
                                      throws Exception
        API method to start a TSO address space, issue a command, collect responses until prompt is reached, and terminate the address space.
        Parameters:
        accountNumber - accounting info for Jobs
        command - command text to issue to the TSO address space.
        Returns:
        issue tso response, see IssueResponse object
        Throws:
        Exception - error executing command
      • issueTsoCommand

        public IssueResponse issueTsoCommand​(String accountNumber,
                                             String command,
                                             StartTsoParams startParams)
                                      throws Exception
        API method to start a TSO address space with provided parameters, issue a command, collect responses until prompt is reached, and terminate the address space.
        Parameters:
        accountNumber - accounting info for Jobs
        command - command text to issue to the TSO address space.
        startParams - start tso parameters, see startParams object
        Returns:
        issue tso response, see IssueResponse object
        Throws:
        Exception - error executing command