How do I configure Autosys so I can submit jobs on CA7
search cancel

How do I configure Autosys so I can submit jobs on CA7

book

Article ID: 186263

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent Autosys Workload Automation

Issue/Introduction

What configuration steps are required when I want Autosys to submit jobs to CA7.

Environment

Release : 11.3.6 12.0 12.0 SP1 and 12.1

Component : CA Workload Automation AE

Resolution

When you want to submit jobs from Autosys to a CA7 system, CCI needs to be installed on your Autosys environment.

Please follow below steps.

1. define your mainframe in CCI

    cd $CAIGLBL0000/cci/config/<hostname>ccirmtd.prf
    add following REMOTE statement into this file after LOCAL statement

example:

LOCAL = hostname1.xxx.yyy.zzz hostname1.xxx.yyy.zzz.net 32768 startup ALIAS=HOST1
REMOTE = <hostname_CA7.xxx.yyy.zzz> <CCI_SYSID> 32768 startup PORT=nnnn

          Note: CA7MVS is being used as CCI_SYSID further in this article

2. in $AUTOUSER/config.<instance> , set following parameter

CrossPlatformScheduling=2

3.  Recycle both Autosys and CCI services
 
4.. Check on your mainframe if you see in started task CCITCPGW if connection has been successfully made with your Autosys box
 
11.08.56 STC00069  CAS9855I Task 1 has connection from <autosys_hostname>(xxx.yyy.zzz.nnn)
11.08.57 STC00069  CAS9603I - CAICCI CA7MVS     CONNECTED TO CAICCI <autosys_hostname>
 
5. Create a machine definition in Autosys for CA7
 
example:

insert_machine: CA7MVS
type: u
node_name: <CCI_SYSID>

           where <CCI_SYSID> must correspond with the second value in the REMOTE statement of ccirmtd.prf  (example CA7MVS)

6. Define a job in Autosys

example:

insert_job: CA7_Job1    job_type: CMD
command: TESTCA7
machine: CA7MVS
owner: <ca7_user>
description: "Demand job TESTCA7 in CA7"


7. In CA7, define a job TESTCA7 thru panel DB.1

8. Create member TESTCA7 in the corresponding JOBLIB

example

000001 //TESTCA7X  JOB '82500000','XPS - UNIX TO MVS',
000002 //         CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
000003 //STEP1    EXEC PGM=IEFBR14

9. sendevent -E STARTJOB -J CA7_Job1

10. Execute 'autosyslog -e' (=$AUTOUSER/out/event_demon.<instance>) to verify if job ran successfully 


[03/11/2020 07:13:36]      CAUAJM_I_40245 EVENT: FORCE_STARTJOB   JOB: CA7_Job1
[03/11/2020 07:13:36]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: STARTING        JOB: CA7_Job1      MACHINE: CA7MVS
[03/11/2020 07:13:36]      CAUAJM_I_10073 AutoSys --> Cross Platform Interface: machine=CA7MVS    job_name=CA7_Job1
[03/11/2020 07:13:51]      CAUAJM_I_40263 EVENTU: JOBINITU        JOB: CA7_Job1
[03/11/2020 07:13:51]      CAUAJM_I_40263 EVENTU: JOBTERMU        EXITCODE: (0)/(0)       JOB: CA7_Job1
[03/11/2020 07:13:52]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: RUNNING         JOB: CA7_Job1      MACHINE: CA7MVS
[03/11/2020 07:13:52]      CAUAJM_I_40245 EVENT: CHANGE_STATUS    STATUS: SUCCESS         JOB: CA7_Job1      MACHINE: CA7MVS       EXITCODE:  0

11. in CA7, you can run following command to verify if job ran successfully.


LJOB,JOB=TESTCA7
JOB=TESTCA7                                           DATE=20.071    PAGE 0001
 
  JOB    ----JCL----   SYSTEM  USR MAIN PROSE  SCHED  --NUMBER OF-   LAST-RUN
  NAME    ID  MEMBER   -NAME-  -ID -ID- DSNBR  DSNBR  STP DDS RUNS   DATE/TIME
 
TESTCA7 000 TESTCA7          000 ALL  *NONE* *NONE* 001 000 0262  20071/1114