Using the programmable interface to CEDA
The resource definition online (RDO) transaction, CEDA has a programmable interface that you can use to invoke the functions provided by RDO from an application program.
The CSD update batch utility program DFHCSDUP and the EXEC CICS CSD commands are the preferred methods to examine and amend CSD files. DFHCSDUP can be used to update CSD files in bulk. DFHCSDUP can be invoked from a user program, running either in batch mode or under TSO.
EXEC CICS LINK PROGRAM('DFHEDAP')
COMMAREA(cedaparm) where
DFHEDAP is the name of the entry point in the RDO program, and cedaparm is
a user-defined name of a parameter list consisting of five 31-bit
addresses (each contained in a fullword) as follows: - Address of a field containing the RDO command in source form.
- Address of a halfword binary field specifying the length of the command. The maximum length of the input command is 1022 bytes.
- Address of a 1-byte indicator field defined as follows:
- X'80'
- Display output at terminal instead of returning it to caller.
- X'00'
- Do not display output at terminal.
- Address of a field in which output is to be placed by DFHEDAP.
- Address of a halfword binary field specifying the maximum length of output that the application can handle.
If the indicator in address 3 is X'80', output is displayed at the terminal. In this case, you can enter any number of CEDA commands at the terminal, in response to the output displayed on your screen. Control is returned to your application program when you press PF3.
- Binary halfword containing inclusive length of field.
- Binary halfword containing the number of messages produced.
- Binary halfword containing the highest message-severity: ‘0' and ‘4' continue to execution; ‘8' and ‘12' do not continue to execution.
- Variable-length data containing:
- For the translation stage: diagnostic messages if there are any.
- For the execution stage: data that would normally appear on the CEDA screen, including messages. Each line begins with a new line (NL) character and, otherwise, consists of blanks and uppercase alphanumeric characters.
- An attempt to start CEDA from an application program by an EXEC CICS START
command must fail. This is because CEDA's first action is to request input from its associated
terminal, whereas an automatically initiated transaction must first send data to the terminal.
An attempt to start CEDA under CECI by an EXEC CICS START command fails for similar reasons.
- The RDO command passed in address 1 of the CEDAPARM parameter list must be valid. (For example, spelling errors such as PRORGAM for PROGRAM are not corrected automatically when you use the programmable interface.)
- You cannot use the programmable interface to change the values of CEDA keywords that are obsolete in this release of CICS®, but which are retained for compatibility with earlier releases. That is, the interface does not support compatibility mode.
- CEDA issues various syncpoints as part of its processing. Therefore, when your program links to DFHEDAP the current unit of work (UOW) of the transaction is completed. This may result in problems if, for example, there are outstanding browse operations against VSAM data sets.