OnDemand User Group

Tips and Tricks => Tips and Tricks => Topic started by: Ed_Arnold on May 27, 2015, 03:58:04 PM

Title: arsdb in batch, sample to drop and create an index (and optionally runstats)
Post by: Ed_Arnold on May 27, 2015, 03:58:04 PM
JOB card, of course

The contents of '/ars/tmp/yes' is the letter y  ---- that's all.  It's to respond to the prompt.



//COMMENT  EXEC  PGM=IKJEFT01,REGION=0M,                         
//            DYNAMNBR=200                                       
//SYSPROC  DD  DSN=SYS1.SBPXEXEC,DISP=SHR                         
//*                                                               
//SYSTSPRT DD  SYSOUT=*                                           
//*                                                               
//SYSTSIN  DD  *                                                 
 oshell logger -d1 drop ARSRES index                             
/*                                                               
//DROPINDX EXEC PGM=BPXBATCH,REGION=0M,                           
// PARM='SH  /usr/lpp/ars/V9R0M0/bin/arsdb -I ARCH900 -efv ARSRES'
//*                                                               
//STEPLIB  DD DISP=SHR,DSN=DB2.V11R1M0.SDSNLOAD                   
//         DD DISP=SHR,DSN=DB2.V11R1M0.SDSNLOD2                   
//SYSPRINT DD SYSOUT=*                                           
//SYSOUT   DD SYSOUT=*                                           
//STDIN DD PATH='/ars/tmp/yes',PATHOPTS=(ORDONLY)                 
//STDERR   DD SYSOUT=*                                           
//STDOUT   DD SYSOUT=*                                           
//STDENV DD *                                                     
_BPXK_JOBLOG=STDERR                                               
/*                                                               
//CREATE   EXEC  PGM=IKJEFT01,REGION=0M,                         
//            DYNAMNBR=200                                       
//SYSPROC  DD  DSN=SYS1.SBPXEXEC,DISP=SHR                         
//*                                                               
//SYSTSPRT DD  SYSOUT=*                                       
//*                                                           
//SYSTSIN  DD  *                                             
 oshell logger -d1 create ARSRES index                       
 oshell /usr/lpp/ars/V9R0M0/bin/arsdb -I ARCH900 -rv ARSRES   
 oshell logger -d1   update statistics                       
 oshell /usr/lpp/ars/V9R0M0/bin/arsdb -I ARCH900 -mv         
 oshell logger -d1   ending ARSRES maint                     
//*   
Title: Re: arsdb in batch, sample to drop and create an index (and optionally runstats)
Post by: Ed_Arnold on November 25, 2015, 08:37:07 AM
How to set up STDIN, /ars/tmp/yes:

http://www.odusergroup.org/forums/index.php?topic=690.0 (http://www.odusergroup.org/forums/index.php?topic=690.0)