When I am choosing an AS400 job default library list,a database table is getting locked while querying that table through SQLContext.Is there a way of querying that table without creating a lock or remove the lock after the query is over? or what is the solution?

code:
context.getSQL();
RowCollection rc = (RowCollection)context.execute();
context.clear();
return rc;