Invoking the Remote call from AE/CI Process

In PT 8.4x you need to follow a certain sequence prior to invoking the PushButton field. The basics on calling COBOL from AE/CI PeopleCode is as follows. Note that "tweaking" may be necessary to get it to work.

1. AE (Application Engine) needs to have restart disabled in order to use CommitWork() to force a commit to the DB of the CI data.
2. Set the CI's properties, except for the "Pushbutton" field (usually Y/N) used to kick off COBOL.
3. Save the CI (call Save()).
4. If Save is successful, call CommitWork().
5. Set the CI pushbutton property (toggle it) to trigger the COBOL process.
6. COBOL will run asynchronously. So you usually need to put a dummy loop to wait until it's done processing to avoid having the next CI record "bump" into COBOL or in case you need to perform some post COBOL processing of the record.



  1. Priti said,

    Thank you for the excellent code.
    Now the error has gone. But I am facing different issue.
    It seems to me that the fieldchange event of the push button that fires COBOL is not being called.
    Highly appreciate your help.

    on July 13, 2010 at 10:13 AM  

  2. Ganesh said,

    Can you provide more details. Did you perform step 4 and 5 correctly send me the code.

    on August 25, 2010 at 1:44 PM  

  3. Anonymous said,

    I am also facing the same issue.I have done all the steps mentioned above but COBOL is not being called.Pls help :(

    on September 24, 2010 at 5:18 AM