Thanks Daniel,
It seems that what I want to do cannot be achieved, but I'll tell what I have in my mind:
I'm trying to integrate with Gen programs from the IBM message Broker, which has the facility to call and execute any CICS Program/Transaction and gets the results back using the the CICS communication area.
For example in CICS scenario, program A is a screen based inquiry, sends the inquiry parameters to program B in the communication area to fetch the information from the database and passes the results back to program A in the communication area to present it on the user screen.
Using the Broker scenario, a client request will be coming to the broker, broker construct the communication area and calls program B in the example above to fetch the information from the database and passes the results back to the broker in the communication area to send it back to the client.
If we take the same mini application in GEN it would be similar to the CICS example, but instead using the communication area, it would be passing the information in an export and import areas.
Somehow GEN is hiding the communication area process between Program A and B (using that GEN's algorithm that you mentioned).
Is there anyway that I can access this hidden communication area of GEN or even decipher the areas that are being exchanged in GEN to construct the the communication area?
Or may be some option(s) while generation the gen code to COBOL?