I am testing running batches with our CA7 r12. We have the entire database on the new release. I am having to put a hold on the scheduler so that jobs that would normally be scheduled don't try to run on the test ca7. But when we ran one of the test batches last night, ALL the jobs came in on hold and I had to release the hold on each job as it came into the queue. Is there a way that I can make triggered jobs not have a hold on them but still make it so that scheduled jobs never come into the queue?
You can start 7 with schedule scan turned off by changing the INIT statement to have RUNOPT=NSTA (instead of RUNOPT=SCAN). This way no jobs enter the queue via schedule scan, but you can DEMAND work and have it trigger--long story short--there is no way to have scanned jobs on hold but triggers not.
ok another question? Is there a way to delete an entire set of jobs in Ca7? like being able to delete all jobs that start with P1?
Nope—have to use full jobname in a DELETE or PURGE—you can use DBT with a LJOB,JOB=P1* to get a JOBDEL file that would have only P1 jobs in it
Principal Support Engineer
CA Technologies | 5465 Legacy Drive Suite 700 | Plano, TX 75024-3106
Office: +1 214 473 1859 | Mobile: +1 817 247 6844 | Mary.Redd@ca.com
P Please consider the environment before printing this e-mail.
And once you have the job information in a file, it's pretty straight forward to use either ISPF EDIT or SORT to create delete statements to run back into the CA-7 batch terminal. Something like:
//SYSIN DD *
These sort statements will take a r11.3 BTI Output(listed below) and format it as input to a BTI
//SYSIN DD *
OUTPUT OF SORT
****** ***************************** Top of Data
INPUT TO SORT
1BSTR-00 *** INPUT TO BATCH TERMINAL ***
/LOGON ******** * GENERATED LOGON *
/LOGOFF * GENERATED LOGOFF *
0BSTR-00 *** END OF INPUT ***
1 16056 131454 /LOGON ********
CA-7.023 - r11.3( ) OPERATOR IS LOGGED ON TO TERMINAL TBATCH7 AT 13:
- 16056 131454 LJOB,JOB=WXYZ*
JOB=WXYZ* DATE=16.056 P
JOB ----JCL---- SYSTEM USR MAIN PROSE SCHED --NUMBER OF- LA
NAME ID MEMBER -NAME- -ID -ID- DSNBR DSNBR STP DDS RUNS DA
WXYZBAT1 005 WXYZBAT1 OPER 000 ALL *NONE* *NONE* 001 006 0352 160
WXYZBAT2 005 WXYZBAT2 OPER 000 ALL *NONE* *NONE* 001 011 0042 153
WXYZBTI 005 WXYZBTI OPER 000 ALL *NONE* *NONE* 002 009 0496 160