Via Universal Connector, run ABAP program RFKK_MA_SCHEDULER; submit a Universal Connector job to initiate, monitor, and return output from the mass activity. The sample job illustrated in the following figure will accomplish this using the variant created in Step 2. USPPRC - JCL Procedure, shown below this JCL, is the procedure used to execute the JCL.
USPJRMS - JCL
Panel |
---|
//USPVRMS JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//*****************************************************************
//* Description
//* -----------
//* This sample will:
//* 1. Initiate a mass activity (via ABAP RFKK_MA_SCHEDULER).
//* 2. Monitor the mass activity (including interval jobs) to
//* completion.
//* 3. Return output from the initiator job and all interval jobs.
//*
//* The parameter set used for the mass activity is specified in
//* the variant passed to RFKK_MA_SCHEDULER. In this case, we are
//* using variant SBX1.
//*
// JCLLIB ORDER=#SHLQ.UNV.SUNVSAMP
//*
//STEP1 EXEC USPPRC
//JOBDEF DD *
/* Job Header statement. */
JOBNAME = "RFKK_MA_SCHEDULER_SBX1";
/* ABAP Step statement. */
ABAP_STEP = "STEP 1"
ABAP_PROGRAM_NAME = "RFKK_MA_SCHEDULER"
VARIANT_NAME = "SBX1";
//SYSIN DD *
-dest CF5
-client 800
-userid sapuid
-pwd sappwd
-sub VARDEF
-start
-mawait
/* |
See SYSIN Options for USPJRMS JCL, below, for a description of the configuration options used in this JCL.
Anchor |
---|
| USPPRC - JCL Procedure |
---|
| USPPRC - JCL Procedure |
---|
|
USPPRC - JCL Procedure
Panel |
---|
//USPPRC PROC UPARM=, -- USAP options
// SAPRFC=USPRFC00, -- SAP RFC member
// USAPPRE=#SHLQ.UNV,
// USAPPRD=#PHLQ.UNV
//*
//PS1 EXEC PGM=USAP,PARM='ENVAR(TZ=EST5EDT)/&UPARM'
//STEPLIB DD DISP=SHR,DSN=&USAPPRE..SUNVLOAD
//*
//UNVNLS DD DISP=SHR,DSN=&USAPPRE..SUNVNLS
//UNVRFC DD DISP=SHR,DSN=&USAPPRD..UNVCONF(&SAPRFC)
//UNVTRACE DD SYSOUT=*
//*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//CEEDUMP DD SYSOUT=* |