Yes, but the following note is from the Query syntax section of the reference 
manual:

 "The QUERY command does not support sending the results of the query to
 an output data set; however, it does support extended consoles. Using
 TSO/E extended consoles, you can submit programs that can issue a     
 console command, such as a QUERY, and get the results back for        
 interpretation. DFSMShsm provides a sample REXX program called        
 QUERYSET in SYS1.SAMPLIB(ARCTOOLS). For more details, refer to".

 so your ODS parameter would be giving you errors.
      
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 2:05 PM
To: [email protected]
Subject: Re: DFHSM QUESTION - RUNNING QUERY COMMAND IN BATCH

Can I run the QUERY command in batch?

--- On Thu, 13/8/09, O'Brien, David W. (NIH/CIT) [C] <[email protected]> 
wrote:


From: O'Brien, David W. (NIH/CIT) [C] <[email protected]>
Subject: Re: DFHSM QUESTION - RUNNING QUERY COMMAND IN BATCH
To: [email protected]
Received: Thursday, 13 August, 2009, 3:51 AM


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



      
__________________________________________________________________________________
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

Reply via email to