You are on page 1of 7

CA7 COMMANDS

CA7 Commands used frequently :

1. lq ==> list all the jobs in the queue.


if you need more specific info, ie list only the jobs u need, say
eg: GTB

lq,job=gtb*
By giving this you can know whether the job is the ready queue or is
it waiting for any resource or like that

LQ
LIST= DATE=01.150
PAGE 00

JOB QUEUE CA-7 -DAY(DDD) AND TIME(HHMM)-- CPU SCH ENTRY MSTR
JOB
NAME NAME JOB# DEADLINE SUB/START DUE-OUT SPEC/RUN ID MODE REQ
STATUS

GCP05BKP REQ 7635 143/0021 143/0225 143/0110 ALL-ANZH 001 SSCN 001
R-C0008
GTBAREND REQ 4258 145/2024 *NONE* 145/2032 ALL- 001 AUTO 009
LATE
GTBASEND REQ 4259 145/2024 *NONE* 145/2032 *NOEX* 001 AUTO 002
LATE
GTBASINI REQ 4290 145/2046 *NONE* 145/2054 ALL- 001 AUTO 001
LATE

2. xqm,job=gtb*

list all job which came in the queue.

-------------- CA-7 QUEUE MAIN


F-JOBNAME---J--I--E--U--N-SHJV
GTBAREND 9 . . . .
GTBASEND 2 . . . .
GTBASINI . . . . . H
GTBITEND . . . 1 .

in this the job GTBASINI is in hold. if you want to release it , put


" r" in the left most side of the job.

3. to restart the job, "f" in the left most side and then use the
appropriate option.

4. to cancel the job, enter "c" on the left most side.

3. ljob,job=g3zarip,list=all
It will give information about which job is triggering this job ,
which jobs will be triggered by this and what are dependencies.

4. FSTRUC,JOB=JOBNAME
It will give whole flow of jobs taking jobname mentioned above at
top of the hirarchy.

5. XQ,JOB=JOBNAME
CA7 COMMANDS

It will display job if that job is went in queue ie that is goin


gto run once it’s dependency is finished.
6. RUN,JOB=JOBNAME
It is going to run job independently.

7.RUNH,JOB=JOBNMAE
It will put job in queue with hold so you can do jcl edit ie u can
give file override etc before running that.

8.DEMAND,JOB=JOBNAME
It’s same as RUN except it also initiate the jobs which are being
triggered by this.

9.DEMANDH,JOB=JOBNAME
It is same as DEMAND except it put the job in queue with hold so
that you can do jlc edit , file overide etc.

10.LJCL,JOB=JOBNAME
It will display the jcl of that job.

How to put hold on job


There are two ways to put a hold on the Job in CA-7. One is through the "JOB" command
and the other is through the "JOBCONN" command.
It is always preferable to put a hold through the "JOBCONN" command as we can add some
information as to why the job is on hold and whom should be contacted before releasing the
hold.

Method I:

Type "Job" on CA7.


Type the job for which the hold needs to be put.
Put a "Y" on the field "Hold".

FUNCTION: UPD (ADD,DELETE,DD,DELPRRN,FORMAT,LIST,UPD)


JOB: GDBARDL1
GENERAL: SYSTEM: GDB JOBNET: OWNER: UID:
61

JCL: ID: 255 MEMBER: GDBARDL1 RELOAD: X EXEC: Y RETAIN-JCL:


N
LIB: &IGC
REQUIREMENTS: HOLD: Y JCL-OVRD: N USE-OVRD-LIB: N VERIFY: N MAINT: Y
SATISFACTION LEAD-TIME: JOB: 0 DSN: 0 ARFSET:

EXECUTION: MAINID: ALL INSERT-RMS: Y COND-CODE: 0 RO: LT


DONT SCHEDULE -- BEFORE: 00000 0000 AFTER: 99999 0000

MESSAGES: LTERM: REQUIREMENT-LIST: Y PROMPTS: N


ERROR MSGS -- RQMTS NOT USED: Y DSN NOT FOUND: Y

RESOURCES: REGION: 2048 CLOCK-TIME: 0021 CPU-TIME: 00147


CLASS: PRTY: 000 MSGCLASS: S
TAPE DRIVES...TYPE1: 000 M 000 C TYPE2: 000 M 000 C

PROGRAM: SM20 MSG-INDX: 00 -- DB.1 -- 01.130 / 13:41:19


MESSAGE: UPD SUCCESSFUL
CA7 COMMANDS

Method II:

Type "JOBCONN,USR" in the command line in CA7.


