List and Query are not the same command.
Thank You,
Dave O'Brien
NIH Contractor
________________________________________
From: IBM Mainframe Discussion List [[email protected]] On Behalf Of John
Dawes [[email protected]]
Sent: Wednesday, August 12, 2009 1:25 PM
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?
Thanks
__________________________________________________________________________________
Find local businesses and services in your area with Yahoo!7 Local.
Get started: http://local.yahoo.com.au
----------------------------------------------------------------------
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
----------------------------------------------------------------------
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