Package examples.zostso
Class IssueTsoCommand
- java.lang.Object
-
- examples.ZosConnection
-
- examples.zostso.IssueTsoCommand
-
public class IssueTsoCommand extends ZosConnection
Class example to test tso command functionality.- Version:
- 1.0
- Author:
- Frank Giordano
-
-
Field Summary
-
Fields inherited from class examples.ZosConnection
hostName, password, userName, zosmfPort
-
-
Constructor Summary
Constructors Constructor Description IssueTsoCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Main method defines z/OSMF host and user connection, and tso command parameters used for the example test.static IssueResponse
tsoConsoleCmdByIssue(String accountNumber, String cmd)
Issue issueTsoCommand method from IssueTso class which will execute the given tso command
-
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
Main method defines z/OSMF host and user connection, and tso command parameters used for the example test.- Parameters:
args
- for main not used- Throws:
Exception
- error processing request
-
tsoConsoleCmdByIssue
public static IssueResponse tsoConsoleCmdByIssue(String accountNumber, String cmd) throws Exception
Issue issueTsoCommand method from IssueTso class which will execute the given tso command- Parameters:
accountNumber
- user's z/OSMF permission account numbercmd
- tso command to execute- Returns:
- issue response object
- Throws:
Exception
- error processing request
-
-