Type "List" in function and the "JOB name" in "PRED FOR JOB" field. This will list all the
jobconn holds that are active for this job.
Type "UPD" in function and the "JOB name" in "PRED FOR JOB" field. Then type "A" in
"OPT" and the comments indicating the reason for the hold in the field "*--- MEMO-FORM
USER PREDECESSOR ---* ".

--------------------- CA-7 USER MEMO-FORM PREDECESSORS


---------------------
FUNCTION: UPD (FORMAT,LIST,UPD)
PAGE 0001
PRED FOR JOB: GDBAROL1 LIST-SCHID:
OPT SCHID *--- MEMO-FORM USER PREDECESSOR ---* NEXT-RUN
A CICSGD0 AROC FIRST OPTION YES

What to do when u need to run job


from override ……..
If the requirement is to run a job from the override just once then put a "Y" in the field "USE-
OVRD-LIB".
By doing this CA7 does the following:

• Picks up the JCL from the override library for the next run only.
• Resets the value of the field "USE-OVRD-LIB" to a "N".
• Deletes the JCL from the override library.

------------------------- CA-7 CPU JOB DEFINITION


--------------------------
FUNCTION: LIST (ADD,DELETE,DD,DELPRRN,FORMAT,LIST,UPD)
JOB: GCIARDL1
GENERAL: SYSTEM: VISION JOBNET: OWNER: UID:
61

JCL: ID: 255 MEMBER: GCIARDL1 RELOAD: N EXEC: Y RETAIN-JCL:


N
LIB: &GCP
REQUIREMENTS: HOLD: N JCL-OVRD: N USE-OVRD-LIB: Y VERIFY: N MAINT: Y
SATISFACTION LEAD-TIME: JOB: 0 DSN: 0 ARFSET:

EXECUTION: MAINID: ALL INSERT-RMS: Y COND-CODE: 0 RO: LT


DONT SCHEDULE -- BEFORE: 00000 0000 AFTER: 99999 0000

MESSAGES: LTERM: REQUIREMENT-LIST: Y PROMPTS: N


ERROR MSGS -- RQMTS NOT USED: Y DSN NOT FOUND: Y

RESOURCES: REGION: 2048 CLOCK-TIME: 0059 CPU-TIME: 00422


CLASS: PRTY: 000 MSGCLASS: S
TAPE DRIVES...TYPE1: 000 M 001 C TYPE2: 000 M 000 C

PROGRAM: SM20 MSG-INDX: 00 -- DB.1 -- 01.135 / 11:22:17


CA7 COMMANDS

MESSAGE: LIST SUCCESSFUL

This way we can just make the change once and forget about it (we don't need to reset the
job to run from normal after the first run).

If you want to hold a Job which has already


in CA-7 queue

In the event that you are unable to perform a JOBCONN hold, try this

In CA7 type this command


ADDRQ,JOB= jobnumber, USR=comments

How to add jobs in triggering list ie if a triggers b then how u define


it

go to ca7
type SCHD

then u will get following screen

--------------------------- CA-7 SCHEDULING MENU -------------


FUNCTION ===>

DATE/TIME SCHEDULING FOR:


1 - CPU JOB
2 - INPUT NETWORK
3 - OUTPUT NETWORK

TRIGGER SCHEDULING FOR:


4 - JOB TRIGGERING OTHER CPU JOB(S)
5 - INPUT NETWORK TRIGGERING CPU JOB(S)
6 - DATA SET TRIGGERING CPU JOB(S)

OTHER FUNCTIONS AVAILABLE:


7 - MODIFICATION TO RESOLVED SCHEDULE DATES
8 - BASE CALENDAR MAINTENANCE

type 4 in front of function line

then u will get following screen

--------------------------- CA-7 JOB TRIGGERING ----------------


FUNCTION: (FORMAT,LIST,UPD)
JOB:
OPT SCHID TRGD-JOB TRGID DOTM QTM LDTM SBTM *---- EXCEPTIONS

Give function and job name


For example
--------------------------- CA-7 JOB TRIGGERING ------
FUNCTION: LIST (FORMAT,LIST,UPD)
JOB: G6ZAROL3
OPT SCHID TRGD-JOB TRGID DOTM QTM LDTM SBTM *----
CA7 COMMANDS

000 G6ZAR4A1 0100


000 G6ZAR5A 0100
000 G6ZAR6A1 0100
000 G6ZAR7A1 0100
000 G6ZAR7C1 0100
000 G6ZAR8A 0100
000 G6ZAR8B 0100
000 G6ZAR8C 0100
000 G6ZAR8D 0100

to add do like below and press enter


