This document guides you through the new installation of a z/OS agent.
The following guide describes how to install an agent in an AE system in which authentication is not used. Additional installation steps are required before the agent can be started and used if you intend to use one of the available authentication methods. More detailed information is provided in the document Advanced Security.
The necessary files are available in the directory IMAGE:AGENTS\MVS.
The CallAPI files and their implementation are described in a separate document.
|   | 1. | Transferring files to the host | 
|---|
|   | 2. | Creating the Load Library | 
|---|
//UC4LOAD JOB (ACCT#),'UC4USER',
// CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),NOTIFY=UC4USER
//*************************************************
//STEP01 EXEC PGM=IKJEFT01,DYNAMNBR=30
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
  PROFILE NOPREFIX
  RECEIVE USERID(UC4USER) 
 INDSN('MYDSN.UCXJ.WORK')
  DSNAME('UC4.UCXJM25.LOAD') 
 -
  UNIT(3390) VOLUME(??????)
/*
Alternately, you can create it as follows:
On the z/OS host:
TSO RECEIVE indsn('MYDSN.UCXJ.WORK')
Press Enter and type the following line: 
dsname('UC4.UCXJM25.LOAD')
|   | 3. | APF authorization for the Load Library | 
|---|
SETPROG APF,ADD,DSN=UC4.UCXJM25.LOAD, [SMS] [VOLUME=xxx]
|   | 4. | Creating the Started Task for the Agent | 
|---|
 Note that the agent requires rights for all data sets that it will use.
 Note that the agent requires rights for all data sets that it will use.
                 Ensure that the rights for OMVS are specified in the 
 user and default group.
 Ensure that the rights for OMVS are specified in the 
 user and default group.
                Use the STC user or any other user to start the AE jobs and/or file transfers.
Using the STC user for the complete execution:
The STC user requires access to all z/OS resources that are used in jobs and file transfers. This user must also be specified in the appropriate Login object. Users without a passwordA secret combination of characters for a Automation Engine user. (batch users) must be specified in the Login object with no password being indicated. The parameter askRACF in the agent's INI file must be set to "0" or "4" in order to deactivate the password verification.
Using different users:
An appropriate OMVS segment must be defined for all users in addition to the required resources in order to establish a TCP/IP connection to the Automation Engine. Specify the relevant Login object in the job attributes. If a batch user (user without a password) is used for the execution, the STC user requires a surrogate authorization for this particular user. In this case, specify the required user in the Login object without defining a password and deactivate the password verification (set the parameter ask RACF in the agent's INI file to "0" or "4" ).
//UC4RUN PROC
//UCEX EXEC PGM=UCXJM25,PARM='TRAP(OFF),HEAP(4M,4M,ANY,FREE)/UC4.UCXJM25.INI',
// REGION=4M,TIME=1440
//STEPLIB DD DISP=SHR,DSN=UC4.UCXJM25.LOAD
//SSTORE DD DISP=SHR,DSN=UC4.UCXJM25.SSTORE
//SYSPRINT DD SYSOUT=*
//STDOUT DD SYSOUT=*
//SYSCPRT DD SYSOUT=*
//JOBOUT DD SYSOUT=(A,INTRDR)
//SYSUDUMP DD SYSOUT=*
//*
 There is an alternative solution if you do not want 
 to interfere with your system as described above. You can specify the 
 LOAD library in the STEPLIB, but also in the C-environment's DD 
 card EDCMTF. Further information is available in the IBM documentation 
 - STEPLIB DD statement.
 There is an alternative solution if you do not want 
 to interfere with your system as described above. You can specify the 
 LOAD library in the STEPLIB, but also in the C-environment's DD 
 card EDCMTF. Further information is available in the IBM documentation 
 - STEPLIB DD statement. The DD statements for TCP/IP must also be included in the Include object MVS.JOBMD_DEFINITIONS. 
 Otherwise, the Job Messenger cannot open a TCP/IP connection and the jobs 
 will receive the status ENDED_VANISHED.
 The DD statements for TCP/IP must also be included in the Include object MVS.JOBMD_DEFINITIONS. 
 Otherwise, the Job Messenger cannot open a TCP/IP connection and the jobs 
 will receive the status ENDED_VANISHED. Transfer information for every dataset/file is stored as a record in the VSAM dataset. The size of the information record varies depending on the size of the dataset and file size. 260 bytes is an average size. The suggested space values are 10,5 cylinders = (10 + 15 * 5) * 849,960 bytes ~ 75.553 kilobyte, which should be enough for approximately 282k transfer entries.
 Transfer information for every dataset/file is stored as a record in the VSAM dataset. The size of the information record varies depending on the size of the dataset and file size. 260 bytes is an average size. The suggested space values are 10,5 cylinders = (10 + 15 * 5) * 849,960 bytes ~ 75.553 kilobyte, which should be enough for approximately 282k transfer entries.|   | 5. | Setting up the system environment | 
|---|
|   | 6. | Starting the Agent | 
|---|
|   | 7. | Quitting the Agent | 
|---|
|   | 8. | The Event Monitor as independent Started Task | 
|---|
Example:
//CRTEMDS 
  JOB ####,'XXX',NOTIFY=&SYSUID,MSGLEVEL=(1,1)
//* Create Datasets for UC4 EventMonitor
//UCFILTER EXEC PGM=IEFBR14
//UCFILTER  DD 
 DISP=(NEW,CATLG,CATLG),DSN=UC4.UCFILTER,
//        RECFM=VB,LRECL=1024,BLKSIZE=8192,SPACE=(CYL,(1,1))
//UCEVENT  EXEC 
 PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN    DD 
 *
  DEFINE - 
  CLUSTER ( -
  NAME(UC4.UCEVENT.VSAM) -
  INDEXED -
  VOLUMES(DSK30D) -
  TRACKS(1 1) -
  ) -
  DATA ( -
  NAME(UC4.UCEVENT.VSAM.DATA) -
  KEYS(20 0) -
  RECORDSIZE(1024 1024) -
  FREESPACE(10 5) -
  ) -
  INDEX ( -
  NAME(UC4.UCEVENT.VSAM.INDEX) -
  )
/*
Example:
//INITEMDS  JOB 
 ####,'XXX',NOTIFY=&SYSUID,MSGLEVEL=(1,1)
//INITVSAM  EXEC 
 PGM=IDCAMS
//SYSPRINT  DD 
 SYSOUT=*
//OUT1      DD 
 DISP=SHR,DSN=UC4.UCEVENT.VSAM
//SYSIN     DD 
 *
  REPRO INFILE(IN1) OFILE(OUT1)
//IN1       DD 
 *
DUMMY
/*
 Note that the RACF authorization READ is required in order to run the event monitor if the MVS Extended Console is protected.
 Note that the RACF authorization READ is required in order to run the event monitor if the MVS Extended Console is protected.
            |   | 9. | The External Job Monitor as independent Started Task | 
|---|
See also:
Agent - Interaction Between the Automation Engine and 
 z/OS
SMF Exit
Event Monitor
Automatic File-System Events
            
External Job Monitor