RBD Program Creation
To connect to the EGL-generated COBOL program, the program needs to be created as a subprogram in RBD rather than a main program, as the sub-program will capture the value passed through z/OS Connect and can return the response too.
Interface as COMMAREA: The RBD sub-program must have a minimum of one parameter to
receive the request and send the response.


Interface as CHANNEL: The RBD sub-program must have a minimum of one EGL Record as a
parameter to receive the request and send the response.


Set the build descriptor with the below build descriptor format.
- Create a Linkage option by adding the program name and type as a local call.
- Keep the Parm form as COMMDATA / CHANNEL, Pgm type as EGL, and add the linkage section into the COBOL build options.
- Generate the program and check the output in the corresponding API.
