CA WA ESP error message "ESP2582E MEMBER 'jobname' NOT FOUND IN DATA SET 'dsn'"
search cancel

CA WA ESP error message "ESP2582E MEMBER 'jobname' NOT FOUND IN DATA SET 'dsn'"

book

Article ID: 4345

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

A CA WA ESP job gets submit error, and the following error messages are found in the ESP started task job log:

    ESP2578I MESSAGE FROM EVENT 'cyber.event1',LOGON,USER= 

    ESP2582E MEMBER ''myjobx'' NOT FOUND IN DATA SET 'hlq.sysa.jcllib',LOGON,USER= 

 

Sample application: 

APPLY myapp    

JCLLIB 'hlq.sysa.jcllib'   

 JOB myjoba

   RUN WORKDAYS

   RELEASE ADD(myjobb)

 JOB myjobb

  RUN WORKDAYS

  RELEASE ADD(myjobx) 

 JOB myjobx

  RUN WORKDAYS

  DATASET 'hlq.sysb.jcllib'

 ENDJOB

 EXIT 

 

Environment

Release: ENCWLA00200-11.4-Workload Automation-Restart Option-EE
Component:

Cause

CA WA ESP did not use the jcllib on the DATASET statement of myjobx.  It used the global JCLLIB statement  which does not contain member myjobx.  

Root cause: missing ENDJOB statement for JOB myjoba, and myjobb .    

 

Resolution

Add the missing ENDJOB statements.  The correct coding is as follows:

  APPLY myapp    

  JCLLIB 'hlq.sysa.jcllib'   

  JOB myjoba

    RUN WORKDAYS

    RELEASE ADD(myjobb)

  ENDJOB

  JOB myjobb

    RUN WORKDAYS

    RELEASE ADD(myjobx) 

  ENDJOB 

  JOB myjobx

    RUN WORKDAYS

    DATASET 'hlq.sysb.jcllib'

 ENDJOB

 EXIT 

 

Additional Information

Missing ENDJOB statement(s) may cause various problems during the application processing mode.  Usermod 190 may be turned on to enforce correct syntax of JOB/ENDJOB, and IF/THEN/ELSE/DO/ENDDO constructs in ESP procedures.

If Usermod 190 is activated, the event will fail to build, and generate the following error messages:

  ESP0528E ERROR OCCURRED PROCESSING EVENT esp.event1

  ESP0190E ENDJOB missing for job 'jobname'