Author Topic: arsdb in batch, sample to drop and create an index (and optionally runstats)  (Read 6161 times)

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1200
    • View Profile
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                     
//*   
#zOS #ODF

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1200
    • View Profile
#zOS #ODF