How On-Request works in ESP Workstation Director or CSF

book

Article ID: 224213

calendar_today

Updated On:

Products

CA Workload Automation ESP Edition

Issue/Introduction

We have Job setup as REQUEST, and need to know this works and UNREQUEST works.

LINUX_JOB TESTE10 REQUEST
   RUN daily
   AGENT AGTLNX_ECC
   SCRIPTNAME /tmp/xx.sh
   EARLYSUB 11:30
   RELEASE (TESTE20)
ENDJOB

 

Cause

The Job is setup correctly, but when it submits to the queue it will bypass when its submit time is ready unless you "Mark as Request"

Environment

Release : 12.0

Component : CA ESP WORKLOAD AUTOMATION

Resolution

Identify On-Request Job:

1. With applications, you can identify certain jobs as on-request and define their relationships to other jobs. The on-request jobs take their place in the schedule when they are selected. From the time you generate the application up to the time of job submission, you can use CSF or the APPLJOB command to request the job. If you have not explicitly requested the job, CA WA ESP Edition bypasses the job and treats it as a normal completion, releasing its successor jobs. To mark a job as on-request, use the REQUEST operand of the JOB statement.

2. By marking a job as on-request, you are not requesting the job, you are only making it eligible for explicit request through CSF or the APPLJOB command. You must first generate the application before you can request any of the application's on-request jobs. To allow users to request jobs, you can generate the application containing these jobs early in the morning and use submit time dependencies (for example, DELAYSUB statements) on the jobs with no predecessors so they are not submitted at the time CA WA ESP Edition generates the application.

Using LIM on Director:

1. AJ RQ1 APPL(TSTREQ.Gen#) REQUEST   (In Workstation Directory Right-Mouse click on Job and select "Request") This will set the job to Request and run.

See output after you Request:

APPL TSTREQ   GEN 10                                            
  CREATED AT 13.31 ON FRIDAY SEPTEMBER 17TH, 2021               
           BY EVENT DV893438.UNREQEST                           
  RQ1, HC=0                                                     
   ON REQUEST (REQUESTED)                                       
   SUBMISSION AT 01.15 ON SATURDAY SEPTEMBER 18TH, 2021         
   ANTICIPATED END TIME: 01.15 ON SATURDAY SEPTEMBER 18TH, 2021 
   PREDECESSORS: (NONE)                                         
     SUCCESSORS: RQ2                                    

Example:

APPL TSTREQ                    
NT_JOB RQ1 REQUEST             
RUN DAILY                      
AGENT DANIELV                  
CMDNAME C:\TEST_AGENT\DBAT.BAT 
EARLYSUB 01:15                 
RELEASE RQ2                    
ENDJOB                         

 

2,  The job is now "Requested" and will run on its normal scheduled or submit time.  (By default if you do not request, the job will be bypassed after its submit time)