Package zostso

Class SendTso


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

      • SendTso

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

      • sendDataToTSOCollect

        public SendResponse sendDataToTSOCollect​(String servletKey,
                                                 String command)
                                          throws Exception
        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 to the TSO address space.
        servletKey - returned from a successful start
        Returns:
        response object, see ISendResponse
        Throws:
        Exception - error executing command
      • sendDataToTSOCommon

        public ZosmfTsoResponse sendDataToTSOCommon​(SendTsoParams commandParams)
                                             throws Exception
        API method to send data to already started TSO address space
        Parameters:
        commandParams - object with required parameters, see SendTsoParams object
        Returns:
        response object, see ZosmfTsoResponse
        Throws:
        Exception - error executing command
      • getAllResponses

        public CollectedResponses getAllResponses​(ZosmfTsoResponse tso)
                                           throws Exception
        Collects responses from address space until it reaches prompt
        Parameters:
        tso - object from first Tso response from witch responses are needed, see ZosmfTsoResponse
        Returns:
        CollectedResponses response object, see CollectedResponses
        Throws:
        Exception - error executing command