The QUERY command does have an ODS operand. Remove it and the output will go to SYSTSPRT.
-----Original Message----- From: John Dawes [mailto:[email protected]] Sent: Wednesday, August 12, 2009 10:26 AM To: [email protected] Subject: DFHSM QUESTION - RUNNING QUERY COMMAND IN BATCH Hi, I am trying to execute the following query command via a batch job. The reason for this is to create audit trails for our internal inspectors HSEND Q BACKUP(ALL). If the command is issued via TSO I get the desired results however via batch (jcl below) I am getting syntax errors //STEP001 EXEC PGM=IKJEFT01 //SYSPRINT DD SYSOUT=* //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * HSENDCMD LIST BACKUP(ALL) - ODS('PROM.BACKUP.ALL') /* // I tried substituing the LIST with QUERY. No luck. Any suggestions what else I can try? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

