Querying a CSD VSAM file

Tags:
CSD VSAM
Mainframe
queries
How do i query a CSD VSAM file? This query is for the validation of the programs which we have already defined using ceda. If the same program name exists in the file it will throw an error message.
ASKED: October 16, 2008  5:22 PM
UPDATED: October 16, 2008  5:28 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following