JCL to execute a database query

Is it possible to execute a database query via JCL in microfocus? Please share a sample jcl.

Thanks