When I call this stored procedure it does not return results. What is wrong?

Database
Highlighted
Fan

When I call this stored procedure it does not return results. What is wrong?

The stored procedure is more complex than this. However I need this to work in order to go forward with this project. I successfuly deploy it in Teradata, however when I call it, it does not return result. 

 

public class CCLR extends MyConnectionProvider {
static Connection clm = MyConnectionProvider.getCon();
static CallableStatement cStmt;
final static String GetCC = "CALL CC(?,?,?)";

 

public static void cCLR(String pcc, String pc, String ccls, ResultSet[] answer1)
throws ClassNotFoundException, SQLException {
cStmt = clm.prepareCall(GetCC);
cStmt.setString(1, pcc);
cStmt.setString(2, pc);
cStmt.setString(3, ccls);
boolean hasResults = cStmt.execute();
if (hasResults) {
ResultSet rs = cStmt.getResultSet();
answer1[0] = rs;
}
}

}

 

call sqlj.replace_jar('CJ!/ceud/jarCCLR.jar','jarIdCCLR');

 

REPLACE PROCEDURE "CCR" (
IN "pcc" VARCHAR(256),
IN "pc" VARCHAR(256),
IN "ccls" VARCHAR(256))
DYNAMIC RESULT SETS 1
LANGUAGE JAVA
READS SQL DATA
PARAMETER STYLE JAVA
EXTERNAL NAME 'jarIdCCLR:jxsp.CCLR.cCLR(java.lang.String,java.lang.String,java.lang.String)';