Did you receive an answer for this?
I am sitting here thinking about this an know that you can run a Batch Component Report from ACMQ that will write an Output to the ACMOUT DD statement could then be a temp dataset.
The input can be like
LIST USED COMPONENTS FOR
ELEMENT * ENVIRONMENT *
SYSTEM * SUBSYSTEM *
TYPE COBOL* STAGE NUMBER *
and a line output can be like this
MBR=mbr name DSN=dataset name. By the way the "PX - Print component information" from the Batch option 7 Print Element provides this also.
You could then have a REXX or PGM read the output file searching for the DSN's you need. The Member name is on the same line from the ACMOUT or the output of the PX option.
Now having said all of that you could consider use the original API SERVER Routine that was introduced when CA Work Bench came out about 20 years ago.
It is found on page 2330 of the current guide. This is an excerpt.
JCL to Execute ENTBJAPI-BC1JAAPI
The JCL in this section is distributed with CA Endevor Software Change Manager as member name BC1JAAPI in the
iprfx.iqual.CSIQJCL data set. This job shows how to execute program ENTBJAPI, found in member BC1JAAPI. This
program is distributed as a load module only.
REXX Procedure to Execute ENTBJAPI-ENTBRAPI
The REXX procedure illustrates how to call the API ENTBJAPI utility program from a REXX procedure. It is distributed
with CA Endevor Software Change Manager as member name ENTBRAPI in the iprfx.iqual.CSIQCLSO data set.
The JCL builds the control records required to produce a list of all the systems within an environment. You can modify
it to produce other types of data supported by the ENTBJAPI utility program. See the ENTBJAPI request record layout
information in Sample List Inventory Function Call - ENTBJAPI in this section.
If you used the Element Extract AEELM you can basically pull what you would see in a BX in ENDEVOR.
I ran a report and this information came out the "question marks" are where our member/element name is displayed.
COBOL .???????? SYSLIB
LKED .??????? SYSLMOD
COBOL .??????? DBRMLIB
COBOL .??????? SYSDEBUG
As mentioned before you could write a REXX or Program to extract the information you need and generate the output.
A great starting for a COBOL program is the age old CCIDRPT1 routine in the CSIQOPTN dataset.
I hope this helps.
CA Broadcom Consultant
Internal Revenue Service
Cell: (770) 595-8600
(TOD) Mon – Fri 7:45 AM - 4:15 PM Eastern
"Never forget, 'Some gave all, All gave some'"
"It is amazing what you can accomplish if you do not care who gets the credit", Harry S. Truman
Planned days away, 6/17 &18
So far, no, I have not raced any other suggestions. Unfortunately, PX is only input components, basically ACMq in batch, no output libs, and as you pointed out, AAELM and CSV print component list just parrot out BX report. So back to square one having to parse out component list, one line at a time until I hit the output section. Perhaps I'll submit an enhancement request. Thanks for the suggestions.
Karen Karen Turner Technical Support Sr. Specialist Endevor Support
Actually when I was looking at this yesterday I was thinking it would be a good enhancement request.
I would support it.