Before running a Cobol , we need to make sure that the process definition is created.
When running from AE, make sure you pass runcontrolID and Process Type along with other required parameters.
We can also use Remotecall procedure to call COBOL procedure from AE.
Sample Code:
Local ProcessRequest &ProcessRequest;
When running from AE, make sure you pass runcontrolID and Process Type along with other required parameters.
We can also use Remotecall procedure to call COBOL procedure from AE.
Sample Code:
Local ProcessRequest &ProcessRequest;
&ProcessRequest= CreateProcessRequest();
/* Set all the Required Properties */
/* Enter the RunControlID
/* Enter the RunControlID
&ProcessRequest.RunControlID = STATERECORD_AET.RUN_CNTL_ID;
&ProcessRequest.ProcessType = "COBOL SQL";
&ProcessRequest.ProcessName = "";
/* Schedule the Process */
&ProcessRequest.Schedule();
No comments:
Post a Comment