I am trying to call a cobol CICS program that returns its results in a container because of the 32K limit on the size of the COMMAREA. I cannot find an example in the documentation. Does anyone have an example of this? Or is their another way of passing > 32K of data from CICS to a php application?
Pinned topic PHP calling CICS program using containers
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-12-19T12:10:04Z at 2011-12-19T12:10:04Z by EvanChow
EvanChow 27000432RS1 Post
Re: PHP calling CICS program using containers2011-12-19T12:10:04ZThis is the accepted answer. This is the accepted answer.Hi there,
I am afraid that there is not an existing example as you required. But there is an exmaple showing how to use COMMAREA to link COBOL problem. I attached the link as below, FYI.
In Dynamic Scripting, you can use JCICS API in PHP or Groovy scripts to interact with CICS.
To use Container in Dynamic Scripting V1.0, you can try like this:
//Import the CICS classes
//Prepare the channel and container
$dsTask = Task.getTask();
$dsChannel = $dsTask.createChannel('DSCOBOL');
$dsContainer = $dsChannel.createContainer('DSCOBOL');
//Link COBOL program
$dsProgram = new Program();
$status = $dsChannel.getContainer('STATUS');
Here is an JCICS exmaple of using Channel and Containers. Hope it can help.