In the JDBC request, i have executed query and data is is stored in variable names. e.g. Count and Index Name. I have written a script to print this is CSV in Beanshell processo