We have two report names from the same jobname defined as below:
DDname Report ID
F=AUMA ABC #AUMA BP06
F=AUMA DEF #AUMA BP06
We are getting two copies of the same report with the ABC name and no reports with the DEF name.
The "no report" example:
Sel Sysout ID Arch Date
==> DEF #AUMA* *
************************************************
The duplicate report:
Sel Sysout ID Arch Date Time
==> ABC #AUMA* * *
ABC #AUMA BP06 ASMCOST ADT 06/25/2021 06:02
ABC #AUMA BP06 ASMCOST ADT 06/25/2021 06:01
It is suspected that Deliver selects the first match on jobname/form name, but why are 2 copies of the same report appearing under ABC and nothing under DEF?
Release : 14.0
Component : CA Deliver
The client was using only the form criteria (F=form_name in the DD field) in their Deliver job definition:
DDname Report ID
F=AUMA ABC #AUMA BP06 BLK CDS ADT
F=AUMB ABC #AUMB BP06 UOMCONV ADT
F=AUMA DEF #AUMA BP06 BLK CDS ADT
F=AUMB DEF #AUMB BP06 UOMCONV ADT
As such, Deliver was selecting the first match it found in the reports list for the job, which was always the first occurrence (the ABC reports).
As a result, there was never a match for the second occurrence (the DEF reports), so the content for the DEF reports were being processed as ABC reports.
To ensure proper processing, the client will modify the form name for the second copy and use multiple JCL OUTPUT statements.
This way, one DD can reference more than one form name and multiple outputs can be generated.