I’m not sure what this question is about so I’ll assume you are using some sort of program auto-install and want to check the CSD for duplicate entries before you allow the definition process to complete. I also assume you want to do this online.
According to the CICS Customization Guide, program DFHEDAP provides a programmable interface to CEDA. You can call DFHEDAP through an ordinary EXEC CICS LINK command passing a COMMAREA with five addresses in it.
The five addresses work as follows:
a. Address of the CEDA command in source form (e.g., “EXP GROUP(*) PROGRAM(DFHZATDY)”
b. Address of the halfword length of the above command.
c. Address of a flag indicating where the output should go.
d. Address of a buffer for the CEDA output
e. Address of the halfword length of the output buffer.
The down side is the output field is fairly complicated and prone to change. However, I would recommend using DFHEDAP before other alternatives such as reverse engineering the CSD’s record format or driving CEDA through the 3270 bridge.
For batch IBM provides utility DFHCSDUP. DFHCSDUP creates a lot of output, so you probably would want to post-process the report through a Rexx script that can boil it down to something useful.