FUNCTION: upd (FORMAT,LIST,UPD)
JOB: G3ZAROL3
OPT SCHID TRGD-JOB TRGID DOTM QTM LDTM SBTM *---- EXCEPTIO
000 G3ZAR4A1 0100
000 G3ZAR5A 0100
000 G3ZAR6A1 0100
000 G3ZAR7A1 0100
a g3zar7c1 0100

to add job in batch ie if job is not found in


ca7

type job in ca7


following screen will come
------------------------- CA-7 CPU JOB DEFINITION
---------------------
FUNCTION: (ADD,DELETE,DD,DELPRRN,FORMAT,LIST,UPD)
JOB:
GENERAL: SYSTEM: JOBNET: OWNER: UID:

JCL: ID: MEMBER: RELOAD: EXEC: RETAIN-JCL:


LIB:
REQUIREMENTS: HOLD: JCL-OVRD: USE-OVRD-LIB: VERIFY: MAINT:
SATISFACTION LEAD-TIME: JOB: DSN: ARFSET:

EXECUTION: MAINID: INSERT-RMS: COND-CODE: RO:


DONT SCHEDULE -- BEFORE: AFTER:

MESSAGES: LTERM: REQUIREMENT-LIST: PROMPTS:


ERROR MSGS -- RQMTS NOT USED: DSN NOT FOUND:

RESOURCES: REGION: CLOCK-TIME: CPU-TIME:


CLASS: PRTY: MSGCLASS:
TAPE DRIVES...TYPE1: M C TYPE2: M C

PROGRAM: SM20 MSG-INDX: 00 -- DB.1 -- 01.220 / 11:48:32


MESSAGE: ENTER FUNCTION, TRANSFER OR ENTER A COMMAND ON THE TOP LINE
CA7 COMMANDS

Select function and job name and press enter


For example
------------------------- CA-7 CPU JOB DEFINITION
----------------------
FUNCTION: ADD (ADD,DELETE,DD,DELPRRN,FORMAT,LIST,UPD)
JOB: G3ZNBMO3
GENERAL: SYSTEM: G6Z JOBNET: OWNER: UID:
61

JCL: ID: 255 MEMBER: G3ZNBMO3 RELOAD: X EXEC: Y RETAIN-JCL:


N
LIB: &GCP
REQUIREMENTS: HOLD: N JCL-OVRD: N USE-OVRD-LIB: N VERIFY: N MAINT: Y
SATISFACTION LEAD-TIME: JOB: 0 DSN: 0 ARFSET:

EXECUTION: MAINID: ALL INSERT-RMS: Y COND-CODE: 1 RO: LT


DONT SCHEDULE -- BEFORE: 00000 0000 AFTER: 99999 0000

MESSAGES: LTERM: REQUIREMENT-LIST: Y PROMPTS: N


ERROR MSGS -- RQMTS NOT USED: Y DSN NOT FOUND: Y

RESOURCES: REGION: 2048 CLOCK-TIME: 0003 CPU-TIME: 00004


CLASS: PRTY: 000 MSGCLASS: S
TAPE DRIVES...TYPE1: 000 M 000 C TYPE2: 000 M 000 C

PROGRAM: SM20 MSG-INDX: 00 -- DB.1 -- 01.220 / 11:56:00


MESSAGE: ADD SUCCESSFUL, DEFAULTJOB USED FOR DEFAULT VALUES

if requirment is to be added
go to ca7

type JOBCONN

Following screen will come :


------------------- CA-7 JOB PREDECESSOR/SUCCESSOR MENU ----
FUNCTION ===>

EXECUTION REQUIREMENTS DEFINED BY:


1 - DATA SET PREDECESSORS
2 - CPU JOB PREDECESSORS OR
MUTUALLY EXCLUSIVE JOBS (CAN NOT RUN AT SAME TIME)
4 - INPUT NETWORK PREDECESSORS OR
OUTPUT NETWORK SUCCESSORS
6 - USER MEMO-FORM PREDECESSORS
7 - REPORT IDS CREATED

select fuction 4
following screen will come
--------------------- CA-7 INPUT/OUTPUT NETWORK TASKS
----------------------
FUNCTION: (FORMAT,LIST,UPD)
PAGE 0001
TASK FOR JOB: LIST-SCHID:
OPT SCHID LEADTM NETWORK SUB-ID NWK-SCHID DESCRIPTION NEXT-RUN

Type function and job and press enter


CA7 COMMANDS

--------------------- CA-7 INPUT/OUTPUT NETWORK TASKS


----------------------
FUNCTION: lIST (FORMAT,LIST,UPD)
PAGE 0001
TASK FOR JOB: G6ZARSAV LIST-SCHID:
OPT SCHID LEADTM NETWORK SUB-ID NWK-SCHID DESCRIPTION NEXT-RUN