Jasi, Query command does NOT support ODS. If you are running in batch then the output will be directed to SYSTSPRT dd. so try this
//STEP0100 EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * your QUERY command /* Kolusu ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN