Hi Michael, we have implemented a started task in C. There are two functions in the C library that deal with operator commands, __console() and __console2(). Both functions will block when you try to intercept MODIFY or STOP commands, so they should be placed in a special application thread to have the main thread available to process your application logic.
See the C/C++ Run-Time Library Reference for details. Wolfgang -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Michael Knigge Sent: Monday, June 06, 2005 9:38 AM To: [email protected] Subject: Started Task written in C ? All, is it possible to write a started task in C? Ok, surely I know it is possible to write a program that never ends ;-), but I need to "catch" the operator command for stopping the started task ("/P" command if I remember correctly). Can this be done? Maybe with "signal()" ? Thank you, Michael ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

