You can use the following code to test a TIP transaction:
public
class TipTransaction
{
public static void main(String args[])
{
Trans_Legacy tx = new Trans_Legacy();
try
{
String input = "<enter the transaction
input here>";
byte[] txInput = input.getBytes();
byte[] txOutput = tx.callTrans(txInput);
TipAllDataBufferWrapper wrap = new TipAllDataBufferWrapper(txOutput);
System.out.print(wrap.getBuffer());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
Replace "<enter the transaction input here>" with the TIP input transaction parameter.
txOutput produces the output in byte[] format.
Pass the txOutput as a parameter to auto generated TIP transaction wrapper class. For example, the class TipAllDataBufferWrapper is an auto generated wrapper class.
getBuffer() returns transaction output in String format. You can use getters and setters methods for Java variables to view the corresponding COBOL record values.