After you have added a terminal to CICS®, you can use on of the send methods to start a new transaction.
try { term.send("EP01",null); } catch (EPIException ex) { ex.printStackTrace(); }
You can also start a transaction by building a screen and sending it to CICS. Screen manipulation and fields are discussed in Accessing fields on CICS 3270 screens. The following example shows how to start a transaction using the Screen and Field objects:
try { Screen scr = term.getScreen(); Field fld = scr.field(1); fld.setText("EP01"); term.send(); } catch (EPIException ex) { ex.printStackTrace(); }