Class SendTso


  • public class SendTso
    extends Object
    Class to handle sending data to TSO
    Version:
    4.0
    Author:
    Frank Giordano
    • Constructor Detail

      • SendTso

        public SendTso​(ZosConnection connection)
        SendTso constructor
        Parameters:
        connection - for connection information, see ZosConnection object
    • Method Detail

      • getAllResponses

        public CollectedResponses getAllResponses​(ZosmfTsoResponse tso)
                                           throws ZosmfRequestException
        Collects responses from address space until it reaches prompt
        Parameters:
        tso - object from the first Tso response from witch responses is needed, see ZosmfTsoResponse
        Returns:
        CollectedResponses response object, see CollectedResponses
        Throws:
        ZosmfRequestException - request error state
      • sendDataToTsoCollect

        public SendResponse sendDataToTsoCollect​(String servletKey,
                                                 String command)
                                          throws ZosmfRequestException
        API method to send data to already started TSO address space, but will read TSO data until a PROMPT is reached.
        Parameters:
        command - to send it to the TSO address space.
        servletKey - returned from a successful start
        Returns:
        SendResponse object
        Throws:
        ZosmfRequestException - request error state
      • sendDataToTsoCommon

        public ZosmfTsoResponse sendDataToTsoCommon​(SendTsoParams commandParams)
                                             throws ZosmfRequestException
        API method to send data to already started TSO address space
        Parameters:
        commandParams - object with required parameters, see SendTsoParams object
        Returns:
        ZosmfTsoResponse object
        Throws:
        ZosmfRequestException - request error state