What happens when the job name in the JCL does not match the data set member name?

Document ID : KB000055364
Last Modified Date : 14/02/2018
Show Technical Document Details

What happens depends on if USERMOD 25 is set or not

Example One without USERMOD 25 turned on

Application:
  APPL TEST
  JCLLIB 'CYBER.TEST.JCLLIB'
  JOB JOBA
   RUN DAILY
  ENDJOB
  
  JCL:
  //JOBB JOB (CYB1000),'TEST',
  //         MSGLEVEL=(1,1),MSGCLASS=X,CLASS=A
  //STEP01   EXEC PGM=IEFBR14
  Partial output from simulation of Event:
  JOB TYPE-JOBNAME--HC-RELEASES
  JOB      JOBA      0 (NONE)
          WARNING: NO JOB CARD FOUND FOR JOB JOBA
  Display of job from CSF:
      Job Name  Jobno Appl     AGen PNode    Status
      JOBA          - TEST        9 SUBERROR Error: Job JOBB submitted
     
  LA display from CSF when Event is triggered:
  LAP TEST.9 ALL
  APPL TEST     GEN 9
    CREATED AT 09.03 ON THURSDAY DECEMBER 30TH, 2004
            BY EVENT CYBER.TEST
    JOBA, Error: Job JOBB submitted
     ANTICIPATED END TIME: 09.03 ON THURSDAY DECEMBER 30TH, 2004
     PREDECESSORS: (NONE)
       SUCCESSORS: (NONE)
  ----- 1 ENTRY DISPLAYED
  
  NOTE THAT JOB JOBB IS SUBMITTED TO JES
  Message produced when JOB ran, seen in JESMSGLG of the ESP started task:
  NR54081E Unable to locate job JOBB for update in Appl TEST.9

Example Two with Usermod 25 applied (using the same application and JCL as above.

Display of job from CSF:
  Job Name  Jobno Appl     AGen PNode    Status
  JOBA          - TEST       10 SUBERROR Submit Error, Wrong job name
  LA display from CSF when Event is triggered:
  LAP TEST.10 ALL
  APPL TEST     GEN 10
    CREATED AT 09.13 ON THURSDAY DECEMBER 30TH, 2004
            BY EVENT CYBER.TEST
    JOBA, Submit Error, Wrong job name
     ANTICIPATED END TIME: 09.20 ON THURSDAY DECEMBER 30TH, 2004
     PREDECESSORS: (NONE)
       SUCCESSORS: (NONE)
  ----- 1 ENTRY DISPLAYED
  NOTE THAT JOB IS NOT SUBMITTED TO JES
  Message produced when JOB ran, seen in JESMSGLG of the ESP started task:
  NR542827E BAD JOB NAME JOBB     IN APPL, EXPECTED JOBA
  NR54544W JOB JOBB DELETED, WILL NEED RESUBMISSION

This Frequently Asked Question applies to all supported releases of ESP Workload Manager beginning with 5.4.